hmSec2UsrFwTemplateRuleDstPort
HMSECURITY2-MIB ·
.1.3.6.1.4.1.248.52.1.11.8.4.1.6
Object
column r/w
OctetString
Port expression or the keyword 'any'. A port expressions is
structured as 'port' (default), 'op port' or 'port1 op port2',
where 'op' is a mathematical operator for:
o equal (default) =
o unequal !=
o less than <
o less than or equal <=
o greater than >
o greater than or equal to >=
o outside range <>
o inside range ><
The port must be specified as a decimal number or one of the
aliases:
o tcp/udp: echo (7)
o tcp/udp: discard, sink, null (9)
o tcp: ftp-data (20)
o tcp: ftp (21)
o tcp/udp: ssh (22)
o tcp: telnet (23)
o tcp/udp: domain, nameserver (53)
o tcp/udp: bootps (67)
o tcp/udp: bootpc (68)
o udp: tftp (69)
o tcp/udp: www, http (80)
o tcp/udp: kerberos, krb5 (88)
o tcp: sftp (115)
o tcp/udp: ntp (123)
o udp: snmp (161)
o udp: snmp-trap, snmptrap (162)
o tcp/udp: bgp (179)
o tcp/udp: ldap (389)
o tcp/udp: https (443)
Context
- MIB
- HMSECURITY2-MIB
- OID
.1.3.6.1.4.1.248.52.1.11.8.4.1.6- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- hmSec2UsrFwTemplateRuleEntry
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 'HMSECURITY2-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HMSECURITY2-MIB::hmSec2UsrFwTemplateRuleDstPort'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HMSECURITY2-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HMSECURITY2-MIB::hmSec2UsrFwTemplateRuleDstPort.<index>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HMSECURITY2-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HMSECURITY2-MIB::hmSec2UsrFwTemplateRuleDstPort'
Syntax
OctetString
Values & Constraints
No enumerated values or constraints recorded.