Installing Inventory templates and other scripts
The templates and scripts are included in the Inventory-Templates.zip file. The file also includes the Content Installer, which you need to run to install the templates and scripts.
The Inventory-Templates.zip file includes the Content Installer and the following artifacts:
- Templates for Inventory reports.
- The collect_agent_logs.nsh script, which is needed to create agent log collection jobs. For more information, see Setting-up-data-collection-for-Command-Usage-reports.
- The run_etl_from_om.nsh script, which is needed to create a Network Shell Script Job to run the ETL process. For more information, see Running-ETL-using-BMC-Server-Automation-jobs.
Before you begin
Perform the following steps before running the Content Installer:
- Access the Inventory-Templates.zip file from the BDSSAInstallationDirectory/contents directory.
- Verify that your BMC Server Automation Application Server environment meets the following prerequisites (for information about setting up the Installing BMC Server Automation on Windows and Installing BMC Server Automation on Linux and UNIX).
- is installed on the Application Server.
The agentinfo command should work and display correct information when executed on the
Application Server.
To verify that the command works, start NSH and run the command as follows:agentinfo <hostName>where <hostName> is the Application Server name.
The command should return a message similar to the following:localhost:
Agent Release: :8.1.0.237
Hostname: :vm-w23-rds896
Operating System:WindowsNT 5.2
User Permissions:BladeLogicRSCD@VM-W23-RDS896->Administrator@VM-23-RDS896:PrivilegeMapped(Identity via trust)
Security :Protocol=5, Encryption=TLS1
Host ID :24612116
# of Processors: 1
License Status :Licensed for NSH/CM
Application Server, see
To run the content installer
- Locate the Inventory-Templates.zip file in the BDSSAInstallationDirectory/contents directory.
- Extract the zip file to a directory of your choice on the Application Server.
- On the BMC Server Automation Application Server, from a command prompt, navigate to the directory, in which you extracted the files in the previous step.
Run the blcred utility to acquire credentials, as follows:
blcred cred -acquireFor more information about how to acquire credentials using the blcred utility, see Using the blcred utility.
- Enter the following parameters for the utility:
- Profile Name: Name of the profile created on BMC Server Automation
- User Name: BMC Server Automation user
- Password: Password for the BMC Server Automation user
Execute the following scripts in any order:
nsh load-bsara-nsh-script.nsh -v <authenticationProfileName>nsh load-bl-inventory-templates.nsh -v <authenticationProfileName>where <authenticationProfileName> is the authentication profile name for the local or remote application server. Use this parameter if you do not want to use the default profile or there is no default profile.
The first script provides the following options:
- Load BladeLogic Reports Scripts - Collect Agent Logs: Imports the collect_agent_logs.nsh script. Use this option if you want to create agent log collection jobs.
- Load BladeLogic Reports Scripts - Run ETL: Imports the run_etl_from_om.nsh script. Use this option if you want to create a BMC Server Automation Server Network Shell Script Job to run the ETL process.
- Load All: Loads both the collect_agent_logs.nsh and run_etl_from_om.nsh scripts. BMC recommends that you use this option.
- Exit: Stops the execution of the load-bsara-nsh script.
The second script provides options to import the Inventory templates for your operating system type. Use the option to load the Inventory templates, which are required for Inventory reporting, for your operating system type.
When you run these scripts, a log file, called content-install.log, is created in the contents_installer directory.
To locate the scripts
Log on to
to locate the templates and scripts.- Inventory templates are located in the Component Templates\BladeLogic Inventory Templates folder.
- The collect_agent_logs.nsh and run_etl_from_om.nsh scripts are located in the Depot\BladeLogic Reports Scripts\Collect Agent Log directory.
Use
to create Discovery and Snapshot Jobs. Run the jobs on a regular basis to collect the inventory data. For information about setting up jobs, see Creating and modifying BMC Server Automation jobs.