can LMS 2.6 track system up time?

Answered Question
Jun 2nd, 2009
User Badges:

I want to track my routers up time and occasionally want to reboot when they are reaching certain months/year. is this possible to do on LMS? if not I want write a script to do that and what will be oid/mib to get system up time from Cisco routers by snmpget?

Correct Answer by Joe Clarke about 8 years 1 month ago

RME does track sysUpTime, but not in the way you want. That is, you cannot spawn a script based on the value. You could use the XML-exported inventory to capture the sysUpTime for each device, then write your script based on that.


Alternatively, if your devices support it, you could create an EEM policy to reboot the devices. For example:


event manager applet uptime-reload

event snmp oid 1.3.6.1.2.1.1.3.0 get-type exact entry-val 3153600000 entry-op ge entry-type value poll-interval 60

action 1.0 syslog msg "Uptime is greater than one year ($_snmp_oid_val)

action 2.0 reload


This policy should work with any device that supports EEM 1.0 or higher (e.g. 12.3(4)T or higher).

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Tue, 06/02/2009 - 14:43
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

RME does track sysUpTime, but not in the way you want. That is, you cannot spawn a script based on the value. You could use the XML-exported inventory to capture the sysUpTime for each device, then write your script based on that.


Alternatively, if your devices support it, you could create an EEM policy to reboot the devices. For example:


event manager applet uptime-reload

event snmp oid 1.3.6.1.2.1.1.3.0 get-type exact entry-val 3153600000 entry-op ge entry-type value poll-interval 60

action 1.0 syslog msg "Uptime is greater than one year ($_snmp_oid_val)

action 2.0 reload


This policy should work with any device that supports EEM 1.0 or higher (e.g. 12.3(4)T or higher).

Actions

This Discussion