Difference between revisions of "Using nxshell to automate bulk operations"

Jump to navigation Jump to search
m
→‎Usage: version autochange
m (→‎Usage: version autochange)
Line 6: Line 6:
= Usage =
= Usage =
Start as interactive shell:
Start as interactive shell:
  java -jar nxshell-1.2.13.jar
  java -jar nxshell-{{version}}.jar


Execute script "test.py":
Execute script "test.py":
  java -jar nxshell-1.2.13.jar test.py
  java -jar nxshell-{{version}}.jar test.py


When NxShell is started, it tries to get server IP, login and password from command line parameters. In interactive mode, user will be asked for details, otherwise default values will be used.
When NxShell is started, it tries to get server IP, login and password from command line parameters. In interactive mode, user will be asked for details, otherwise default values will be used.


Start as interactive shell, with IP and Login provided (password will be asked):
Start as interactive shell, with IP and Login provided (password will be asked):
  java -Dnetxms.server=127.0.0.1 -Dnetxms.login=admin -jar nxshell-1.2.13.jar
  java -Dnetxms.server=127.0.0.1 -Dnetxms.login=admin -jar nxshell-{{version}}.jar


= Properties =
= Properties =
38

edits

Navigation menu