<?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>RE: best way to query WWPN of all HBA</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_category?p_l_id=2049005&amp;mbCategoryId=0" />
  <subtitle>RE: best way to query WWPN of all HBA</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_category?p_l_id=2049005&amp;mbCategoryId=0</id>
  <updated>2013-06-19T16:06:16Z</updated>
  <dc:date>2013-06-19T16:06:16Z</dc:date>
  <entry>
    <title>RE: UCS powershell get-ucstechsupport for fex not working</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13073355" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13073355</id>
    <updated>2013-03-15T12:14:39Z</updated>
    <published>2013-03-15T12:14:39Z</published>
    <summary type="html">[quote=Benton Crook]i can use get-ucstechsupport with the following cmds straight from the guide and it works fine.
Get-UcsTechSupport -PathPattern 'C:\${ucs}-techsupp-ucsm.tar' –UcsManager -RemoveFromUcs -TimeoutSec 600

Get-UcsTechSupport -PathPattern 'C:\${ucs}-techsupp-chassis.tar' -RemoveFromUcs -TimeoutSec 600 -ChassisId 1 -CimcId 1
but

if i try to execute the following cmd



Get-UcsTechSupport -PathPattern 'C:\${ucs}-techsupp-fex.tar' -RemoveFromUcs -TimeoutSec 600 -FexId 1

i get warning message below for about 10 secs or less

WARNING: Waiting for the Tech Support file to become available (this may take several minutes).

then i get the following error
[color=#ff0000][/color]
Get-UcsTechSupport : V1CL16140-FI:Failed to create the TechSupport file.
At line:1 char:19
+ Get-UcsTechSupport &lt;&lt;&lt;&lt; -ucs $handle -PathPattern 'C:\${ucs}-techsupp-fex.tar' -RemoveFromUcs -TimeoutSec 600 -FexId 1
+ CategoryInfo : NotSpecified: ([img]http://developer.cisco.comhttp://developer.cisco.com/cisco2-theme/images/emoticons/happy.gif[/img] [Get-UcsTechSupport], Exception
+ FullyQualifiedErrorId : Cisco.Ucs.Cmdlets.GetUcsTechSupport
[color=#ff0000][/color]
i have no idea why. i loaded the lastest ucs powershell files from dec 2012, ver 0.9.11.0 , still no change. again when i run the other 2 cmds it creates the files on my C: drive perfectly fine.

 
 [/quote]
 
Benton,
How long after the warning do you see the error? When you get this error from PowerTool; Can you try getting Fex tech-support from UCSM GUI? My guess it that fex tech support collection is taking time and the process is timing out. Let me know if this happens consistenly, I will have someone take a look at it.
Thanks,
Vikrant</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2013-03-15T12:14:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: UCS mgmt pack for SCOM 2012 not collecting data</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13044546" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13044546</id>
    <updated>2013-03-14T20:13:19Z</updated>
    <published>2013-03-14T20:13:19Z</published>
    <summary type="html">Paarin,
Then the problem very likely is your configuration. If you can verify ones that the configuration is as per the document. If you still see the issue, drop me an email at [url=mailto:vvb@cisco.com]vvb@cisco.com[/url] and we will look at your setup and help you out.
Thanks,
Vikrant</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2013-03-14T20:13:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Powertool installation unable to detect .Net framework</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13041699" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13041699</id>
    <updated>2013-03-14T19:20:39Z</updated>
    <published>2013-03-14T19:20:39Z</published>
    <summary type="html">kaushal,
This should have worked. May be the extra text in the version number is messing up something. let me quickly check the parsing logic and get back to you.
drop me your email id at [url=mailto:vvb@cisco.com]vvb@cisco.com[/url] and I will drop you a build by tomorrow.
Thanks,
Vikrant</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2013-03-14T19:20:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: UCS mgmt pack for SCOM 2012 not collecting data</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13040587" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13040587</id>
    <updated>2013-03-14T18:26:02Z</updated>
    <published>2013-03-14T18:26:02Z</published>
    <summary type="html">[quote=Paarin Mehta]
Matt Martin:

I have a similar issue using the 2.5 version of the Cisco UCS management pack.  I have installed per the provided documentation and all was successful.  I’m using the current Cisco emulator to test the management pack with our DEV SCOM system.  The account used for the MP install is the config ID. 
Everything tests successfully and the emulator is discovered, but stays unmonitored.  I verified the discovery rules are enabled.
The Run-As-Account is configured using less-secure method and has been associated with the MP profile.
What do I need to do so that the UCS Instance changes from unmonitored to monitored in SCOM.
My DEV version of SCOM is 2012 released CU1, no SP1.
Thanks,
-Matt.
 


I am having the exact same problem. All my credentials look correct, and when I test the connection during the setup, all is successful. Its been several hours and all the components still show as "unmonitored". Is there any way to force this to attempt to collect the data? I have tried reinstalling the management pack as well. 
 [/quote]
 
The 2.6 version of the MP is released on CDN. You should not notice this problem with that. v2.5 has an issue which shows up in some scenarios - specifically when you have a resource pool configuration on the Management servers. This problem would not show up if you have a single management server. There is a patch available for v2.5 to fix this; but I would suggest trying out v2.6.</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2013-03-14T18:26:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Powertool installation unable to detect .Net framework</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13040444" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=13040444</id>
    <updated>2013-03-14T18:17:41Z</updated>
    <published>2013-03-14T18:17:41Z</published>
    <summary type="html">[quote=Kaushal Shah]Trying to install Cisco UCS Powertool 1.0 but the installation fails with the following error message even though this xp system has .net framework 2.0, 3.0, 3.5 and 4.0 installed. Any ideas?
 
---------------------------
Cisco UCS PowerTool - InstallShield Wizard
---------------------------
Microsoft .NET Framework 2.0 or higher needs to be installed for this installation to continue.
---------------------------
OK   
---------------------------[/quote]
 
Kaushal,
 
Can you put the following snippets in a file. Name it test.vbs. Fire a cmd prompt; navigate to the path where test.vbs exists and execute "cscript test.vbs". email me the results of it [url=mailto:vvb@cisco.com]vvb@cisco.com[/url].
 
 
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\cimv2")
set shellObj = WScript.CreateObject("WScript.Shell")
Set colItems = objWMIService.ExecQuery("Select * from CIM_Datafile Where Name = '" &amp; Replace((shellObj.ExpandEnvironmentStrings("%Windir%")), "\", "\\") &amp; "[url=file://system32//mscoree.dll']\\system32\\mscoree.dll'[/url]")
For Each objItem in colItems
 WScript.StdOut.WriteLine "[Registry Values]"
 WScript.StdOut.WriteLine "Version = " &amp; objItem.Version
Next
 
 
Thanks,
Vikrant</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2013-03-14T18:17:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: UCS SCO Integration Pack - connection failed</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=8889280" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=8889280</id>
    <updated>2012-11-28T15:26:17Z</updated>
    <published>2012-11-28T15:26:17Z</published>
    <summary type="html">Remy,
Can you try leaving the PSModulePath Empty and try the same. If that does not resolve the issue, then please email ucs-sco@cisco.com with screenshot of the issue and we will agree on a time slot to look at this issue on your setup.
Thanks,
Vijay Vikrant Balyan</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-11-28T15:26:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to use new cmdlet generated from ConvertTo-UCSCmdlet</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=8888857" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=8888857</id>
    <updated>2012-11-28T15:01:44Z</updated>
    <published>2012-11-28T15:01:44Z</published>
    <summary type="html">Hi,
Please take a look at the attached presentation for getting to know ConvertTo-UcsCmdlet better. It does not generate one single cmdlet. It generates a PowerShell script that can be executed to simulate the same operation again.
Thanks,
Vijay Vikrant Balyan
[quote=tbenne13.jhmi.edu (simulated)]Hi,
I am new to powertool but not to powershell and and having a problem with the usage of the result from ConvertTo-UCSCmdlet. I just created a new service profile from a template and verified it completed successfully. I found the xml in the log file and pasted just that to a new txt file then ran the ConvertTo-UCSCmdlet cmdlet with the -xml parameter and the path to the file i created with the xml. It completed successfully with a warning "WARNING: Please review the generated cmdlets before deployment." not a big deal and shows the cmdlets as output. Everything looks good. Now my quastion is: I assume a new cmdlet was created that performs the task that was in the XML, How do I now use that new command? what is the new cmdlet?
 
thanks,
tim[/quote]</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-11-28T15:01:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: iSCSI boot using the initiator pool; powertool script not running</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=8888572" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=8888572</id>
    <updated>2012-11-28T14:44:44Z</updated>
    <published>2012-11-28T14:44:44Z</published>
    <summary type="html">John,
We have spotted a change that needs to be done in ConvertTo-UcsCmdlet to set this right.
The issue is with the below cmdlet in the set. There is caused because of a missing 'Set' Verb for an MO. 
[color=#525252]$mo_8_1_2_1 = $mo_8_1_2 | Set-UcsManagedObject -PropertyMap @{IdentPoolName="iscsi-initiator-pool"; }[/color]
 
A fix would be available in 0.9.11.0
 
Thanks,
Vijay Vikrant Balyan</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-11-28T14:44:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: UCS SCO Integration Pack - connection failed</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=8888486" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=8888486</id>
    <updated>2012-11-28T14:40:54Z</updated>
    <published>2012-11-28T14:40:54Z</published>
    <summary type="html">Remy,
Have you installed Cisco UCS PowerTool? You need PowerTool to make Cisco SCO OIP work.
If yes,  then can you tell us more about what is the activity you are using and what data did you feed in.
 
Thanks,
Vijay Vikrant Balyan</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-11-28T14:40:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: SCOM MP for 2007 r2... Installed, now what?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=7841743" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=7841743</id>
    <updated>2012-10-19T11:47:40Z</updated>
    <published>2012-10-19T11:47:40Z</published>
    <summary type="html">Hi Daren,
Have you made any progress on this issue?
If not, please contact me at vvb@cisco.com. I can help you out here.
 
Thanks,
Vijay Vikrant Balyan</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-10-19T11:47:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: PowerTool install failed: checking for powershell.exe</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=7841712" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=7841712</id>
    <updated>2012-10-19T11:45:28Z</updated>
    <published>2012-10-19T11:45:28Z</published>
    <summary type="html">[color=#525252]Troyan,[/color]
 
There seems to be an issue with WMI service on your machine. You should use the WMI diagnosis utility ([url=http://technet.microsoft.com/en-us/library/ff404265.aspx]http://technet.microsoft.com/en-us/library/ff404265.aspx[/url]) to make sure that the service is working as intended.
[color=#525252]Thanks,[/color]
[color=#525252]Vijay Vikrant Balyan[/color]</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-10-19T11:45:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: UCS mgmt pack for SCOM 2012 not collecting data</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=7748801" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=7748801</id>
    <updated>2012-10-17T15:00:40Z</updated>
    <published>2012-10-17T15:00:40Z</published>
    <summary type="html">Hi Jed,
I can help you with the issue. 
Can you check the following to start with
(1) The Run-As-Account is configured as in the quick start guide. Are you using less-secure or more-secure. If you are using more-secure, have you distributed the accounts manually?
(2) Is the Run-As-Account associated to the MP profile.
 
You can directly write to me at vvb@cisco.com to speed up the resolution. I can also help you do a webex with the engineering team, If required.
 
Thanks,
Vijay Vikrant Balyan
 </summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-10-17T15:00:40Z</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=2049005&amp;messageId=5978961" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5978961</id>
    <updated>2012-07-03T07:15:31Z</updated>
    <published>2012-07-03T07:15:31Z</published>
    <summary type="html">Hi Abhishek,

Powershell.exe can take various parameters. -Command "Powershell/PowerTool cmdlet" or -File "Path to .ps1 file"
You can use this directly in your bat file and you should be good to go..

Refer the below links for more information and sample usage,
http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/48d0f136-a8cc-4db3-bb66-72771a519d41/
http://stackoverflow.com/questions/6605039/running-ps1-script-using-a-batch-file-bat
http://stackoverflow.com/questions/932291/calling-powershell-cmdlets-from-windows-batch-file


Thanks,
-Vikrant</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-07-03T07:15:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: ConvertTo-UCSCmdlet - Error - any idea?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5978945" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5978945</id>
    <updated>2012-07-03T07:04:42Z</updated>
    <published>2012-07-03T07:04:42Z</published>
    <summary type="html">Please use "ConvertTo-UcsCmdlet -Verbose" with out the -GuiLog parameter. This will have the same behavior as with -GuiLog.
This is an issue and we will be taking care of it in the next release. 0.9.9.0

Thanks,
-Vikrant</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-07-03T07:04:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Powertool - Get-UcsTimezone errors</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5712176" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5712176</id>
    <updated>2012-05-11T05:53:32Z</updated>
    <published>2012-05-11T05:53:32Z</published>
    <summary type="html">This is probably a UCSM issue. The xml response that gets sent from UCSM needs to escape the "&amp;" character. 
 

PS C:\Users\vvb&gt; Get-UcsTimezone -xml
==&gt;savbu-tpi02:&lt;configResolveClass classId="commDateTime" cookie="1336707263/b9efa1f9-efdc-4e43-98ed-19edcbcfd815" inHierarchical="false" /&gt;
&lt;==savbu-tpi02: &lt;configResolveClass cookie="1336707263/b9efa1f9-efdc-4e43-98ed-19edcbcfd815" response="yes" classId="commDateTime"&gt; &lt;outConfigs&gt;  &lt;com
mDateTime adminState="enabled"  date="1969-12-31T17:00:00.000" descr="" dn="sys/svc-ext/datetime-svc" intId="24119" name="" port="0" proto="none"   ti
mezone="America/Edmonton (Mountain Time - Alberta, east British Columbia &amp; west Saskatchewan)"/&gt; &lt;/outConfigs&gt; &lt;/configResolveClass&gt;
Get-UcsTimezone : savbu-tpi02:An error occurred while parsing EntityName. Line 1, position 360.
At line:1 char:16
+ Get-UcsTimezone &lt;&lt;&lt;&lt;  -xml
    + CategoryInfo          : NotSpecified: (:) [Get-UcsTimezone], Exception
    + FullyQualifiedErrorId : 300,Cisco.Ucs.Cmdlets.GetUcsTimezone


Thanks,
Vijay Vikrant Balyan</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-05-11T05:53:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: Applying changes to Service Profiles in a specific Sub-Organization</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5541904" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5541904</id>
    <updated>2012-04-30T19:51:26Z</updated>
    <published>2012-04-30T19:51:26Z</published>
    <summary type="html">Matt,

Just wanted to mention that it was a quick one that i posted. 

But you should note that It does not take care of orgs within orgs. And so It also does not take care of same org name appearing at multiple level.

The below should take care of displaying Orgs from all levels.. But Get-Unique will eliminate multiple entries of the same name, even when they are at different Org levels.
$orgNameList = $org | Get-UcsOrg -Hierarchy | % {$a = $_.Rn; if([Regex]::IsMatch($a,"org-*")){ $a }} | Get-Unique


Thanks,
Vijay Vikrant Balyan</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-04-30T19:51:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Applying changes to Service Profiles in a specific Sub-Organization</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5531084" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5531084</id>
    <updated>2012-04-27T20:55:06Z</updated>
    <published>2012-04-27T20:55:06Z</published>
    <summary type="html">Hey Matt,

Do you want something like the following,

# Import the UCS PowerTool module
Import-Module CiscoUcsPs

# Connect to the UCS System
$user = "username"
$password = "xxxxx" | ConvertTo-SecureString -AsPlainText -Force
$cred = New-Object system.Management.Automation.PSCredential($user, $password)
Connect-Ucs ucs-pod01 -Credential $cred

# Get all the available Orgs
$org = Get-UcsOrg -Level root

# Get a list of all the Orgs Present
$orgNameList = $org | Get-UcsOrg -Hierarchy | % {$a = $_.Dn; $b=$a.split("/"); $b[1] } | Get-Unique

# Print the list
Write-Host "Available Orgs:"
Write-Host "=============="
$orgNameList

# Ask user to select one of the Orgs from the above printed list
$selectedOrgName = Read-Host "Select an Org to continue"

# Derive the MO for the selected Org
$selectedOrgMo = Get-UcsOrg -Level root | Get-UcsOrg -Name $selectedOrgName

Write-Host "Powering on all Service Profiles in Org " $selectedOrgName
$selectedOrgMo | Get-UcsServiceProfile | Set-UcsServerPower -State admin-up -Force




Sample Output:
============


Available Orgs:
==============
org-A
org-B
org-destOrg
org-Finance

Select an Org to continue: A

Powering on all Service Profiles in Org A
State : admin-up
Dn : org-root/org-A/ls-Asp/power
Rn : power
Status : modified
Ucs : ucs-pod01</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-04-27T20:55:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: PowerTool: Authenticating to multiple systems in an XML credential file</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5414612" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5414612</id>
    <updated>2012-04-06T15:02:46Z</updated>
    <published>2012-04-06T15:02:46Z</published>
    <summary type="html">Have you run the following cmdlet before trying to connect multiple UCS?

Set-UcsPowerToolConfiguration -SupportMultipleDefaultUcs $true</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-04-06T15:02:46Z</dc:date>
  </entry>
  <entry>
    <title>RE: best way to query WWPN of all HBA</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5105734" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5105734</id>
    <updated>2012-02-06T11:59:08Z</updated>
    <published>2012-02-06T11:59:08Z</published>
    <summary type="html">If you make use of the Cisco UCS powertool 0.9.6.0, then the in-built Ucs Cmdlets will take care of forming and sending the xml query for you.
 
PS C:\&gt; Get-UcsServiceProfile -type instance | Get-UcsVhba | Get-UcsVhbaInterface | select Dn,Initiator,Vnet
 
Dn Initiator Vnet
-- --------- ----
org-root/ls-sp11/fc-hba1/if-default  20:00:00:25:B5:AA:AA:AA 1
org-root/ls-test/fc-vhba2/if-default 20:00:00:25:B5:DD:DD:DD 2 
 
 
The -xml option gives us more details about the internal functioning of the cmdlet. 
It shows us the query that was generated and sent when we executed the cmdlet and the response we received.
 
PS C:\&gt; Get-UcsServiceProfile -type instance -xml
 
==&gt;bgl-samc17:&lt;configResolveClass classId="lsServer" cookie="1328522891/149f3955-d9f4-460f-bac1-c6458fd9379c" inHierarchical="false"&gt;&lt;inFilter&gt;&lt;and&gt;&lt;e
q class="lsServer" property="type" value="instance" /&gt;&lt;wcard class="lsServer" property="dn" value="^org-root/" /&gt;&lt;/and&gt;&lt;/inFilter&gt;&lt;/configResolveClass
&gt;
 
&lt;==bgl-samc17: &lt;configResolveClass cookie="1328522891/149f3955-d9f4-460f-bac1-c6458fd9379c" response="yes" classId="lsServer"&gt; &lt;outConfigs&gt;  &lt;lsServer
 agentPolicyName="" assignState="unassigned" assocState="unassociated" biosProfileName="" bootPolicyName=""  configQualifier="" configState="not-appli
ed" descr="" dn="org-root/ls-sp11" dynamicConPolicyName="" extIPState="none" fltAggr="1" fsmDescr="" fsmFlags="" fsmPrev="ConfigureSuccess" fsmProgr="
100" fsmRmtInvErrCode="none" fsmRmtInvErrDescr="" fsmRmtInvRslt="" fsmStageDescr="" fsmStamp="2012-02-06T05:46:13.595" fsmStatus="nop" fsmTry="0" host
FwPolicyName="" identPoolName="" intId="186797" localDiskPolicyName="" maintPolicyName="" mgmtAccessPolicyName="" mgmtFwPolicyName="" name="sp11" oper
BiosProfileName="" operBootPolicyName="org-root/boot-policy-default" operDynamicConPolicyName="" operHostFwPolicyName="" operIdentPoolName="org-root/u
uid-pool-default" operLocalDiskPolicyName="org-root/local-disk-config-default" operMaintPolicyName="org-root/maint-default" operMgmtAccessPolicyName="
" operMgmtFwPolicyName="" operPowerPolicyName="org-root/power-policy-default" operScrubPolicyName="org-root/scrub-default" operSolPolicyName="" operSr
cTemplName="" operState="unassociated" operStatsPolicyName="org-root/thr-policy-default" operVconProfileName="" owner="management" pnDn="" powerPolicy
Name="default"  scrubPolicyName="" solPolicyName="" srcTemplName="" statsPolicyName="default"  type="instance" usrLbl="" uuid="derived" uuidSuffix="00
00-000000000000" vconProfileName=""/&gt;  &lt;lsServer agentPolicyName="" assignState="unassigned" assocState="unassociated" biosProfileName="" bootPolicyNa
me=""  configQualifier="insufficient-resources,mac-address-assignment" configState="failed-to-apply" descr="" dn="org-root/ls-test" dynamicConPolicyNa
me="" extIPState="none" fltAggr="4294967299" fsmDescr="Configuring Service Profile test(FSM:sam:dme:LsServerConfigure)" fsmFlags="sam:dme:LsServerConf
igure:modification" fsmPrev="ConfigureApplyIdentifiers" fsmProgr="45" fsmRmtInvErrCode="none" fsmRmtInvErrDescr="" fsmRmtInvRslt="" fsmStageDescr="Res
olving and applying identifiers(FSM-STAGE:sam:dme:LsServerConfigure:ApplyIdentifiers)" fsmStamp="2012-02-06T10:10:29.915" fsmStatus="ConfigureApplyIde
ntifiers" fsmTry="1" hostFwPolicyName="" identPoolName="" intId="186914" localDiskPolicyName="default" maintPolicyName="" mgmtAccessPolicyName="" mgmt
FwPolicyName="" name="test" operBiosProfileName="" operBootPolicyName="org-root/boot-policy-default" operDynamicConPolicyName="" operHostFwPolicyName=
"" operIdentPoolName="org-root/uuid-pool-default" operLocalDiskPolicyName="org-root/local-disk-config-default" operMaintPolicyName="org-root/maint-def
ault" operMgmtAccessPolicyName="" operMgmtFwPolicyName="" operPowerPolicyName="org-root/power-policy-default" operScrubPolicyName="org-root/scrub-defa
ult" operSolPolicyName="" operSrcTemplName="" operState="config-failure" operStatsPolicyName="org-root/thr-policy-default" operVconProfileName="" owne
r="management" pnDn="" powerPolicyName="default"  scrubPolicyName="" solPolicyName="default" srcTemplName="" statsPolicyName="default"  type="instance
" usrLbl="" uuid="12340000-0000-0000-0000-000000000000" uuidSuffix="0000-000000000000" vconProfileName=""/&gt; &lt;/outConfigs&gt; &lt;/configResolveClass&gt;
 
 
 
 
PS C:\&gt; Get-UcsServiceProfile -type instance | Get-UcsVhba -xml
 
==&gt;bgl-samc17:&lt;configResolveClass classId="vnicFc" cookie="1328522891/149f3955-d9f4-460f-bac1-c6458fd9379c" inHierarchical="false"&gt;&lt;inFilter&gt;&lt;or&gt;&lt;wcar
d class="vnicFc" property="dn" value="^org-root/ls-sp11/" /&gt;&lt;wcard class="vnicFc" property="dn" value="^org-root/ls-test/" /&gt;&lt;/or&gt;&lt;/inFilter&gt;&lt;/configR
esolveClass&gt;
 
&lt;==bgl-samc17: &lt;configResolveClass cookie="1328522891/149f3955-d9f4-460f-bac1-c6458fd9379c" response="yes" classId="vnicFc"&gt; &lt;outConfigs&gt;  &lt;vnicFc ada
ptorProfileName="" addr="20:00:00:25:B5:AA:AA:AA" adminVcon="any" bootDev="disabled"  configQualifier="" configState="not-applied" dn="org-root/ls-sp1
1/fc-hba1" equipmentDn="" fltAggr="0" identPoolName="" instType="manual" maxDataFieldSize="2048" name="hba1" nodeAddr="20:00:00:25:B5:BB:BB:BB" nwTemp
lName="" operAdaptorProfileName="org-root/fc-profile-default" operIdentPoolName="org-root/wwn-pool-default" operNwTemplName="" operOrder="1" operPinTo
GroupName="" operQosPolicyName="" operSpeed="line-rate" operStatsPolicyName="org-root/thr-policy-default" operVcon="any" order="1" owner="logical" per
sBind="disabled" persBindClear="no" pinToGroupName="" qosPolicyName=""  statsPolicyName="default"  switchId="A" type="fc"/&gt;  &lt;vnicFc adaptorProfileNam
e="" addr="20:00:00:25:B5:DD:DD:DD" adminVcon="any" bootDev="disabled"  configQualifier="" configState="not-applied" dn="org-root/ls-test/fc-vhba2" eq
uipmentDn="" fltAggr="0" identPoolName="" instType="manual" maxDataFieldSize="2048" name="vhba2" nodeAddr="20:00:00:25:B5:CC:CC:CC" nwTemplName="" ope
rAdaptorProfileName="org-root/fc-profile-default" operIdentPoolName="org-root/wwn-pool-default" operNwTemplName="" operOrder="unspecified" operPinToGr
oupName="" operQosPolicyName="" operSpeed="line-rate" operStatsPolicyName="org-root/thr-policy-default" operVcon="any" order="1" owner="logical" persB
ind="disabled" persBindClear="no" pinToGroupName="" qosPolicyName=""  statsPolicyName="default"  switchId="A" type="fc"/&gt; &lt;/outConfigs&gt; &lt;/configResolv
eClass&gt;
 
 
PS C:\&gt; Get-UcsServiceProfile -type instance | Get-UcsVhba | Get-UcsVhbaInterface -xml
 
==&gt;bgl-samc17:&lt;configResolveClass classId="vnicFcIf" cookie="1328522891/149f3955-d9f4-460f-bac1-c6458fd9379c" inHierarchical="false"&gt;&lt;inFilter&gt;&lt;or&gt;&lt;wc
ard class="vnicFcIf" property="dn" value="^org-root/ls-sp11/fc-hba1/" /&gt;&lt;wcard class="vnicFcIf" property="dn" value="^org-root/ls-test/fc-vhba2/" /&gt;&lt;/
or&gt;&lt;/inFilter&gt;&lt;/configResolveClass&gt;
 
&lt;==bgl-samc17: &lt;configResolveClass cookie="1328522891/149f3955-d9f4-460f-bac1-c6458fd9379c" response="yes" classId="vnicFcIf"&gt; &lt;outConfigs&gt;  &lt;vnicFcIf
  dn="org-root/ls-sp11/fc-hba1/if-default" initiator="20:00:00:25:B5:AA:AA:AA" name="default" operState="indeterminate" operVnetDn="fabric/san/net-def
ault" operVnetName="default" owner="logical"   switchId="A" type="fc" vnet="1"/&gt;  &lt;vnicFcIf  dn="org-root/ls-test/fc-vhba2/if-default" initiator="20:0
0:00:25:B5:DD:DD:DD" name="vsan2" operState="indeterminate" operVnetDn="fabric/san/net-vsan2" operVnetName="vsan2" owner="logical"   switchId="A" type
="fc" vnet="2"/&gt; &lt;/outConfigs&gt; &lt;/configResolveClass&gt;
 
 
PS C:\&gt; Get-UcsServiceProfile -type instance | Get-UcsVhba | Get-UcsVhbaInterface | select Dn,Initiator,Vnet
 
Dn Initiator Vnet
-- --------- ----
org-root/ls-sp11/fc-hba1/if-default  20:00:00:25:B5:AA:AA:AA 1
org-root/ls-test/fc-vhba2/if-default 20:00:00:25:B5:DD:DD:DD 2 
 
 
You can download the lastest version of Cisco UCS PowerTool 0.9.6.0 and Getting Started guide from
http://developer.cisco.com/web/unifiedcomputing/microsoft
 
 
Thanks,
Vijay Vikrant Balyan</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-02-06T11:59:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: best way to query WWPN of all HBA</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5105474" />
    <author>
      <name>Vijay Balyan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=2049005&amp;messageId=5105474</id>
    <updated>2012-02-06T08:17:51Z</updated>
    <published>2012-02-06T08:17:51Z</published>
    <summary type="html">Eelco,

Yes, your first approach seems right. You can get the {wwpn,vsans} of all the HBAs using the Cisco UCS powertool 0.9.6.0

#Connect to the UCS system
PS C:\&gt; Connect-Ucs &lt;ucs1&gt;

#Get wwpns of all the HBAs
PS C:\&gt; Get-UcsServiceProfile -type instance | Get-UcsVhba | Get-UcsVhbaInterface | select Dn,Initiator,Vnet

Dn                                                                     Initiator                                          Vnet
--                                                                       ---------                                            ----
org-root/ls-sp11/fc-hba1/if-default                 20:00:00:25:B5:AA:AA:AA                   1
org-root/ls-test/fc-vhba2/if-default                 20:00:00:25:B5:DD:DD:DD                  2 


You can download the lastest version of Cisco UCS PowerTool 0.9.6.0 and Getting Started guide from
http://developer.cisco.com/web/unifiedcomputing/microsoft

Thanks,
Vijay Vikrant Balyan</summary>
    <dc:creator>Vijay Balyan</dc:creator>
    <dc:date>2012-02-06T08:17:51Z</dc:date>
  </entry>
</feed>

