All MIBs › SNMPv2-MIB › sysName
sysName
Module: SNMPv2-MIB
OID (symbolic): SNMPv2-MIB::sysName
OID (numeric): 1.3.6.1.2.1.1.5
Node type: OBJECT-TYPE
Type: DisplayString
Access: read-write
Description:
An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.
What is sysName?
This is a text string (up to 255 characters) containing the device's hostname or fully-qualified domain name; operators can configure it. Network engineers rely on this to match SNMP data to device records in their inventory or naming system. For example, you might see 'switch-core-01.example.com' or 'router-dc1-edge-02'.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.1.5 snmpwalk -v2c -c public <target> SNMPv2-MIB::sysName
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.1.5.1 snmpget -v2c -c public <target> SNMPv2-MIB::sysName.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.2.1.1.5.1 s <value>
Example output:
SNMPv2-MIB::sysName.0 = STRING: dashboard