Adding domain names to the servers in BMC Server Automation
This topic provides information about adding domain names to the servers in BMC Server Automation. Perform the following procedure to specify the FQDN (Fully-Qualified Domain Name) values for the servers in BMC Server Automation in the DNS_DOMAIN_NAME property.
To create the NSH Script Job
- Copy the following files:
- addServerProperty.nsh
- getDetailsOfMachineAndAddProperty.nsh
- getWindowsMachineFQDNName.bat
from
<BMC BladeLogic Atrium Integration installation folder>\NSHScripts
to
<BMC Server Automation installation folder>- (Windows) The default BMC Server Automation folder is C:\Program Files\BMC Software\BladeLogic\NSH
- (Linux) The default BMC Server Automation folder is /opt/bmc/bladelogic/NSH
- On the BMC Server Automation Application Server, open a Windows command prompt or a Shell.
- Browse to the BMC Server Automation installation folder.
- Type nsh and press Enter.
Set the BL_AUTH_PROFILE_NAME environment variable to your user profile by using the following command from the NSH command prompt:
{{export BL_AUTH_PROFILE_NAME=profileName}}Set the BL_RBAC_ROLE environment variable to your role. by using the following command from the NSH prompt:
{{export BL_RBAC_ROLE=roleName}}roleName should be BLAdmins or its equivalent.
Ensure that you have acquired the credentials by running the following command:
blcred cred -listIf this command does not list the acquired credentials, then acquire the credentials by using the blcred cred -acquire command. For complete description of this command, see the blcred man page.
To run the NSH Script Job
On the BMC Server Automation Application Server computer, use the following command to execute the addServerProperty.nsh script:
{{nsh addServerProperty.nsh}}This creates an NSH Script named ADDM in the ADDMNSHSCRIPTS folder inside the Depot workspace in the BladeLogic console.
Another NSH Script Job, ADDM_NSHSCRIPT_JOB is created in the ADDM_NSHSCRIPT_JOB folder in the Jobs workspace.From the BMC Server Automation Console, execute the ADDM_NSHSCRIPT_JOB NSH Script Job on all the enrolled servers on which you want to populate the DNS_DOMAIN_NAME server property.
After you execute the job, the DNS_DOMAIN_NAME property for the target servers is populated with the appropriate value (the FQDN of the target).