questions around "Script Based Custom Agent fields"
So, I found this. great idea. now what I need to know is how often these scripts are fired?
Oh wait, it is fired when going to the Asset fields.
What confused me was that I had to then back out of the custom fields page and return to it to see the results. - should that not refresh when the script has been run?
Comments
-
Hello @COOLNETAU,
The script which is attached to a script-based custom field will run once every 12 hours, or when you access the Agent page.
Please keep in mind that it takes some time for the script to provide the output within the Agent page. It is not instant, you have to wait a couple of minutes.
If it takes longer, then it could be a script output issue, or the Output type is not selected correctly.1 -
yes. - this is good to know thanks
1 -
Saw this feature in roadmap, waited for it and of course it is only available in Superpower plan.. Great, as usual!
1 -
I am hoping that they open this to the master or lower plans.
This is a standard\core feature on almost every other RMM out there.
1 -
I agree, however, prior to finding this, I was just doing a api call to fill the field - for me, all I had to do was to remove the stuff that puts it into the custom field. - so functionality exists - just harder to implement
0 -
So, 12 hours - is that staggered, or how is it done?
if the device is offline? does it run it when it comes back online?If I manually run the script? will it fill the field with output too?
0 -
Hello @COOLNETAU,
Once every 12 hours, the script runs automatically on the device so it can update the already existing information. We don't have the exact time when this happen on our end.
I assume that the script runs at 00:00 AM and 12:00 PM, so twice every day.
If a device is offline and gets back online, i think it will run the script and update it. Here i am not 100% sure.
You cannot run the script manually to update the custom field. The easier option would be for you to simply open the agent page, as this will update the information present within the custom script.1
Topics
- All Topics
- 42 Getting started
- 26 Read before posting
- 8 Meet and greet
- 257 General
- 71 News and announcements
- 2 Swag
- 1 Roadmap updates
- 83 Resources
- 12 Knowledge Base
- 17 Webinars
- 1 Shared Script Library
- 2 Blog
- 21 Pro Tips
- 28 Got an idea?
- 3 Atera Academy
- 2 ActionAI
- 1 Copilot
- 142 Remote Monitoring and Management
- 85 Remote Monitoring
- 28 Patch Management
- 107 Professional Services Automation
- 65 Helpdesk
- 17 Billing
- 22 Reporting
- 41 Integrations & add-ons
- 22 Integrations
- 11 Add-ons
- 108 Scripting and automations
- 62 Scripts
- 32 Automations