On Mon, 2003-08-18 at 09:17, Jason Humes wrote:
> Hello
> We graph about 100 routers and with the mass power outages and UPS power
> running out, all of our interface index have changed and now graphs have to
> be rescanned for them to work again.  How can I make my config files work so
> that they use the index name (ie. G0/1, fa0/1, etc) instead of index
> numbers...please provide an example for me as I've tried to use ifindex
> before and I could not get the syntax to work properly. 

If you re-run cfgmaker, just set --ifref=name.

if you want to tweak them manually, you will want:

target[foo.1]: #Fa0/1:[EMAIL PROTECTED]::::2

Naturally, cfgmaker is easier.

So, for example, I call:
 /usr/local/mrtg-2/bin/cfgmaker --ifref=name --ifdesc=alias
--if-template=6500.template --subdirs=ecc/HOSTNAME
--output=ecc-6500-yellow.cfg [EMAIL PROTECTED]:::::2

and I get target lines like:
Target[ecc-6500-yellow_Gi1_1]: #Gi1/1:[EMAIL PROTECTED]:::::2
[...]
Target[ecc-6500-yellow_Fa2_1]: #Fa2/1:[EMAIL PROTECTED]:::::2

I upgraded code on all of my 100 boxes, changed a couple of chassis out,
and generally had a good time this weekend.  MRTG never knew anything
was amiss.

>  Thanks very much.
> 
>  
> 
-- 
Daniel J McDonald, CCIE 2495, CNX
Austin Energy


--
Unsubscribe mailto:[EMAIL PROTECTED]
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

Reply via email to