Viewing and setting system information

Viewing system information

Use the show system information command to list the current system information.

Examples

This example demonstrates the use of the show command to list the current system information.

switch# show system information

  Status and Counters - General System Information

   System Name        : switch
   System Contact     :
   System Location    :

   MAC Age Time (sec) : 300

   Time Zone          : 0
   Daylight Time Rule : None
.
.
.

Setting system information

Do one of the following to set system information:

  • Use the following command to set a plain-language identity for the switch, which helps to distinguish one switch from another:

    hostname <name-string> snmp-server [contact <system-contact>][location <system-location>]

    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 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:

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 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 time command to set the switch to 9:45 a.m. on November 17, 2012:

switch(config)# time 9:45 11/17/12

System parameters

The following table lists the system parameters that are modifiable and their default values. Configuration of system information is optional, but recommended.

System parameter Default value
System Name switch product name
System Contact n/a
System Location n/a
MAC Age Time 300 seconds
Time Sync Method None
Time Zone 0
Daylight Time Rule None
Time January 1, 1990 at 00:00:00 at last power reset

Descriptions of the system parameters:

  • System Name: Using a unique name helps you to identify individual devices where you are using an SNMP network management tool such as HPE PCM+.

  • System Contact and Location: This information is helpful for identifying the person administratively responsible for the switch and for identifying the locations of individual switches.

  • MAC Age Time: The number of seconds a MAC address the switch has learned remains in the switch’s address table before being aged out (deleted). Aging out occurs when there has been no traffic from the device belonging to that MAC address for the configured interval.

  • Time Sync Method: Selects the method (TimeP or SNTP) the switch will use for time synchronization. For more on this topic, see the "Time Protocols" chapter in the latest Management and Configuration Guide.

  • Time Zone: The number of minutes your time zone location is to the West (+) or East (-) of Coordinated Universal Time (formerly GMT). The default 0 means that no time zone is configured. For example, the time zone for Berlin, Germany is + 60 (minutes) and the time zone for Vancouver, Canada is - 480 (minutes).

  • Daylight Time Rule: Specifies the daylight savings time rule to apply for your location. The default is None. (For more on this topic, See Appendix D, "Daylight Savings Time on switches.)

  • Time: Used in the CLI to specify the time of day, the date, and other system parameters.