Page 66 / 400 Scroll up to view Page 61 - 65
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
7-6
Mode-based CLI
202-10088-01, March 2005
Flow of Operation
This section captures the flow of operation for the CLI:
1.
The operator logs into the CLI session and enters the User Exec mode. In the User Exec mode
the $(exec)> prompt is displayed on the screen.
The parsing process is initiated whenever the operator types a command and presses <ENTER>.
The command tree is searched for the command of interest. If the command is not found, the
output message indicates where the offending entry begins. For instance, command node A has the
command
"show arp brief"
but the operator attempts to execute the command
"show arpp
brief"
then the output message would be
$(exec)> show arpp brief^
.
$%Invalid input detected at '^'
marker.
If the operator has given an invalid input parameter in the command, then the message
conveys to the operator an invalid input was detected. The layout of the output is depicted below:
FIGURE 2. Syntax Error Message
After all the mandatory parameters are entered, any additional parameters entered are treated as
optional parameters. If any of the parameters are not recognized a syntax error message will be
displayed.
2.
After the command is successfully parsed and validated, the control of execution goes to the
corresponding CLI callback function.
3.
For mandatory parameters, the command tree extends till the mandatory parameters make the
leaf of the branch. The callback function is only invoked when all the mandatory parameters
are provided. For optional parameters, the command tree extends till the mandatory
parameters and the optional parameters make the leaf of the branch. However, the call back
function is associated with the node where the mandatory parameters are fetched. The call
back function then takes care of the optional parameters.
4.
Once the control has reached the callback function, the callback function has complete
information about the parameters entered by the operator.
(exec) #show arpp brief
^
%Invalid input detected at ‘^’ marker.
Page 67 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Mode-based CLI
7-7
202-10088-01, March 2005
“No” Form of a Command
"No" is a specific form of an existing command and does not represent a new or distinct command.
Only the configuration commands are available in the "no"form. The behavior and the support
details of the “no” form is captured as part of the mapping sheets. The mapping sheets are
contained in the
Appendix A, “IS CLI Mapping
section.
Support for “No” Form
Almost every configuration command has a “no” form. In general, use the no form to reverse the
action of a command or reset a value back to the default. For example, the “no shutdown interface’
configuration command reverses the shutdown of an interface. Use the command without the
keyword no to re-enable a disabled feature or to enable a feature that is disabled by default.
Behavior of Command Help ("?")
The "no"form is treated as a specific form of an existing command and does not represent a new or
distinct command. This implies that the behavior of the "?" and help text is the same for the “no”
form:
The help message is the same for all forms of the command. The help string may be
augmented with details about the "no" form behavior.
For the (no config interface?) and (no config inte?) cases of the "?", the options displayed are
identical to the case when the "no" token is not specified.
Page 68 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
7-8
Mode-based CLI
202-10088-01, March 2005
Page 69 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Switching Commands
8-1
202-10088-01, March 2005
Chapter 8
Switching Commands
This chapter provides detailed explanation of the Switching commands. The commands are
divided into five functional groups:
Show commands display switch settings, statistics, and other information.
Configuration commands configure features and options of the switch. For every
configuration command, there is a show command that displays the configuration setting.
Copy commands transfer or save configuration and informational files to and from the switch.
Clear commands clear some or all of the settings to factory defaults.
This chapter includes the following configuration types:
System information and statistics commands
System Management commands
Device configuration commands
User account management commands
Security commands
System utilities
System Information and Statistics Commands
This chapter provides a detailed explanation of the software platform commands. The commands
are divided into five functional groups:
Show commands display switch settings, statistics, and other information.
Configuration commands configure features and options of the switch. For every
configuration command, there is a show command that displays the configuration setting.
Copy commands transfer or save configuration and informational files to and from the switch.
Clear commands clear some or all of the settings to factory defaults.
Page 70 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
8-2
Switching Commands
202-10088-01, March 2005
show arp switch
This command displays connectivity between the switch and other devices. The Address
Resolution Protocol (ARP) cache identifies the MAC addresses of the IP stations communicating
with the switch.
Format
show arp switch
Mode
Privileged EXEC
MAC Address
A unicast MAC address for which the switch has forwarding and/
or filtering information. The format is 6 two-digit hexadecimal
numbers that are separated by colons, for example
01:23:45:67:89:AB
IP Address
The IP address assigned to each interface.
slot/port
Valid slot and port number separated by forward slashes.
show eventlog
This command displays the event log, which contains error messages from the system. The event
log is not cleared on a system reset.
Format
show eventlog
Mode
Privileged EXEC
File
The file in which the event originated.
Line
The line number of the event
Task Id
The task ID of the event.
Code
The event code.
Time
The time this event occurred.
Note:
Event log information is retained across a switch reset.
show hardware
This command displays inventory information for the switch.
Format
show hardware
Mode
Privileged EXEC
Switch Description
Text used to identify the product name of this switch.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top