Changing interface numbers on subinterface

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Jorta
Posts: 7
Joined: Mon May 24, 2004 5:40 pm

Changing interface numbers on subinterface

Post by Jorta »

Hello,

I've done some searching, but have not found an answer to this problem. I apologize if it has been discussed to death.

We have a Cisco ATM interface with a number (40+) of subinterfaces that we are tracking. The problem is that when a subinterface changes, the SNMP interface number associated with that subinterface changes in a non-predictable way.

I am wondering if there is a way to automate the changing of the interface values in RRDTool instead of going through the Cacti interface to enter the new interface number for each graph. In Nagios, we are using a perl script to do an snmpwalk and grab the interface numbers as they change - does anyone have a way to do this with Cacti?

Thanks,
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

There is a way to make this less painful in Cacti, although it isn't completely automated yet. When you create your graphs, you will be presented with a screen prompts you for an "Index Type". Instead of leaving it as "ifIndex", you should change it to something that does not change between reboots (ifName, ifAlias?).

Now when the ifIndexes change, you have to go into Cacti -> Devices, select the device in question, and click the "reload data query" icon next to "SNMP - Interface Statistics". Now click "Save" on this edit screen and everything should update correctly.

The next step for Cacti is to detect when the ifIndexes change and do this reload process automatically.

-Ian
Jorta
Posts: 7
Joined: Mon May 24, 2004 5:40 pm

Post by Jorta »

Perfect. Thanks for the response - I'll put that into action and look forward to the next release of Cacti!
Lux
Cacti User
Posts: 195
Joined: Tue Nov 11, 2003 10:57 am
Location: Luxembourg

Post by Lux »

rather than redoing everything in Cacti, you may be able to solve your problem directly on the router with the command snmp mib persist. This will force the router to remember the index to interface mapping across reloads.

Mike
Jorta
Posts: 7
Joined: Mon May 24, 2004 5:40 pm

Post by Jorta »

Thanks Lux,

I thought there was something along those lines on the Cisco, but could not find it - but as usual you don't find what you are looking for when you are looking in the wrong spot. I like that idea too and am testing it now.

Thanks!
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Actually the right command is "snmp-server ifindex persist".

- Piotr
Jorta
Posts: 7
Joined: Mon May 24, 2004 5:40 pm

Post by Jorta »

Seems to depend on the version of the IOS that you are using. I didn't go so far as to break out the IOS/Command version, but in our lab some older/some newer IOS versions and router models used one or the other command.

Thanks!
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

bulek wrote:Actually the right command is "snmp-server ifindex persist".

- Piotr
This is the perfect solution but, unfortunately some IOS versions are not supported snmp-server ifindex persist command. For example My 7507 has 12.1 and there is no command about persistence.
I just said for information :oops:
BitFlipper
Posts: 14
Joined: Sat Aug 14, 2004 10:30 am

Post by BitFlipper »

I have an environment that is pretty well described here. The source initiative can be found at my original post and remains unsolved. I am trying to monitor VPN session statisitcs on a Cisco Concentrator. Sessions come and go, indexes change but session 'names' are constant. Ian pointed out that you can 'refresh' your indexes manually but this won't work very well when the indexes are constantly changing.

Is there something that I am missing or is this a feature that hasn't been implimented as yet?

Thanks in advance.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

BitFlipper,

Are we talking about ATM? Are you talking aboue PVC's? Please let me know.

Thanks,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
BitFlipper
Posts: 14
Joined: Sat Aug 14, 2004 10:30 am

Post by BitFlipper »

TheWitness:

My apologies. Not talking about either one. This post addresses the vary issue I am having. The proposed solution here won't necessarily work in my environment (talking about Cisco VPN session statistics).

Did you have a chance to look at my correlating post?
http://www.raxnet.net/board/viewtopic.php?t=4562

Thanks for following-up on this ...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest