On 09/28/2017 09:26 PM, Shawn Doherty wrote:
Hello.
I was hoping someone had an idea on the best way to get activity information from a system in beaker.
My situation is that I am trying to incorporate parts of the Beaker CLI in a bash script to automate Request Tracker work. Part of this would require getting the activity history from a requested system. I didn't find anything suitable when looking through the Beaker CLI. wget wasn't returning the information that I needed from a call to #history. I'm throwing this out there to see if anyone on the list had any suggestions. Looking specifically for getting the information on User and Action:Returned.
Thanks, Shawn
You can get the activity of a system via Teiid[1] (i.e. query an SQL database).
Here's an example code & query:
http://git.engineering.redhat.com/git/users/azelinka/udelatory/tree/beaker-s...
[1] https://docs.engineering.redhat.com/display/HTD/Teiid+User+Guide
Hope that helps,