cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1593
Views
0
Helpful
6
Replies

SNNP PING for IPv6 support ?

mtiger
Level 1
Level 1

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

6 Replies 6

yjdabear
VIP Alumni
VIP Alumni

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.

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

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 5
snmpset -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.15.333 octetstring ipv6ping
snmpset -c public 172.16.212.230 .1.3.6.1.4.1.9.9.16.1.1.1.2.333 integer 20
...

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

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

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