DEV Community

marcogucci007
marcogucci007

Posted on

Shell script for laptop warranty info

Hi there dev community.

I am fairly new to shell scripting.

Objective:
Run a script centrally to populate custom fields in Atera

I have been working on a script (Script1) to populate custom fields in Atera. The script is deployed to Atera and works fine on each workstation but I realized that I could run it once centrally to not have to wait for each workstation to come online.(Since Atera already has all the serial numbers for all the machines in our fleet)

I have another script (Script2) which pushes data into an array.

Can I take the data created in Script1 (filter for machines without warranties set) and put them through the warranty check portion of Script2 to populate the warranty fields for all the machines in Atera.

If you can think of a better way to do it be my guest.

I am happy to share the script I have done so far.

Thank you dev community for your help!!

Top comments (0)