Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Command Scanning Profiles

It would be unbelievably useful if we had the ability to create a custom scan profile that did the following.

Run command (just like the command step in pdq deploy) and then save the output string to a custom field.

 

we could then pretty much make custom scan profiles that run any scripts we create and log the output to our custom fields allowing us to pretty much scan and inventory for anything.

0

Comments

4 comments
Date Votes
  • Hi Mmuni,

    Would you provide a use-case particular to your environment, or one more general? The more specific the example, the better.

    0
  • Lets say I wanted to scan for a computers hard drive S.M.A.R.T status. Right now I have it setup to run a script I created that checks the status and in order to get that status back into inventory, I have to output the status to a text file, but inventory scans cant read text file contents so I have to also make the script rename the text file so that I can then have a custom scan pick up the filename.

     

    It would be a much smoother process If I could have a custom scan execute a script and then store the returned value/error code/or string to a custom field. I could then just have a S.M.A.R.T field for each computer with the status. This would be sort of like what you already do with the command steps by returning a log. When ever a step fails I check the log thats returned, can't you do the same and use what's returned as the value for a custom field?

     

    This is just one example, but you could do pretty much anything with a command step and have your code return whatever you want stored.

     

     

    0
  • just a little more details. Right now my S.M.A.R.T scan is a two step process. I first have to deploy the command step that does everything. And I then have to run a scan profile later to pick up the results. The results are also limited right now to just the filename where you could do more if the scan profile just ran the command and logged whatever was returned to it.

    0
  • To provide an update, Mmuni, this has been submitted as a feature request. No information on when (or if) it will be implemented is available yet. Feel free to check back and I'll provide any information available on the status of that request.

    0