ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

nhSnmpTool returns sysUpTime results in Epoch time format rather than d h:m:s format


Article ID: 51045


Updated On:


CA eHealth



In eHealth 6.1 and newer, the nhSnmpTool returns the sysUpTime in Epoch time format, this is a change from previous versions that returned the results in number of days, hours, minutes and seconds.


The change seen is caused by the underline Scotty library change. Scotty 2.x was used in eHealth 6.0 and Scotty 3.x is used in eHealth 6.1 or newer. nhSnmpTool uses same command to walk the target OID. Scotty2.x walk returns the days hours:minutes:seconds format, while Scotty 3.x returns epoch time format.

MIB dump uses epoch time in old and new Scotty lib. It appears a bit inconvenient for displaying the time in an interactive mode. But user can always convert it with a standard expression, for example Days = (sysUpTime)/100/3600/24 or use online Epoch time converter, as the one attached.

c:\>epoch 1424556131
164d 21:06:01.60


Component: EHCMD

Attachments get_app