All MIBs › DISMAN-SCRIPT-MIB › smRunLifeTime
smRunLifeTime
Module: DISMAN-SCRIPT-MIB
OID (symbolic): DISMAN-SCRIPT-MIB::smRunLifeTime
OID (numeric): 1.3.6.1.2.1.64.1.4.2.1.5
Node type: OBJECT-TYPE
Type: TimeInterval
Access: read-write
Description: This object specifies how long the script can execute. This object returns the remaining time that the script may run. The object is initialized with the value of the associated smLaunchLifeTime object and ticks backwards. The script is aborted immediately when the value reaches 0.
The value of this object may be set in order to increase or reduce the remaining time that the script may run. Setting this value to 0 will abort script execution immediately, and, if the value of smRunExpireTime is also 0, will remove this entry from the smRunTable once it has terminated.
If smRunLifeTime is set to its maximum value (2147483647), either by a set operation or by its initialization from the smLaunchLifeTime object, then it will not tick backwards. A running script with a maximum smRunLifeTime value will thus never be terminated with a `lifeTimeExceeded' exit code.
The value of smRunLifeTime reflects the real-time execution time as seen by the outside world. The value of this object will always be 0 for a script that finished execution, that is smRunState has the value `terminated'.
The value of smRunLifeTime does not change while a script is suspended, that is smRunState has the value `suspended'. Note that this does not affect set operations. It is legal to modify smRunLifeTime via set operations while a script is suspended.
What is smRunLifeTime?
Shows, and lets an admin adjust, the remaining centi-seconds this specific running script instance is allowed to keep executing before being force-aborted; setting it to 0 kills the script immediately, and to its maximum value (2147483647) removes the time limit for this run.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.64.1.4.2.1.5 snmpwalk -v2c -c public <target> DISMAN-SCRIPT-MIB::smRunLifeTime
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.64.1.4.2.1.5.1 snmpget -v2c -c public <target> DISMAN-SCRIPT-MIB::smRunLifeTime.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.2.1.64.1.4.2.1.5.1 s <value>
SNMPv3 example:
snmpget -v3 -l authPriv -u snmpv3-user -a SHA -A "AuthPassword1" -x AES -X "PrivPassword1" <target> smRunLifeTime.1
Start monitoring SNMP agent supporting DISMAN script delegation (vendor-neutral) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the DISMAN-SCRIPT-MIB::smRunLifeTime OID value, configure state conditions and alerts, and monitor any SNMP agent supporting DISMAN script delegation (vendor-neutral) from a single console.
OID Breakdown
Upper-level ancestors (6 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.2 | mgmt | APERTUS-NPG-MIB |
| 1.3.6.1.2.1 | mib_2 | AXON-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.2.1.64 | scriptMIB | DISMAN-SCRIPT-MIB |
| 1.3.6.1.2.1.64.1 | smObjects | DISMAN-SCRIPT-MIB |
| 1.3.6.1.2.1.64.1.4 | smRunObjects | DISMAN-SCRIPT-MIB |
| 1.3.6.1.2.1.64.1.4.2 | smRunTable | DISMAN-SCRIPT-MIB |
| 1.3.6.1.2.1.64.1.4.2.1 | smRunEntry | DISMAN-SCRIPT-MIB |
| 1.3.6.1.2.1.64.1.4.2.1.5 | smRunLifeTime | DISMAN-SCRIPT-MIB |