cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1159
Views
0
Helpful
2
Replies

snmpset cmds failing

j.strauss
Level 1
Level 1

Greetings.

I'm  trying to use snmpset commands to ping from a remote host to the end from an Backup. I've created a  linux shell script to do this. The target is a Cisco 7204  running 12.4.20T2 SPSERVICESK9-M.

mysun:~/scripte/icinga/BU-Test> snmpset -v 2c -c mycommunity 10.95.230.3 .1.3.6.1.4.1.9.9.16.1.1.1.16.666 integer 6
SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.666 = INTEGER: 6
mysun:~/scripte/icinga/BU-Test> snmpset -v 2c -c mycommunity 10.95.230.3 .1.3.6.1.4.1.9.9.16.1.1.1.16.666 integer 5
SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.666 = INTEGER: 5
mysun:~/scripte/icinga/BU-Test> snmpwalk -v 2c -c mycommunity 10.95.230.3 .1.3.6.1.4.1.9.9.16.1.1.1
SNMPv2-SMI::enterprises.9.9.16.1.1.1.4.666 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.16.1.1.1.5.666 = INTEGER: 100
SNMPv2-SMI::enterprises.9.9.16.1.1.1.6.666 = INTEGER: 2000
SNMPv2-SMI::enterprises.9.9.16.1.1.1.7.666 = INTEGER: 0
SNMPv2-SMI::enterprises.9.9.16.1.1.1.8.666 = INTEGER: 2
SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.666 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.16.1.1.1.17.666 = ""
mysun:~/scripte/icinga/BU-Test> snmpset -v 2c -c mycommunity 10.95.230.3 .1.3.6.1.4.1.9.9.16.1.1.1.16.666 integer 1
Error in packet.
Reason: inconsistentValue (The set value is illegal or unsupported in some way)
Failed object: SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.666

Why I can't set SNMPv2-SMI::enterprises.9.9.16.1.1.1.16.666 = INTEGER: 5  ?? Where is the failure?

This is my first shot at doing  this, our CiscoWorks won't be online for several months and I really  need to get this working.

Thanks, Jan

Excuse my poor english!

2 Replies 2

j.strauss
Level 1
Level 1

debug snmp pakets on the Cisco:

Sep 24 11:09:24 MESZ: SNMP: Packet received via UDP from 10.95.141.36 on GigabitEthernet0/1
Sep 24 11:09:24 MESZ: SNMP: Set request, reqid 1283079739, errstat 0, erridx 0 ciscoPingEntry.16.666 = 1
Sep 24 11:09:24 MESZ: SNMP: Response, reqid 1283079739, errstat 12, erridx 1 ciscoPingEntry.16.666 = 1
Sep 24 11:09:24 MESZ: SNMP: Packet sent via UDP to 10.95.141.36

Joe Clarke
Cisco Employee
Cisco Employee

It doesn't look like you've set the IP address to ping.  Post your script showing all of the set operations.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: