syslogMsgHostName
SYSLOG-MSG-MIB ·
.1.3.6.1.2.1.192.1.2.1.6
Object
column OctetString
The hostname and the (optional) domain name of the SYSLOG message. A zero-length string indicates an unknown hostname. The SYSLOG protocol specification constrains this string to printable US-ASCII code points.
Context
- MIB
- SYSLOG-MSG-MIB
- OID
.1.3.6.1.2.1.192.1.2.1.6- Type
- column
- Access
- readonly
- Status
- current
- Parent
- syslogMsgEntry
- Groups
- 1
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'SYSLOG-MSG-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SYSLOG-MSG-MIB::syslogMsgHostName'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SYSLOG-MSG-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SYSLOG-MSG-MIB::syslogMsgHostName.<syslogMsgIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SYSLOG-MSG-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SYSLOG-MSG-MIB::syslogMsgHostName'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-255
Conformance
Member of
Compliance refinements
syslogMsgNotificationCompliance
notifyonly
Read access is not required.