Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

snmpset cmds failing

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!

  • Network Management
2 REPLIES
New Member

Re: snmpset cmds failing

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

Cisco Employee

Re: snmpset cmds failing

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

614
Views
0
Helpful
2
Replies