-Enable SNMPv3 explicitly rather than assuming the dafult is on (defect 2899181)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4640 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-11-21 17:34:17 +00:00
parent 9578b35974
commit 37c9472acb

View File

@ -2547,6 +2547,11 @@ sub snmpcfg {
$user =~ /^(\d+)./;
my $id = $1;
my $pp = ($value =~ /^enable$/i) ? "des" : "none";
if ($pp eq "des") {
@data = $t->cmd("snmp -a3 -on -T system:$mm");
} else {
@data = $t->cmd("snmp -a3 -off -T system:$mm");
}
my $cmd= "users -$id -ap sha -at write -ppw $pass -pp $pp -T system:$mm";
@data = $t->cmd($cmd);