
Appendix A CLI Reference
Parvus SWI-22-10
Curtiss-Wright
Page 98 of 107
MNL-0641-01 Rev A3
ECO-4823
Effective: 04 Oct 16
U
SING
B
ANNERS
The system provides three different banners--text that is output as messages to the user:
The Message Of The Day banner (MOTD), displayed upon connection to the system, or when a
console login attempt has timed out
The Login banner, displayed before the first “Username:” login prompt
The Exec banner, displayed upon successful login
All banners are configured in a similar manner, using the ‘banner’ command:
banner [ motd ] <banner>
banner exec <banner>
banner login <banner>
The <
banner
> text can be either a single line or multiple lines. The first character of the text defines a
delimiter character; the actual text of the banner then follows and ends at the first appearance of the
delimiter character. Neither of the delimiters are included in the actual text. The delimiter can be any
printable character that is not used in the message.
Example: Configuring Banners
! First configure the MOTD banner, which in this case is multi-line. ‘*’ is
! used as delimiter character, but any printable character that isn’t used in
! the message is usable:
SWI2210-XXXX# configure terminal
SWI2210-XXXX(config)# banner motd *This is the Message Of The Day Banner.
Enter TEXT message. End with the character '*'.
It spans multiple lines.
And one more. But now it ends.*
! Then the Login and Exec banners. Both are single-line. Note how different
! delimiters are used in each banner:
SWI2210-XXXX(config)# banner login XThis is SWI2210-XXXX.X
SWI2210-XXXX(config)# banner exec “WARNING: Production system. Be careful.”
SWI2210-XXXX(config)# end
! Inspect configuration:
SWI2210-XXXX# show running-config
Building configuration...
banner motd "This is the Message Of The Day Banner.
It spans multiple lines.
And one more. But now it ends."
banner exec "WARNING: Production system. Be careful."
banner login "This is SWI2210-XXXX."
hostname SWI2210-XXXX
! [...]
end
! Test it: Log out, then log in again:
SWI2210-XXXX# exit
This is the Message Of The Day Banner.
It spans multiple lines.
And one more. But now it ends.
Press ENTER to get started<ENTER>
This is SWI2210-XXXX.
Username: admin
Password:
WARNING: Production system. Be careful.
SWI2210-XXXX#
! Finally save the configuration to startup-config to make it persistent:
SWI2210-XXXX# copy running-config startup-config
Building configuration...
% Saving 1461 bytes to flash:startup-config
SWI2210-XXXX#
Содержание Parvus SWI-22-10-01
Страница 8: ...Parvus SWI 22 10 Curtiss Wright Page 8 of 107 MNL 0641 01 Rev A3 ECO 4823 Effective 04 Oct 16 ...
Страница 25: ...MNL 0641 01 Rev A3 ECO 4823 Effective 04 Oct 16 Page 25 of 107 7 end 8 copy running config startup config ...
Страница 107: ...MNL 0641 01 Rev A3 ECO 4823 Effective 04 Oct 16 Page 107 of 107 ...