cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6603
Views
0
Helpful
8
Replies

How to reload / reset IOS device via snmp

sthon-dbsys
Level 1
Level 1

I only found an info about CatOS devices:

http://www.cisco.com/en/US/customer/tech/tk648/tk362/technologies_q_and_a_item09186a00800b69af.shtml

anyone has an idea how the reset an IOS device with snmpset

thx

8 Replies 8

it does not work wirth 3750 and IOS 12.2(25)SE.

I also found an info about the sysReset object at:

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=sysReset

but the mib of 3750 and IOS 12.2(25)SE does not include the sysReset Object.

oper@ffm002nvz:/lanbf/home/oper/sthon/bin>snmpwalk -c read router .1.3.6.1.4.1.9.5.1.1

cisco.workgroup.ciscoStackMIB.systemGrp.sysTraffic.0 : INTEGER: 0

cisco.workgroup.ciscoStackMIB.systemGrp.sysTrafficPeak.0 : INTEGER: 0

cisco.workgroup.ciscoStackMIB.systemGrp.sysTrafficPeakTime.0 : Timeticks: (146335508) 16 days, 22:29:15.08

cisco.workgroup.ciscoStackMIB.systemGrp.sysEnableChassisTraps.0 : INTEGER: disabled

cisco.workgroup.ciscoStackMIB.systemGrp.sysEnableModuleTraps.0 : INTEGER: disabled

cisco.workgroup.ciscoStackMIB.systemGrp.sysTrafficMeterTable.sysTrafficMeterEntry.sysTrafficMeterType.1 : INTEGER: systemSwitchingBus

cisco.workgroup.ciscoStackMIB.systemGrp.sysTrafficMeterTable.sysTrafficMeterEntry.sysTrafficMeter.1 : INTEGER: 0

cisco.workgroup.ciscoStackMIB.systemGrp.sysTrafficMeterTable.sysTrafficMeterEntry.sysTrafficMeterPeak.1 : INTEGER: 0

cisco.workgroup.ciscoStackMIB.systemGrp.sysTrafficMeterTable.sysTrafficMeterEntry.sysTrafficMeterPeakTime.1 : Timeticks: (146335508) 16 days, 22:29:15.08

cisco.workgroup.ciscoStackMIB.systemGrp.sysStandbyPortEnable.0 : INTEGER: enabled

cisco.workgroup.ciscoStackMIB.systemGrp.67.0 : INTEGER: 2

very strange

Have you got the latest CISCO-STACK-MIB installed?

I ever thought that the mib is implemented in the IOS.

Do I have to install it manually on the switch ???

Sorry I meant on the latform that you are running snmpwalk on.

I just tried to reload a cat3750 running 12.2(25)SEB2 as documented in: http://www.cisco.com/en/US/tech/tk648/tk362/technologies_q_and_a_item09186a00800c263d.shtml#qa4

It worked once I put the snmp-server system-shutdown in the config.

Here are the steps I performed:

> snmpwalk -c public 14.32.100.13 sysDescr

SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M), Version 12.2(25)SEB2, RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2005 by Cisco Systems, Inc.

Compiled Wed 08-Jun-05 04:49 by yenanh

> snmpset -v 1 -c private 14.32.100.13 tsMsgSend.0 i 2

Error in packet.

Reason: (badValue) The value given has the wrong type or length.

Failed object: OLD-CISCO-TS-MIB::tsMsgSend.0

> telnet 14.32.100.13

Trying 14.32.100.13...

Connected to 14.32.100.13

Escape character is '^]'.

User Access Verification

Password:

nms-3750>en

Password:

nms-3750#conf t

Enter configuration commands, one per line. End with CNTL/Z.

nms-3750(config)#snmp-server syst

nms-3750(config)#snmp-server system-shutdown

nms-3750(config)#exit

nms-3750#wr mem

Building configuration...

[OK]

nms-3750#exit

Connection closed by foreign host.

> snmpset -v 1 -c private 14.32.100.13 tsMsgSend.0 i 2

OLD-CISCO-TS-MIB::tsMsgSend.0 = INTEGER: reload(2)

>

thx a lot, the missing "snmp-server system-shutdown" was the reason I got in Problems.

with configured "snmp-server system-shutdown" all works fine.

thx a lot

I am glad to hear it.

Review Cisco Networking for a $25 gift card