Juniper Networks J2320 manual Configuring the CLI Environment

Models: J2320

1 330
Download 330 pages 32.01 Kb
Page 118
Image 118

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 46 on page 96 shows how you can change the CLI environment features.

Table 46: 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.)

96Using the Command-Line Interface

Page 118
Image 118
Juniper Networks J2320 manual Configuring the CLI Environment