All MIBs › SNMPv2-MIB › sysLocation
sysLocation
Module: SNMPv2-MIB
OID (symbolic): SNMPv2-MIB::sysLocation
OID (numeric): 1.3.6.1.2.1.1.6
Node type: OBJECT-TYPE
Type: DisplayString
Access: read-write
Description: The physical location of this node (e.g., 'telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string.
What is sysLocation?
This is a text string (up to 255 characters) recording the physical location of the device, such as 'Building 3, Server Room A, Rack 12'; operators can set it. Network engineers use it to quickly locate equipment during troubleshooting or maintenance without hunting through documentation. For example, 'DC2-North-Rack37' tells you exactly where a failed device sits.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.1.6 snmpwalk -v2c -c public <target> SNMPv2-MIB::sysLocation
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.1.6.1 snmpget -v2c -c public <target> SNMPv2-MIB::sysLocation.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.2.1.1.6.1 s <value>
Example output:
SNMPv2-MIB::sysLocation.0 = STRING: Sitting on the Dock of the Bay
SNMPv3 example:
snmpget -v3 -l authPriv -u snmpv3-user -a SHA -A "AuthPassword1" -x AES -X "PrivPassword1" <target> sysLocation.1
Start monitoring vendor-neutral, standards-based MIB, any SNMP-capable device, servers/routers/switches/printers (system identity/uptime status) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the SNMPv2-MIB::sysLocation OID value, configure state conditions and alerts, and monitor any vendor-neutral, standards-based MIB, any SNMP-capable device, servers/routers/switches/printers (system identity/uptime 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.2 | mgmt | AXON-MIB |
| 1.3.6.1.2.1 | mib_2 | AXON-MIB |
| 1.3.6.1.2.1.1 | system | AIMOS |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.2.1.1.6 | sysLocation | SNMPv2-MIB |