From 37c9472acb7d3dc464f163e808bb11ddfb51b9c5 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 21 Nov 2009 17:34:17 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/blade.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index c5d01b968..72b66fced 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -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);