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.
- This procedure is optional and required only if BMC BladeLogic Atrium Integration and BMC Atrium Discovery and Dependency Mapping want to publish information about the same target servers into Atrium CMDB.
- Before you start, verify that your RBAC role has BLAdmins or equivalent authorizations. Additionally, acquire a session credential for the authentication profile that connects with the BMC Server Automation Application Server.
To create the NSH Script Job
- Copy the following files:
<BMC BladeLogic Atrium Integration installation folder>\NSHScripts
<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.
Set the BL_AUTH_PROFILE_NAME environment variable to your user profile by using the following command from the NSH command prompt:
Set the BL_RBAC_ROLE environment variable to your role. by using the following command from the NSH prompt:
roleName should be
BLAdminsor its equivalent.
Ensure that you have acquired the credentials by running the following command:
blcred cred -list
If this command does not list the acquired credentials, then acquire the credentials by using the
blcred cred -acquirecommand. For complete description of this command, see the
Best practice: Run a simple blcli command, such as
Server listAllServers, to verify that the credentials are working properly.
For more information, see the Setting up a Network Shell client to run in proxy mode.
To run the NSH Script Job
On the BMC Server Automation Application Server computer, use the following command to execute the addServerProperty.nsh script:
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).
- The NSH Script Job must be scheduled to run before every run of ETL to make sure that the DNS_DOMAIN_NAME server property is populated for any new servers that are added.
- The DNS_DOMAIN_NAME server property must be set to
Used in Reportsin the Property Dictionary.
- If the NSH Script Job is not run, no data is transferred to the CMDB.
- If you want to rerun the addServerProperty.nsh script, delete ADDMNSHSCRIPTS from the Depot group and ADDM_NSHSCRIPT_JOB from the Job group.
- Map the BMC Atrium CMDB
Domainattribute to the BMC Server Automation
DNS_DOMAIN_NAMEproperty. For more information, see Mapping the BMC Atrium CMDB Domain attribute.