[j-nsp] ERX DHCP MIB?

Bjørn Mork bjorn at mork.no
Wed Jan 14 04:39:43 EST 2009


Kari Asheim <ka at mork.no> writes:

> On Tue, Jan 13, 2009 at 02:43:51PM +0100, Bjørn Mork wrote:
>
>> How about using juniAddressPoolInUse from
>> http://www.oidview.com/mibs/4874/Juniper-ADDRESS-POOL-MIB.html
>> instead?
>
> According to the MIB itself, this MIB is deprecated. Also, it reports
> reports only the 'first' pool.  It definetely reports all pools on my
> router, but this text may indicate that it will not be supported in
> the future.
>
> juniAddressPoolInUse OBJECT-TYPE
>     SYNTAX      Integer32
>     MAX-ACCESS  read-only
>     STATUS      deprecated

Thanks.  Didn't notice that.

>     DESCRIPTION
>         "The number of addresses currently allocated from the 'first' pool
>         profile entry.  This object is deprecated in favor of
>         juniAddressPoolProfileInUse because it applies to a single address range
>         and can only show one of possibly many address ranges found in the newer
>         juniAddressPoolProfileTable.  The value in this table maps to the value
>         in the juniAddressPoolProfileTable for the entry with
>         juniAddressPoolProfileIndex equal to 1."
>     ::= { juniAddressPoolEntry 7 }


Damn.  I actually find the current behaviour quite useful.  See this
sample from a router with a single ppp pool with multiple address ranges
("router" is an E320 running JUNOSe 7.3.4):


bjorn at server:~$ snmpwalk -v2c -c comm router .1.3.6.1.4.1.4874.2.2.21
Juniper-ADDRESS-POOL-MIB::juniAddressPoolRowStatus.1 = INTEGER: active(1)
Juniper-ADDRESS-POOL-MIB::juniAddressPoolName.1 = STRING: "adsl"
Juniper-ADDRESS-POOL-MIB::juniAddressPoolStart.1 = IpAddress: 0.0.0.0
Juniper-ADDRESS-POOL-MIB::juniAddressPoolEnd.1 = IpAddress: 0.0.0.0
Juniper-ADDRESS-POOL-MIB::juniAddressPoolSize.1 = INTEGER: 3574
Juniper-ADDRESS-POOL-MIB::juniAddressPoolInUse.1 = INTEGER: 2178
Juniper-ADDRESS-POOL-MIB::juniAddressPoolHighUtilThreshold.1 = INTEGER: 85
Juniper-ADDRESS-POOL-MIB::juniAddressPoolAbatedUtilThreshold.1 = INTEGER: 75
Juniper-ADDRESS-POOL-MIB::juniAddressPoolUtilPct.1 = INTEGER: 60
Juniper-ADDRESS-POOL-MIB::juniAddressPoolTrapEnable.1 = INTEGER: false(2)
Juniper-ADDRESS-POOL-MIB::juniAddressPoolNextPoolProfileIndex.1 = INTEGER: 0
Juniper-ADDRESS-POOL-MIB::juniAddressPoolNextPoolIndex.0 = INTEGER: 0
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileRowStatus.1.15 = INTEGER: active(1)
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileRowStatus.1.16 = INTEGER: active(1)
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileRowStatus.1.18 = INTEGER: active(1)
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileRowStatus.1.19 = INTEGER: active(1)
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileRowStatus.1.20 = INTEGER: active(1)
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileStart.1.15 = IpAddress: 10.89.195.1
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileStart.1.16 = IpAddress: 10.90.122.1
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileStart.1.18 = IpAddress: 10.164.144.1
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileStart.1.19 = IpAddress: 10.109.44.1
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileStart.1.20 = IpAddress: 10.167.24.1
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileEnd.1.15 = IpAddress: 10.89.195.254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileEnd.1.16 = IpAddress: 10.90.122.254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileEnd.1.18 = IpAddress: 10.164.147.254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileEnd.1.19 = IpAddress: 10.109.47.254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileEnd.1.20 = IpAddress: 10.167.27.254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileSize.1.15 = INTEGER: 254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileSize.1.16 = INTEGER: 254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileSize.1.18 = INTEGER: 1022
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileSize.1.19 = INTEGER: 1022
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileSize.1.20 = INTEGER: 1022
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileInUse.1.15 = INTEGER: 254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileInUse.1.16 = INTEGER: 254
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileInUse.1.18 = INTEGER: 1021
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileInUse.1.19 = INTEGER: 647
Juniper-ADDRESS-POOL-MIB::juniAddressPoolProfileInUse.1.20 = INTEGER: 2


The juniAddressPoolStart and juniAddressPoolEnd are of course useless
and you have to look at the juniAddressPoolProfileStart and
juniAddressPoolProfileEnd tables instead for the actual address ranges.  

juniAddressPoolSize and juniAddressPoolInUse reports the totals for the
pool, which are the only numbers I'm really interested in. We could of
course sum up the per range numbers, but I fail to see why that should
be necessary.  I hope we can keep juniAddressPool{Size,InUse}.


Bjørn


More information about the juniper-nsp mailing list