Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

78821

August 15th, 2013 14:00

PowerEdge VRTX CMC PowerShell WSMAN documentation/examples

Hi All,

I know it's early days for the VRTX, but I'm trying to automate the setup of the chassis via PowerShell and WSMAN and I'm struggling to find any information regarding the Resource URI's for the system.

Could anyone point me in the direction of any documentation that might list the URI which would enable me to manage the settings for the iDracs on the blades, creating virtual disks and mapping them to blades?

Either that or some example commands would be even better!

 

Thanks in advance,
Steve

12 Posts

September 6th, 2013 15:00

Just a follow-up as I'm sorted now. Most of the Resource URI can be found here: http://en.community.dell.com/techcenter/systems-management/w/wiki/1906.dcim-library-profile.aspx Most useful one while starting is the "DCIM Chassis System Info Profile 1.0" PDF. This URI will give you base chassis information such as powerstate, DNS settings, Inventory info etc: http://schemas.dell.com/wbem/wscim/1/cim-schema/2/DCIM_ModularChassisView This URI will give you blade information such as Slot #, Host Name, iDRAC IP details etc: http://schemas.dell.com/wbem/wscim/1/cim-schema/2/DCIM_BladeServerView Sling this into PowerShell so you can view the information as an object and you're good to go! $ChassisInfo=Get-CimInstance -CimSession $session -ResourceUri "http://schemas.dell.com/wbem/wscim/1/cim-schema/2/DCIM_ModularChassisView" -namespace root/dell/cmc

Moderator

 • 

8.8K Posts

August 15th, 2013 14:00

StevybSC,

The URI for the drac interface is https:// ip of drac. You can then use the Remote console to perform those steps

The URI for the OpenManage Mgmt software is https://ip of server:1311

This link is a pdf with powershell commands for the drac. www.google.com/url

Let me know if this helps

12 Posts

August 16th, 2013 05:00

Hi Chris,

Thanks for the quick reply, but I think you've misunderstood me.

I know how to access the various web consoles, but that's not the URI I was after.

I've seen that PDF before and it's a start and I understand the methods etc for doing it as explained in there.

For example:

$IPAddress="192.168.0.20"

$Username="root"

$Password=ConvertTo-SecureString "calvin" -AsPlainText  -Force

$Credentials = New-Object -typename System.Management.Automation.PSCredential -argumentlist $Username, $Password

$cimop=New-CimSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck -Encoding Utf8 -UseSsl

$session=New-CimSession -Authentication Basic -Credential $Credentials -ComputerName $IPAddress -Port 443 -SessionOption $cimop

$query="select * from DCIM_iDRACCardEnumeration WHERE GroupID='Users.1'"

$queryDialect="

$resourceUri="

Get-CimInstance -Query $query -CimSession $session -Namespace root/dcim -QueryDialect $queryDialect -ResourceUri $resourceUri

That PowerShell script would show me the various attributes within the namespace for the iDRACCardEnumeration such as the SNMP settings, local account access etc. because of the specified ResourceUri

$resourceUri="

What I don't know how to get or find are the specific ones for the VRTX chassis CMC and even more specifically if there isn't a complete reference list, the URI's for storage management and controlling the initial settings for the iDracs for the blades in the relevant slots.

I hope this makes it a little clearer?

Thanks in advance,

Steve

2 Intern

 • 

793 Posts

August 20th, 2013 17:00

How about using racadm instead of WS-MAN?  Once the CMC has an IP address you can use remote racadm commands to do pretty much anything you need.

12 Posts

August 23rd, 2013 04:00

Using racadm is a fall back option for me yes, but I'd really like to be able to do this via PowerShell natively rather than calling out to an executable.

12 Posts

September 6th, 2013 15:00

Stupid formatting, sorry :(

26 Posts

December 9th, 2014 11:00

Hi STEVYBSC,

Would you be willing to share some examples of your scripts to configure/report on the VRTX chassis?

No Events found!

Top