The interactive command line mode uses the Jython interpreter as its shell. Operating in this mode, the CLI offers you these advantages:
You do not 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 a N1 Service Provisioning System software command from within a Jython script.
You can create more powerful scripts for more complex, repetitive operations.
For the purposes of automation, the interactive mode results are more detailed.
To call commands from within a Jython script, include the following at the beginning of the script:
from clui import *
app=PyCLUI() make Jython calls to the N1 Service Provisioning System
app.execStr(CLI command) invoke Jython methods from the
new Jython object
App.close() delete the instance of this Jython class
|