Page 131 / 400 Scroll up to view Page 126 - 130
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Switching Commands
8-63
202-10088-01, March 2005
The command can be used to the save the running configuration to nvram by specifying the source
as
system:running-config
and the destination as
nvram:startup-config
The command can also be used to download ssh key files as
nvram:sshkey-rsa
,
nvram:sshkey-rsa2
,
and
nvram:sshkey-dsa
and http secure-server certificates as
nvram:sslpem-root
,
nvram:sslpem-server
,
nvram:sslpem-dhweak
,
and
nvram:sslpem-dhstrong
.
Default
none
Format
copy nvram:startup-config
<url>
copy nvram:errorlog
<url>
copy nvram:msglog
<url>
copy nvram:traplog
<url>
copy nvram:configscript <scriptname>
<url>
copy
<url>
nvram:startup-config
copy
<url>
system:image
copy
<url>
nvram:configscript
copy system:running-config nvram:startup-config
copy
<url>
nvram:sslpem-root
copy
<url>
nvram:sslpem-server
copy
<url>
nvram:sslpem-dhweak
copy
<url>
nvram:sslpem-dhstrong
copy
<url>
nvram:sshkey-rsa1
copy
<url>
nvram:sshkey-rsa2
copy
<url>
nvram:sshkey-dsa
copy <url> nvram:clibanner
Mode
Privileged EXEC
Pre-login Banner
This section provides a detailed explanation of the Pre-login Banner command.
copy
The
copy
command (See “copy” on page 62.) includes the “clibanner” option. This command
uploads and downloads to/from the switch. Local URLs can be specified using tftp or xmodem.
Default
none
Format
copy <url> nvram:clibanner
Mode
Privileged EXEC
Page 132 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
8-64
Switching Commands
202-10088-01, March 2005
CLI Command Logging
This section provides a detailed explanation of the CLI Command Logging commands.
logging cli-command
This command enables the CLI command Logging feature.The Command Logging component
enables the software to log all Command Line Interface (CLI) commands issued on the system.
Default
enabled
Format
logging cli-command
Mode
Global Config
no logging cli-command
Format
no logging cli-command
Mode
Global Config
Configuration Scripting
Configuration Scripting allows the user to generate text-formatted script files representing the
current configuration. These configuration script files can be uploaded to a PC and edited,
downloaded to the system and applied to the system. Configuration scripts can be applied to one or
more switches with no/minor modifications.
Use the
show running-config
command (See “show running-config” on page 66.) to capture the
running configuration into a script. Use the
copy
command (See “copy” on page 62. ) to transfer
the configuration script to/from the switch.
Note:
The file extension must be “.scr”.
A maximum of ten scripts are allowed on the switch.
The combined size of all script files on the switch shall not exceed 500 KB.
Page 133 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Switching Commands
8-65
202-10088-01, March 2005
configscript apply
This command applies the commands in the configuration script to the switch. The apply
command backs up the running configuration and then starts applying the commands in the script
file. Application of the commands stops at the first failure of a command. The <scriptname>
parameter is the name of the script to be applied.
Format
configscript apply <scriptname>
Mode
Privileged EXEC
configscript delete
This command deletes a specified script where the <scriptname> parameter is the name of the
script to be deleted. The ‘all’ option deletes all the scripts present on the switch.
Format
configscript delete {<scriptname> | all}
Mode
Privileged EXEC
configscript list
This command lists all scripts present on the switch as well as the total number of files present.
Format
configscript list
Mode
Privileged EXEC
Configuration Script
Name of the configuration script.
Size
Size of the configuration script.
configscript show
This command displays the contents of a script file. The parameter <scriptname> is the name of
the script file.
Format
configscript show
<
scriptname
>
Mode
Privileged EXEC
The format of display is
Line <no>: <Line contents>
Page 134 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
8-66
Switching Commands
202-10088-01, March 2005
configscript validate
This command validates a configuration script file by parsing each line in the script file where
<scriptname> is the name of the script to be validated. The validation will stop at the first failure of
a command..
Format
configscript validate <scriptname>
Mode
Privileged EXEC
show running-config
This command is used to display/capture the current setting of different protocol packages
supported on switch. This command displays/captures only commands with settings/
configurations with values that differ from the default value. The output is displayed in script
format, which can be used to configure another switch with the same configuration.
When a script name is provided, the output is redirected to a configuration script. The option [all]
will also enable the display/capture of all commands with settings/configurations that include
values that are same as the default values. If the optional <scriptname> is provided with a file
name extension of “.scr”, the output will be redirected to a script file.
Format
show running-config [all] [<scriptname>]
Mode
Privileged EXEC
System Log (Syslog)
This section provides a detailed explanation of the Syslog commands. The commands are divided
into two functional groups:
Show commands display spanning tree settings, statistics, and other information.
Configuration Commands configure features and options of the device. For every
configuration command there is a show command that displays the configuration setting.
Page 135 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Switching Commands
8-67
202-10088-01, March 2005
logging buffered
This command enables logging to in-memory log where up to 128 logs are kept. The
<severitylevel> value is specified as either an integer from 0 to 7 or symbolically through one of
the following keywords: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5),
informational (6), debug (7).
Default
disabled; critical
Format
logging buffered [severitylevel]
Mode
Global Config
no logging buffered
This command disables logging to in-memory log.
Format
no logging buffered
Mode
Global Config
logging buffered wrap
This command enables wrapping of in-memory logging when full capacity reached. Otherwise
when full capacity is reached, logging stops.
Default
wrap
Format
logging buffered wrap
Mode
Privileged EXEC
no logging wrap
This command disables wrapping of in-memory logging and configures logging to stop when
capacity is full.
Format
no logging buffered wrap
Mode
Privileged EXEC
logging console
This command enables logging to the console. The <severitylevel> value is specified as either an
integer from 0 to 7 or symbolically through one of the following keywords: emergency (0), alert
(1), critical (2), error (3), warning (4), notice (5), informational (6), debug (7).

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top