#!/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";
Script that poll a snmp V3 w/ encryption server
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 1 guest