Hi,
Looking for help on how to Set Fault Suppression on a Service Profile in UCS with Start Time and Duration.
I can add one using Add-UcsFaultSupression cmdlet but unsure of how to set Start Time and duration.
Any help will be greatly appreciated.
Cheers
Sam
Solved! Go to Solution.
Hi,
You can use below cmdlets to start fault suppression at particular date and time and for specific duration.
Start-UcsTransaction
$mo = Get-UcsServiceProfile -Name "testSP" | Add-UcsFaultSuppressTask -ModifyPresent -Name "testSupression" -SuppressPolicyName "default-server-maint"
$mo_1 = $mo | Add-UcsTrigLocalSched -ModifyPresent -AdminState "untriggered" -Descr "" -PolicyOwner "local"
$mo_1_1 = $mo_1 | Add-UcsTrigLocalAbsWindow -ModifyPresent -ConcurCap "unlimited" -Date "2018-08-24 19:42:51" -ProcBreak "none" -ProcCap "unlimited" -TimeCap "00:00:30:00.0"
Complete-UcsTransaction
I have generated these cmdlets by doing the operations in GUI, recording the xml and then passing the xml file to the cmdlet "ConvertTo-UcsCmdlet".
You can also use the same for generating samples for other required scenarios. Please refer UCSM PowerTool User Guide for detailed usage of ConvertTo cmdlet.
Hi,
You can use below cmdlets to start fault suppression at particular date and time and for specific duration.
Start-UcsTransaction
$mo = Get-UcsServiceProfile -Name "testSP" | Add-UcsFaultSuppressTask -ModifyPresent -Name "testSupression" -SuppressPolicyName "default-server-maint"
$mo_1 = $mo | Add-UcsTrigLocalSched -ModifyPresent -AdminState "untriggered" -Descr "" -PolicyOwner "local"
$mo_1_1 = $mo_1 | Add-UcsTrigLocalAbsWindow -ModifyPresent -ConcurCap "unlimited" -Date "2018-08-24 19:42:51" -ProcBreak "none" -ProcCap "unlimited" -TimeCap "00:00:30:00.0"
Complete-UcsTransaction
I have generated these cmdlets by doing the operations in GUI, recording the xml and then passing the xml file to the cmdlet "ConvertTo-UcsCmdlet".
You can also use the same for generating samples for other required scenarios. Please refer UCSM PowerTool User Guide for detailed usage of ConvertTo cmdlet.