hm2MasqSourcePort

HM2-NAT-MIB · .1.3.6.1.4.1.248.11.80.1.5.2.1.1.3

Object

column r/w OctetString
The source port of the packet to reroute. Allowed formats are:
- keyword 'any'
- single  ('10')
-  range with first and last separated by hyphen 
  ('10-15')
- comma separated list of s ('1235,25,123')
- combination of the points above ('10,25-30,125,1993')
              
The number of named ports (1 for each individual port, 2 for port
ranges) must not exceed 15.

Context

MIB
HM2-NAT-MIB
OID
.1.3.6.1.4.1.248.11.80.1.5.2.1.1.3
Type
column
Access
readwrite
Status
current
Parent
hm2MasqRuleEntry
Groups
1

Walk 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-NAT-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HM2-NAT-MIB::hm2MasqSourcePort'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HM2-NAT-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HM2-NAT-MIB::hm2MasqSourcePort.<hm2MasqRuleIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HM2-NAT-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HM2-NAT-MIB::hm2MasqSourcePort'

Syntax

OctetString

Values & Constraints

Object Constraints
range: 1-50

Conformance