All MIBs › HM2-MGMTACCESS-MIB › hm2SnmpPortNumber
hm2SnmpPortNumber
Module: HM2-MGMTACCESS-MIB
OID (symbolic): HM2-MGMTACCESS-MIB::hm2SnmpPortNumber
OID (numeric): 1.3.6.1.4.1.248.11.25.1.1.4
Node type: OBJECT-TYPE
Type: InetPortNumber
Access: read-write
Description: The port number of the snmp server. To activate the port number the device has to be restarted. Setting the port to zero is not allowed.
What is hm2SnmpPortNumber?
The UDP port the SNMP agent listens on, defaulting to 161; the source notes zero is not allowed and the device must be restarted for a change to take effect. Change this away from the default only if you're deliberately moving SNMP off its standard port for security-through-obscurity reasons.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.248.11.25.1.1.4 snmpwalk -v2c -c public <target> HM2-MGMTACCESS-MIB::hm2SnmpPortNumber
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.248.11.25.1.1.4.1 snmpget -v2c -c public <target> HM2-MGMTACCESS-MIB::hm2SnmpPortNumber.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.248.11.25.1.1.4.1 s <value>
SNMPv3 example:
snmpget -v3 -l authPriv -u snmpv3-user -a SHA -A "AuthPassword1" -x AES -X "PrivPassword1" <target> hm2SnmpPortNumber.1
Start monitoring Hirschmann industrial Ethernet switches with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the HM2-MGMTACCESS-MIB::hm2SnmpPortNumber OID value, configure state conditions and alerts, and monitor any Hirschmann industrial Ethernet switches from a single console.
OID Breakdown
Upper-level ancestors (8 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.248 | hirschmann | HM2-TC-MIB |
| 1.3.6.1.4.1.248.11 | hm2ConfigurationMibs | HM2-TC-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.248.11.25 | hm2MgmtAccessMib | HM2-MGMTACCESS-MIB |
| 1.3.6.1.4.1.248.11.25.1 | hm2MgmtAccessMibObjects | HM2-MGMTACCESS-MIB |
| 1.3.6.1.4.1.248.11.25.1.1 | hm2MgmtAccessSnmpGroup | HM2-MGMTACCESS-MIB |
| 1.3.6.1.4.1.248.11.25.1.1.4 | hm2SnmpPortNumber | HM2-MGMTACCESS-MIB |