hm2NtpClientServerPort
HM2-TIMESYNC-MIB ·
.1.3.6.1.4.1.248.11.50.1.3.3.4.1.4
Object
The port number of the external time server. Zero is not allowed as port number.
Context
- MIB
- HM2-TIMESYNC-MIB
- OID
.1.3.6.1.4.1.248.11.50.1.3.3.4.1.4- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hm2NtpClientServerAddrEntry
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 'HM2-TIMESYNC-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HM2-TIMESYNC-MIB::hm2NtpClientServerPort'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HM2-TIMESYNC-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HM2-TIMESYNC-MIB::hm2NtpClientServerPort.<hm2NtpClientServerIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HM2-TIMESYNC-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HM2-TIMESYNC-MIB::hm2NtpClientServerPort'
Syntax
- Source
- INET-ADDRESS-MIBInetPortNumber
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..65535