For information about how to access and use the CLI Jython interface, see the N1 Grid Service Provisioning System 5.0 Command-Line Interface Reference Manual.
From a machine where the CLI Client application and Jython are installed, start the Interactive Mode CLI.
N1SPS-home/cli/bin/cr_clij |
Include the following code at the beginning of your 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.