S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
2-20
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 2 Before You Begin
Directing show Command Output to a File
The following example configures a banner message with the following text “Testing the MOTD
Feature.”
switch#
config t
switch(config)#
banner motd # Testing the MOTD Feature. #
The message is restricted to 40 lines with a maximum of 80 characters in each line.
Use the
show banner motd
command to display the configured banner message.
The following example displays the configured banner message.
switch#
show banner motd
Testing the MOTD Feature
The configured MOTD banner is displayed before the login prompt on the terminal whenever a user logs
in to a Cisco MDS 9000 Family switch.
Testing the MOTD Feature
switch login:
Follow these guidelines when choosing your delimiting character:
•
Do not use the
delimiting-character
in the
message
string.
•
Do not use
"
and
%
as delimiters.
You can include tokens in the form $ (token) in the message text. Tokens will be replaced with the
corresponding configuration variable. For example:
•
$(hostname)
displays the host name for the switch
•
$(line)
displays the vty or tty line or name
The following example spans multiple lines and uses tokens to configure the banner message:
switch#
config t
switch(config)#
banner motd #
Enter TEXT message. End with the character '#'.
Welcome to switch $(hostname).
Your tty line is $(line).
#
Directing show Command Output to a File
You can direct
show
command output to a file, either on the volatile file system, on slot0 CompactFlash
memory, or on a remote server.
The following example shows how to direct the
show running-config
output to a file on the volatile file
system.
switch1#
show running-config > volatile:switch1-run.cfg
The following example shows how to direct the
show running-config
output to a file on slot0
CompactFlash memory.
switch2#
show running-config > slot0:switch2-run.cfg
The following example shows how to direct the
show running-config
output to a file on a TFTP server.
switch3#
show running-config > tftp://10.10.1.1/home/configs/switch3-run.cfg
Preparing to copy...done
Содержание 9124 - Cisco MDS Fabric Switch
Страница 76: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 122: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 328: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 482: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 733: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m P A R T 5 Security ...
Страница 734: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 957: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m P A R T 6 IP Services ...
Страница 958: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 1182: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 1214: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 1307: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m P A R T 9 Traffic Management ...
Страница 1308: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...
Страница 1331: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m P A R T 1 0 Troubleshooting ...
Страница 1332: ...Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck d o c c i s c o c o m ...