Scripts - Client Variables available in Scripts
Looking for a reference of what automatic Variables are available when running scripts against an asset.
E.g. If I create a script as part of a policy to collect whatever info on an asset then email it, I'd love to be able to email the output directly to the primary contact of a Client using a gorelo variable of sorts.
I know we can create custom fields for clients now and use that in a script but that requires manually populating the field value for each Client with the relevant email address.
Log in to comment and vote
Comments4
Amaranth Cherry
I concur with Magenta Sunlight on expanding this feature request to not only include additional variables at varying levels, but custom fields as well. If planned, I would recommend merging the following feature request with this one:
https://feedback.gorelo.io/p/updating-client-custom-fields-with-goreloaction
Magenta Sunlight
It would be nice to have levels of custom fields / variables - at the following levels:
Global < Client < Location/Site < Device
There is also benefit from adding filters by other items like Device Tags or Device Type.
For a helpful examples, in the case of Tags we have Jump Boxes on some sites which don’t need all the scripts we typically run, or altertively for Device Type, we have some scripts that should run on Workstations but not Laptops.
Mikel from Gorelo
We’re looking to add these two variables —
- $gorelo:client.name
- $gorelo:client.locationName
Are there any other variables that everyone will likely need?
Ivory Control
Yoooo, $gorelo:client.locationNamePrimaryContact & $gorelo:client.locationNamePrimaryEmail might address OPs request? Would be handy regardless to have a primary contact’s email address readily available/accessible in scripts.
This next part might be better suited as a separate Feature Request but is somewhat of an extension to this one…
Expose these (and custom) variable in the various Views. I.e. Client Variables (e.g. I have created one called ‘Industry Segment’ to tag clients as either Medical, Legal, Retail, blah blah). But would be good to create Views based on those values as well.
Similarly for Asset views, allow the creation of views based on custom variables as well as expose more existing fields to views (e.g. CPU, RAM, Warranty Expiry, etc.)
Hope that helps!