snmpset cmds failing

Unanswered Question
Sep 24th, 2010

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!

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
j.strauss Fri, 09/24/2010 - 02:15

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 Fri, 09/24/2010 - 08:49

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

Actions

This Discussion