sysName
SUN-SNMP ·
.1.3.6.1.2.1.1.5
Object
scalar mandatory
OctetString
An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name.
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SUN-SNMP' -M '/opt/observium/mibs/oracle:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SUN-SNMP::sysName.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SUN-SNMP' -M '/opt/observium/mibs/oracle:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SUN-SNMP::sysName'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-255