dhcpLeaseFlags
ZHONE-COM-IP-DHCP-SERVER-MIB ·
.1.3.6.1.4.1.5504.4.1.11.6.1.6
Object
column r/w
Bits
Lease flags currently defined as follows.
#define STATIC_LEASE 1
#define BOOTP_LEASE 2
#define ABANDONED_LEASE 16
#define ZHONE_CPE 32
The default value for this object is 0 (no bits up).
Context
- MIB
- ZHONE-COM-IP-DHCP-SERVER-MIB
- OID
.1.3.6.1.4.1.5504.4.1.11.6.1.6- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- dhcpServerLeaseEntry
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 'ZHONE-COM-IP-DHCP-SERVER-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ZHONE-COM-IP-DHCP-SERVER-MIB::dhcpLeaseFlags'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ZHONE-COM-IP-DHCP-SERVER-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ZHONE-COM-IP-DHCP-SERVER-MIB::dhcpLeaseFlags.<dhcpLeaseDomain>.<dhcpLeaseIpAddress>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ZHONE-COM-IP-DHCP-SERVER-MIB' -M '/opt/observium/mibs/zhone:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ZHONE-COM-IP-DHCP-SERVER-MIB::dhcpLeaseFlags'
Syntax
Bits
Values & Constraints
Enumerated Values
0 | static |
1 | bootp |
2 | unused2 |
3 | unused3 |
4 | abandoned |
5 | zhoneCPE |