After connecting to an EC2 instance via SSH I get a nice summary report shown - the one you find below. Is it possible to display this report with a command?
➜ ~ ssh ...
Warning: the ECDSA host key for 'example.net' differs from the key for the IP address '12.34.56.78'
Offending key for IP in /home/user/.ssh/known_hosts:30
Matching host key in /home/user/.ssh/known_hosts:66
Are you sure you want to continue connecting (yes/no)? yes
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-59-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon Feb 6 10:03:28 UTC 2017
System load: 0.66 Processes: 155
Usage of /: 43.0% of 49.08GB Users logged in: 0
Memory usage: 1% IP address for eth0: 172.12.34.56
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
10 packages can be updated.
10 updates are security updates.
*** System restart required ***
Last login: Mon Feb 6 09:20:51 2017 from 31.19.89.2
ubuntu@ip-172-12-34-56:~$
Yes it is possible. There are in fact some scripts. The one bellow displays system information like load, memory, swap etc
The other scripts can be found on this location:
Here is a full list with them:
As far as I know that "report" is an Ubuntu specific dynamic version of the traditional MOTD (message of the day) login message that gets generated with
update-motd
.You can simply access that report by reading the file
/var/run/motd
From the manual: