04-10-2012 09:28 PM
I want to using SNMP to ping other router.
In IPv4 we can use CISCO-PING-MIB.
BUT:
CISCO-PING-MIB support IPv6 ?
I try "snmpset" on 7206 router IOS 15.1(3)S2, but it seem not support ipv6.
(222 is random choosed)
snmpset -v 2c -c public 172.16.212.229 .1.3.6.1.4.1.9.9.16.1.1.1.16.222 integer 6
snmpset -v 2c -c public 172.16.212.229 .1.3.6.1.4.1.9.9.16.1.1.1.2.222 integer 5
snmpset -v 2c -c public 172.16.212.229 .1.3.6.1.4.1.9.9.16.1.1.1.2.222 integer 20 (20 means ipv6)
Error in packet.
Reason: wrongValue ( set set value is illegal or unsupported in some way)
Failed object : SNMPv2-SMI::enterprises.9.9.16.1.1.1.2.222
Someone tell me about RFC2925 DISMAN MIB. but cisco 7200/7600 support it ?
Can anyone help me check the SNMP PING for IPv6 .
Thanks,
Michael
04-11-2012 11:50 AM
Shouldn't you second line "snmpset -v 2c -c public 172.16.212.229 .1.3.6.1.4.1.9.9.16.1.1.1.2.222 integer 5" be "snmpset -v 2c -c public 172.16.212.229 .1.3.6.1.4.1.9.9.16.1.1.1.16.222 integer 5" instead? Otherwise, it's setting ciscoPingProtocol = 5 = xns, which may be what the error was complaining about, rather than your third line that's setting ciscoPingProtocol = 20 = ipv6.
04-11-2012 06:27 PM
Hi ,
Thanks for your reply.
I redo it again. but it still not work.
michael@ubuntu:~$ snmpset -v 2c -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.16.333 integer 6
SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.333 = INTEGER: 6
michael@ubuntu:~$ snmpset -v 2c -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.16.333 integer 5
SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.333 = INTEGER: 5
michael@ubuntu:~$ snmpset -v 2c -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.2.333 integer 20
Error in packet.
Reason: wrongValue (The set value is illegal or unsupported in some way)
Failed object: SNMPv2-SMI::enterprises.9.9.16.1.1.1.2.333
Regards,
Michael
04-11-2012 09:33 PM
Maybe setting ciscoPingEntryOwner is required then. Can you try these in order:snmpset -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.16.333 integer 6
snmpset -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.16.333 integer 5snmpset -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.15.333 octetstring ipv6pingsnmpset -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.2.333 integer 20
...
04-11-2012 10:18 PM
Hi,
I try it, but it still does not work.
michael@ubuntu:~$ snmpset -v 1 -c public 172.16.212.231 .1.3.6.1.4.1.9.9.16.1.1.1.16.222 integer 6
SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.222 = INTEGER: 6
michael@ubuntu:~$ snmpset -v 1 -c public 172.16.212.231 .1.3.6.1.4.1.9.9.16.1.1.1.16.222 integer 5
SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.222 = INTEGER: 5
michael@ubuntu:~$ snmpset -v 1 -c public 172.16.212.231 .1.3.6.1.4.1.9.9.16.1.1.1.15.222 string ipv6ping
SNMPv2-SMI::enterprises.9.9.16.1.1.1.15.222 = STRING: "ipv6ping"
michael@ubuntu:~$ snmpset -v 1 -c public 172.16.212.231 .1.3.6.1.4.1.9.9.16.1.1.1.2.222 integer 20
Error in packet.
Reason: (badValue) The value given has the wrong type or length.
Failed object: SNMPv2-SMI::enterprises.9.9.16.1.1.1.2.222
Thanks,
Michael
04-12-2012 12:32 PM
It seems you're using net-snmp. Can you import the CISCO-PING-MIB into net-snmp (may need to load all the dependencies on
http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=CISCO-PING-MIB), and then try to set it when referencing "ciscoPingProtocol" by name:
snmpset -v 2c -c public 172.16.212.230 CISCO-PING-MIB::ciscoPingProtocol.222 integer 20
04-15-2012 10:35 PM
Hi ,
It still do not work.
michael@ubuntu:/usr/share/snmp/mibs$ snmpset -v 2c -c public 172.16.212.235 .1.3.6.1.4.1.9.9.16.1.1.1.16.333 integer 6
CISCO-PING-MIB::ciscoPingEntryStatus.333 = INTEGER: destroy(6)
michael@ubuntu:/usr/share/snmp/mibs$ snmpset -v 2c -c public 172.16.212.235 .1.3.6.1.4.1.9.9.16.1.1.1.16.333 integer 5
CISCO-PING-MIB::ciscoPingEntryStatus.333 = INTEGER: createAndWait(5)
michael@ubuntu:/usr/share/snmp/mibs$ snmpset -v 2c -c public 172.16.212.235 CISCO-PING-MIB::ciscoPingProtocol.333 integer 20
Error in packet.
Reason: wrongValue (The set value is illegal or unsupported in some way)
Failed object: CISCO-PING-MIB::ciscoPingProtocol.333
Regards,
Michael
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide