Re: Cannot send V1 PDU on V2 session

2007-04-25 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 25/0

SNMPWALK libnetsnmp.so error

2007-04-25 Thread Ken Alarie
I am installing net-snmp 5.4 on a Sun Sparc system running Solaris10. The compile/install went fairly well. I had a couple of library errors when I started snmp back up but loaded the missing libraries and those went away. The libraries missing were libgcrypt, libgpgerror, and libiconv. Now

Re: SNMPWALK libnetsnmp.so error

2007-04-25 Thread Max
Hi Ken, RAND_bytes is part of OpenSSL; do you have openssl installed on your system? If so, you may need to add /usr/local/ssl/lib to your run time linker path with crle -u -l /usr/local/ssl/lilb as the Sun Freeware OpenSSL package lives in /usr/local/ssl/ .. if you are using that package that

More questions on exec/extend

2007-04-25 Thread Lambert, Eric
I've followed the thread on exec examples, but I'm still having some trouble of my own. I have the following lines in my snmpd.conf file: extend .1.3.6.1.4.1.7594.400 swap_percent /etc/snmp/bin/check_swap_pct.bash monitor -r 10 -u citadelInternal -o .1.3.6.1.4.1.7594.400.101 "cig-swap_percent

RE: SNMPD not responding sometimes even though it is up and running

2007-04-25 Thread Pamidipati Suresh-G20238
Hi Dave, Can you please let us know if there is a bug raised for the race condition in SNMPD while receiving/processing traps and incoming requests.? This problem was seen 3 times till now. We could capture the strace when the problem happened for the 3rd time, which I sent to the list in one of

Has anyone built Net-SNMP to port with Itanium

2007-04-25 Thread Stanley, Jeffrey A CIV DLA J6DIA
Hello all, Has anyone built a Net-SNMP agent to port to HPUX on an Itanium processor machine? If so, won't you mind sharing how you did it? Jeffrey Stanley - This SF.net email is sponsored by DB2 Express Download DB2 Expres

How agent acts upon receiving a request???

2007-04-25 Thread Reza Salehi
Hi All, Is there anyway that I can update my MIB data upon receiving a request(snmpget and walk) and send result back in the same response? I am using handler when I register my MIB but it seems agent upon receiving request(snmpget or walk) first send response back with current data

Fwd: Re: Re: Re: RE: about mib2c

2007-04-25 Thread Reza Salehi
Thanks Dave, I ran my sub agent through GDB and it seems program falls at memcpy() from /lib/libc.so.6(get SIGSEGV signal) which gets call by memdup and memdup by net_snmp_table_set_add_default_row(table_set=0x869f138,column=13760608,type = Variable "type" is not variable) at table_datase

Re: More questions on exec/extend

2007-04-25 Thread Dave Shield
On 25/04/07, Lambert, Eric <[EMAIL PROTECTED]> wrote: > I have the following lines in my snmpd.conf file: > extend .1.3.6.1.4.1.7594.400 swap_percent > /etc/snmp/bin/check_swap_pct.bash > When I run an snmpwalk I get the following data, which I am having trouble > understanding…

Re: How agent acts upon receiving a request???

2007-04-25 Thread Dave Shield
On 25/04/07, Reza Salehi <[EMAIL PROTECTED]> wrote: > I am using handler when I register my MIB but it seems agent upon > receiving request(snmpget or walk) first send response back with current > data and then goes to handler which over there I am updating my data. No - that's not how the agent

Re: Re: Re: Re: RE: about mib2c

2007-04-25 Thread Dave Shield
On 25/04/07, Reza Salehi <[EMAIL PROTECTED]> wrote: > netsnmp_table_set_multi_add_default_row(table_set, > COLUMN_DOT3CITINDEX, 0, NULL, 0, > COLUMN_DOT3CITCHANNELNUMBER, ASN_INTEGER, 0, NULL, 0, > COLUMN_DOT3CITDATARATE, ASN_INTEGER, 0, NULL, 0, > COLUMN_DOT3CITTXPOWER, ASN_INTEGER, 0, NULL, 0, >

RE: More questions on exec/extend

2007-04-25 Thread Lambert, Eric
Thank you Dave. This was very helpful. Using this suggestion I now have snmpwalk ouput of: [EMAIL PROTECTED] snmp# snmpwalk -v 2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendObjects NET-SNMP-EXTEND-MIB::nsExtendNumEntries.0 = INTEGER: 1 NET-SNMP-EXTEND-MIB::nsExtendCommand."swap_percent" =

Re: More questions on exec/extend

2007-04-25 Thread Dave Shield
On 25/04/07, Lambert, Eric <[EMAIL PROTECTED]> wrote: > From a quick read of the NET-SNMP-EXTEND-MIB file am I correct in > assuming that the NET-SNMP-EXTEND-MIB::nsExtendResult."swap_percent" > line is the integer result of the command I want to use as the argument > in my "monitor" statement? Th

RE: More questions on exec/extend

2007-04-25 Thread Lambert, Eric
Thanks again Dave. I added the following line to snmpd.conf, but get the error below when I restart snmpd: monitor -r 10 -u citadelInternal NET-SNMP-EXTEND-MIB::nsExtendResult."swap_percent" = 0 Apr 25 15:19:44 lx-chtdell2950 snmpd[14938]: trigger OID: = Apr 25 15:19:44 lx-chtdell2950 snmpd[149

Fwd: Re: How agent acts upon receiving a request???

2007-04-25 Thread Reza Salehi
Thanks Dave. I am using netsnmp_register_int_instant(..,..,..,..My_handler) then My_handler(,,netsnmp_agent_request_info *reqinfo,...) then case( reqinfo->mode). is this the right way? Regards, Reza Note: forwarded message attached.

Re: More questions on exec/extend

2007-04-25 Thread Dave Shield
On 25/04/07, Lambert, Eric <[EMAIL PROTECTED]> wrote: > Apr 25 15:19:44 lx-chtdell2950 snmpd[14938]: trigger OID: = > Apr 25 15:19:44 lx-chtdell2950 snmpd[14938]: /etc/snmp/snmpd.conf: line > 99: Error: unknown monitor OID > Apr 25 15:19:44 lx-chtdell2950 snmpd[14938]: net-snmp: 1 error(s) in > con

Re: how many address can trap2sink set

2007-04-25 Thread Clement Hsu
Dear Dave: Thanks a lot. Best Regards, Clement 2007/4/24, Dave Shield <[EMAIL PROTECTED]>: On 24/04/07, Clement Hsu <[EMAIL PROTECTED]> wrote: > How many address can snmpd agent can be > set for sending trap? No fixed limit. This is handled dynamically. > and how many community can trap