cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
729
Views
1
Helpful
2
Replies

Need a PowerShell Script to create UCS Threshold Policy

Larry Hedrick
Level 1
Level 1

Looking for a Powershell script to create a threshold policy to monitor SSD Life Left since the UCSM does not monitor does not monitor for that.

 

Something roughly equivalent to this CLI script...

 

#Create stats threshold policy SSD_POL to monitor SSD Life left.
scope org
create stats-threshold-policy SSD_POL
create class ssd-health-stats
create property percentage-life-left
create threshold-value below-normal major
set escalating 10
set deescalating 6
exit
create threshold-value below-normal critical
set escalating 5
set deescalating 0
exit
set normal-value 100
commit-buffer
exit
exit
exit
exit

2 Replies 2

Kirk J
Cisco Employee
Cisco Employee

maybe get-ucsstorageSsdHealthstats | select ucs, Dn, Id, PercentageLifeLeft    

Kirk...

That gets the percentage life left value. I was wanting to implement a policy so that the UCSM will send an alarm when the threshold is crossed.

Review Cisco Networking for a $25 gift card

Review Cisco Networking for a $25 gift card