Script that poll a snmp V3 w/ encryption server

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
piingouin

Script that poll a snmp V3 w/ encryption server

Post by piingouin »

#!/usr/bin/perl
# Simon Marechal <pingouin@rhapsodyk.net>
# This scripts polls à snmpv3 server for a ressource with a crypted query.
# usage : ./script username password host ressource

$out=`snmpget -v 3 -u $ARGV[0] -l authNoPriv -a MD5 -A $ARGV[1] -x DES -X $ARGV[1] $ARGV[2] $ARGV[3]`;
print ($out=~/([^\s]+)$/);
print "\n";
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest