Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Re: Conveting SNMP-returned ticks to

by salsa (Acolyte)
on Nov 27, 2001 at 01:44 UTC ( [id://127634]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Conveting SNMP-returned ticks to
in thread Conveting SNMP-returned ticks to

Thanks! I actually figured out a solution like this:
$uptime=$snmp->get("sysUpTime.0"); $uptime=localtime(time()-($uptime/100));
For an "upsince" stamp...
However, I like the granularity of your solution, so I think I'll plagiarize the heck out if it if you don't mind, as it'll give me a better timestamp for the HTML output.. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://127634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-23 18:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found