cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
18167
Views
14
Helpful
9
Replies

Reloading a Cisco router using SNMP

imran.moulvi
Level 1
Level 1

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.

9 Replies 9

akemp
Level 5
Level 5

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.

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.

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?

Is there any change in command for SNMP version 3?

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!

what command can I use from a windows machine or another Cisco device

Larry Sullivan
Level 3
Level 3

Pretty sure this can be done via an EEM script on the router itself as well.

Larry Sullivan
Level 3
Level 3

Accidental duplicate.

uspenna
Level 1
Level 1

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.

Review Cisco Networking for a $25 gift card