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.

Notes

  • 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

  1. 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
  2. On the BMC Server Automation Application Server, open a Windows command prompt or a Shell.
  3. Browse to the BMC Server Automation installation folder.
  4. Type nsh and press Enter.
  5. 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}}
  6. 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.

  7. 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 -acquire command. For complete description of this command, see the blcred man page.

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

  1. 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.

  2. 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).

    Notes

    • 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 Reports in 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 Domain attribute to the BMC Server Automation DNS_DOMAIN_NAME property. For more information, see Mapping the BMC Atrium CMDB Domain attribute.

Was this page helpful? Yes No Submitting... Thank you

Comments