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