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 |