2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-05-06 09:04:13 +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 f7ec4dde7f
commit acc8bcb76b

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");