Customize the CLI
Customize the CLI
Specify how long an administrative session to the management interface (CLI or web interface) can remain idle before logging the administrator out: admin@7-1-VM# set deviceconfig setting management idle-timeout ? 0 never <value> <1-1440> If you want to set the CLI timeout value to a value different from the global management idle-timeout value, use the set cli timeout command in operational mode.
Specify the format for command output: admin@PA-3060> set cli config-output-format ? default default json json set set xml xml For example, in the default setting the config-output-format looks like this: admin@PA-3060# show deviceconfig system ntp-servers ntp-servers { primary-ntp-server { ntp-server-address pool.ntp.org; authentication-type { none; } } } Changing the setting to set results in output that looks like this: admin@PA-3060# show deviceconfig system ntp-servers set deviceconfig system ntp-servers primary-ntp-server ntp-server-address pool.ntp.org set deviceconfig system ntp-servers primary-ntp-server authentication-type none [edit] Changing the setting to xml results in output that looks like this: admin@PA-3060# show deviceconfig system ntp-servers <response status="success" code="19"> <result total-count="1" count="1"> <ntp-servers> <primary-ntp-server> <ntp-server-address>pool.ntp.org</ntp-server-address> <authentication-type> <none/> </authentication-type> </primary-ntp-server> </ntp-servers> </result> </response>
Switch to scripting mode. In scripting mode, you can copy and paste commands from a text file directly into the CLI. Although you can do this without scripting-mode enabled (up to 20 lines). If you cut-and-paste a block of text into the CLI, examine the output of the lines you pasted. If you see lines that are truncated or generate errors, you may have to re-paste a smaller section of text, or switch to scripting-mode : admin@PA-3060> set cli scripting-mode on When in scripting-mode, you cannot use Tab to complete commands or use ? to get help on command syntax. When you are done pasting commands, switch back to regular mode using the set cli scripting-mode off command.

Related Documentation