swDHCPRelayOption61RelayIp
DHCP-RELAY-MGMT-MIB ·
.1.3.6.1.4.1.171.12.42.3.4.4.1.4
Object
This object indicates the IP address of the relay server.
Pay attention to when swDHCPRelayOption61Mode is:
relay (1): This object must be set together.
drop (2): This object can not be set, and it always returns to '0.0.0.0'.
Context
- MIB
- DHCP-RELAY-MGMT-MIB
- OID
.1.3.6.1.4.1.171.12.42.3.4.4.1.4- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- swDHCPRelayOption61Entry
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 'DHCP-RELAY-MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DHCP-RELAY-MGMT-MIB::swDHCPRelayOption61RelayIp'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DHCP-RELAY-MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DHCP-RELAY-MGMT-MIB::swDHCPRelayOption61RelayIp.<swDHCPRelayOption61ClientType>.<swDHCPRelayOption61ClientID>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DHCP-RELAY-MGMT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DHCP-RELAY-MGMT-MIB::swDHCPRelayOption61RelayIp'
Syntax
- Source
- SNMPv2-SMIIpAddress
- Base type
OctetString
Values & Constraints
Type Constraints
range: 4