to get the server keys at first you need to enroll all the servers in your BSA environment. I guess you are yet to do so. Since you are creating server group and reading data(server name) from a CSV file.
In simple we can't retrieve db key of an object which is not registered or unknown to BSA environment.
I am not sure any unreleased command is there to add server in bulk the way servers were removed from static group from Re: how to empty a big static group using blcli ?.
which version of BSA is this ?
Thanks for your response.
The thing is that I already have those servers in my environment but now I need to add them to a certain static group.
I know I can get the dbkey of each server individually but my question is if I can get all dbkeys at the same time in order to improve preformace.
It is also valid for me any other way of adding servers (that are already in BSA environment) to a static group faster that one at a time.
have you tried doing the add in a loop? how long does that take using the performance commands ?
also, i'd ask why you are adding 100s of servers to a static group? why not use a smart group ?
how about below command ?
Server - bulkAddServers
Directory containing the CSV file.
Local file in CSV format containing the servers to add. See above for a more complete description.
The character set used in the CSV file. e.g UTF-8 or another supported character set.
Indicates whether or not you want the add process to contact the agent on each server and attempt to retrieve each server's intrinsic properties (true/false).
Thanks for answering.
I cannot use a smart group because the servers I'm working with do not have any common property that allows me to filter them. I need to apply some permissions for that servers and instead of applying permissions one by one, I thought of defining an ACLPolicy and applying it to the whole group.
I haven't tested the performance time of a loop with individual blcli commands for this case, but experiences before told me that it's not the best way to do this. Anyway, I'll check this. Could you please tell me what do you mean by performance commands? Excuse my ignorance.
Thanks, Monoj, but that command adds servers to the console, not to a given group. That's not what I need...
Blcli_execute, not blcli
Oh, yes, I always use blcli_execute. I'll test the loop.