I'm experimenting with snmp. Ios 12.2(5) . Snmp configuration is simply snmp-server community community RO 4 snmp-server location somewhere snmp-server contact somebody@somewhere snmp-server chassis-id someid
I'm trying to monitor some 64bit counters (ifHCInOctets ecc.) with mrtg, but can't get the correct values, in fact mrtg complains WARNING: Expected a number but got '#' with a basic configuration like Target[name.tst]: 1:community@host:::::2 Normal snmp v1 setup works for all the usual targets I tested (interfaces, cpu, memory, ntp for now). debug snmp headers, debug snmp packets logs 012086: Jan 30 18:11:16.117 CET: SNMP: Packet received via UDP from 10.64.1.90 on FastEthernet0/0 012087: Jan 30 18:11:16.121 CET: SNMP: Get request, reqid 1180365729, errstat 0, erridx 0 ifXEntry.6.1 = NULL TYPE/VALUE ifXEntry.10.1 = NULL TYPE/VALUE sysUpTime.0 = NULL TYPE/VALUE system.5.0 = NULL TYPE/VALUE 012088: Jan 30 18:11:16.149 CET: Incoming SNMP packet 012089: Jan 30 18:11:16.149 CET: v1 packet 012090: Jan 30 18:11:16.149 CET: community string: community 012091: Jan 30 18:11:16.153 CET: SNMP: Response, reqid 1180365729, errstat 0, erridx 0 ifXEntry.6.1 = NO_SUCH_INSTANCE_EXCEPTION ifXEntry.10.1 = NO_SUCH_INSTANCE_EXCEPTION sysUpTime.0 = 415320882 system.5.0 = CiscoR2.previnet.it 012092: Jan 30 18:11:16.193 CET: SNMP: Packet sent via UDP to 10.64.1.90 Trying to snmwalk those counters appareantly won't work either - snmpwalk -v 2c host community ifXTable does produce everything except the 64bit counters. debug produces lots of Incoming SNMP packet 012026: Jan 30 18:02:02.874 CET: v1 packet 012027: Jan 30 18:02:02.874 CET: community string: community 012028: Jan 30 18:02:02.874 CET: SNMP: Response, reqid 709824394, errstat 0, erridx 0 ifXEntry.19.34 = 0 012029: Jan 30 18:02:02.890 CET: SNMP: Packet sent via UDP to 10.64.1.90 012030: Jan 30 18:02:02.894 CET: SNMP: Packet received via UDP from 10.64.1.90 on FastEthernet0/0 012031: Jan 30 18:02:02.898 CET: SNMP: Get-next request, reqid 709824395, errstat 0, erridx 0 ifXEntry.19.34 = NULL TYPE/VALUE 012032: Jan 30 18:02:02.906 CET: and so on - note the "v1 packet" in both debug output. But note, snmpget -v 2c host community .iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.1. 1 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.1 = Fa0/0 while snmpget -v 2c host community .iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.6. 1 ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets.1 = No Such Instance currently exists This would have been ifHCInOctets for Fa0/0 . debug printed ifXEntry.6.1 = NO_SUCH_INSTANCE_EXCEPTION so appareantly snmpget did not lie on me. I see two possibilities: a) my router config needs something else to enable v2 - but in that case debug should at least complain for a v2c packets. b) that basic mrtg conf needs something else or the version of mrtg I'm using (2.9.17) is buggy, AND I'm using snmpwalk with a wrong syntax, too (or it is buggy). c) ? Any idea at least if the problem is related to the router config or the mrtg/snmpwalk setup ? Heiko -- -- PREVINET S.p.A. [EMAIL PROTECTED] -- Via Ferretto, 1 ph x39-041-5907073 -- I-31021 Mogliano V.to (TV) fax x39-041-5907087 -- ITALY Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=33719&t=33719 -------------------------------------------------- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

