All MIBs › SOCOMECUPS-MIB › upsTestSpinLock
upsTestSpinLock
Module: SOCOMECUPS-MIB
OID (symbolic): SOCOMECUPS-MIB::upsTestSpinLock
OID (numeric): 1.3.6.1.4.1.4555.1.1.1.1.7.2
Node type: OBJECT-TYPE
Type: TestAndIncr
Access: read-write
Description: A spin lock on the test subsystem. The spinlock is used as follows.
Before starting a test, a manager-station should make sure that a test is not in progress as follows:
try_again: get (upsTestSpinLock) while (upsTestResultsSummary == inProgress) { /* loop while a test is running for another manager */ short delay get (upsTestSpinLock) } lock_value = upsTestSpinLock /* no test in progress, start the test */ set (upsTestSpinLock = lock_value, upsTestId = requested_test) if (error_index == 1) { /* (upsTestSpinLock failed) */ /* if problem is not access control, then some other manager slipped in ahead of us */ goto try_again } if (error_index == 2) { /* (upsTestId) */ /* cannot perform the test */ give up } /* test started ok */ /* wait for test completion by polling upsTestResultsSummary */ get (upsTestSpinLock, upsTestResultsSummary, upsTestResultsDetail) while (upsTestResultsSummary == inProgress) { short delay get (upsTestSpinLock, upsTestResultsSummary, upsTestResultsDetail) } /* when test completes, retrieve any additional test results */ /* if upsTestSpinLock == lock_value + 1, then these are our test */ /* results (as opposed to another manager's */ The initial value of upsTestSpinLock at agent initialization shall be 1.
What is upsTestSpinLock?
A spinlock counter used to serialize test requests from multiple management stations: a manager reads the current value, then sets it back along with upsTestId to atomically claim the right to start a test, preventing two managers from starting conflicting UPS diagnostics simultaneously.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.4555.1.1.1.1.7.2 snmpwalk -v2c -c public <target> SOCOMECUPS-MIB::upsTestSpinLock
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.4555.1.1.1.1.7.2.1 snmpget -v2c -c public <target> SOCOMECUPS-MIB::upsTestSpinLock.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.4555.1.1.1.1.7.2.1 s <value>
Start monitoring Socomec UPS, power protection equipment (battery/input-output/alarm status) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the SOCOMECUPS-MIB::upsTestSpinLock OID value, configure state conditions and alerts, and monitor any Socomec UPS, power protection equipment (battery/input-output/alarm status) from a single console.
OID Breakdown
Upper-level ancestors (7 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.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.4555 | socomec | SOCOMECPDU-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.4555.1 | software | SOCOMECUPS-MIB |
| 1.3.6.1.4.1.4555.1.1 | network | SOCOMECUPS-MIB |
| 1.3.6.1.4.1.4555.1.1.1 | netvision | SOCOMECUPS-MIB |
| 1.3.6.1.4.1.4555.1.1.1.1 | upsObjects | SOCOMECUPS-MIB |
| 1.3.6.1.4.1.4555.1.1.1.1.7 | upsTest | SOCOMECUPS-MIB |
| 1.3.6.1.4.1.4555.1.1.1.1.7.2 | upsTestSpinLock | SOCOMECUPS-MIB |