Cli command modes introduction – Allied Telesis AT-S81 User Manual

Page 286

Advertising
background image

Chapter 32: Getting Started with the Command Line Interface

286

Section I: Basic Features

CLI Command Modes Introduction

The Command Line interface in the AT-S81 software is accessible from
the Main Menu. The commands offer the same functionality as the Menu
interface. For instructions on how to access the command line interface,
see “Starting the Command Line Interface” on page 295. This chapter
describes the CLI command modes and how to access the command line
interface. In addition, it provides command formatting information.

In the AT-S81 software, there is a hierarchy of commands which are called
command modes. There are five command modes:

ˆ

User EXEC

ˆ

Privileged EXEC

ˆ

Global Configuration

ˆ

Interface Configuration

ˆ

VLAN Configuration

When you enter the CLI interface, you access the User EXEC command
mode automatically. This is the first command mode level and it allows
you access to the basic switch commands. Each command mode contains
a subset of commands that are available within that mode only. As a
result, you enter commands according to which command mode you have
accessed. For example, port-specific commands are available from the
Interface Configuration mode.

You must access the first three command modes (User EXEC, Privilege
EXEC, and Global Configuration modes) in the order that they are listed.
You can access both the Interface Configuration and VLAN Configuration
modes from the Global Configuration mode. The AT-S81 prompt changes
to indicate which mode you are accessing.

To access the Privilege EXEC, Global Configuration, Interface, and VLAN
Configuration modes, you must enter a specific command that permits
entry to a new mode. Each time you change modes, the prompt changes
to indicate the mode. See Table 9 on page 287 for information about the
commands used to access the modes and their respective prompts. In
addition, there are commands that allow you to move between the modes
and return to the Main Menu. For example, typing the EXIT command
when you are in the Interface Configuration mode returns you to the
Global Configuration mode. From all the command modes, the LOGOUT
command exits the command line interface and returns you to the Main
Menu.

If you enter a command that is not accessible in a particular command
mode, the software displays a “command not found” message. For
example, you can enter the SHOW SNMP command from the Privileged

Advertising