Jump to content

Recommended Posts

We're looking for a way to notify a distribution group any time a new agent is added to our Automate Server.

I briefly searched in the forums, but didn't see anything.

I asked Automate Support, but they said they don't have anything that will do this.

 

Does anyone have any ideas?

Share this post


Link to post
Share on other sites

I have a system property that records the highest ID number of all the current agents. Then once a week I run a script that finds all agents with an ID higher that the system property. It lists all those agents in a CSV file that is stored on the server, and then creates a ticket and attaches the spreadsheet. Of course, it also updates that system property before it stops.

Edited by toril
add additional info

Share this post


Link to post
Share on other sites

Use the InitialScript property. It is explained here - https://docs.connectwise.com/ConnectWise_Automate/ConnectWise_Automate_Documentation/060/170/010

This is a script I use for my Location 1, triggered by InitialScript1. The explanation is in the readme inside the zip at https://www.labtechgeek.com/topic/3388-learn-everything-identify-unknown-or-intermittent-agent-installs/

The gist is, you can define a specific script to be executed immediately on any agent joining a specific location (InitialScript#), or any location (InitialScript). As long as your script can create a ticket or send an email, you will be notified for each new agent signing up.

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, DarrenWhite99 said:

Use the InitialScript property. It is explained here - https://docs.connectwise.com/ConnectWise_Automate/ConnectWise_Automate_Documentation/060/170/010

This is a script I use for my Location 1, triggered by InitialScript1. The explanation is in the readme inside the zip at https://www.labtechgeek.com/topic/3388-learn-everything-identify-unknown-or-intermittent-agent-installs/

The gist is, you can define a specific script to be executed immediately on any agent joining a specific location (InitialScript#), or any location (InitialScript). As long as your script can create a ticket or send an email, you will be notified for each new agent signing up.

 

4

Thanks, @DarrenWhite99 !

The InitialScript property will do exactly what we need. 

In case anyone else wants to do this, we're creating a Location Extra Data Field that can be checked/unchecked to receive notifications by location.
Then, we're doing an auto-join group (of Locations that have the EDF checked) to run the script against.

 

 

Share this post


Link to post
Share on other sites

To be clear. It will only run the InitialScript script when the agent first registers. It will not run it if the agent is autojoined to a group by a search, or moved by a script or manually to a new location. If you ran the script on all agents, but only notified based on the location EDF, that would work. But you can't target the script to agents that are part of a search (because by the time they are joined to the group, they are no longer performing their initial registration.)

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...