20-2
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 20 Administering the Switch
Setting the System Name and System Prompt
If the DNS lookup is successful, the DNS host name of the switch is configured as the system name of
the switch and is saved in NVRAM (the domain name is removed).
If you have not configured a system prompt, the first 20 characters of the system name are used as the
system prompt (a greater-than symbol [>] is appended). The prompt is updated whenever the system
name changes, unless you manually configure the prompt using the
set prompt
command.
The switch performs a DNS lookup for the system name whenever one of the following occurs:
•
The switch is initialized (power on or reset)
•
You configure the IP address on the sc0 interface using the command-line interface (CLI) or Simple
Network Management Protocol (SNMP)
•
You configure a route using the
set ip route
command
•
You clear the system name using the
set system name
command
•
You enable DNS or specify DNS servers
If the system name is user configured, no DNS lookup is performed.
Setting the Static System Name and Prompt
These sections describe how to set the static system name and prompt:
•
Setting the Static System Name, page 20-2
•
Setting the Static System Prompt, page 20-3
•
Clearing the System Name, page 20-3
Setting the Static System Name
To set a static system name, perform this task in privileged mode:
Note
When you set the system name, the system name is used as the system prompt. You can override the
prompt string with the
set prompt
command.
This example shows how to configure the system name on the switch:
Console> (enable)
set system name Catalyst 6000
System name set.
Catalyst 6000> (enable)
Task
Command
Set the static system name.
set system name
name_string