Command Line Utilities

Any of these commands can be run with a --help argument to print a usage statement.

Synchronize VMs

/opt/cloudbolt/ sync_vms_from_rh

This script scans a resource handler for VM information, creates new CloudBolt server records for the VMs that don’t yet have a server record, deletes records for VMs that no longer exist, and updates all records with the latest power status and hardware information.

Import Networks

/opt/cloudbolt/ sync_networks_from_rh

Similar to sync_vms_from_rh, except this command scans resource handlers for networks instead of servers. If CloudBolt isn’t already aware of a given network, a new record is created, and admins can use the web interface to make those networks available during VM deployment (under Admin -> Resource Handlers).

Export and/or Email Simple CSV Report

This command can be used to export or email CSV reports about servers, their associations, rates, and hardware.


Example: Generate a Consolidated IT Report

CloudBolt can generate a consolidated IT report with all servers with the following command:

/opt/cloudbolt/ export_server_info --fields=hostname,ip,sc_nic_0,cpu_cnt,mem_size,disk_size,os_build,group,owner,rate

Example: Generate a Billing Report

CloudBolt can generate a separate billing report for each group, emailing each group admin the report for their group, and also send an email with all reports (e.g., to Xavier):

/opt/cloudbolt/ export_server_info --fields=hostname,ip,cpu_cnt,mem_size,disk_size,os_build,owner,rate --separate --email-group-admins

Note: You can include as many (or as few items) as required for a report, including custom fields.