h3cDhcpServer2PoolLeaseDay
H3C-DHCP4-MIB ·
.1.3.6.1.4.1.2011.10.2.122.2.1.1.8
Object
column r/w
Integer32
Number of days of the lease.
The SET operation to this object ought to be with
the SET of h3cDhcpServer2PoolLeaseHour,
h3cDhcpServer2PoolLeaseMinute,
h3cDhcpServer2PoolLeaseSecond together,
and any SET operation alone to any of these objects
will be regarded as an invalid operation.
These objects cannot be set with 0 simultaneously.
Context
- MIB
- H3C-DHCP4-MIB
- OID
.1.3.6.1.4.1.2011.10.2.122.2.1.1.8- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- h3cDhcpServer2PoolEntry
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 'H3C-DHCP4-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'H3C-DHCP4-MIB::h3cDhcpServer2PoolLeaseDay'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'H3C-DHCP4-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'H3C-DHCP4-MIB::h3cDhcpServer2PoolLeaseDay.<h3cDhcpServer2PoolIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'H3C-DHCP4-MIB' -M '/opt/observium/mibs/h3c:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'H3C-DHCP4-MIB::h3cDhcpServer2PoolLeaseDay'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 0-365