

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Audit Stream access via pytwist

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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,
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”


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
That is a compiled PY program. How do we play around with that?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.