cisco 2851 channel usage/active calls oid trouble

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

Moderators: Developers, Moderators

vitroth
Posts: 15
Joined: Wed Jan 14, 2009 3:03 pm

Post by vitroth »

Oh, and for testing you should add 'query inuse' to the end of your command line. I suppose I should update the code to handle the errors when you don't provide all the required arguments.
Cornloaf
Posts: 18
Joined: Sun Dec 30, 2007 3:27 pm
Contact:

Post by Cornloaf »

I changed that out and I get this error now :

C:\Perl\bin>perl "c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl" 172.16.1
7.1
Use of uninitialized value $action1 in string eq at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 99.
Use of uninitialized value $action1 in string eq at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 106.
Use of uninitialized value $action1 in string eq at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 113.
Use of uninitialized value $action1 in string eq at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 120.
Use of uninitialized value $action1 in string eq at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 138.
Use of uninitialized value $action1 in string eq at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 145.
Cornloaf
Posts: 18
Joined: Sun Dec 30, 2007 3:27 pm
Contact:

Post by Cornloaf »

Here is the output with the debug command :

C:\Perl\bin>perl "c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl" 172.16.17.1 query inuse
0/1/0:0
0/1/1:0
0/1/2:0
0/1/3:0
0/2/0:0
0/2/1:0
0/2/2:0
0/2/3:0
0/3/0:0
0/3/1:0
0/3/2:0
0/3/3:0
vitroth
Posts: 15
Joined: Wed Jan 14, 2009 3:03 pm

Post by vitroth »

Looks like its working then, it found 12 T1 PRI interfaces with no active calls.
Cornloaf
Posts: 18
Joined: Sun Dec 30, 2007 3:27 pm
Contact:

Post by Cornloaf »

Those are my FXO ports for the analog lines which I want to track, but when I try to graph it, I get this :

Data Query Cisco - Voice Channels In Use

This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.

The debug has the information from my previous post. Any ideas?
vitroth
Posts: 15
Joined: Wed Jan 14, 2009 3:03 pm

Post by vitroth »

Did you have it refresh the list of voice ports?

Try running the script by hand with 'index' as the argument after the IP address.
Cornloaf
Posts: 18
Joined: Sun Dec 30, 2007 3:27 pm
Contact:

Post by Cornloaf »

Here is the output :

C:\Perl\bin>perl c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl 172.16.17.1 index
0/1/0
0/1/1
0/1/2
0/1/3
0/2/0
0/2/1
0/2/2
0/2/3
0/3/0
0/3/1
0/3/2
0/3/3
vitroth
Posts: 15
Joined: Wed Jan 14, 2009 3:03 pm

Post by vitroth »

That looks like its working then, its listing the ports.

Try running the data source query in debug mode from the device page.
Cornloaf
Posts: 18
Joined: Sun Dec 30, 2007 3:27 pm
Contact:

Post by Cornloaf »

Here is the output from the query :

Data Query Debug Information

+ Running data query [14].
+ Found type = '4 '[script query].
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_queries/voice-port-usage.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl C:\Inetpub\wwwroot\cacti\scripts\voice-port-usage.pl 172.16.17.1 index'
+ Executing script query 'perl C:\Inetpub\wwwroot\cacti\scripts\voice-port-usage.pl 172.16.17.1 query ports'
+ Executing script query 'perl C:\Inetpub\wwwroot\cacti\scripts\voice-port-usage.pl 172.16.17.1 query description'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_queries/voice-port-usage.xml'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_queries/voice-port-usage.xml'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_queries/voice-port-usage.xml'
vitroth
Posts: 15
Joined: Wed Jan 14, 2009 3:03 pm

Post by vitroth »

Hmm, maybe the other queries aren't working.

Try 'query ports' and 'query description'
Cornloaf
Posts: 18
Joined: Sun Dec 30, 2007 3:27 pm
Contact:

Post by Cornloaf »

Query ports worked but got this one for description :

C:\Perl\bin>perl c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl 172.16.17.1 query description
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/1/0:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/1/1:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/1/2:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/1/3:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/2/0:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/2/1:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/2/2:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/2/3:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/3/0:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/3/1:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/3/2:
Use of uninitialized value in concatenation (.) or string at c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl line 115.
0/3/3:
vitroth
Posts: 15
Joined: Wed Jan 14, 2009 3:03 pm

Post by vitroth »

Can you show me the output of "show voice port summary" and "show interfaces description" on that router?

I think its mis-parsing the output from the router...
Cornloaf
Posts: 18
Joined: Sun Dec 30, 2007 3:27 pm
Contact:

Post by Cornloaf »

YVR_2821Router#sho voice port summary
IN OUT
PORT CH SIG-TYPE ADMIN OPER STATUS STATUS EC
=============== == ============ ===== ==== ======== ======== ==
0/1/0 -- fxs-ls up dorm on-hook idle y
0/1/1 -- fxs-ls up dorm on-hook idle y
0/1/2 -- fxs-ls up dorm on-hook idle y
0/1/3 -- fxs-ls up dorm on-hook idle y
0/2/0 -- fxo-ls up dorm idle on-hook y
0/2/1 -- fxo-ls up dorm idle on-hook y
0/2/2 -- fxo-ls up up idle off-hook y
0/2/3 -- fxo-ls up dorm idle on-hook y
0/3/0 -- fxo-ls up dorm idle on-hook y
0/3/1 -- fxo-ls up dorm idle on-hook y
0/3/2 -- fxo-ls down down idle on-hook y
0/3/3 -- fxo-ls down down idle on-hook y

PWR FAILOVER PORT PSTN FAILOVER PORT
================= ==================

and


YVR_2821Router#sho int desc
Interface Status Protocol Description
Gi0/0 up up $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-GE 0/0$
Gi0/0.5 up up Management$ETH-LAN$
Gi0/0.10 up up Data$ETH-LAN$
Gi0/0.11 up up Server$ETH-LAN$
Gi0/0.20 up up Voice$ETH-LAN$
Gi0/1 up down $ETH-WAN$
NV0 admin down down
vitroth
Posts: 15
Joined: Wed Jan 14, 2009 3:03 pm

Post by vitroth »

Ahh, I see the problem. This script was designed for use with T1 PRIs, which show up as an interface and thus show up in 'show interfaces description'.

FXO/FXS ports however do not show up in the interface description list.

Try this one.
Attachments
voice-port-usage.pl
(3.69 KiB) Downloaded 423 times
Cornloaf
Posts: 18
Joined: Sun Dec 30, 2007 3:27 pm
Contact:

Post by Cornloaf »

Looks like we are making progress... All the queries return data now but under the Data Querty in Cacti it says that there are 0 results, therefore it will not allow me to create a graph.

Here is the output from the script :

C:\Perl\bin>perl c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl 172.16.17.1 query description
0/1/0:0/1/0
0/1/1:0/1/1
0/1/2:0/1/2
0/1/3:0/1/3
0/2/0:0/2/0
0/2/1:0/2/1
0/2/2:0/2/2
0/2/3:0/2/3
0/3/0:0/3/0
0/3/1:0/3/1
0/3/2:0/3/2
0/3/3:0/3/3

C:\Perl\bin>perl c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl 172.16.17.1 query ports
0/1/0:0/1/0
0/1/1:0/1/1
0/1/2:0/1/2
0/1/3:0/1/3
0/2/0:0/2/0
0/2/1:0/2/1
0/2/2:0/2/2
0/2/3:0/2/3
0/3/0:0/3/0
0/3/1:0/3/1
0/3/2:0/3/2
0/3/3:0/3/3

C:\Perl\bin>perl c:\inetpub\wwwroot\cacti\scripts\voice-port-usage.pl 172.16.17.1 index
0/1/0
0/1/1
0/1/2
0/1/3
0/2/0
0/2/1
0/2/2
0/2/3
0/3/0
0/3/1
0/3/2
0/3/3
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests