cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2046
Views
5
Helpful
2
Replies

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

samd
Level 1
Level 1

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

rrawal
Cisco Employee
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

rrawal
Cisco Employee
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.

Thanks rrawal, that worked like a charm.

Review Cisco Networking for a $25 gift card

Cisco UCS X-Series Energy Efficiency Offer