<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>PowerTool: How to reset all vNICs stats at one time?</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=" />
  <subtitle>PowerTool: How to reset all vNICs stats at one time?</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=</id>
  <updated>2013-05-25T03:47:25Z</updated>
  <dc:date>2013-05-25T03:47:25Z</dc:date>
  <entry>
    <title>Automatic reply: New Message from John Kennedy in Unified Computing UCS Man</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8531952" />
    <author>
      <name>Tsu-Sheng Tsao</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8531952</id>
    <updated>2012-11-13T19:05:48Z</updated>
    <published>2012-11-13T19:05:48Z</published>
    <summary type="html">Thank you for your message, I am out of the office with limited access to e-mail. For urgent case please contact Luis Chang, I will be returning on Nov 20.

-James Tsao</summary>
    <dc:creator>Tsu-Sheng Tsao</dc:creator>
    <dc:date>2012-11-13T19:05:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to use powertool from a batch file?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5985113" />
    <author>
      <name>Tsu-Sheng Tsao</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5985113</id>
    <updated>2012-07-04T02:58:50Z</updated>
    <published>2012-07-04T02:58:50Z</published>
    <summary type="html">Hi Abhishek,

Try these:

ucs-backup.ps1
------------------
[color=#ff0000]Import-Module CiscoUcsPS[/color]
Connect-UCS -LiteralPath 'C:\Temp\UCS.xml' -key 'XXXXX'
$myBackupPath="C:\Temp"
Backup-Ucs -Type config-all -PathPattern ($myBackupPath + '\${ucs}-${yyyy}${MM}${dd}-config-all.xml')
 

ucs-backup.bat
-----------------
[color=#ff0000]%WINDIR%\System32\windowspowershell\v1.0\powershell.exe -NoExit -ExecutionPolicy RemoteSigned -File C:\temp\UCS-backup.ps1[/color]</summary>
    <dc:creator>Tsu-Sheng Tsao</dc:creator>
    <dc:date>2012-07-04T02:58:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to Gracefully shutdown all servers in a chassis</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5743350" />
    <author>
      <name>Tsu-Sheng Tsao</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5743350</id>
    <updated>2012-05-17T07:56:50Z</updated>
    <published>2012-05-17T07:56:50Z</published>
    <summary type="html">Forgot to mention, that will shutdown servers in all chassis.

Replace
"Get-UcsBlade"
with
"Get-UcsBlade -Chassis 1"

then you can shutdown all servers in that chassis</summary>
    <dc:creator>Tsu-Sheng Tsao</dc:creator>
    <dc:date>2012-05-17T07:56:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to Gracefully shutdown all servers in a chassis</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5743344" />
    <author>
      <name>Tsu-Sheng Tsao</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5743344</id>
    <updated>2012-05-17T07:45:24Z</updated>
    <published>2012-05-17T07:45:24Z</published>
    <summary type="html">James,

This is what I use, you can try it.

########################################################################

# Import the Cisco UCS PowerTool module
Import-Module CiscoUcsPS

# Connect to a UCS system
$passwd = ConvertTo-SecureString "password" -AsPlainText -Force
$ucsmcreds = New-Object System.Management.Automation.PSCredential ("admin", $passwd)
$handle = Connect-Ucs 192.168.1.1 -Credential $ucsmcreds

# Send command
# Excludes service profile which is not associated to any server
# If power is already down, no need to shutdown again
Get-UcsBlade | % { If (($_.AssignedToDn -ne "") -and ($_.OperPower -ne "off")) {
Write-Host "Shutting down" + "["$_.AssignedToDn"]..."
Get-UcsServiceProfile -Dn $_.AssignedToDn | Set-UcsServerPower -State "soft-shut-down" -Force
Write-Host
}
}

Write-Host "All done."

Disconnect-Ucs


########################################################################</summary>
    <dc:creator>Tsu-Sheng Tsao</dc:creator>
    <dc:date>2012-05-17T07:45:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: UCS PowerSehll Toolkit: -Confirm:$false Not Working</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5489297" />
    <author>
      <name>Tsu-Sheng Tsao</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5489297</id>
    <updated>2012-04-19T17:32:05Z</updated>
    <published>2012-04-19T17:32:05Z</published>
    <summary type="html">Hi Joe,

I tried this with CiscoUcs-PowerTool-0.9.7.0 and it worked:

Remove-UcsServiceProfile -ServiceProfile ESX-AD-VMFEX1 -Force





Regards,
-James</summary>
    <dc:creator>Tsu-Sheng Tsao</dc:creator>
    <dc:date>2012-04-19T17:32:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: PowerTool: How to reset all vNICs stats at one time?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5430308" />
    <author>
      <name>Tsu-Sheng Tsao</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5430308</id>
    <updated>2012-04-10T08:16:11Z</updated>
    <published>2012-04-10T08:16:11Z</published>
    <summary type="html">Bhaskar, thanks.
I will try that.</summary>
    <dc:creator>Tsu-Sheng Tsao</dc:creator>
    <dc:date>2012-04-10T08:16:11Z</dc:date>
  </entry>
  <entry>
    <title>PowerTool: How to reset all vNICs stats at one time?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5421478" />
    <author>
      <name>Tsu-Sheng Tsao</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5421478</id>
    <updated>2012-04-08T08:31:06Z</updated>
    <published>2012-04-08T08:30:07Z</published>
    <summary type="html">I am trying to collect all vNICs stats and would like to rest Average, Max, Min and Delta first.
What method should I use to clear those counters?


Thanks in advance!</summary>
    <dc:creator>Tsu-Sheng Tsao</dc:creator>
    <dc:date>2012-04-08T08:30:07Z</dc:date>
  </entry>
</feed>

