Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 40 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 at 21:42

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.