All MIBs › DISMAN-SCRIPT-MIB › smRunExitCode
smRunExitCode
Module: DISMAN-SCRIPT-MIB
OID (symbolic): DISMAN-SCRIPT-MIB::smRunExitCode
OID (numeric): 1.3.6.1.2.1.64.1.4.2.1.7
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-only
Description: The value of this object indicates the reason why a script finished execution. The smRunExitCode code may have one of the following values:
- `noError', which indicates that the script completed successfully without errors;
- `halted', which indicates that the script was halted by a request from an authorized manager;
- `lifeTimeExceeded', which indicates that the script exited because a time limit was exceeded;
- `noResourcesLeft', which indicates that the script exited because it ran out of resources (e.g. memory);
- `languageError', which indicates that the script exited because of a language error (e.g. a syntax error in an interpreted language);
- `runtimeError', which indicates that the script exited due to a runtime error (e.g. a division by zero);
- `invalidArgument', which indicates that the script could not be run because of invalid script arguments;
- `securityViolation', which indicates that the script exited due to a security violation;
- `genericError', which indicates that the script exited for an unspecified reason.
If the script has not yet begun running, or is currently running, the value will be `noError'.
What is smRunExitCode?
Reports why a script instance stopped running - noError for a clean finish, or a specific failure reason such as lifeTimeExceeded, languageError, runtimeError, invalidArgument, or securityViolation - which an admin checks first when a script didn't produce the expected smRunResult.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.64.1.4.2.1.7 snmpwalk -v2c -c public <target> DISMAN-SCRIPT-MIB::smRunExitCode
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.64.1.4.2.1.7.1 snmpget -v2c -c public <target> DISMAN-SCRIPT-MIB::smRunExitCode.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::smRunExitCode 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.7 | smRunExitCode | DISMAN-SCRIPT-MIB |