[cisco-voip] RE: cisco voip OIDs

Steven E. Ames sames at officescape.com
Thu May 5 12:22:40 EDT 2005


Quick proof of concept:

----------------------------------
#!/usr/local/bin/perl5

use Net::Telnet::Cisco;

my $session = Net::Telnet::Cisco->new(Host => '10.0.0.1');
$session->login(Password => 'myloginpass');

# Enable mode
if ($session->enable("myenablepass") ) {
    my @output = $session->cmd('sh voice call status');
    print @output;
} else {
    warn "Can't enable: " . $session->errmsg;
}

$session->close;
-------------------------------

-Steve

> -----Original Message-----
> From: cisco-voip-bounces at puck.nether.net
> [mailto:cisco-voip-bounces at puck.nether.net]On Behalf Of Steven E. Ames
> Sent: Thursday, May 05, 2005 11:18 AM
> To: Voll, Scott; Tim Reimers; Edgar Almonte
> Cc: mrtg-request at list.ee.ethz.ch; cisco VoIP List
> Subject: RE: [cisco-voip] RE: cisco voip OIDs
> 
> 
> Net::Telnet::Cisco provides additional functionality to 
> Net::Telnet for
> dealing with Cisco routers.
> 
> WWW: http://search.cpan.org/search?module=Net::Telnet::Cisco
> 
> 
> > -----Original Message-----
> > From: Voll, Scott [mailto:Scott.Voll at wesd.org]
> > Sent: Thursday, May 05, 2005 11:14 AM
> > To: Steven E. Ames; Tim Reimers; Edgar Almonte
> > Cc: cisco VoIP List; mrtg-request at list.ee.ethz.ch
> > Subject: RE: [cisco-voip] RE: cisco voip OIDs
> > 
> > 
> > Can you point me to some documentation?
> > 
> > -----Original Message-----
> > From: cisco-voip-bounces at puck.nether.net
> > [mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of 
> > Steven E. Ames
> > Sent: Thursday, May 05, 2005 8:56 AM
> > To: Tim Reimers; Edgar Almonte
> > Cc: cisco VoIP List; mrtg-request at list.ee.ethz.ch
> > Subject: RE: [cisco-voip] RE: cisco voip OIDs
> > 
> > Why us 'sh'? Just cheat and use perl from the beginning. Install the
> > p5-Net-Telnet-Cisco module (which handles all the tricky login and
> > stuff) and allows you to just call arbitrary command. What 
> > your looking
> > for would only take a few minutes to put together.
> > 
> > > -----Original Message-----
> > > From: cisco-voip-bounces at puck.nether.net
> > > [mailto:cisco-voip-bounces at puck.nether.net]On Behalf Of 
> Tim Reimers
> > > Sent: Thursday, May 05, 2005 10:52 AM
> > > To: Edgar Almonte
> > > Cc: mrtg-request at list.ee.ethz.ch; cisco VoIP List
> > > Subject: [cisco-voip] RE: cisco voip OIDs
> > > 
> > > 
> > > Someday I'll be enough of a programmer to get
> > > 
> > > 'sh voice call status'
> > > 
> > > That command's last line of response is:
> > > "9 active calls"
> > > into a perl script such that MRTG or Cacti can read it...
> > > 
> > > I've also been thinking of experimenting with some of the 
> > scrips that
> > > convert perfmon stats into SNMP traps, and convert that into MRTG
> > > variables...
> > > I haven't set it up yet, but I've heard that the new 4.0 
> > CCM supports
> > > some perfmon reporting of active calls- 
> > > what would be required is to figure out how to graph that 
> output in
> > > Cacti or MRTG.
> > > Seems as if the first thing would be to make the perfmon 
> events into
> > > SNMP traps.. 
> > > 
> > > -----Original Message-----
> > > From: Edgar Almonte [mailto:edgar at almontel.com] 
> > > Sent: Thursday, May 05, 2005 11:07 AM
> > > To: Tim Reimers
> > > Subject: RE: cisco voip OIDs
> > > 
> > > I'm looking for T1 stats or errors.
> > > 
> > > I would also like to know # of active calls, ASR, blocked 
> > > calls, etc....
> > > 
> > > At 11:03 AM 5/5/2005, you wrote:
> > > >Not so far.... then again, it comes down to which OIDS for which
> > > >project? ;-)
> > > >
> > > >If you're referring to the ones for a 3725 to do Line Code 
> > > violations,
> > > >then no...
> > > >
> > > >-----Original Message-----
> > > >From: Edgar Almonte [mailto:edgar at almontel.com]
> > > >Sent: Thursday, May 05, 2005 10:12 AM
> > > >To: Tim Reimers
> > > >Subject: cisco voip OIDs
> > > >
> > > >
> > > >
> > > >did you ever find the OIDs you were looking for??
> > > >
> > > >I am trying to find that info myself.....
> > > >
> > > >
> > > >Thanks,
> > > >Edgar
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > cisco-voip mailing list
> > > cisco-voip at puck.nether.net
> > > https://puck.nether.net/mailman/listinfo/cisco-voip
> > > 
> > 
> > _______________________________________________
> > cisco-voip mailing list
> > cisco-voip at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/cisco-voip
> > 
> 
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
> 



More information about the cisco-voip mailing list