152
Have a nice day.
Please input the Password.%
•
Method II—Type a character after the command keywords at the first line, and then press
Enter
.
Type the banner information, and end with the character you typed at the first line. The start
character and the end character are not part of the banner information. For example, to configure
a banner like “Have a nice day. Please input the Password.”, use the following commands:
<System> system-view
[System] header shell A
Please input banner content, and quit with the character 'A'.
――
System prompt
Have a nice day.
Please input the Password.A
•
Method III—Type multiple characters after the command keywords at the first line (with the first and
last characters being different), and then press
Enter
. Type the rest banner information, and end
with the first character you typed at the first line. The first input character at the first line and the end
character are not part of the banner information. For example, to configure a banner like “Have a
nice day. Please input the Password.”, use the following commands:
<System> system-view
[System] header shell AHave a nice day.
Please input banner content, and quit with the character 'A'.
――
System prompt
Please input the Password.A
Configuration procedure
Follow these steps to configure a banner:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure the incoming banner
header incoming
text
Optional
Configure the login banner
header login
text
Optional
Configure the legal banner
header legal
text
Optional
Configure the shell banner
header shell
text
Optional
Configure the MOTD banner
header motd
text
Optional
Configuring the exception handling method
You can configure the device to handle system exceptions in one of the following methods:
•
reboot
—The device automatically reboots to recover from the error condition.
•
maintain
—The device stays in the error condition so you can collect complete data, including error
messages, for diagnosis. In this approach, you must manually reboot the device.
Follow these steps to configure the exception handling method:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure the exception handling
method
system-failure
{
maintain
|
reboot
}
Optional
By default, the system reboots
when an exception occurs.