The interactive command line mode uses the Jython interpreter as its shell. Operating in this mode, the CLI offers you these advantages:
You don't have to type an entire command on a single line. You can simply enter a command name and then enter the command arguments that cr_clij prompts you for.
You can take advantage of the command history stored by the shell.
You can call N1 Service Provisioning System software commands from within a Jython script.
You can create more powerful scripts for more complex, repetitive operations.
To call commands from within a Jython script, include the following code at the beginning of the script:
from clui import * app=PyCLUI() app.execStr(CLI command) App.close() |
The assignment app=PyCLUI() calls the CLI. The App.close() call deletes the instance of this Jython class.