2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 20:30:56 +00:00

Have snmpmon set the community string

Some BMCs do not default to 'public' for alerts.
Change this to do public for now, since other parts
of the code are still hard baked.
This commit is contained in:
Jarrod Johnson
2016-11-29 13:31:22 -05:00
parent 8af3012528
commit dc6581a1f2

View File

@ -514,8 +514,8 @@ sub configBMC {
$ret_text .= "Changeing SNMP PEF policy for IPMI nodes $noderange:\n $result\n";
}
} elsif ($action == 1) {
print "XCATBYPASS=Y rspconfig $noderange alert=en\n";
my $result = `XCATBYPASS=Y rspconfig $noderange alert=en 2>&1`;
print "XCATBYPASS=Y rspconfig $noderange alert=en community=public\n";
my $result = `XCATBYPASS=Y rspconfig $noderange alert=en community=public 2>&1`;
if ($?) {
$ret_val = 1;
xCAT::MsgUtils->message('S', "[mon]: Changeing SNMP PEF policy for IPMI nodes $noderange:\n $result\n");