jpsenior / netscalersplit

Splits up HTML files for easy use by Netscaler responder policies
MIT License
0 stars 0 forks source link

Running split.py on NetScaler #1

Open ComKari opened 9 years ago

ComKari commented 9 years ago

First of all, great job with this tool!

I changed the maintenance page to meet my demands including the picture and as I tried to parse the html file in to a command I could put in to the NetScaler, running split.py just prints out: " ERROR: Invalid number of options. ERROR: Invalid number of options. ./split.py: line 29: syntax error near unexpected token (' ./split.py: line 29:parser = argparse.ArgumentParser(description=' "

I tried to run the split.py in this way:

  1. I created a folder /var/custommaint on my NetScaler
  2. Copied the updated maintenance.html and split.py to this folder
  3. Gave split.py execute permissions
  4. Opened NetScaler shell and changed my directory to /var/custommaint
  5. Ran "split.py maintenance.html"
  6. Got the error
ComKari commented 9 years ago

Trying to create a Responder action from GUI by pasting in the stuff from sample.txt (single row) gives out an error "String length exceeds maximum [target, 8191]". I tried to create a Responder action (type "Respond with").

Trying to add the Responder action from CLI fails also with "ERROR: No such command" but I assume this happens because the CLI doesn't accept more chars to one command.

The command I tried to use was: add responder action rsp_service_not_available_actn respondwith q{ ---sample.txt contents--- }

I'm running NS11 build 62.10.