Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Monitor memory on a cisco router

by VinsWorldcom (Prior)
on Mar 19, 2014 at 13:52 UTC ( [id://1078939]=note: print w/replies, xml ) Need Help??


in reply to Monitor memory on a cisco router

To echo salva's comments above re: SNMP, have a look at Cisco::Management which uses Net::SNMP and provides a nice interface for memory utilization:

use Cisco::Management; my $cm = Cisco::Management->new([OPTIONS]); my $meminfo = $cm->memory_info(); ... $meminfo->[0]->{'Name', 'Used', 'Free', ...} $meminfo->[1]->{'Name', 'Used', 'Free', ...} ... $meminfo->[n]->{'Name', 'Used', 'Free', ...} ...

The scripts provided in the distribution's bin/ directory provide working examples.

Replies are listed 'Best First'.
Re^2: Monitor memory on a cisco router
by vlad3848 (Acolyte) on Mar 19, 2014 at 14:45 UTC

    Thank you for your response! Unfortunately, the TCAM (ternary content-addressable memory) metrics i am trying to collect is not available via SNMP. I have to create some form of an ssh collector to gather it. Moreover, due to some security policies some of the devices i am trying to collect these stats for, are not reachable via SNMP from my management network, not even for read only

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1078939]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found