Commands For Basic Configuration

1.1 Commands for Basic Startup Configuration

1.1.1 authentication line login

Command: authentication line {console | vty | web} login {local | radius | tacacs}
no authentication line {console | vty | web} login
Function: Configure VTY (login with Telnet and SSH), Web, and Console in order to select the authentication mode priority for the user that logs in. The no command restores the default authentication mode.
Parameters: None.
Command mode: Global Mode
Default: No configuration is enabled for the console login method. Local authentication is enabled for the VTY and Web login method.
Usage guide: The authentication method for Console, VTY, and Web login can be configured. An authentication method can be any one, or combination, of Local, RADIUS, and TACACS. When the login method is configured with a combination of methods, the preference of method chosen goes from left to right. If the user has passed the authentication method, authentication methods with a lower preferences will be ignored. If the user receives a corresponding protocol?s answer with a refuse/ accept request, it will not attempt the next authentication method. (Exception: if the local authentication method failed, it will attempt the next authentication method.) If there is no answer from the corresponding protocol, then the next authentication method will be used. AAA function and RADIUS server should be configured before the RADIUS authentication can be used. TACACS server should be configured before the TACACS configuration method can be used. The authentication line console login command is exclusive to the login command and configures the switch to use the Console login method. With the login command, the Console login uses the passwords configured by the authentication password command. If local authentication is configured and no local users are configured, users will be able to login to the switch via the Console method.
Example: Configure the Telnet and ssh login methods to the RADIUS authentication method.

active500EM(config)#authentication line vty login radius

Related Commands: aaa enable, radius-server authentication host, tacacs-server authentication host, tacacs-server key
 

Command: banner motd <LINE>
no banner motd
Function: This command is used to configure the information displayed when the login authentication of a telnet or console user is successful. The no command configures the information to not display when the authentication is successful.
Parameter:

  • <LINE>: the information displayed when the authentication is successful. The length limit is from 1 to 100 characters.

Command mode: Global Mode
Default: Do not show the information when the authentication is successful.
Usage guide: Configures the information displayed when the login authentication of a telnet or console user is successful.
Example: Configure ?Welcome? to be displayed when the login authentication is successful.

active500EM(config)#banner motd Welcome

 

1.1.3 boot img

Command: boot img <img-file-url> {primary | backup}
Function: Configure the first and second img files used in the next boot of the master board.
Parameters:

  • <img-file-url>: the full path of the booting IMG file, the format is as follows:
    1. The file path is comprised of two parts: device prefix used as the root directory (flash:/) and the file name. No space is allowed in each part, or between the two parts.
    2. The suffix of all file names should be .img.
    3. The length of the full file path should not be longer than 128 characters and the file name can not be longer than 80 characters.
  • primary: configure the first IMG file.
  • backup: configure the second IMG file.

Command mode: Admin Mode
Default: The factory original configuration specifies the first booting IMG file, it is nos.img file in the FLASH, without the second booting IMG file.
Usage guide: Configures the first and second img files used in the next boot of the master board.
Example: Set flash:/nos.img as the second booting IMG file used in the next booting of
the system.

active500EM#boot img flash:/nos.img backup

Set flash:/5.4.128.0-nos.img as the primary booting IMG file used in the next booting of the system.

active500EM#boot img flash:/5.4.128.0-nos.img primary

 

1.1.4 boot startup-config

Command: boot startup-config {NULL | <file-url> }
Function: Configure the CFG file used in the next booting of the master board.
Parameters:

  • NULL: use the factory original configuration as the next booting configuration. Setting the CFG file used in the next booting as NULL implements set default and write commands.
  • <file-url>: the full path of CFG file used in the next booting.
    1. The file path is comprised of two parts: device prefix used as the root directory (flash:/) and the file name. No space is allowed in each part or between the two parts.
    2. The suffix of all file names should be .cfg.
    3. The length of the full file path should not be longer than 128 characters. The file name can not be longer than 80 characters.

Command mode: Admin Mode
Default Settings: None.
Usage guide: Configures the CFG file used in the next booting of the master board.
Example: Set flash:/ startup.cfg as the booting CFG file used in the next booting of the system.

active500EM#boot startup-config flash:/startup.cfg

Set flash:/ test-trunk.cfg as the booting CFG file used in the next booting of the system.

active500EM#boot startup-config flash:/test-trunk.cfg

 

1.1.5 clock set

Command: clock set <HH:MM:SS> <YYYY.MM.DD>
Function: Set the system date and time.
Parameters:

  • <HH:MM:SS>: current time. The valid range for HH is 0 to 23. The range for MM and SS is 0 to 59.
  • <YYYY.MM.DD>: current year, month, and date. The range for YYYY is 1970~2038, MON should be set to the current month, and the valid range for DD is between 1 and 31.

Command mode: Admin Mode
Default: Initial startup default is 2013.1.1. 0: 0: 0.
Usage guide: The active500EM will not increment time when the unit is powered off.
Example: Set the current date and time to 2013.8.1 23: 0: 0.

active500EM#clock set 23:0:0 2013.8.1

Related command: show clock
 

1.1.6 config

Command: config [terminal] Function: Enter Global Mode from Admin Mode.
Parameter:

  • [terminal]: indicates the terminal configuration.

Command mode: Admin Mode
Default: None.
Usage guide: Enters Global Mode from Admin Mode.
Example: Enter Global Mode from Admin Mode.

active500EM#config

 

1.1.7 debug ssh-server

Command: debug ssh-server
no debug ssh-server
Function: Display SSH server debugging information. The no command stops the display of SSH server debugging information.
Parameters: None.
Command mode: Admin Mode
Default: This function is disabled.
Usage guide: Display SSH server debugging information.
Example: Use the debug ssh server command to start debugging.

active500EM#debug ssh-server

 

1.1.8 disable

Command: disable
Function: Disable Admin Mode.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: Disables Admin Mode.
Example: Disable Admin Mode.

active500EM#disable

 

1.1.9 enable

Command: enable [<1-15>] Function: Use the enable command to enter Admin Mode from User Mode or to change the privilege level of the users.
Parameters:

  • <1-15>: Enable privilege level

Command mode: User Mode/ Admin Mode
Default: None.
Usage guide: To prevent unauthorized access of a non-admin user, user authentication is required (i.e. admin user password is required) when entering Admin Mode from User Mode. If the correct Admin user password is entered, Admin Mode access is granted. If three consecutive entries of the Admin user password are invalid, the system remains in User Mode. When the user?s privilege is changed from low to high level, the password needs to be authenticated for the corresponding level. Otherwise, the password will not be authenticated. Set the Admin user password under Global Mode with the ?enable password? command.
Example: Use the enable command to enter Admin Mode from User Mode or to change the
privilege level of the users.

active500EM>enable

 

1.1.10 enable password

Command: enable password [level <1-15>] [0 | 7] <password>
no enable password [level <1-15>] Function: Configure the password used to enter Admin Mode from the User Mode. The no command deletes this password.
Parameter:

  • level <1-15>: used to specify the privilege level. The default level is 15.
  • <password>: the password for the user. If 0 is entered, the password is not encrypted. If 7 is entered, the password is encrypted.

Command mode: Global Mode
Default: This password is empty by system default.
Usage guide: Configure this password to prevent unauthorized access to Admin Mode. The password should be set during initial switch configuration. Exit Admin Mode with the ?exit? command when the switch is left unattended.
Example: Configure the password used to enter Admin Mode from the User Mode.

active500EM(config)#enable password 0 test

 

1.1.11 end

Command: end
Function: Quit the current mode and return to the Admin mode when not in User Mode/ Admin Mode.
Parameters: None.
Command mode: Any mode except User Mode/Admin Mode
Default: None.
Usage guide: Quit current mode and return to Admin mode when not in User Mode/ Admin Mode.
Example: Quit VLAN mode and return to Admin mode.

active500EM#(config-vlan1)#end
active500EM#

 

1.1.12 exec-timeout

Command: exec-timeout <minutes> [<seconds>] no exec-timeout
Function: Configure timeout length of time before exiting admin mode. The no command restores the default value.
Parameter:

  • <minute>: the time value shown in minutes. The valid range is 0-35791.
  • <seconds>: the time value shown in seconds. The valid range is between 0-59.

Command mode: Global Mode
Default: Timeout is 10 minutes.
Usage guide: To secure the switch, as well as to reduce the likelihood of unauthorized access, the time will start from the last configuration made by the admin. The system will exit the Admin Mode within the configured time limit. The admin code and password must be entered to re-enter the Admin Mode again. The timeout timer will be disabled when the timeout is set to 0.
Example: Set the Admin Mode timeout value to 6 minutes.

active500EM(config)#exec-timeout 6

Set the Admin Mode timeout value to 5 minutes, 30 seconds.

active500EM(config)#exec-timeout 5 30

 

1.1.13 exit

Command: exit
Function: Quit current mode and return to the previous mode. Also if typed in the non-config mode, it will log the user out or close the telnet connection if a telnet connection is being used.
Parameters: None.
Command mode: All Modes
Default: None.
Usage guide: This command is used to quit the current mode and return to the previous mode.
Example: Quit Global Mode and return to the previous mode.

active500EM(config)#exit
active500EM#
active500EM#exit
User Access Verification
Username:

 

1.1.14 help

Command: help
Function: Provides a brief description of the help system.
Parameters: None
Command mode: All Configuration Modes
Default: None.
Usage guide: The help command displays information about the help system. The user can type in ??? at any time to get online help. The CLI provides advanced help features. Enter ??? at the command line for additional help. If no information is returned, then you must return to the previous screen until entering a ??? shows available options.
Two styles of help are provided:
Full help is available when you are ready to enter a command argument (e.g. ?show ??). Full help describes each possible argument.
Partial help is provided when an abbreviated argument is entered and you want to know which arguments match the input (e.g. ?show ve??).
Example: Display a description of the help system.

active500EM(config)#help
CLI provides advanced help feature.  When you need help,
anytime at the command line please press '?'.
If nothing matches, the help list will be empty and you must backup
until entering a '?' shows the available options.
Two styles of help are provided:
1. Full help is available when you are ready to enter a
   command argument (e.g. 'show ?') and describes each possible
   argument.
2. Partial help is provided when an abbreviated argument is entered
   and you want to know what arguments match the input
   (e.g. 'show ve?'.)

 

1.1.15 hostname

Command: hostname <hostname>
no hostname
Function: Set the prompt in the switch command line interface. The no command cancels the configuration.
Parameter:

  • <hostname>: string that should be entered for the prompt. Up to 64 characters are allowed.

Command mode: Global Mode
Default: The default prompt is active500EM.
Usage guide: With this command, the user can set the CLI prompt of the active500EM according to their own requirements.
Example: Set the prompt to ?Test?.

active500EM(config)#hostname Test
Test(config)#

 

1.1.16 ip host

Command: ip host <hostname> <ip-addr>
no ip host {<hostname>|all}
Function: Set the mapping relationship between the host and the IP address. The no command deletes the mapping.
Parameters:

  • <hostname>: the host name; up to 64 characters are allowed
  • <ip-addr>: the corresponding IP address for the host name. Valid format is dot decimal.
  • all: Remove all host names.

Command mode: Global Mode
Default: None.
Usage guide: Set the association between the host and the IP address. This association is used in commands such as ?ping <host>?.
Example: Set the IP address of a host with the hostname of ?texas? to 200.121.1.1.

active500EM(config)#ip host texas 200.121.1.1

Related commands: telnet, ping, traceroute
 

1.1.17 ipv6 host

Command: ipv6 host <hostname> <ipv6-addr>
no ipv6 host { <hostname> | all}
Function: Configure the mapping relationship between the IPv6 address and the host. The no command deletes this mapping relationship.
Parameters:

  • <hostname>: name of the host. The valid length is up to 64 characters.
  • <ipv6-addr>: IPv6 address corresponding to the host name.
  • all: Remove all host names.

Command mode: Global Mode
Default: None.
Usage guide: Configure a fixed corresponding relationship between the host and the IPv6 address. This relationship is applicable in commands such as ?traceroute6 <host>?.
Example: Set the IPv6 address of the host named houston to 2001:1:2:3::1.

active500EM(config)#ipv6 host houston 2001:1:2:3::1

Related commands: ping6, traceroute6
 

1.1.18 ip http server

Command: ip http server
no ip http server
Function: Enable Web configuration. The no command disables Web configuration.
Parameters: None.
Default: None.
Command mode: Global Mode
Usage guide: Web configuration provides an interface configured with the HTTP of the user.
Example: Enable the Web Server function and enable Web configurations.

active500EM(config)#ip http server

 

1.1.19 login

Command: login
no login
Function: Enable password authentication during login. The no command cancels the login configuration.
Parameters: None.
Command mode: Global Mode
Default: No login by default
Usage guide: By using this command, users must enter the password set by the password command to enter normal user mode through the console. The no login command cancels this restriction.
Example: Enable password authentication during login.

active500EM(config)#login

 

1.1.20 password

Command: password [0 | 7] <password>
no password
Function: Configure the password used to enter normal user mode on the console. The no command deletes this password.
Parameter:

  • password: the password for the user. If option 0 is used for the password setting, the password is not encrypted. If option 7 is used for the password setting, the password is encrypted.

Command mode: Global Mode
Default: This password is empty.
Usage guide: When both this password and the login command are configured, users must enter the password set by the password command to enter normal user mode on the console.
Example: Configure the password used to enter normal user mode on the console.

active500EM(config)#password 0 test
active500EM(config)#login

 

1.1.21 privilege

Command: privilege mode level <1-15> LINE
no privilege mode level <1-15> LINE
Function: Configure the level for the specified command. The no command restores the original level of the command.
Parameters:

  • mode: register mode of the command. ?Tab? or ??? shows all register modes.
  • <1-15>: level. The valid range is between 1 and 15.
  • LINE: the command that needs to be configured. This parameter supports the command abbreviation.

Command mode: Global Mode
Default: None.
Usage guide: This function does not change the command itself. The LINE parameter must be the entire command format or the correct abbreviated format. The configuration will not be successful if the LINE parameter is not valid. To change the command line via the parameter, the parameter must be in the required format. Optionally, the no command can be set and the result is not affected. When using the no command, LINE must be the configured command line. If the no command is used with a parameter, the parameter must match the configured command.
Example: Change the level of the ?show ip route? command to level 5.

active500EM(config)#privilege exec level 5 show ip route

Change the level of the ?peer 1.2.3.4 command? to level 6.

active500EM(config)#privilege router-msdp level 6 peer 1.2.3.4

Restore the original level for the ?show ip route? command.

active500EM(config)#no privilege exec level 5 show ip route

Restore the original level for the ?peer 1.2.3.4? command.

active500EM(config)#no privilege router-msdp level 6 peer 1.2.3.4

 

1.1.22 reload

Command: reload
Function: Warm reset of the switch.
Parameters: None.
Command mode: Admin Mode
Default: None.
Usage guide: The user can use this command to restart the switch without powering off.
Example: Restart the switch without powering off.

active500EM#reload
Process with reboot? [Y/N] y

 

1.1.23 service password-encryption

Command: service password-encryption
no service password-encryption
Function: Encrypt the system password. The no command cancels the encryption.
Parameters: None.
Command mode: Global Mode
Default: No password encryption.
Usage guide: Current un-encrypted passwords as well as passwords configured by password, enable password, ip ftp, and the username command will be encrypted by executing this command. no service password-encryption cancels this configuration, however, encrypted passwords remain unchanged.
Example: Encrypt system passwords.

active500EM(config)#service password-encryption

 

1.1.24 service terminal-length

Command: service terminal-length <0-512>
no service terminal-length
Function: Configure the columns of characters displayed in each screen on the terminal (vty). The no command cancels this command.
Parameter:

  • Columns of characters displayed on each screen of vty. Valid values have a range between 0-512.

Command mode: Global Mode
Default: None.
Usage guide: Configure the columns of characters displayed on each screen of the terminal. The columns of characters displayed on each screen on the telent.ssh client and the console will be affected.
Example: Set the number of vty threads to 20.

active500EM(config)#service terminal-length 20

 

1.1.25 sysContact

Command: sysContact <LINE>
no sysContact
Function: Set the factory contact mode. The no command resets the switch to factory settings.
Parameter:

  • <LINE>: the prompt character string. The valid range is from 0 to 255 characters.

Command mode: Global Mode
Default: Factory settings.
Usage guide: The user can set the factory contact mode based on the parameter entered.
Example: Set the factory contact mode to test.

active500EM(config)#sysContact test

 

1.1.26 sysLocation

Command: sysLocation <LINE>
no sysLocation
Function: Sets the factory address. The no command resets the switch to factory settings.
Parameter:

  • <LINE>: prompt character string with a range from 0 to 255 characters.

Command mode: Global Mode
Default: Factory settings.
Usage guide: The user can set the factory address.
Example: Set the factory address to test.

active500EM(config)#sysLocation test

 

1.1.27 set default

Command: set default
Function: Reset the switch to factory settings.
Parameters: None.
Command mode: Admin Mode
Usage guide: Reset the switch to factory settings. All switch configurations made by the user will be reset to factory default. Note: After the command, the ?write? command must be executed to save the operation. The switch will reset to factory settings after restart.
Example: Reset the switch to factory settings.

active500EM#set default
Are you sure? [Y/N] y
active500EM#copy run start
NULL(factory config) will be used as the startup-config file at the next time!
active500EM#reload
Process with reboot? [Y/N] y

 

1.1.28 setup

Command: setup
Function: Enter the setup mode of the switch.
Parameters: None.
Command mode: Admin Mode.
Default: None.
Usage guide: The setup mode allows the user to configure various settings including the IP address.
Example: Enter the setup mode of the switch.

active500EM#setup
        ---System Configuration Dialog---
At any point you may enter a question mark '?' for help.
Default settings are in square brackets '[]', if you do
not change the default settings, you may input enter.
Continue with configuration dialog? [y/n]:y
Configure menu
[0]: Config hostname
[1]: Config interface-Vlan1
[2]: Config telnet-server
[3]: Config web-server
[4]: Config SNMP
[5]: Exit setup configuration without saving
[6]: Exit setup configuration after saving
Selection Number:

 

1.1.29 show clock

Command: show clock
Function: Display the current system clock.
Parameters: None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Displays the current system clock.
Example: Display the current system clock.

active500EM#show clock
Current time is TUE AUG 22 11:00: 01 2013

Related command: clock set
 

1.1.30 show cpu usage

Command: show cpu usage [<slotno>] Function: Show CPU usage rate.
Parameters: None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Check the current CPU resource usage by the show cpu usage command. The slotno parameter is used to show the CPU usage rate of the card on a specified slot, if there is no parameter, the default is the current card.
Example: Show the current usage rate of the CPU.

active500EM#show cpu usage
Last  5 second CPU IDLE:  94%
Last 30 second CPU IDLE:  94%
Last  5 minute CPU IDLE:  94%
From  running  CPU IDLE:  94%

 

1.1.31 show cpu utilization

Command: show cpu utilization
Function: Show the current CPU utilization rate.
Parameters: None.
Command mode: Admin mode
Default: None.
Usage guide: This command is used to show the CPU utilization rate in the past 5 seconds, 30 seconds, and 5 minutes.
Example: Show CPU utilization rate.

active500EM#show cpu utilization
Last  5 second CPU USAGE:   6%
Last 30 second CPU USAGE:   6%
Last  5 minute CPU USAGE:   6%
From  running  CPU USAGE:   6%

 

1.1.32 show memory usage

Command: show memory usage [<slotno>] Function: Show the memory usage rate.
Parameters: None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: Check the current memory usage by the show memory usage command. The slotno parameter is used to show the memory usage rate of the card on the specified slot, if there is no parameter, the default is the current card.
Example: Show the current memory usage rate.

active500EM#show memory usage
The memory total 128 MB, free 58914872 bytes, usage is 56.10%.

 

1.1.33 show privilege

Command: show privilege
Function: Show privileges of current users.
Parameters: None.
Command mode: All Configuration Modes
Default: None.
Usage guide: Show privileges of current users.
Example: Show privileges of current users.

active500EM(config)#show privilege
Current privilege level is 15

 

1.1.34 show privilege mode LINE

Command: show privilege mode LINE
Function: Show the level of the specified command.
Parameters:

  • mode: register mode of the command. ?Tab? or ??? shows all register modes.
  • LINE: command to be configured. The abbreviation for the command can also be used.

Command mode: Admin and Configuration mode
Default: None.
Usage guide: The information entered for the LINE parameter must include the entire formatted command or the correct abbreviated command. If the information entered for the LINE parameter is not a valid value, the command will not be successful.
Example: Show the level of the privilege command.

active500EM(config)#show privilege exec show ip route
The command: show ip route
Privilege is: 15

 

1.1.35 show temperature

Command: show temperature
Function: Display the current temperature of the CPU.
Parameters: None.
Command mode: All Modes
Default: None
Usage guide: This command is used to monitor the temperature of the active500EM?s CPU.
Example: Display the current temperature of the active500EM?s CPU.

active500EM(config)#show temperature
Temperature: 47.0625?C

 

1.1.36 show tech-support

Command: show tech-support
Function: Display all current settings on the active500EM and the extended report requested by tech support personnel.
Parameters: None
Command mode: All Modes
Default: None
Usage guide: This command is used to compile system information.
Example: Display the current status of the active500EM for tech support assistance.

active500EM#sh tech-support
Dumping tech-support information, please wait a minute ...
system clock:
================================
Current time is Mon Mar 24 11:45:34 2014
version:
================================
  active500EM Device, Compiled on Feb 26 00:07:40 2014
  sysLocation 11801 Pierce St., Riverside, CA 92505
  CPU MAC          f8-f7-d3-24-5b-cf
  VLAN MAC         f8-f7-d3-24-5b-ce
  Software Version 7.0.3.5(R0132.0009)
  Bootrom Version  7.0.21
  Hardware Version 2.0.2
  CPLD Version     0.09
  Serial No        GOSWE310DA24790011
  Copyright (C) 2014 International Communications Corporation, Inc.
  All rights reserved
  Last reboot was warm reset.
  Uptime is 0 weeks, 0 days, 1 hours, 19 minutes
system logging info:
================================
Current messages in SDRAM:525
...
...
...

 

1.1.37 show version

Command: show version
Function: Displays the hardware and software versions of the active500EM.
Parameters None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: This command is used to show the hardware and software versions of the active500EM.
Example: Display the hardware and software versions of the active500EM.

active500EM#show version
  active500EM Device, Compiled on Feb 26 00:07:40 2014
  sysLocation 11801 Pierce St., Riverside, CA 92505
  CPU MAC          f8-f7-d3-24-5b-cf
  VLAN MAC         f8-f7-d3-24-5b-ce
  Software Version 7.0.3.5(R0132.0009)
  Bootrom Version  7.0.21
  Hardware Version 2.0.2
  CPLD Version     0.09
  Serial No        GOSWE310DA24790011
  Copyright (C) 2014 International Communications Corporation, Inc.
  All rights reserved
  Last reboot was warm reset.
  Uptime is 0 weeks, 0 days, 0 hours, 34 minutes

 

1.1.38 username

Command: username <username> [privilege <privilege>] [password [0 | 7] <password>] no username <username>
Function: Configure the local login username and password along with the associated privilege level.
Parameters:

  • <username>: username. The value should not exceed 32 characters.
  • <privilege>: maximum privilege level of the commands that the user is able to execute. The valid range is between 1 and 15, and 1.
  • <password>: password for the user. If 0 is entered, the password is not encrypted. If 7 is entered the password is encrypted. 32 bit password encrypted by MD5 should be used.

Command mode: Global Mode
Default: None.
Usage guide: There are two available choices for the registered command preferences on the active500EM. The preferences are 1 and 15. Preference of 1 is for the commands for normal user configuration mode. Preference of 15 is for the commands registered in modes other than normal user configuration modes. 16 local users, at most, can be configured through this command, and the maximum length of the password should be no less than 32 bits. The user can enter the local login name and priority after the command configures. One user must be configured with a preference level of 15 in order to login to the switch and make configuration changes in Privileged Mode and Global Mode. If there are no configured local users with a preference level of 15, and only Local authentication is configured for the Console login method, the switch can be logged into without any authentication. When using the HTTP method, only users with preference level of 15 can login to the switch. Users with a preference level other than 15 will be denied.
Example: Configure an administrator account named admin with a preference level of 15.
Configure two normal accounts with a preference level set to 1. Enable local
authentication method. Only the admin user is able to login to the switch in
privileged mode through Telnet or the Console login method. User1 and user2 can
only login to the switch in normal user mode through the telnet and console login
methods. For the HTTP login method, only the admin user can pass the authentication
configuration. User1 and user2 will be denied.

active500EM(config)#username admin privilege 15 password 0 admin
active500EM(config)# username user1 privilege
1 password 7 4a7d1ed414474e4033ac29ccb8653d9b
active500EM(config)# username user2 password 0 user2
active500EM(config)# authentication line console login local

 

1.1.39 web-auth privilege

Command: web-auth privilege <1-15>
no web-auth privilege
Function: Configure the login authorized privilege level via the web.
Parameter:

  • <1-15>: Enter the login authorized privilege level via the web. The valid range is from 1 to 15.

Command mode: Global Mode.
Default: 15.
Usage guide: After configuring the login authorized privilege level via the web, only the user with the level that is equal to or higher than the set parameter can login to the switch via the web.
Example: Configure the login authorized privilege level via the web to 10.

active500EM(config)#web-auth privilege 10

 

1.1.40 write

Command: write
Function: Save the currently configured parameters to the Flash memory.
Parameters: None.
Command mode: Admin Mode.
Default: None.
Usage guide: After entering a set of configurations, the configuraton settings should be saved to a specified configuration file. This allows the switch to revert to the saved configuration automatically in case of power failure. This command is the equivalent to the copy running-config startup-config command.
Example: Save the currently configured parameters to the Flash memory.

active500EM#write

 

1.1.41 write running-config

Command: write running-config [<startup-config-file-name>] Function: Save the current running config as .cfg file to Flash Memory.
Parameters:

  • <startup-config-file-name>: full path of the cfg file. The format is as follows.
    1. The file path is comprised of the device prefix (used as the root directory (flash:/)) and the file name. No spaces are allowed in the file path.
    2. The suffix of all file names should be .cfg.
    3. The length of the full file path should not be longer than 128 characters, while the file name cannot be longer than 80 characters.

Command mode: Admin Mode
Default: None.
Usage guide: The config file saved by Flash Memory can be used as the startup file.
Example: Save the current running config as a .cfg file with the name of 123.

active500EM#write running-config 123.cfg

 


Return to Controller Wired CLI Table of Contents