[mrtg] Re: Number of Ips

Pete Templin pete.templin at texlink.com
Wed Mar 19 15:16:44 MET 2003


I'll bite: Why do you need to know the number of active addresses?

My recommendation: monitor your RAS for the number of active connections, and graph that.  Then write a script on one of your servers that outputs the number of leased lines you have (or if you really need, the number of IP addresses being used by those leased lines), and graph that.

Chances are you're not getting billed per active address, and you're probably not billing customers per active address.  Make life easier for yourself, and focus your monitoring on bandwidth (so you don't run out) and dialup connections (so you don't run out of dial tone).

Pete Templin
IP Network Engineer
TexLink Communications
(210) 892-4183
pete.templin at texlink.com

-----Original Message-----
From: michael smith [mailto:michaelangle2002 at yahoo.com]
Sent: Wednesday, March 19, 2003 3:34 AM
To: Jay Hennigan
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Number of Ips

Thanks for your  reply .
For clarification , I need a tool that count the Number of active IPs for all over the network " dialup and Leased lines" , and graph them .
Thanks in advance
Michael

 Jay Hennigan <jay at west.net> wrote:On Tue, 18 Mar 2003, michael smith wrote:

> I am searching for OID for cisco routers , thats give me number of used
> IPs per interface or per router and also the available IPs that can be
> used per interface or also per router .

Per interface, you'll want to calculate it from the network mask applied
to the interface for available IPs directly connected. However, the total
amount of IPs that can be routed to an interface is a whole different
animal, and can be either static or dynamic. For the number of directly
connected IPs, take the ones' complement of the netmask in binary, subtract
three*, and that's the number of hosts. As to how many of them are actually
in use, that's a bit tougher. The OID for IP subnet mask or network mask
is what you want. Unnumbered interfaces, NAT, etc. can give unreliable or
wrong results.

Per router? That's a whole different animal, and if you have a default
route it could be, well... rather large.

I don't see how MRTG would come in to play here.

> If anyone know that pls advice

Tell us what the problem is that you're trying to solve with this question
and there is a good chance someone here has done it, though I suspect maybe
not using MRTG. Netmask changes on router interfaces aren't normally the
type of thing one needs to graph every five minutes. :-)

* one for the network all-zeros address, one for the broadcast all-ones,
and one for the interface itself = three.

--
Jay Hennigan - CCIE #7880 - Network Administration - jay at west.net
NetLojix Communications, Inc. - http://www.netlojix.com/
WestNet: Connecting you to the planet. 805 884-6323


---------------------------------
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list