AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 830818
Accepted
Raffael
Raffael
Asked: 2017-02-07 02:07:24 +0800 CST2017-02-07 02:07:24 +0800 CST 2017-02-07 02:07:24 +0800 CST

如何显示 EC2 实例摘要报告?

  • 772

通过 SSH 连接到 EC2 实例后,我得到了一份不错的摘要报告 - 您可以在下面找到该报告。是否可以使用命令显示此报告?

➜  ~ 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:~$ 
amazon-ec2 amazon-web-services ubuntu-16.04
  • 2 2 个回答
  • 292 Views

2 个回答

  • Voted
  1. Bogdan Stoica
    2017-02-07T02:50:14+08:002017-02-07T02:50:14+08:00

    对的,这是可能的。实际上有一些脚本。波纹管显示系统信息,如负载、内存、交换等

    /usr/share/landscape/landscape-sysinfo.wrapper
    

    可以在此位置找到其他脚本:

    /etc/update-motd.d
    

    以下是他们的完整列表:

    4 -rwxr-xr-x   1 root root 1220 Feb 20  2014 00-header
    4 -rwxr-xr-x   1 root root 1358 Feb 20  2014 10-help-text
    0 lrwxrwxrwx   1 root root   46 Jan 14  2016 50-landscape-sysinfo -> /usr/share/landscape/landscape-sysinfo.wrapper
    4 -rwxr-xr-x   1 root root  334 Jan 14  2016 51-cloudguest
    4 -rwxr-xr-x   1 root root  149 Aug 22  2011 90-updates-available
    4 -rwxr-xr-x   1 root root  299 Nov 13  2014 91-release-upgrade
    4 -rwxr-xr-x   1 root root  129 Aug  5  2016 95-hwe-eol
    4 -rwxr-xr-x   1 root root  111 Jun  3  2015 97-overlayroot
    4 -rwxr-xr-x   1 root root  142 Aug 22  2011 98-fsck-at-reboot
    4 -rwxr-xr-x   1 root root  144 Aug 22  2011 98-reboot-required
    
    • 2
  2. Best Answer
    HBruijn
    2017-02-07T02:39:22+08:002017-02-07T02:39:22+08:00

    据我所知,“报告”是传统 MOTD(每日消息)登录消息的特定于 Ubuntu 的动态版本,使用update-motd.

    您可以通过阅读文件来访问该报告/var/run/motd

    从手册:

    UNIX/Linux 系统管理员经常通过维护文件中的文本与控制台和远程用户交流重要信息,该文件 /etc/motd由 pam_motd(8) 模块在交互式 shell 登录时显示。

    传统上,此文件是静态文本,通常由发行版安装,仅在版本升级时更新,或由本地管理员用相关信息覆盖。

    Ubuntu 引入了 update-motd 框架,通过该框架,motd(5) 在登录时从一组脚本动态组装。

    中的可执行脚本/etc/update-motd.d/*由 pam_motd(8) 在每次登录时以 root 用户身份执行,并且此信息连接在 /var/run/motd.

    • 1

相关问题

  • 权限被拒绝(公钥)。从本地 Ubuntu 到 Amazon EC2 服务器的 SSH

  • 管理员如何管理他们的 EC2 EBS 和快照?

  • 云有多大?[关闭]

  • EC2 映像启动

  • 如何将安全组添加到正在运行的 EC2 实例?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve