query_ifAlias doesn't seem to work on my ASR1002 router

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

Moderators: Developers, Moderators

Post Reply
User avatar
pecty
Posts: 4
Joined: Mon Aug 24, 2009 8:58 am

query_ifAlias doesn't seem to work on my ASR1002 router

Post by pecty »

ifName and ifDescr work fine, but can't seem to get ifAlias to display anything, works on my 6500s, my ASA, 3750s, etc etc. Any suggestions?
engeishi
Cacti User
Posts: 75
Joined: Sun Aug 23, 2009 12:03 pm
Location: Tokyo, Japan

Post by engeishi »

Do you write interface description to your router config?

Code: Select all

 !
 interface <SOME-INTERFACE>
  description <DESCRIPTION>
DESCRIPTION in your router config comes to ifAlias string.
If you don't write that, ifAlias shows blank.
User avatar
pecty
Posts: 4
Joined: Mon Aug 24, 2009 8:58 am

Post by pecty »

yup, they all have descriptions, it doesn't come up blank, it displays the command

Code: Select all

|query_ifAlias|
engeishi
Cacti User
Posts: 75
Joined: Sun Aug 23, 2009 12:03 pm
Location: Tokyo, Japan

Post by engeishi »

Humm, It is very similar to the situation described here.
http://bugs.cacti.net/view.php?id=683

But as all your routers have descriptions, it should work fine.
To make sure of it, please test to get ifAlias strings by command line.

Code: Select all

snmpwalk -v 1 -c <COMMUNITY> <ROUTER IP> .1.3.6.1.2.1.31.1.1.1.18
User avatar
pecty
Posts: 4
Joined: Mon Aug 24, 2009 8:58 am

Post by pecty »

Code: Select all

# snmpwalk -v 1 -c aaa zzz.zzz.zzz.zzz .1.3.6.1.2.1.31.1.1.1.18
IF-MIB::ifAlias.1 = STRING: NJEdge Trunk Vlans ttt/nnn
IF-MIB::ifAlias.2 = STRING: 
IF-MIB::ifAlias.3 = STRING: Connection_To_LightPath
IF-MIB::ifAlias.4 = STRING: Connection to Cisco SCE
IF-MIB::ifAlias.5 = STRING: Out of Band Managment
IF-MIB::ifAlias.6 = STRING: 
IF-MIB::ifAlias.7 = STRING: 30MB BE & 5MB PD to NJEdge BGP Neighbor: yyy.yyy.yyy.yyy
IF-MIB::ifAlias.8 = STRING: 40MB to NJEdge BGP Neighbor: xxx.xxx.xxx.xxx
looks like it gets the descriptions
engeishi
Cacti User
Posts: 75
Joined: Sun Aug 23, 2009 12:03 pm
Location: Tokyo, Japan

Post by engeishi »

There seems to be no problem in the setting of the device.
Then, let's confirm the setting of Cacti.

1) In which situation Cacti can't handle the variable? Graph Title? Or something else?
For example, Is the graph like the attached file displayed?

2)How about the result of Data Query Debug information?
You can check it by the following operation.
"Devices" > CHOOSE SOME DEVICE > "Verbose Query" at "Associated Data Queries"
Here is an example of the result.

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
~~~~~~~ SNIP ~~~~~~~~~~
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias=''] index: 1 [from value]
+ Found item [ifAlias=''] index: 2 [from value]
+ Found item [ifAlias=''] index: 3 [from value]
+ Found item [ifAlias=''] index: 4 [from value]
+ Found item [ifAlias='### SOME DESCRIPTION ###'] index: 5 [from value]
+ Found item [ifAlias='### SOME DESCRIPTION ###'] index: 6 [from value]
~~~~~~~ SNIP ~~~~~~~~~~
3. Can you change the title of existing graph that contains "ifAlias" manually?
Try following operation. You shold choose some interface traffic graph.
"Management" > "Graph Management" > CHOOSE SOME GRAPH
set the variable "|query_ifAlias|" at "Title"
save
Attachments
ifAlias.PNG
ifAlias.PNG (17.73 KiB) Viewed 3208 times
User avatar
pecty
Posts: 4
Joined: Mon Aug 24, 2009 8:58 am

Post by pecty »

After I did the verbose query its displaying descriptions now, really odd.
The_End
Posts: 1
Joined: Wed Mar 02, 2011 8:52 am

Re: query_ifAlias doesn't seem to work on my ASR1002 router

Post by The_End »

Hello

just for you information,

I had the same issue with a cisco catalyst and when I did the verbose query, like pecty, it worked fine.

Thank you.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: query_ifAlias doesn't seem to work on my ASR1002 router

Post by gandalf »

The refresh will re-index the data query. This in turn takes care of any index changes of the given query
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests