Has anyone developed a approach to forcing a tag to be revaluated from say and API call and being able to confirm that the re-evaluation took place ?
I reached out to support but they didnt have a solution
I have a process that calls several tags and re-evaluates them daily. I wasn't able to find a way to validate them automatically but I was able to spot validate them and they appear to be updating and useful now.
Thanks Keith for the response. Would you mind sharing how you did it ?
I have a powershell script that does this update but it's rather convoluted and would take some documentation and setup on your part for you to use. Let me look at it this weekend and see if I can clean it up and make it something I can safely post to the community to be reused.
Thanks Keith I really do appreciate it !
Each bolded entry is a file, if you copy and paste the content into each file and update the tag ids for your environment and use your username and password this should run from one directory without any other supporting prep.
This script runs daily to force an evaluation on the tags whose IDs are listed in the tag_ids.txt file. To add a tag for evaluation, search for the tag in the Asset View UI, view the tag (not edit) and look for the tag id. Add the tag id to the file on a new line.
the infile.xml is programitically updated, if you edit it your updates will be wiped out on the next run.
The results of each run are saved in the archive, under the date and time they were run with an appended number to id each tag on a given day.
Refreshed15891750 - Current VM Scan 7 Days17022972 - VM Scan Today12318980 - VM Scan Out of Date17028400 - VM Scan Current7826912 - Windows Authentication Succeeded7826915 - Unix Authentication Succeeded11097397 - Software - Tanium Client11465411 - New Host 7 Days
<?xml version="1.0" encoding="UTF-8"?><ServiceRequest> <filters> <Criteria field="id" operator="EQUALS">11465411</Criteria> </filters></ServiceRequest>
Please see our API guide as this will contain the necessary info.
API Guide - Evaluate Tag:
Asset Mgmt and Tagging v2 APISee Page: 31
Did you get a chance to try this, did it work for you?
Retrieving data ...