From: John Gaughan (elric at domain csn.ul.ie)
Date: Tue 08 Jun 1999 - 10:57:53 IST
On Tue, 08 Jun 1999, Mike Knell wrote:
>
>
> > On Mon, 07 Jun 1999, Paul Jakma wrote:
> > > is there any command on NT to show the uptime?
> > Systems Internals have a small uptime utility (along with other useful NT
> > and 95 utilities) available at: http://www.sysinternals.com/misc.htm#UpTime
>
> Or to do it remotely, you can retrieve the SNMP variable
> system.sysUpTime.0
> assuming you have SNMP turned on (but beware of security issues)
Actually, host.hrSystem.hrSystemUptime.0 would be a better choice.
According to the mib.txt file which comes with CMU SNMP, system.sysUpTime.0
holds the time since the network management portion of the system was last
re-initialized. So, whenever the SNMP service gets restarted, it's reset
to zero (at least, that's case with CMU SNMP, AFAIK, NT may do things
differently).
J.
-- John Gaughan http://www.csn.ul.ie/~elric Skynet FTP Administrator http://skynet.csn.ul.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:16 GMT