Each field allows up to 255 characters. To help simplify administration, it is recommended that you set
hostname to a character string that is meaningful within your system.
Use the
mac-age-time <10-1000000>
command to set the MAC age time for learned MAC addresses. The default value is 300 seconds.
The MAC age time corresponds to the MAC Age Interval in the menu interface.
Use the following command to set the time zone and daylight-time rule:
time timezone <-720 - 840> time daylight-time-rule [ alaska | continental-us-and-canada | middle-europe-and-portugal | southern-hemisphere | western-europe | <user-defined> ]
The default daylight-time rule is none. For the time zone: east of the 0 meridian, the sign is "+"; west of the 0 meridian, the sign is "-". For example, the time zone setting for Berlin, Germany is +60 (zone + 1, or 60 minutes) and the time zone setting for Vancouver, Canada is –480 (zone – 8, or –480 minutes).
Use the
time [<hh>:<mm>[:<ss>]][<mm>/<dd>/[<yy>]<yy>]command to set the time and date.
The CLI uses a 24-hour clock scheme; that is, hour (hh) values from 1 p.m. to midnight are input as 13 - 24, respectively.
Examples
This example shows the use of the
time command to set the switch to 9:45 a.m. on November 17, 2012:
switch(config)# time 9:45 11/17/12
This example shows the use of the
time command to set the time zone and daylight time rule for Vancouver, Canada:
switch(config)# time timezone -480 daylight-time-rule
continental-us-and-canada
This example shows the use of the
mac-age-time command to set the age time to seven minutes:
switch(config)# mac-age-time 420
This example shows the system information listing after executing the
hostname command to name the switch "Blue" with "Next-4474" as the system contact, and "North-Data-Room" as the location: