The syntax for the MoTD banner command is:
banner motd {char} {banner text} {char}
where {char} is a special delimeter character that does not exist in the {banner text}. Everything contained between the first and second {char} characters, including carriage returns, is interpreted as the banner message. For example,
config t
banner motd #
******************************************
* Unauthorized access prohibited
* Hostname $(hostname)
* Domain $(domain)
* Line $(line)
******************************************
#