Re: Community string field in netsnmp-session structure getting corrupted.

2008-03-26 Thread Roy M. Silvernail
sion.community_len member to the length of the community string? -- Roy M. Silvernail is [EMAIL PROTECTED], and you're not "A desperate disease requires a dangerous remedy." - Guy Faw

Re: Net-SNMP (ASAP)

2008-04-09 Thread Roy M. Silvernail
? If you get a response to that, your target is SNMP-enabled (version 2c, anyway) and responsive. Back it up with a call to the v1 style if you are monitoring a mixed-version installation. -- Roy M. Silvernail is [EMAIL PROTECTED], and you're not "A desperate disease requires

Re: SNMP_ERR_TOOBIG

2008-05-14 Thread Roy M. Silvernail
face stricter limitations than larger, more fully-provisioned systems. -- Roy M. Silvernail is [EMAIL PROTECTED], and you're not "A desperate disease requires a dangerous remedy." - Guy Fawkes

Re: Getting IP address of devices connected to a switch

2008-06-04 Thread Roy M. Silvernail
ports, no. If you're looking for the addresses of devices holding a TCP connection to the switch, RFC1213-MIB::tcpConnTable has that. -- Roy M. Silvernail is [EMAIL PROTECTED], and you're not "A desperate disease requires a dangerous remedy." - Guy Fawk

Re: Got NoSuchName when I was SNMP requesting a MIB with long string value

2008-06-27 Thread Roy M. Silvernail
a string type scalar MIB variable (len of string > 256 bytes) recently. I > noticed that if len of string <= 256 it worked OK. I got NoSuchName if len > of string > 256. ASN.1 coding uses one byte to indicate field length, limiting any one component to 255 bytes. -- Roy M. Silverna

Re: Got NoSuchName when I was SNMP requesting a MIB with long string value

2008-06-27 Thread Roy M. Silvernail
Dave Shield wrote: > 2008/6/27 Roy M. Silvernail <[EMAIL PROTECTED]>: >> ASN.1 coding uses one byte to indicate field length, limiting any one >> component to 255 bytes. > > Where did you get this information? > Because wherever you found it, it's wrong.

Re: NET SNMP src interface question

2008-08-01 Thread Roy M. Silvernail
is possible or not to tell > Net Snmp to use certain interface for sending outgoing packets. Is it > possible with Net Snmp ? Does anybody know? I believe you simply need to set the .localname member of your netsnmp_session structure to the desired interface address before calling s

Re: netsnmp with perl 64 bit handling

2008-11-20 Thread Roy M. Silvernail
0.147 IF-MIB::ifInOctets.6 IF-MIB::ifInOctets.6 = Counter32: 1601496262 $ snmpget -v 2c -c public 10.10.100.147 IF-MIB::ifHCInOctets.6 IF-MIB::ifHCInOctets.6 = Counter64: 48846137879 -- Roy M. Silvernail is [EMAIL PROTECTED], and you're not "A desperate disease requires a dangerous remedy.&quo

Re: netsnmp with perl 64 bit handling

2008-11-21 Thread Roy M. Silvernail
ue using perl script I have attached below? I have build the > same source codes for perl also. nd I looked back at that script, which begins #!/usr/bin/perl # interface.pl use Net::SNMP; The Net::SNMP module isn't from Net-SNMP. You'll have to ask the authors that question. -- R