ONTAP 9 Manuals ( CA08871-402 )

to Japanese version

Manage CLI sessions

You can record a CLI session into a file with a specified name and size limit, then upload the file to an FTP or HTTP destination. You can also display or delete files in which you previously recorded CLI sessions.

Record a CLI session

A record of a CLI session ends when you stop the recording or end the CLI session, or when the file reaches the specified size limit. The default file size limit is 1 MB. The maximum file size limit is 2 GB.

Recording a CLI session is useful, for example, if you are troubleshooting an issue and want to save detailed information or if you want to create a permanent record of space usage at a specific point in time.

Steps
  1. Start recording the current CLI session into a file:

    system script start

    For more information about using the system script start command, see the man page.

    ONTAP starts recording your CLI session into the specified file.

  2. Proceed with your CLI session.

  3. When finished, stop recording the session:

    system script stop

    For more information about using the system script stop command, see the man page.

    ONTAP stops recording your CLI session.

Commands for managing records of CLI sessions

You use the system script commands to manage records of CLI sessions.

If you want to…​ Use this command…​

Start recording the current CLI session in to a specified file

system script start

Stop recording the current CLI session

system script stop

Display information about records of CLI sessions

system script show

Upload a record of a CLI session to an FTP or HTTP destination

system script upload

Delete a record of a CLI session

system script delete

Related information

ONTAP 9 Commands

Commands for managing the automatic timeout period of CLI sessions

The timeout value specifies how long a CLI session remains idle before being automatically terminated. The CLI timeout value is cluster-wide. That is, every node in a cluster uses the same CLI timeout value.

By default, the automatic timeout period of CLI sessions is 30 minutes.

You use the system timeout commands to manage the automatic timeout period of CLI sessions.

If you want to…​ Use this command…​

Display the automatic timeout period for CLI sessions

system timeout show

Modify the automatic timeout period for CLI sessions

system timeout modify

Related information

ONTAP 9 Commands

Top of Page