File location for quotexport member list11/16/2023 ![]() ![]() ![]() The import operation will generate an output file with the json details of the "set" operation, which can be reviewed for errors during the import operation, since missing member objects or groups will not be handled. It is stipulated that the groups and member objects to populate the groups were created in a previous process before this Example For this operation the expected action is that each member added to a group is the second value on a new row of the CSV file with the target group's name as the first column. This script stipulates output from the shell script "cli_api_dump_objects_group-members_build_import_csv_v00x01.sh" or a similar CSV file that has the group name to set as the first column. Management-Workstations,"Terry-Apple-iBook"īash shell script "cli_api_import_objects_csv_group-members_v00x01.sh" imports a CSV file via the "set group" operation, using the columns of the CSV file to populate the group. Management-Workstations,"Madoka-Asus-X900" Management-Workstations,"Hans-Dell-M4800" Management-Workstations,"Joe-Lenovo-W500" Name: group-members_build_import_csv_.txtĮxample: dump/-1044CDT/group-members_build_import_csv_-1044CDT.txtĮxample output CSV file group-members-add_-1044CDT.csv : and the console output.Įxample: dump/-1044CDT/group-members-add_-1044CDT.csv ![]() This script also generates an output file for process reference, in addition to the CSV file. The group members are selected from the output of "show groups" using the jq command, parsing the generated json output. This set of example shell scripts for bash on Gaia, demonstrate how to export a CSV file containing all members of all groups (within the define limits value) with the show groups and show group command, and the requisite import operation using the generated CSV file to populate the existing groups with their respective members with the set group command utilizing the -batch optional switch.īash shell script "cli_api_dump_objects_group-members_build_import_csv_v00x01.sh" exports the members of the identified groups, first generating an array of groups based on the limit constraint value, and then using that array to dump the individual members of each group collected in the array to a CSV file with the first column being the group name and the second column being the group member. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |