(imported topic written by SystemAdmin)
I’ve created a fixlet that makes a copy the client log with todays date, parses it for non-zero exit codes and stores that in a ‘Computer Setting’. The data looks something like this:
UPS_non_zero_exit_code Exit Code=1967, fixlet 1783Exit Code=128, fixlet 2460Exit Code=128, fixlet 2460Exit Code=128, fixlet 2460Exit Code=128, fixlet 2460Exit Code=1, fixlet 2490Exit Code=1, fixlet 2491
Once the data is collected, I can report on all devices which looks like this.
Hostname, Exit Code, Fixlet #
<?Relevance (item 0 of it, substrings separated by "Exit" of item 1 of it ) whose (exists matches (regex ".+") of item 1 of it ) of ((item 0 of it, concatenation "=" of (substrings separated by "%253d" of (concatenation "," of (substrings separated by "%252c" of (following text of first "=" of (item 1 of it as string)))))) whose (item 1 of it starts with "Exit Code" and item 1 of it does not contain "3010") of ( name of item 0 of it, values of results (item 0 of it, item 1 of it) ) whose (item 1 of it contains "UPS_non_zero_exit_code=") of (it, bes property "Client Settings") of bes computers ) ?>The output looks like this:
Hostname, Exit Code, Fixlet #
WKST00001104, ( Code=2359302, fixlet 2276 )
WKST00001104, ( Code=2359302, fixlet 2290 )
WKST00001104, ( Code=2359302, fixlet 2297 )
WKST00001104, ( Code=2359302, fixlet 2305 )
WKST000010FF, ( Code=2359302, fixlet 2276 )
WKST000010FF, ( Code=2359302, fixlet 2290 )
WKST000010FF, ( Code=2359302, fixlet 2297 )
WKST000010FF, ( Code=2359302, fixlet 2305 )
WKST0000122C, ( Code=1601, fixlet 2483 )
WKST00001A9B, ( Code=2359302, fixlet 2276 )
WKST00001A9B, ( Code=2359302, fixlet 2290 )
WKST00001A9B, ( Code=2359302, fixlet 2305 )
I’m not sure I understand the type of data that is even being returned. Is that a plural of a string and a list?
Here is my question; that last number “fixlet 2276” references the Action ID. I want to incorporate the name and time of the action into the report. The data can be retrieved from
name of bes action whose (id of it = 2276)
I’ve tried to get the data into a single report with no success. Can someone help me to incorporate the data into the report
Any help would be greatly appreciated