mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 12:20:40 +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:
@ -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");
|
||||
|
Reference in New Issue
Block a user