Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Templates, scripts for templates, scripts and requests for templates.
Moderators: Developers , Moderators
a.petrov
Posts: 1 Joined: Fri Oct 16, 2009 3:01 am
Location: Russia
Contact:
Post
by a.petrov » Fri Oct 16, 2009 3:24 am
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 (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
Users browsing this forum: No registered users and 4 guests