Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.1 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.1 KB

nxw-event-rule-switcher

Allows switching of disabled status in NX Witness from python

How to use

You can create credentials.py file, with following values, to set your custom credentials outside the script:

DEFAULT_HOST="https://localhost"
DEFAULT_PORT="7001"
DEFAULT_USER="admin"
DEFAULT_PASSWORD="*****"

In NX Witness, you must add a comment to your rule (bottom left corner in the rule window) you want to be able to swtich. Default value in script is MY_RULE_IDENTIFIER.

If you run the script, rule with comment used as an input parameter will switch it's disabled status.

./event_rule_enable.py -r MY_RULE_IDENTIFIER

More info about NX Witness REST API