mac
Commands for Basic Switch Configuration
36
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 switch.
Parameters: The NULL keyword means to use the factory original configuration as the
next booting configuration. Setting the CFG file used in the next booting as NULL equals
to implementing set default and write commands. <file-url> is the full path of CFG file
used in the next booting. The format of which is as follows:
1. The file path comprises of three parts: device prefix used as the root directory
(flash:/), sub-directory, and the file name. No space is allowed in each part or between
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, while the
file name can not be longer than 80 characters.
Command Mode: Admin Mode.
Default Settings: None.
Usage Guide: Configure the CFG file used in the next booting can only use .cfg files
stored in the switch.
Example: Set flash:/ startup.cfg as the CFG file used in the next booting of the switch.
Switch# boot startup-config flash:/ startup.cfg
1.1.5 clock set
Command: clock set <HH:MM:SS> <YYYY.MM.DD>
Function: Set system date and time.
Parameter: <HH:MM:SS>is the current time, and the valid scope for HH is 0 to 23, MM
and SS 0 to 59; <YYYY.MM.DD> is the current year, month and date, and the valid
scope for YYYY is 1970~2038, MON meaning month, and DD between 1 to 31.
Command mode: Admin Mode.
Default: upon first time start-up, it is defaulted to 2006.1.1 0: 0: 0.
Usage guide: The switch cannot continue timing with power off, hence the current date
and time must be first set at environments where exact time is required.
Example: To set the switch current date and time to 2002.8.1 23: 0: 0:
Switch#clock set 23:0:0 2002.8.1
Relative Command: show clock










