Nodegrid CLI - Add banner message with multiple lines

Nodegrid CLI - Add banner message with multiple lines

The CLI command to add a login banner message with multiple lines, can be entered all on a single line. This is sometimes required when using automation tools. The 'set banner=' command requires the text to be inside double quotes and the linefeed/carriage-return escape code to use a double backslash ā€˜\\nā€™

For example: (all one line) Please note, there is a space between the set command and the banner=  command

[admin@nodegrid /]# set /settings/system_preferences/ banner="WARNING This private system is provided for authorized use only and it may be\\nmonitored for all lawful purposes to ensure its use. All information\\nincluding personal information, placed on or sent over this system may be\\nmonitored and recorded. Use of this system, authorized or unauthorized, \\nconstitutes consent to monitoring your session. Unauthorized use may \\nsubject you to criminal prosecution. Evidence of any such unauthorized \\nuse may be used for administrative, criminal and/or legal actions. \\n"

Manual entry, example:

[admin@nodegrid /]#
[admin@nodegrid /]# cd /settings/system_preferences/
[admin@nodegrid system_preferences]# set banner="WARNING This private system is provided for authorized use only and it may be\\nmonitored for all lawful purposes to ensure its use. All information\\nincluding personal information, placed on or sent over this system may be\\nmonitored and recorded. Use of this system, authorized or unauthorized, \\nconstitutes consent to monitoring your session. Unauthorized use may \\nsubject you to criminal prosecution. Evidence of any such unauthorized \\nuse may be used for administrative, criminal and/or legal actions. \\n"
[admin@nodegrid system_preferences]# commit

$ ssh root@192.168.1.10
WARNING This private system is provided for authorized use only and it may be
monitored for all lawful purposes to ensure its use. All information
including personal information, placed on or sent over this system may be
monitored and recorded. Use of this system, authorized or unauthorized,
constitutes consent to monitoring your session. Unauthorized use may
subject you to criminal prosecution. Evidence of any such unauthorized
use may be used for administrative, criminal and/or legal actions.
 
Password: _






    • Related Articles

    • Can banner be configured on NodeGrid?

      Yes, you can configure banner. Here is an example from CLI on how to configure the banner: Connect to the NodeGrid via ssh or console port, and log in as admin. Then type the following commands: [admin@nodegrid /]# cd /settings/system_preferences/ ...
    • Event Notifications are displayed on the CLI session

      Problem: When a user connects to the CLI session, event notifications are displayed as part of the CLI session like: 2021 Jan 01 00:00:00 nodegrid Event Notification from nodegrid. Reported on 2020-01-01T00:00:00Z. Event ID 200: A user logged into ...
    • Network Configuration via CLI

      Example of configuring the ETH0 interface via CLI (please, replace the network values with your own information). Log in as admin to the Nodegrid console port or HDMI Type the following commands (in bold): [admin@nodegrid /]# cd ...
    • Nodegrid Manager Installation in ESXi 5

      Nodegrid Manager software is installed from an ISO file. The installation procedure is a three-stage process:  Creating a virtual machine; Booting from the ISO file in order to install the software; Restarting and booting from the newly created ...
    • Nodegrid Manager Installation in ESXi 6

      Nodegrid Manager software is installed from an ISO file. The installation procedure is a three-stage process:  Creating a virtual machine; Booting from the ISO file in order to install the software; Restarting and booting from the newly created ...