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. This procedure must be done on the computer where BMC Server Automation Application Server is installed and the same computer must have BMC Server Automation Console installed. 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.
Creating 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
- 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:
roleName should be BLAdmins or its equivalent.
Running the NSH Script Job
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.- 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).