Determine System Uptime
nickmoody
Posts: 2
Is there a quick way through telnet, studio, or web interface to see how long the master has been online and in turn determine how long since the last reboot?
Thanks in advance for any help.
-N
Thanks in advance for any help.
-N
0
Comments
Not that I'm aware of but it would be a piece of cake to write code to do it.
Cheers
-N
Thanks Nick!
Also you can use room view, but you need to have all touch panels and controllers on the network.
I'd be very surprised if Room View knew what to do with a Netlinx controller :^)
.
Then, in the email subject I use a counter to tell me how many times the email has been sent since the last reboot.
All I have to do is look at the subject line of my inbox to find out how many hours the system has been online.
In this case I send it every hour, but you can change the frequency to whatever you want.
(***********************************************************)
// SmtpQueMessage will buffer the email for transmission
// SmtpQueMessage('from', 'to', 'subject', 'message','attach file')
//
// This is a standard send with one receipient
(***********************************************************)
BUTTON_EVENT[EMAILPanel,1]
{
PUSH:
{
nSentCount = nSentCount + 1
SEND_STRING 0,"'i!-EquipmentMonitor Test-Send Message ',Itoa(nSentCount)"
SmtpQueMessage('rpleban@glwb.net',
'rpleban@gmail.com',
"'coffin Email ',Itoa(nSentCount)",
'coffin',
'')
}
}
(***********************************************************)
(* THE ACTUAL PROGRAM GOES BELOW *)
(***********************************************************)
DEFINE_PROGRAM
nMINUTE = TIME_TO_MINUTE(TIME)
IF (nMINUTE = 56)
{
WAIT 606 'EMAIL SEND'
DO_PUSH(EMAILPanel,1)
}
I also use this to find out the WAN IP address of a system by looking through the email header.