02-25-2002 01:33 PM - edited 03-01-2019 08:37 PM
I have a script that I use to make batch changes on our Cisco devices. For the majority of our routers, it works fine. However for some of them it fails every time. I have not been able to find the common thread. When I issue an SNMP set I get
SNMP: A general failure occured on the agent on my unix box and on the router with a debug SNMP packets I get:
Feb 25 16:28:09: SNMP: Packet received via UDP from <IP address> on <interface>
Feb 25 16:28:09: SNMP: Set request, reqid 29956, errstat 0, erridx 0
lsystem.53.<IP address> = config
Feb 25 16:28:09: %SYS-4-SNMP_HOSTCONFIGSET: SNMP hostConfigSet request. Loading configuration from <IP address>
Feb 25 16:28:24: SNMP: Response, reqid 29956, errstat 5, erridx 1
lsystem.53.<IP address> = config
Feb 25 16:28:24: SNMP: Packet sent via UDP to <IP address>
Feb 25 16:28:24: SNMP: Packet received via UDP from <IP address> on <interface>
Feb 25 16:28:24: SNMP: Set request, reqid 29956, errstat 0, erridx 0
lsystem.53.<IP address> = config
Feb 25 16:28:24: %SYS-4-SNMP_HOSTCONFIGSET: SNMP hostConfigSet request. Loading configuration from <IP address>
Feb 25 16:28:39: SNMP: Response, reqid 29956, errstat 5, erridx 1
lsystem.53.<IP address> = config
Feb 25 16:28:39: SNMP: Packet sent via UDP to <IP address>
Feb 25 16:28:39: SNMP: Packet received via UDP from <IP address> on <interface>
Feb 25 16:28:39: SNMP: Set request, reqid 29956, errstat 0, erridx 0
lsystem.53.<IP address> = config
Feb 25 16:28:39: %SYS-4-SNMP_HOSTCONFIGSET: SNMP hostConfigSet request. Loading configuration from <IP address>
Feb 25 16:28:54: SNMP: Response, reqid 29956, errstat 5, erridx 1
lsystem.53.<IP address> = config
Feb 25 16:28:54: SNMP: Packet sent via UDP to <IP address>
Any idea what is causing the failure? Any help would be greatly appreciated.
Thanks!
02-25-2002 02:45 PM
Did you checked your snmpset syntax?
02-26-2002 09:28 AM
Yes, I walked down through the tree and checked everything. Also, that same syntax works on routers for our other customers, just not this particular one. We checked access lists and all that as well. I was hoping the error message might give me a clue but I can't tell anything from it.
02-26-2002 07:40 PM
If you're on UNIX, you can do a snoop and save the output in bindary foramt which than can be read using Ethereal (free ware) or sniffer pro to see exactly what's going on here.
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