cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
663
Views
5
Helpful
2
Replies
Highlighted
Beginner

Fault Suppression using Cisco Power Tool - With Start Time and Duration

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

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.

View solution in original post

2 REPLIES 2
Highlighted
Cisco Employee

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.

View solution in original post

Highlighted

Thanks rrawal, that worked like a charm.
Content for Community-Ad
This widget could not be displayed.