Some SNMP tips on RedHat 7.3

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
khutton
Cacti User
Posts: 77
Joined: Tue Jun 18, 2002 9:01 am
Location: Alexandria, Virginia
Contact:

Some SNMP tips on RedHat 7.3

Post by khutton »

I was unable to use the snmp.pl script on my Redhat 7.3 box until I changed the command in the script. I hope this can help others using Redhat.

#!/usr/bin/perl

$ret = `snmpget -Ovq -Cf $ARGV[0] $ARGV[1] $ARGV[2]`;
chomp $ret;

print $ret;

This returns a nice single unmber for me when I am looking at any of my cisco gear, for things like cpu utilization and the such. Not sure if this is the most efficient way to do things but I thought it might save some people some time.

Kevin
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests