The command is:

bash

Switch(config)# banner motd $ Keep out $

This banner motd command configures a Message of the Day banner that is displayed when someone connects to the Cisco switch.