03-31-2009 04:01 AM
Hello Experts,
Our requirement is to schedule a reload on a router automatically when it generates memory fragmentation errors and becomes inaccessible over VTY lines.
I read somewhere that this can be done using SNMP but I am not sure how.
Can someone please advise if this is possible and provide a method alongwith.
Thanks & Regards,
Imran.
03-31-2009 04:43 AM
your device configuration has to have this line : snmp-server system-shutdown
Then its just a matter of sending a snmp set iso.org.dod.internet.private.enterprises.cisco.l ocal.lts.tsMsgSend.0
(.1.3.6.1.4.1.9.2.9.9.0)
to value 2
The system will reload.
03-31-2009 04:59 AM
Hello,
Thanks for your reply.
Can you please advise how do I send the snmp set message to the device. What tool do I have to use.
I am not very well versed with using SNMP.
Thanks You.
03-31-2009 06:01 AM
very easy. On the router, do this:
snmp-server host x.x.x.x cciesec
snmp-server system-shutdown
snmp-server community cciesec rw
now on a linux system, type this:
snmpset -v 2c -c cciesec 129.174.3.10 .1.3.6.1.4.1.9.2.9.9.0 i 2
Easy right?
10-09-2019 11:21 PM
Is there any change in command for SNMP version 3?
11-28-2019 05:19 AM
Hi!
No the command you have to issue on the Router/Switch is the very same if you use SNMP v2c or v3.
But of course the command you have to issue on the Linux device to trigger the Reload has to be different!
11-27-2019 08:42 PM
what command can I use from a windows machine or another Cisco device
12-13-2019 10:40 AM
Pretty sure this can be done via an EEM script on the router itself as well.
12-13-2019 10:41 AM - edited 12-13-2019 10:41 AM
Accidental duplicate.
01-22-2021 04:01 AM
I have the router model below:
Router model: RV260W-A-K9
Firmware version: 1.0.01.01 (it is the latest available for it)
I have to reboot/reinitialize my router every week because of a Wi-Fi issue with the RV260W model that was being discussed here.
The solution Cisco suggests is to rebot/reinitialize the router. Ok then.
I was thinking of using the SNMP (snmpset, from my Linux PC) to order/ask the router to reboot.
However I could not find which OID to use in order to get the router rebooted/initialized.
Besides, I found an article, in the forum, that tells me to run, this command *at the router* (for another model of router ..):
snmp-server system-shutdown
but RV260W has no console output and I have no way to set that command.
Then, at the snmp client side, you've should ran this command:
snmpset -v 2c -c my_community_name my.router.ip.address .1.3.6.1.4.1.9.2.9.9.0 i 2
which would mean:
iso.org.dod.internet.private.enterprises.cisco.local.lts.tsMsgSend.0
(.1.3.6.1.4.1.9.2.9.9.0)
to value 2 (integer), and the system will reload.
But there is no such OID in the RV260W. In fact, I could not identify any OID that should me led to a close thinking of reboot/reinitialize option ..
Any suggestions? Should I buy a timer lamp in order to reboot the router?
Thanks.
P.S.: I have installed the MIB and I'm able to run snmpset or snmpget/snmpwalk commands succesfully from my Linux PC.
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