Hi Everyone,
I've been tasked to add over 100+ object host names in the group.
Now some of the object names (host) does exist but through scripting how is it possible that if a written script does not create one that already in the Object database.
I have looked few options, through Management CLI is easy...
1 - # add host name myHost ip-address 192.168.0.100
or
2 - # add group name myGroup members.1 myHost1 members.2 myHost2
Through number 2 statement above, can I create a script where it does not create where it exists already?
I have tried also that, if I break second line command in 10 members host and run it then "add group" does give an error that this group name exists already.
REST api could be an option but through cli with for loop or if conditions .. is there anything available?
Regards,
B