cancel
Showing results for 
Search instead for 
Did you mean: 

Massive deletion needed of deactivated agents

alazanowski
Level 5
We have about 600+ agents under a department where we had to uninstall everything from them. I've disabled the agents, but we need to delete them. Its such a pain to delete these manually 1 by 1 through the web gui. Is there a command line or some automated way to do this? I just want to delete the entire department and all its subagents alltogether.
3 REPLIES 3

ltr
Level 3
Partner Accredited
Hi,

According to me, the better way is to upgrade your environment to PD 6.6 and use the new CLI. You will be able to use the pdlistagent and the pddeactivateagent command in a script.

bierryf
Not applicable
Hi,

I saw in a post that you talked about pdlistagent and pddeactivateagent command in a script.
I have to do a script for massively activate agents after their installation but I don't see how avoid credentials in the shell.
I try these kind of script but it doesn't work :
/opt/pdcli/calls/pdlistagent <<FIN
root
xxxxxxx
FIN

Thanks for your help,
Frédéric.

AlexisOost
Level 2

Frédéric.  You can pre-authenticate using /opt/pdcli/calls/pdlogonuser  and then run your script.