Cadet 1st Class Cadet 1st Class
Cadet 1st Class
421 views

Audit Stream access via pytwist

Hi,

 

does anyone have some expirience with the audit streaming via pytwist? Maybe using the StremableClient. 

Thank You.

Regards

Lukas

 

 

Tags (3)
0 Likes
4 Replies
Absent Member.
Absent Member.

Hi,

Just to be honest, no. But doing some research found a script on the following location

/opt/opsware/pylibs/pytwist/streamable.pyc

Have you tried to play around with that one?

Regards,

Jose Matarrita Ramirez
SW Support Technical Consultant
San Jose, Costa Rica
hpe.com
Hewlett Packard Enterprise

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation”
0 Likes
Absent Member.. Absent Member..
Absent Member..

That is a compiled PY program. How do we play around with that?

0 Likes
Vice Admiral Vice Admiral
Vice Admiral

You may try something like this:

env PYTHONPATH=/opt/opsware/pylibs2 /opt/opsware/bin/python2 -c 'import pytwist,getpass,sys;ts=pytwist.twistserver.TwistServer();ts.authenticate(sys.argv[1],getpass.getpass("password:"));pytwist.streamable.StreamableClient(ts).exportToFile(pytwist.com.opsware.compliance.sco.AuditResultRef(sys.argv[2]),filename="AuditResult%s.xml" % sys.argv[2])' username_here audit_id_here

Best regards,

Nikola 

Micro Focus Customer Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

In addition, you'll probably want to reference both the SA Platform Developers Guide for the version of SA you are running, as well as the API documentation found in the twister webpages, accessible by pointing to your SA core with the 
command 

https://<core_ip>/twister/docs/index.html   

Of particular note for this issue would be the information/sections found by clicking on "Streamableclient" and 
"AuditTaskService" on the bottom left-hand side of main webpage.  

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.