transfom SNMP Server UpTime

Started by rainerh, June 06, 2017, 11:10:56 AM

Previous topic - Next topic

rainerh

Hello,

I got the following Value, when I ask for Server UpTime via SNMP (Walk 1.3.6.1.2.1.25.1.2)
07 E1 06 05 15 0F 11 0D 0A

07 E1 means 2017, 06 means Month 6, 05 menas day 5

Is there a transformation in NETXMS like strtotime?

A date-time specification.

            field  octets  contents                  range
            -----  ------  --------                  -----
              1      1-2   year*                     0..65536
              2       3    month                     1..12
              3       4    day                       1..31
              4       5    hour                      0..23
              5       6    minutes                   0..59
              6       7    seconds                   0..60
                           (use 60 for leap-second)
              7       8    deci-seconds              0..9
              8       9    direction from UTC        '+' / '-'
              9      10    hours from UTC*           0..13
             10      11    minutes from UTC          0..59


Thank you


Andreas@rc

hrSystemUptime is .1.3.6.1.2.1.25.1.1

Your OID ist hrSystemDate - The host's notion of the local date and time of day.