Counter cisco router PPPoE, VoIP users.

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
User avatar
a.petrov
Posts: 1
Joined: Fri Oct 16, 2009 3:01 am
Location: Russia
Contact:

Counter cisco router PPPoE, VoIP users.

Post by a.petrov »

Hi all!

I have Cisco 3725.
No SNMP oid for PPPoE, VoIP users.

Need Perl and module Net::Telnet::Cisco

Script For PPPoE users:

Code: Select all

#!/usr/bin/perl
use Net::Telnet::Cisco;

$session = Net::Telnet::Cisco->new(Host => 'xxx.vvv.bbb.ppp');
$session->login('username', 'password');

@output = $session->cmd('show users | i Vi');
$count = @output;
print "$count";
For VoIP users:

Code: Select all

#!/usr/bin/perl
#VoIP pool for cisco router 2651
use Net::Telnet::Cisco;
my $session = Net::Telnet::Cisco->new(Host => 'XXX.QQQ.AAA.DDD');
  $session->login('username', 'password');
@output = $session->cmd('show voice call status	| i active');
  $session->close;
chomp @output;
$ottt = pop (@output);
$ottt =~ m/\d+/;
$number = $&;
print "PoolVoip:",$number;
Scripts for Windows and *nix systems.
Attachments
cacti_data_graph_template_voip_users.xml.zip
Data and graph template VoIP.
(2.87 KiB) Downloaded 495 times
pppoe.jpg
pppoe.jpg (34.04 KiB) Viewed 6594 times
cacti_data_graph_template_pppoe_users.xml.zip
Data and graph template PPPoE.
(3.14 KiB) Downloaded 744 times
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests