Highlighted
Jim Dawson
1 Copper

Unable to configure DNS servers using config file

I'm trying to configure DRACs/CMCs using config files and most of the settings are applying correctly but the DNS Servers and DNS name are not being applied when I do a 'racadm config -f configfile.txt'

Here is the relevant [cfgLanNetworking] section from the config file:

[cfgLanNetworking]

cfgNicEnable=1
cfgNicVLanEnable=0
cfgNicIPv4Enable=1
cfgNicUseDhcp=0
cfgDNSDomainNameFromDHCP=0
cfgDNSRacName=MYSERVRRACNAME
cfgDNSRegisterRac=1
cfgDNSServersFromDHCP=0
cfgNicIpAddress=192.168.0.111
cfgNicNetmask=255.255.255.0
cfgNicGateway=192.168.0.1
cfgDNSServer1=192.168.1.1
cfgDNSServer2=192.168.2.2
cfgDNSDomainName=mydomain.com

If I run the configuration again (without issuing a 'racadm racresetcfg' first) the settings do get applied properly.

The server i'm using for testing is a m610 however I will be needing to use the same method on several other 11g and 12g (possibly 13g soon) server models as well.

Does anyone have any suggestions? Is this something unique to 11g servers or the m610 specifically (or do other models have other similar quirks?)  Or should I just push multiple configuration files to address this kind of issue?

Thanks in advance

Tags (1)
0 Kudos
9 Replies
Moderator
Moderator

RE: Unable to configure DNS servers using config file

Jim Dawson,

There is a couple things i wanted to clarify with you. With this being a test server, are you inserting the blade into the enclosure right before trying this? If so what was the delay between when you inserted the blade and you powered up to the configuration file? The reason I ask as this sounds like the iDrac is not completely started up when the configuration is pushed. If this is the case then if you leave the Blade in the server for a couple minutes prior to powering it on the iDrac should complete it's start up.

Also, with the "racadm racresetcfg" issue, the Drac may take up to 2 minutes after the racresetcfg command before the iDrac will be ready to take the configuration file. 

Lastly I would also verify that the CMC, as well as the Blade are up to date and current as well.

Let me know how it goes.

Chris Hawk

Dell | Social Outreach Services - Enterprise
Get Support on Twitter @DellCaresPro 
Download the Dell Quick Resource Locator app today to access PowerEdge support content on your mobile device! (iOS, Android, Windows)

0 Kudos
Jim Dawson
1 Copper

RE: Unable to configure DNS servers using config file

I am issuing a 'racadm racresetcfg' and then waiting several minutes before pushing the configuration file.

The CMC is at 4.50, DRAC is at 3.60

0 Kudos
nadogmoney
3 Argentium

RE: Unable to configure DNS servers using config file

Are you getting any errors from racadm config or is it just not setting?

0 Kudos
Jim Dawson
1 Copper

RE: Unable to configure DNS servers using config file

No errors at all, and as far as I can tell everything else is set correctly.

0 Kudos
nadogmoney
3 Argentium

RE: Unable to configure DNS servers using config file

Can you try direct without an INI file and see what you get?

racadm config -g cfglannetworking -o cfgDNSserver2 192.168.2.2

0 Kudos
Jim Dawson
1 Copper

RE: Unable to configure DNS servers using config file

Yes, this does work. After the initial push of the configuration file I can get the missing settings by either entering them in individually or by pushing the configuration file again.

0 Kudos
nadogmoney
3 Argentium

RE: Unable to configure DNS servers using config file

I am at a loss for this one. Except in real early 12th gen components, the idrac should return a non 0 exit code and an error message if something isn't set.

Maybe the idrac isn't fully back up after the racresetcfg before the import?

This is what I do:

  1. racadm racreset (or racresetcfg)
  2. sleep 2 mins
  3. loop until "racadm getsysinfo" returns a 0 exit code,sleeping 10 seconds if 0 is not returned. Have a max loop counter here as the idrac isn't reliable to come back up all the time.
  4. import config

0 Kudos
Jim Dawson
1 Copper

RE: Unable to configure DNS servers using config file

Still didn't work.

I even tried manually enabling the NIC and setting the DRAC IP/Submask/Gateway before applying the configuration. Still didn't work unless I push the configuration a 2nd time once the DRAC becomes responsive again.

0 Kudos
Jim Dawson
1 Copper

RE: Unable to configure DNS servers using config file

I have repeated the test on another 11G and 12G server. The 12G server worked OK, the 2nd 11G server exhibited the same behavior, except in some cases importing the configuration file multiple times did not correct the missing items.

 

0 Kudos