J2320, J2350, J4350, and J6350 Services Router Getting Started Guide

user@host> set cli ?

 

Possible completions:

 

complete-on-space

Set whether typing space completes current word

directory

Set working directory

idle-timeout

Set maximum idle time before login session ends

prompt

Set CLI command prompt string

restart-on-upgrade

Set whether CLI prompts to restart after software upgrade

screen-length

Set number of lines on screen

screen-width

Set number of characters on a line

terminal

Set terminal type

Table 52 on page 98 shows how you can change the CLI environment features.

Table 52: Configuring the CLI Environment

Environment

CLI Command

Default Setting

Options

Feature

 

 

 

Command

set cli

on—Pressing Tab or Spacebar

Set off to allow only Tab for

completion

complete-on-space

completes a command.

command completion.

 

(on off)

 

Set on to re-enable Tab and

 

 

 

 

 

 

Spacebar for command

 

 

 

completion.

Your working

set cli directory path8

/cf/var/home/remote

Replace path with the directory you want

directory

 

 

to enter when you log in to the Services

 

 

 

Router.

Minutes of idle time

set cli idle-time

Your session never times out unless

To enable the timeout feature,

 

minutes

your login class specifies a timeout.

replace timeout with a value

 

 

 

between 1 and 100,000.

 

 

 

To disable the timeout feature,

 

 

 

replace timeout with 0.

Your session prompt

set cli prompt string

user@host>

Replace string with the prompt you

 

 

 

want. If the prompt contains spaces or

 

 

 

special characters, enclose string in

 

 

 

quotation marks (“ “).

Restart-after-upgrade prompt

Number of CLI output line displayed at once

set cli restart-on-upgrade (on off)

set cli screen-length

length

CLI prompts you to restart the

Set off to disable the prompt for the

Services Router after a software

 

session.

upgrade.

Set on to reenable the prompt.

 

Variable (depends on terminal type).

To change the number of lines

 

 

displayed on the screen, replace

 

 

length with a value between 1 and

 

 

100,000.

To disable the display of a set number of lines, replace length with 0. (This feature can be useful when you are issuing CLI commands from scripts.)

98Using the Command-Line Interface

Page 120
Image 120
Juniper Networks J6350, J4350 manual Configuring the CLI Environment