cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

315
Views
5
Helpful
2
Replies
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

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

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.

2 REPLIES 2
Highlighted
Cisco Employee

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

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.

Beginner

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

Thanks rrawal, that worked like a charm.
CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.