/build/static/layout/Breadcrumb_cap_w.png

Automatically create label based on text file

I have a report that's generated weekly that I'm trying to get KACE to create a label from. I understand how to get the PC names into a label. I already have a label that I can throw REGEX into. However, I was hoping there was a solution that would allow me to have KACE automatically create a label from a text file that gets downloaded to either my machine or a file-share. I was looking at using the ShellCommandTextReturn fuction, but I'm not sure how to connect that to a smart label to populate with the line items on the report.txt that I have generated. 

Any help would be appreciated.

2 Comments   [ + ] Show comments
  • Can you provide some more information about the content of the text file and where it comes from? If the information is coming from a different data source, then it will probably be difficult to accomplish, but if the data is coming from KACE, then there might be an easier method. - chucksteel 7 years ago
  • The file just has device names on separate lines. It's coming from an externally generated report, but can be downloaded and saved pretty much anywhere. Ultimately we're using a script that pushes patching software to a label. I currently just fill in the SQL for the label with the REGEX names for each machine. I was hoping to connect the downloaded csv/txt/whatever format is needed to the label/SQL somehow so that once a new report is pulled down with device names the label will automatically pull the names in and generate so that the script can auto-run every x-hours. - Ultamaynard 7 years ago
    • Getting data like that into the K1 isn't the easiest task. Your best option might be to create a script elsewhere that creates a file on the computers in question. You can then detect for the presence of that file with a Custom Inventory Rule and base your smart label on that. Alternatively, if the data on the external system can be queried by each machine (i.e. a script runs and contacts the server and asks if it meets certain criteria), then you can setup a script or possibly even a Custom Inventory Rule to perform that process. The Smart Label would then be updated automatically every time the machine updates its inventory. - chucksteel 7 years ago

Answers (0)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ