Re: help on this snmpwalk result

2004-11-17 Thread Thomas Anders
Hwanjo Heo wrote:
$ snmpwalk -v 2c -c public 128.210.254.180 1.3.6.1.4.1.9.2.2.1.1.26
SNMPv2-SMI::enterprises.9.2.2.1.1.26.1 = INTEGER: 0
[...]
$ snmpwalk -v 2c -c public 128.210.254.180 | grep 9.2.2.1.1.26
There's no output.
See the FAQ entry
http://www.net-snmp.org/FAQ.html#Why_can_t_I_see_values_in_the__INSERT_ENTERPRISE_HERE__tree_
Furthermore, is there any possibility that the zeros on the first
result mean that
the function(checking input queue drops) is disabled, thus all zeros?
You're querying a Cisco device, so you'd have to ask *them*.
Also, please note that this is OLD-CISCO-INTERFACES-MIB which is marked as
deprecated by Cisco.
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: 5.2.rc4 available for testing.

2004-11-17 Thread Users
On Wed, 17 Nov 2004 09:13:01 -0500 [EMAIL PROTECTED] wrote:
CRC  5.2.rc4 is not available for testing. ...
CRC 
CRC So why tell us? ;-)  

Doh!

CRC I assume you meant _now_ available for testing.  I do that myself all the
CRC time.

Yep, that's it. Should had some caffeine this morning! ;-)

-- 
Robert Story; NET-SNMP Junkie http://www.net-snmp.org/
irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Sending traps from an agentX subagent

2004-11-17 Thread Users
First of all, please post a new message, instead of replying to the digest and
quoting the entire (unrelated!) digest.

On Wed, 17 Nov 2004 18:30:04 +1100 Russell wrote:
RB The subagent process is multi-threaded.  Raising a trap works fine if I do
RB it in the main thread [...]
RB But, if I call send_v2trap() from another thread I get intermittent
RB core-dumps, not surprising perhaps as netsnmp doesn't claim to be
RB thread-safe.

Using threads in the agent is *completely* unsupported. 

RB - Figuring out how to use netsnmp in a thread-safe manner, so I can call
RB send_v2trap() from other threads.

The reason it is unsupported is that nobody has documented the gotchas and
provided workarounds or a patch to fix or provide new APIs. If you have time
for that, that'd be great!

RB But so far I haven't made much headway understanding README.thread.

README.thread details using threads with client applications.

RB - Or, queue the trap requests and send them from the main thread.  This
RB would be fine except agent_check_and_process(true) times out after 15
RB seconds, too much latency for this application.

I'm tempted to leave you hanging, in the hopes that you go off and figure out
to use threads in the agent, but I won't. There is a much easier way to do what
you are trying to do. All you need is a file descriptor to communicate between
the thread and the master agent. It can be a unix domain socket, a normal
socket or a pipe. Then you register a function to be called when data arrives
on the socket. The thread sends data to the pipe, which should wake up the main
thread to process it. A simple example can be found here:

   http://www.net-snmp.org/faqs/rstory/#readfds

RB Alternatively, is there a
RB straightforward way to make calls to send_v2trap() thread-safe ?

If there was, we would have already done it!

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: TCP connection failure

2004-11-17 Thread Users
On Mon, 15 Nov 2004 16:39:31 +0200 Arye wrote:
AS I'm trying to extend the agent, by using a dynamically loaded SO.
AS  
AS The init_plugin() function calls c++ functions that are compiled with
AS extern C. And in turn, the c++ functions try to connect by TCP to get the
AS info for the SNMP query.
AS  
AS The problem is that the TCP connection always fails, but if I make a
AS simple executable that uses the SO, it works fine.

This won't ever work, since the agent is single threaded. When you try to make
the connection, you block the agent, so it can't accept the incoming
connections. Try using UDP instead of TCP.

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: help for SNMPD and TCP

2004-11-17 Thread Users
On Mon, 15 Nov 2004 10:05:25 + souad wrote:
ST I want to start the agent
ST whith TCP. I added this primitive agentaddress tcp:161 in the file
ST /etc/snmpd/snmpd.conf and i restart the agent.   I checked  if the agent is
ST in listening bye netstat -nat. i found that the agent listen in port 161
ST in TCP but when i request the agent, i 'don 't have no response. is it
ST normal??

How are you sending the request? Are you specifying TCP on the client side too?

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


using Net::SNMP::snmp_type_ntop()

2004-11-17 Thread Christopher Fowler
I have an agent on a remote device that returns me OID's in the number
syntax.  I want to convert those numbers to a readable text string.

Here is my test code:
use Net::SNMP;
my $n = Net::SNMP-new();
my $t = $n-snmp_type_ntop('iso.3.6.1.4.1.14264.1.1.0.3');
print [$t]\n;

Here is output:
[EMAIL PROTECTED] SAM]$ /tmp/p.pl
[?? [0x8174cb0]]

Can someone tell me what is the best way to accomplish this?

Thanks,
Chris



---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Error compiling net-snmp 5.1.2

2004-11-17 Thread Alex Burger
Hi Sergio.
If you remove 'My Documents' from the path, it should work.  I just 
tried under Mandrake in a folder called 'test folder' and I got the 
exact same error.  The space is what is causing the problem.

Alex
Sergio Afonso Coderch wrote:
Hi all,
When I compile the net-snmp 5.1.2 (make sentence), the next error messages
appear:
[...]
gcc -I../include -I../include -I.. -I./.. -I./../snmplib -I./../agent 
-I../agent/helpers -I./../agent/mibgroup -g -O2 -Dlinux -c snmpget.c -o 
snmpget.o /dev/null 21
mv -f .libs/snmpget.lo snmpget.lo
/bin/sh ../libtool  --mode=link gcc -o snmpget snmpget.lo -L../snmplib 
-L../agent -L../agent/helpers  ../snmplib/libnetsnmp.la  -lm
libtool: link: cannot find the library `'
make[1]: *** [snmpget] Error 1
make[1]: Leaving directory `/home/sergio/My 
Documents/SNMP/net-snmp-5.1.2/apps'
make: *** [subdirs] Error 1


I don't know which is the error. Could anyone help me??
My computer configuration is: Xandros Desktop 2.0, kernel 2.4.24
Best Regards,
Sergio

---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: How to avoid to write app.conf file on shutdown ?

2004-11-17 Thread Users
On Mon, 15 Nov 2004 17:48:23 +0100 Frédéric wrote:
FB it calls snmp_shutdown(my-app)
FB which produces traces like :
FB 
FB No log handling enabled - turning on stderr logging
FB read_config_store open failure on /var/lib/snmp/my-app.conf
FB read_config_store open failure on /var/lib/snmp/my-app.conf
FB read_config_store open failure on /var/lib/snmp/my-app.conf

Add this to your app during startup:

   netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID,
   NETSNMP_DS_LIB_DONT_PERSIST_STATE, 1);

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: nlist err: neither icmpstat nor _icmpstat found. in snmp.log on OS X

2004-11-17 Thread Rob Kudyba
Robert Story (Users) wrote:
On Mon, 15 Nov 2004 13:27:50 -0500 Rob wrote:
RK On OS X 10.3.6, after compiling Net SNMP, 5.1.2, and starting the 
RK following appears in /var/log/snmpd.log:
RK nlist err: neither icmpstat nor _icmpstat found.
RK NET-SNMP version 5.1.2
RK 
RK Is this a known issue and if so is there an option during the configure 
RK that can be run to avoid this?

First, try disabling the icmp module at startup by adding -I -icmp to your
command line. If that works, then reconfigure and specify
--without-mib-modules=mibII/icmp.
 

Excellent; the error message went away using the -I -icmp option on 
startup. Might be helpful to include that piece of info in the 
README.osX file...

Not sure if it helps but check out the make test errors that I've trimmed:
26:testing authentication failure traps are sent by snmpd...FAIL
27:testing that the agent responds properly to a kill -HUP...cat: 
/tmp/snmp-test-27-15092/snmpd.pid: No such file or directory
ok
make[1]: *** [test] Error 1
make: *** [test] Error 2


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: my OS X notes when testing using README.snmpv3

2004-11-17 Thread Users
On Tue, 16 Nov 2004 16:07:56 -0500 Rob wrote:
RK Someone may or may not want to update the docs...tested on OS X.3.6
RK 
RK -this error: nlist err: neither icmpstat nor _icmpstat found.  is 
RK partially documented in README.osX

Yep... I'm adding docs on a fix, as soon as I finish testing...

RK -need full path to net-snmp-config, e.g., ' 
RK /usr/local/net-snmp-5.1.2/net-snmp-config --create-snmpv3-user' 
RK otherwise you will get a:
RK 'su: net-snmp-config: command not found' warning message

Hmm.. this is a standard PATH issue, not sure if it's worth special
documenting. If you had used a standard prefix, it should have worked.

RK -The object name does not appear to work with snmpget:
RK 
RK snmpget -v 3 -u myuser -l authPriv   -a MD5 -A my_password -x DES -X 
RK my_password localhost sysUpTime.0
RK sysUpTime.0: Unknown Object Identifier (Sub-id not found: (top) - 
RK sysUpTime)

That would be a MIB loading issue, not specific to OS X, and covered in the
FAQ.

RK Also, of you are performing these command as root user then you can 
RK create the snmp.conf file ($HOME/.snmp/snmp.conf) in 
RK /var/root/.snmp/snmp.conf. If you try the commands w/out the auth 
RK options as root and you are wondering why you are getting these errors:
RK snmpget: No securityName specified
RK 
RK even though you have a $HOME/.snmp/snmp.conf file, well this would be 
RK the reason ;-)

I assume you are using sudo? This is also not specific to OS X.

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: nlist err: neither icmpstat nor _icmpstat found. in snmp.log on OS X

2004-11-17 Thread Users
On Wed, 17 Nov 2004 10:47:09 -0500 Rob wrote:
RK Excellent; the error message went away using the -I -icmp option on 
RK startup. Might be helpful to include that piece of info in the 
RK README.osX file...

Yep, will do..

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: on OS X, getting Unknown Object Identifier why do object names not work but OID's do?

2004-11-17 Thread Users
On Wed, 17 Nov 2004 09:37:50 -0500 Rob wrote:
RK Net-SNMP 5.1.2
RK I just used configure without any options. I can run commands using the 
RK OID's but using the names fail.

Have you read this FAQ entry?

   http://www.net-snmp.org/FAQ.html#Why_aren_t_my_mib_files_being_read_in_


-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: descriptions of mib modules in agent/mibgroup dir?

2004-11-17 Thread Users
On Tue, 16 Nov 2004 22:13:18 -0600 (CST) Nick wrote:
NB I am trying to find a description of the mib modules that come with the
NB net-snmp distribution.  It appears there are a lot of them, but I don't
NB see any documentation on what each one does.

Try 'configure --help'.


-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Help! trap problem: Broken pipe

2004-11-17 Thread Users
On Tue, 16 Nov 2004 21:53:19 -0600 [EMAIL PROTECTED] wrote:
DC 3)Next ran the snmpd and snmpdtrapd
DC ./snmpd -f -L -d
DC ./snmptrapd -Le -d

Try starting snmptrapd before snmpd.


DC Then i issued command to send trap:
DC snmptrap -v 2c -c public localhost '' .1.3.6.1.4.1.20 21.991.17
DC .1.3.6.1.2.1.1.6.0 s just here
DC the snmptrap printed and stopped. listed below was what printed out.
DC 
DC snmptrapd -P -F 22:28 TRAP0.0 from 0.0.0.0
DC Broken pipe
DC 
DC It seemed that the trap was sent and also was received by the trap dameon.
DC But why then it stopped and what does Broken pipe mean?

Are you sure snmptrapd stopped? Does it receive further traps if you send them
using snmptrap?

Broken pipe means that either a trap hander is being called but not reading all
of its input, or the AgentX sub-agent component of snmptrapd is getting
disconnected from the master agent.  In either case, it should recover and
continue to receive traps.

What version are you using? What platform are you on?


-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: multiple set of table handling

2004-11-17 Thread Users
On Wed, 17 Nov 2004 09:19:07 +0800 Jim wrote:
JSI have implemented net-snmp agent on 5.0.6 with UCD api.
JSThe agent has the handling to get the content of a table from another
JSprocess. [...] I would like to know in the
JS var_abcTable() routine how do I handle the multiple set of table. 

If there are multiple object set for var_abcTable, you will get multiple calls
to the function (one per variable).

You will have to look at the incoming varbind OID to determine which row is
being modified.

JSIs there a example code can be referenced?

There are may examples in the mibgroup directory. Try a grep for
the string write_method = to find modules that have old api write support.

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Error compiling net-snmp 5.1.2

2004-11-17 Thread Users
On Tue, 16 Nov 2004 20:58:25 -0500 Alex wrote:
AB If you remove 'My Documents' from the path, it should work.  I just 
AB tried under Mandrake in a folder called 'test folder' and I got the 
AB exact same error.  The space is what is causing the problem.

Oooh, good catch Alex!

If a space in the name is *really* necessary, some research on the shell you
are using might offer insight on either a) quoting the space in the path or b)
changing the IFS so that space is not seen as a separator.

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: SNMP leak bug update?

2004-11-17 Thread Users
On Tue, 16 Nov 2004 17:06:16 -0500 Rob wrote:
RK Any update on this? This makes our app. almost useless as the memory 
RK usage gets unruly...for example:
RK 
http://sourceforge.net/tracker/index.php?func=detailaid=1062954group_id=12694atid=112694

Have you tried configuring and running with dmalloc to try and pinpoint the
source of the leak?

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: WRB: A seeming failure of mib2c in Net-SNMP-5.1.2

2004-11-17 Thread Users
On Tue, 16 Nov 2004 16:20:26 -0800 [EMAIL PROTECTED] wrote:
WC In reading the file AGENT.txt, I notice under section 3 *The C code header
WC file*, subsection *Module dependancies* (yes, in the file the word is
WC misspelled), comes the first paragraph suggesting the existence of a
WC directive, yet the place where the directive ought appear in the file is
WC blank.
WC  [...]
WC My prompt for this review was more than the missing text in the file
WC AGENT.txt, for I had also noted no directive in the header file
WC produced by mib2c for the attached 802.11 MIB file.  That is, I compiled
WC said attached MIB using mib2c, and obtained a header file
WC that does not include this aforementioned directive.

It isn't strictly necessary. If you have a single file, simply specifying it in
the --with-mib-modules option is sufficient. The config_require directive is
for use when one module requires a different module.

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Memory leak when using exec on SuSE 9.1

2004-11-17 Thread Stephan A. Rickauer
Hi there,
I am experiencing problems when using a very simply snmpd.conf, that 
includes a basic exec line for multiple line output copied from the 
example file:

---snip---
exec .1.3.6.1.4.1.2021.51 ps /bin/ps
---snip---
As soon as I restart snmpd it'll consume endless memory/swap until it 
gets killed by VM.

My machine:
SuSE-9.1 machine,
kernel 2.6.5-7.108-default,
net-snmp-5.1-80
the log file says: kernel: Out of Memory: Killed process 6853 (snmpd). 
The problem is reproducable, but not on a 2.4 kernel machine. There it 
works for me on RedHat 9, net-snmp-5.0.9-2.90.1.

Is that some known issue? Let me know how I can help to improve this 
great product ...

--
Stephan A. Rickauer

Institut für Neuroinformatik
IT-Koordinator
Universität / ETH Zürich
Winterthurerstr. 190
CH-8057 Zürich
Tel: +41 1 635 30 50
Sek: +41 1 635 30 52
Fax: +41 1 635 30 53
http://www.ini.unizh.ch
[EMAIL PROTECTED]

---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: WRB: A seeming failure of mib2c in Net-SNMP-5.1.2

2004-11-17 Thread wrb
Robert:

Actually, the missing text is in the AGENT.txt file.  My comment was
really a complaint regarding missing documentation.  Upon reviewing
other implementation files (sysORTable.c, I think), I found an example
of the directive in question.  My complaint is that the AGENT.txt
file has several blank lines where that directive ought to be shown.
That is, the *figure* in the documentation is missing - it is blank.

WRB

 Original message 
Date: Wed, 17 Nov 2004 11:54:45 -0500
From: Robert Story (Users) [EMAIL PROTECTED]  
Subject: Re: WRB: A seeming failure of mib2c in Net-SNMP-5.1.2  
To: [EMAIL PROTECTED]
Cc: NetSNMPUsers [EMAIL PROTECTED]

On Tue, 16 Nov 2004 16:20:26 -0800 [EMAIL PROTECTED] wrote:
WC In reading the file AGENT.txt, I notice under section 3 *The C code header
WC file*, subsection *Module dependancies* (yes, in the file the word is
WC misspelled), comes the first paragraph suggesting the existence of a
WC directive, yet the place where the directive ought appear in the file is
WC blank.
WC  [...]
WC My prompt for this review was more than the missing text in the file
WC AGENT.txt, for I had also noted no directive in the header file
WC produced by mib2c for the attached 802.11 MIB file.  That is, I compiled
WC said attached MIB using mib2c, and obtained a header file
WC that does not include this aforementioned directive.

It isn't strictly necessary. If you have a single file, simply specifying it in
the --with-mib-modules option is sufficient. The config_require directive is
for use when one module requires a different module.

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: my OS X notes when testing using README.snmpv3

2004-11-17 Thread Rob Kudyba

RK Also, of you are performing these command as root user then you can 
RK create the snmp.conf file ($HOME/.snmp/snmp.conf) in 
RK /var/root/.snmp/snmp.conf. If you try the commands w/out the auth 
RK options as root and you are wondering why you are getting these errors:
RK snmpget: No securityName specified
RK 
RK even though you have a $HOME/.snmp/snmp.conf file, well this would be 
RK the reason ;-)

I assume you are using sudo? This is also not specific to OS X.
 

Actually I was just su'ed as the root user, so perhaps adding it as a FAQ?
---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


weird tutorial

2004-11-17 Thread Mauricio Reyes
Hi all,
I work with microsoft windows. I am trying to use the snmpdemoapp.c in the 
tutorial. but can't make it work. the snmpd.conf file is ok. The weird thing 
is that ir worked on linux, the same code but there is something wrong in 
windows.
I am trying to use authentication and enryption using snmp v3. the user i 
created like this:

snmpusm  -v 3  -u initial -n  -l authPriv -a MD5 -A setup_passphrase -x
DES -X setup_passphrase -l authPriv localhost create testusr initial
User successfully created.
snmpusm -v 3 -u testusr -n  -l authPriv -a MD5 -A setup_passphrase -x D
ES -X setup_passphrase localhost passwd setup_passphrase testthispass
SNMPv3 Key(s) successfully changed.
a snmpget works well:
snmpget -v 3 -u testusr -n  -l authPriv -a MD5 -A testthispass -x DES -X 
testthispass localhost system.sysContact.0

but when i use the code below i get: Why it says it doesn't support 
encryption, if it works above? the agent was compiled with openssl

No log handling enabled - turning on stderr logging
Encryption support not enabled.
snmpget: USM encryption error
thanks,
mauricio
i have done this:
#include net-snmp/net-snmp-config.h
#include net-snmp/net-snmp-includes.h
#include string.h
const char *pass=testthispass;
int main(int argc, char ** argv)
{
 struct snmp_session session, *ss;
 struct snmp_pdu *pdu;
 struct snmp_pdu *response;
 oid anOID[MAX_OID_LEN];
 size_t anOID_len = MAX_OID_LEN;
 struct variable_list *vars;
 int status;
 int count=1;
 init_snmp(snmpapp);
 snmp_sess_init( session );
session.peername = strdup(127.0.0.1);
session.version=SNMP_VERSION_3;
session.securityName = strdup(testusr);
 session.securityNameLen = strlen(session.securityName);
session.securityLevel = SNMP_SEC_LEVEL_AUTHPRIV;
session.securityAuthProto = usmHMACMD5AuthProtocol;
 session.securityAuthProtoLen = sizeof(usmHMACMD5AuthProtocol)/sizeof(oid);
 session.securityAuthKeyLen = USM_AUTH_KU_LEN;
session.securityPrivProto = usmDESPrivProtocol;
session.securityPrivProtoLen = USM_PRIV_PROTO_DES_LEN;
session.securityPrivKeyLen = USM_PRIV_KU_LEN;
if (generate_Ku(session.securityAuthProto,
 session.securityAuthProtoLen,
 (u_char *) pass, strlen(pass),
 session.securityAuthKey,
 session.securityAuthKeyLen) != SNMPERR_SUCCESS) {
 snmp_perror(argv[0]);
 snmp_log(LOG_ERR,
  Error generating Ku from authentication pass phrase. \n);
 exit(1);
 }
if (generate_Ku(session.securityAuthProto,
 session.securityAuthProtoLen,
 (u_char *) pass, strlen(pass),
 session.securityPrivKey,
 session.securityPrivKeyLen) != SNMPERR_SUCCESS) {
 snmp_perror(argv[0]);
 snmp_log(LOG_ERR,
  Error generating Ku from authentication pass phrase. \n);
 exit(1);
 }
 SOCK_STARTUP;
 ss = snmp_open(session);
 if (!ss)
{
 snmp_perror(ack);
 snmp_log(LOG_ERR, something horrible happened!!!\n);
 exit(2);
 }
 pdu = snmp_pdu_create(SNMP_MSG_GET);
 read_objid(.1.3.6.1.2.1.1.4.0, anOID, anOID_len);
 snmp_add_null_var(pdu, anOID, anOID_len);
 status = snmp_synch_response(ss, pdu, response);
 if (status == STAT_SUCCESS  response-errstat == SNMP_ERR_NOERROR)
{
   for(vars = response-variables; vars; vars = vars-next_variable)
 print_variable(vars-name, vars-name_length, vars);
   for(vars = response-variables; vars; vars = vars-next_variable)
{
 if (vars-type == ASN_OCTET_STR)
{
char *sp = (char *)malloc(1 + vars-val_len);
memcpy(sp, vars-val.string, vars-val_len);
sp[vars-val_len] = '\0';
printf(value #%d is a string: %s\n, count++, sp);
free(sp);
}
 else
   printf(value #%d is NOT a string! Ack!\n, count++);
   }
 }
else
{
   if (status == STAT_SUCCESS)
 fprintf(stderr, Error in packet\nReason: 
%s\n,snmp_errstring(response-errstat));
   else
 snmp_sess_perror(snmpget, ss);
 }

 if (response)
   snmp_free_pdu(response);
 snmp_close(ss);
 SOCK_CLEANUP;
 return (0);
}
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Route Metrics

2004-11-17 Thread Murali Bestha
Hi All,

I have a requirement to find out the routing data size/forwarding data
size by a router machine. The router could be a Linux Server or a
HP-UX machine. Can anybody please let me know what are the
corresponding OIDs?

Thanks and Regards
Murali


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: multiple set of table handling

2004-11-17 Thread Jim Su
Hi Robert:
  
   Thanks for the info. I had misled you the question. I didn't mean the 
command set - opposite to command get. I meant my agent get the table value 
from another process (said SRC). The process supplied me one set of value for 
that table at one time. Now the number of application (and results) increased 
so there are many different set of values for that table are generated (said 
x set values for that table) and my agent need to response to the query (of 
snmpwalk) to show all the x set values for that same table. There is no 
involvement for the command set in my agent. My agent doesn't need to do the 
set to that table. Sorry I didn't make my question clear.

Regards,
Jim   

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Robert Story (Users)
Sent: Thursday, November 18, 2004 12:42 AM
To: Jim Su
Cc: Net-Snmp-Users
Subject: Re: multiple set of table handling


On Wed, 17 Nov 2004 09:19:07 +0800 Jim wrote:
JSI have implemented net-snmp agent on 5.0.6 with UCD api.
JSThe agent has the handling to get the content of a table from another
JSprocess. [...] I would like to know in the
JS var_abcTable() routine how do I handle the multiple set of table. 

If there are multiple object set for var_abcTable, you will get multiple calls
to the function (one per variable).

You will have to look at the incoming varbind OID to determine which row is
being modified.

JSIs there a example code can be referenced?

There are may examples in the mibgroup directory. Try a grep for
the string write_method = to find modules that have old api write support.

-- 
Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: Route Metrics

2004-11-17 Thread Kurapati M-G19456
Refer to ipCidrRouteNumber in RFC2096, if I understand your question correctly. 

Thanks
Mahesh


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Murali Bestha
Sent: Thursday, November 18, 2004 11:53 AM
To: [EMAIL PROTECTED]
Subject: Route Metrics


Hi All,

I have a requirement to find out the routing data size/forwarding data size by 
a router machine. The router could be a Linux Server or a HP-UX machine. Can 
anybody please let me know what are the corresponding OIDs?

Thanks and Regards
Murali


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object 
and relational technologies, making it a perfect match for Java, C++,COM, XML, 
ODBC and JDBC. www.intersystems.com/match8 
___
Net-snmp-users mailing list [EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options: 
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users