Hello friends!
I am working on a script that bulk adds hosts and then bulk adds them to a group. I'm using the mgmt_cli 'host' and 'group' commands like so:
mgmt_cli -r true add host --batch lots_of_ips.csv
mgmt_cli -r true set group --batch lots_of_ips_2.csv
My csv files contain approximately 1200 IPs, and the operations are spiking CPU usage and occasionally crashing the API service.
Is there a way to throttle this command somehow, or is my only option increasing the CPU cores on the management server?
Thank you!