h3cRS485SessionRemotePort
H3C-RS485-MIB ·
.1.3.6.1.4.1.2011.10.2.109.2.2.1.5
Object
column r/w
Integer32
The port of remote entry.
When session type is 'udp', this is port of the peer.
When session type is 'tcpClient', this is the port of the server.
When session type is 'tcpServer', this is invalid,
it will return 0.
Context
- MIB
- H3C-RS485-MIB
- OID
.1.3.6.1.4.1.2011.10.2.109.2.2.1.5- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- h3cRS485RawSessionEntry
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 'H3C-RS485-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'H3C-RS485-MIB::h3cRS485SessionRemotePort'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'H3C-RS485-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'H3C-RS485-MIB::h3cRS485SessionRemotePort.<ifIndex>.<h3cRS485SessionIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'H3C-RS485-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'H3C-RS485-MIB::h3cRS485SessionRemotePort'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 1024-65535