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.
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.
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
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.
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.
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?
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):
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