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

UCS command for assigning WWN address to HBA

568
Views
0
Helpful
0
Comments
Advisor
This document was generated from CDN thread

Created by: Dan Nel on 27-08-2013 12:13:32 AM
Add-UcsVhba -AdaptorProfileName "VMWARE" -wwn "20:0A:00:25:B5:17:1:00" -AdminVcon "any" -MaxDataFieldSize 2048 -Order "1" -PersBind "disabled" -PersBindClear "no" -StatsPolicyName "default" -SwitchId "A" -Name "vHBA-A"For some reason -wwn parameter doesnt work.
Does anyone know the correct parameter for assigning WWN address? 

My another questions is, Is there a command to set the network adapter policy, fabric ID and failover for the network card?(see attached screenshot)
  

Subject: RE: UCS command for assigning WWN address to HBA
Replied by: John McDonough on 27-08-2013 08:21:47 AM
Dan Nel:
Add-UcsVhba -AdaptorProfileName "VMWARE" -wwn "20:0A:00:25:B5:17:1:00" -AdminVcon "any" -MaxDataFieldSize 2048 -Order "1" -PersBind "disabled" -PersBindClear "no" -StatsPolicyName "default" -SwitchId "A" -Name "vHBA-A"For some reason -wwn parameter doesnt work.
Does anyone know the correct parameter for assigning WWN address? 

My another questions is, Is there a command to set the network adapter policy, fabric ID and failover for the network card?(see attached screenshot)
  

Hi Dan,

The parameter is -Addr also the wwn that you have in your example will fail because of the :1: if you mean 1 you need to specify :01:

For the network adapter policy, fabric and failover is set in the Add-UcsVnic or Set-UcsVnic depennding on if you are adding a vnic or setting an existing vnic

The parameter for adaptor policy is -AdaptorProfileName, the fabric and failover are specified by the SwitchId parameter with one of these valid settings A,A-B,B,B-A,NONE

For every Ucs PowerTool Cmdlet you can always type Get-Help and the UCS Cmdlet name for information on the Cmdlet. For Example here is the output from Get-Help Add-UcsVnic

NAME    Add-UcsVnic
SYNOPSIS    Adds Managed Object of type VnicEther.

SYNTAX    Add-UcsVnic -ServiceProfile <LsServer> [-Name] <string> [-AdaptorProfileName <string>] [-Addr <string>] [-AdminVcon <string>]    [-IdentPoolName <string>] [-Mtu <uint>] [-NwCtrlPolicyName <string>] [-NwTemplName <string>] [-Order <string>]    [-PinToGroupName <string>] [-QosPolicyName <string>] [-StatsPolicyName <string>] [-SwitchId <string>] [-ModifyPresent]    [-XtraProperty <Hashtable>] [-Ucs <UcsHandle[]>] [<CommonParameters>]
    Add-UcsVnic -VnicLanConnPolicy <VnicLanConnPolicy> [-Name] <string> [-AdaptorProfileName <string>] [-Addr <string>]    [-AdminVcon <string>] [-IdentPoolName <string>] [-Mtu <uint>] [-NwCtrlPolicyName <string>] [-NwTemplName <string>] [-Order    <string>] [-PinToGroupName <string>] [-QosPolicyName <string>] [-StatsPolicyName <string>] [-SwitchId <string>]    [-ModifyPresent] [-XtraProperty <Hashtable>] [-Ucs <UcsHandle[]>] [<CommonParameters>]

DESCRIPTION    Adds Managed Object of type VnicEther. Represents a logical Ethernet interface within a ls:Server. The interface is realized    when the ls:Server is associated with a physical server and the system can find a suitable hardware Ethernet adapter that can    implement the interface specified in this MO.  From the operating system perspective, each vNIC:Ether instance will be visible    as one network adapter, such as eth0, eth1, eth2...  A vNIC:Ether instance can represent a static vNIC or a dynamic vNIC.

RELATED LINKS
REMARKS    To see the examples, type: "get-help Add-UcsVnic -examples".    For more information, type: "get-help Add-UcsVnic -detailed".    For technical information, type: "get-help Add-UcsVnic -full".


Hope that helps

Regards,
John

Subject: RE: UCS command for assigning WWN address to HBA
Replied by: Eric Williams on 27-08-2013 09:55:56 AM
Another recommendation is to use the cmdlet "convertto-ucscmdlet."  It will monitor the UCS Manager GUI log file when a UCS Manager GUI is running on a system where you have PowerTool installed.  It will allow you to make any needed changes in the GUI, and have convertto-ucscmdlet convert the XML ouput that's logged in a log file on your system via the Java GUI log files, and convert them into cmdlets that PowerTool can use to do the same action.  It is a great way to learn what needs to be sent via PowerTool to do a particular action.

If you are using convertto-ucscmdlet against a real UCS Manager GUI vs a UCS Platform Emulator, make sure you do the following:

$ucs = connect-ucs 1.2.3.4
start-ucsguisession -ucs $ucs -LogAllXml

The -LogAllXml paramter will make sure XML communication is logged to the GUI log files, minus the ones that have security related items in them (ie. passwords).

Let me know if that helps as well.
CreatePlease to create content
This widget could not be displayed.