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?
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 18.104.22.168.22.214.171.124.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).