Hello the community !
I’ve learned how to use CLAPI commands to make a massive import of hosts, withe following line :
centreon -u uusername] -p ppassword] -i ImportHost.csv
ImportHost.csv is created with the following format :
HOST;ADD;Device;Alias;IP;Template(s);Poller;HostGroup
Now, I’d like to remove massively devices from a hostGroup. The CLAPI is given below :
centreon -u nusername] -p ]password] -o HG -a delmember -v "HostGroup;Device"
Do you know the way to create a file with the list of devices to remove from the hostGroup, in order to execute the action with a unique command ?
(something like centreon -u eusername] -p mpassword] -i DeviceToRemoveFromTheHostGroup.csv)
Thanks,
Pierre