The CLI supports the following two interaction modes:
Session mode – Session mode is interactive. Once you log in to the Sun Management Center server, you can enter commands and receive output until you explicitly log out of the server.
Batch mode – The CLI connects to the server and executes the commands contained in filename, where filename is the name of a file that contains CLI commands.