Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cisco: VOIP

Timeticks anyone?

 

 

Cisco voip RSS feed   Index | Next | Previous | View Threaded


costin at interpoint

Mar 17, 2004, 7:46 AM

Post #1 of 2 (316 views)
Permalink
Timeticks anyone?

I am trynig to convert timeticks to timestamp. Does anyone know how? I
wonder if there is some SNMP object that tells you what the time is and also
what timeticks. Is there?


Thanks in advance,
Costin


atticus at satanic

Mar 17, 2004, 12:44 PM

Post #2 of 2 (299 views)
Permalink
Re: Timeticks anyone? [In reply to]

localtime( ( ( time() * 100 ) - sysUptime.0 ) + timeticks ) / 100 )

SNMP timeticks are 100th's of a second. In every case I'm aware of, IOS
MIB's will report as ticks-since-boot. Likewise, subtract the system's
uptime (sysUptime.0) w/ current time (time()) which will give you the time
of the last boot, then add the timeticks for the event you're interested
in.


On Wed, 17 Mar 2004, Costin Manda wrote:

> I am trynig to convert timeticks to timestamp. Does anyone know how? I
> wonder if there is some SNMP object that tells you what the time is and also
> what timeticks. Is there?
>
>
> Thanks in advance,
> Costin
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip [at] puck
> https://puck.nether.net/mailman/listinfo/cisco-voip
>

Cisco voip RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.