N1 Grid Service Provisioning System 5.0 Command-Line Interface Reference Manual

ProcedureHow to Run the CLI Jython Interpreter

Steps
  1. From a server where the CLI Client and Jython are installed, start the CLI Jython Interpreter.


    ./cr_clij
  2. 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.