UNSOLVED

mfinnigan

updated

15 years ago

M

mfinnigan

25 Posts

0

179885

March 1st, 2012 13:00

RACADM on CMC - get list of iDRAC IP addresses?

So, I've got a few dozen M1000e chassis. The iDRACs in the blade servers are not currently registering their DNS names. I'd like to use RACADM to hit each chassis (I know all of the CMC DNS names and IP addresses), enumerate all of the iDRAC IP addresses in each CMC, then go into each iDRAC and change the DNS name and set it to be registered.

I don't really currently have a complete list of the iDRAC IP addresses themselves, otherwise I would just iterate over those. I'm hoping to harvest them from the CMCs.

Now, in the CMC Web GUI, if I go to each server under Server Overview, there's a button to launch the iDRAC GUI, so clearly the CMC somehow knows these IP addresses. But I'm not seeing anything in the RACADM documentation, or playing around with the command line, that shows me how to see it from there.

I'm open to other ideas for accomplishing the same goal, of course.

  • mfinnigan

    25 Posts

    8766

    0

    Posted March 2nd, 2012 11:00

    Found the answer to this one myself. If I look the following command through all 16 server slots, I'll gather them up together.  

    racadm getniccfg -m server-1

    LOM Model Name            = Embedded LOM

    IPv4 Enabled              = 1

    DHCP Enabled              = 0

    IP Address                = 10.65.230.0

    Subnet Mask               = 255.255.224.0

    Gateway                   = 10.65.224.17

    IPv6 Enabled              = 0

    Autoconfiguration Enabled = 0

    Link local Address        =

    IPv6 Gateway              = ::

    VLAN Enable               = 0

    VLAN ID                   = 1

    VLAN priority             = 0

  • 8766

    0

    Posted March 7th, 2012 12:00

    Hello,

    May I suggest an alternative option. You can use the Remote Enablement interface which uses secure WSMAN protocol by enumerating the class DCIM_BladeServerView from CMC. This will provide you with the blade IP plus a lot more information about the blade.  This is a single command option versus multiple commands as you have found.  Hope this help.

  • DELL-Rob C

    4 Apprentice

    •

    2843 Posts

    8766

    0

    Posted March 7th, 2012 13:00

    Ah, ok.  It looks like that script uses OME/OMSA to get the name, but I'm not too familiar with it.  Just took a shot that it might be useful if you are using OME as well.  Thx! Rob

  • DELL-Rob C

    4 Apprentice

    •

    2843 Posts

    8766

    0

    Posted March 7th, 2012 13:00

    Not sure if this is what you are looking for, but you may review the OME Tips and Tricks doc (#5).

    Thanks,

    Rob

  • DELL-Rob C

    4 Apprentice

    •

    2843 Posts

    8766

    0

    Posted March 7th, 2012 13:00

    Yeah, you use it from OpenManage Essentials... You can run this and target the DRAC group. The script reads the hostname from the DRAC and uses it to configure the name the DRAC registers in DNS along with the AD authentication.  

    I thought in your first post you were trying to register...  But maybe not what you are looking for.

    Rob

  • mfinnigan

    25 Posts

    8766

    0

    Posted March 7th, 2012 13:00

    Not sure what you mean - that's just a PSH script that wraps around RACADM commands. Doesn't really show me how to use WSMAN.

  • mfinnigan

    25 Posts

    8766

    0

    Posted March 7th, 2012 13:00

    That's one step, yes, but first I need to enumerate all of them *and* change the names, prior to setting them to be registered. I did see that script when it was posted, which is nice, but only a piece of what I'm looking to do.  Before I had my script, I didn't have a list of DRAC names or IPs, I only had my list of CMCs.

  • mfinnigan

    25 Posts

    8766

    0

    Posted March 7th, 2012 13:00

    Chris - thanks for the advice. That would involve learning to write WMI queries, which would probably be worthwhile, but something I don't relish tackling. Do you have a preferred language; is PowerShell the best for doing that?

  • 8766

    0

    Posted March 7th, 2012 14:00

    To make use of RE interface in iDRAC, you can use either PowerShell or WinRM command line in Windows. The preference is dependent on your environment. WinRM is mostly used for starters.

    To get you started, here's an example command (replace CMCIPADDR, USER and PASSWORD with actual values):

    C:\>winrm enumerate http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/DCIM_BladeServerView -r:https://CMCIPADDR:443 -u:USER -p:PASSWORD -a:basic -encoding:utf-8 -skipcacheck -skipcncheck

    skipcacheck is not necessary if you have the CMC server certificate installed in the certificate store.

    skipcncheck is not necessary if you have the CMC IP address and name registered in DNS.

    If you're not setup to run winrm or want to know more, see this post: http://en.community.dell.com/.../1949.aspx

    Hope this help.