Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

Re: Still looking for a place in which to view all results for executed scripts in NCM without having to click/open each device's results individually. Ideas?

$
0
0

You can do something like this

 

SELECT  TR.NodeProperties.Nodes.Caption, RequestedScript, ErrorMessage, DeviceOutput, Action,  Status

FROM NCM.TransferResults TR

WHERE (Action = 3) AND (Status = 2)

 

Customize your page, add a resource of type "Custom Query" and it will show up there.  Or just use it in SWQL studio (part of the SDK).    You might need to customize the "Action" and "Status" a bit, which is why I leave them there.  This will show output from jobs basically.

 

I tend to add a "AND (DeviceOutput LIKE '%sometext%')" to the query to find specific device output I'm looking for, like errors...

 

Hmm...  If you "enable search" and put this query in that box, you can search on the DeviceOutput.  I like it!!

 

SELECT  TR.NodeProperties.Nodes.Caption, RequestedScript, ErrorMessage, DeviceOutput, Action,  Status

FROM NCM.TransferResults TR

WHERE (Action = 3) AND (Status = 2) AND (DeviceOutput LIKE '%${SEARCH_STRING}%')

 

So, all in all it should look something like this with both queries put in the right places...

 

 

job_output_search.jpg


Viewing all articles
Browse latest Browse all 8827

Trending Articles