cisco 2851 channel usage/active calls oid trouble
Moderators: Developers, Moderators
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.
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.
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?
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?
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'
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'
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:
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:
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
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
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.
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
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
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
Who is online
Users browsing this forum: No registered users and 2 guests