Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a local server running Ubuntu 10.04 headlessly. When I ssh to the server I get some core information about the system, such as

System load:  0.0                Processes:           XXX
Usage of /:   2.5% of 452.69GB   Users logged in:     0
Memory usage: 10%                IP address for lo:   XXX.XXX.XXX.XXX
Swap usage:   0%                 IP address for eth0: XXX.XXX.XXX.XXX
Temperature:  40 C

What is the command to get this information to print again? I tried looking in the rc.local and the bash.bashrc file to see how this was run, but I could not find anything.

share|improve this question
up vote 61 down vote accepted

The command is

landscape-sysinfo

it is run from /etc/update-motd.d/50-landscape-sysinfo when you have installed the package landscape-common.

As of Ubuntu 12.04 (perhaps earlier), update-motd is run at login time by the PAM module pam_motd.so. Originally, update-motd was a cron job.

share|improve this answer
    
excellent. Thank you. – Codemwnci Oct 17 '10 at 15:14
    
slight mistake, it should be /etc/update-motd.d/50-landscape-sysinfo not /etc/update-motd.d/run 50-landscape-sysinfo – Nick HS Oct 17 '10 at 15:16
    
thanks, fixed it. – sroecker Oct 17 '10 at 15:21
    
I've installed landscape-common but don't see the information when I log in again. Do I have to reboot the server? – Dan Dascalescu Jul 21 '14 at 21:42
    
Possibly useful additional info (referring to 14.04.3): # update-motd appears to dynamically update /var/run/motd.dynamic and "interestingly" when you log-in you actually get the output from the previous run. # landscape-sysinfo accepts some useful options (which can be set in /etc/update-motd.d/50-landscape-sysinfo), such as --exclude-sysinfo-plugins=Network – sxc731 Nov 14 '15 at 11:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.