Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® Enterprise Service 10

Reply
Highlighted
Contributor
Posts: 14
Registered: ‎12-24-2012
My Device: Blackberry 9900
My Carrier: China Moible
Accepted Solution

SNMP timetrap conversion problem.

Hi Guys,

I just found the timetrp in SNMP table is something like,

besagentUsersLastTimesPropertylastContact.1.43.5 = 1358902257

My problem is, how can i convert the number 1358902257 to the datetime? shame, i didn't found any clue on google.

Contributor
Posts: 14
Registered: ‎12-24-2012
My Device: Blackberry 9900
My Carrier: China Moible

Re: SNMP timetrap conversion problem.

i think just figured it out,

this timestrap is counted by seconds, means 1358902257 seconds, but how to convert it to time of 2013/01/20?

i used powershell to convert, here is the command.

([datetime]'1970-01-01' + (new-timespan -seconds 1358902257)).tolocaltime()

then, it's the right time, i should test other more times. haha

Contributor
Posts: 14
Registered: ‎12-24-2012
My Device: Blackberry 9900
My Carrier: China Moible

Re: SNMP timetrap conversion problem.

it's actually used our workstation's origial time 1970/01/01, should be like that....Smiley Very Happy

Guru III
Posts: 32,114
Registered: ‎06-25-2008
My Device:

I'm rockin the BlackBerry PRIV, Passport, Z30, Z10, Q10, BlackBerry Mini Stereo Speaker, 64 gig PlayBook,BT Headset HS-700

My Carrier: I am on AT&T. Please edit your Personal Profile with your DEVICE TYPE, DEVICE OS and Carrier

Re: SNMP timetrap conversion problem.

thanks for sharing your solution

 




Click here to Backup the data on your BlackBerry Device! It's important, and FREE!


Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals

BESAdmin's, please make a signature with your BES environment info.


SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope


Want to thank me? Buy my KnottyRope App here


BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V