Exporting Groups to CSV

Some users may find the need to export custom groups.

Individual groups can be exported to CSV using Turbonomic’s UI:

_images/group_to_csv.gif

For exporting all groups in a Turbonomic instance, you can use the export_groups_to_csv.py example script.

Installation

Place export_groups_to_csv.py into the same directory as csv_to_static_groups.py and vmtconnect.py

Script Usage

$ ./export_groups_to_csv.py output.csv -u administrator

Sample Output

_images/export_csv.png

Script Options

Required Arguments (In positional order)

"output_csv"

Path to input csv

Optional arguments. Text between quotations indicates user specified content.

-h, --help

Show options.

--all_groups

Also export non-custom Turbonomic groups

--include_group_type

Include a column to indicate if a group is static or dynamic

-u "USERNAME", --username "USERNAME"

Turbonomic Username, Password will be prompted.

--encoded_creds "ENCODED_CREDS"

Base64 encoded credentials. Use this to provide all credentials without entering a password each time.

-t "TARGET" , --target "TARGET"

Turbonomic server address. Default=localhost

--ignore_insecure_warning

Suppress insecure HTTPS request warnings

--config "CONFIG"

Path to JSON Config file with arguments

† encoded_creds can be generated with this command (Remember to disable console history so the credentials are not stored):

$ echo -n "username:password" | base64

Using a Config File

See csv_to_static_groups doc.