All MIBs › IP-MIB › ipAddressSpinLock
ipAddressSpinLock
Module: IP-MIB
OID (symbolic): IP-MIB::ipAddressSpinLock
OID (numeric): 1.3.6.1.2.1.4.33
Node type: OBJECT-TYPE
Type: TestAndIncr
Access: read-write
Description:
An advisory lock used to allow cooperating SNMP managers to coordinate their use of the set operation in creating or modifying rows within this table.
In order to use this lock to coordinate the use of set operations, managers should first retrieve ipAddressTableSpinLock. They should then determine the appropriate row to create or modify. Finally, they should issue the appropriate set command, including the retrieved value of ipAddressSpinLock. If another manager has altered the table in the meantime, then the value of ipAddressSpinLock will have changed, and the creation will fail as it will be specifying an incorrect value for ipAddressSpinLock. It is suggested, but not required, that the ipAddressSpinLock be the first var bind for each set of objects representing a 'row' in a PDU.
What is ipAddressSpinLock?
This advisory lock allows multiple SNMP managers to safely coordinate simultaneous modifications to IP address table entries without conflicts. Managers check the current lock value before making changes, and the lock value increments if the table was modified, preventing race conditions. System administrators use this mechanism when orchestrating network configuration changes from multiple management systems.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.4.33 snmpwalk -v2c -c public <target> IP-MIB::ipAddressSpinLock
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.4.33.1 snmpget -v2c -c public <target> IP-MIB::ipAddressSpinLock.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.2.1.4.33.1 s <value>