Sun N1 Service Provisioning System 5.1 System Administration Guide

ProcedureHow to Launch the Interactive Mode CLI

For information about how to access and use the CLI Jython interface, see the Sun N1 Service Provisioning System 5.1 Command-Line Interface Reference Manual.

Steps
  1. From a machine where the CLI Client application and Jython are installed, start the Interactive Mode CLI.


    N1SPS-home/cli/bin/cr_clij
    
  2. Include the following code at the beginning of your script.


    from clui import *
    app=PyCLUI() 
    app.execStr(CLI command) 	
    App.close()	

    Note –

    The assignment app=PyCLUI() calls the CLI. The App.close() call deletes the instance of this Jython class.