08-23-2018 08:38 PM
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.
08-23-2018 10:55 PM
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.
08-23-2018 10:55 PM
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.
09-03-2018 07:09 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide