On Fri, 22 Sep 2000, Brian Wallingford wrote:
> "sh ver" will give you the when and why. Easily available on CCO.
>
>
> :
> : hi!
> : is there a way to know when my cisco 2511 router made a reboot?
>
Do you think snmp is a good solution ?
#!/bin/sh
[ "$#" != "2" ] && {
echo "usage: router-uptime <router-ip> <community>";
exit
}
echo -n "Router Uptime:"
snmpget $1 $2 system.sysUpTime.0 | cut -f5- -d" "
# END FILE
---
Angelo Neacsu
Mediafax
"If you want to travel around the world and be invited to speak at a lot
of different places, just write a Unix operating system."
(By Linus Torvalds)
This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:12:17 EDT