take uptime of the switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2013 07:09 PM - edited 03-07-2019 04:31 PM
hi,
This is not a very technical issue but if anyone can help/ suggess me its realy helpful for us.
In our environment we have 24 cisco switches and everyday we need to login into each switch to check the uptime of the switch, that is very time consuming process.
Please help us by suggesting some shortcut to achive the desired result.
Thanks
Shashi
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2013 07:42 PM
Hi Shashi
The easiest way is to poll the switch using SNMP and get the uptime.
Configuration on CISCO.
snmp-server community cisco RO
From SNMP Server:
snmpwalk -Os -c cisco -v 1
kmuruga2% snmpwalk -Os -c cisco -v 1 10.105.137.5 sysUpTimeInstance
sysUpTimeInstance = Timeticks: (6208631) 17:14:46.31
From the switch:
ME3400 uptime is 17 hours, 19 minutes
System returned to ROM by power-on
System image file is "flash:me340x-metroipaccessk9-mz.122-53.SE.bin"
Hope it helps!!
Thanks & Regars,
Karthick Murugan
CCIE#39285
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2013 08:16 PM
Hi Karthick,
SNMP string is already configured at cisco switches and it is also communicating to syslog server.
I dont understand where do i put the script
snmpwalk -Os -c cisco -v 1
kmuruga2% snmpwalk -Os -c cisco -v 1 10.105.137.5 sysUpTimeInstance
sysUpTimeInstance = Timeticks: (6208631) 17:14:46.31
and where i will get the output of uptime.
Thanks
Shashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2013 08:22 PM
Hi Shashi,
You should execute that command from a SNMP server. Basically, a windows/linux machine with snmp walk application installed.
For testing you can use some free SNMP Walk tool.
http://www.snmpsoft.com/freetools/snmpwalk.html
Hope it helps.
Thanks
Karthick Murugan
