amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
521 stars 39 forks source link

[Package Request] - sos #753

Open chhanz opened 2 months ago

chhanz commented 2 months ago

What package is missing from Amazon Linux 2023? Please describe and include package name.

Package Name : sos Package describe : Sos is an extensible, portable, support data collection tool primarily aimed at Linux distributions and other UNIX-like operating systems.

Is this an update to existing package or new package request?

New package request

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify.

This package can be used by installing from source on Amazon Linux 2 and 2023.

For example on Amazon Linux 2023 :

$ sudo dnf -y install git python3-pip python3-magic
$ sudo git clone https://github.com/sosreport/sos.git
$ cd sos/
$ sudo pip install -r requirements.txt$ sudo mkdir /etc/sos
$ cp sos.conf /etc/sos/
$ sudo python3 setup.py install
$ sudo which sos
/usr/local/bin/sos

$ sudo sos report

sosreport (version 4.7.0)

This command will collect system configuration and diagnostic
information from this Amazon Linux system.

For more information on Amazon visit:

        Distribution Website : https://aws.amazon.com
...

 Setting up archive ...
 Setting up plugins ...

 ...Skip

Creating compressed archive...

Your sosreport has been generated and saved in:
    /var/tmp/sosreport-ip-172-31-1-4-2024-03-18-kausmsr.tar.xz

 Size   8.69MiB
 Owner  root
...

Any additional information you'd like to include. (use-cases, etc)

This package collects and archives information about the system's details and current configuration status. This allows the user to save the current server configuration state, and also makes it convenient to request assistance from Support engineers. It is worth noting that while Amazon Linux 2 had the ec2rl tool, Amazon Linux 2023 does not support the use of ec2rl. Therefore, I would like to request the addition of the sos package.

sos github : https://github.com/sosreport/sos

thimslugga commented 1 month ago

There's a ec2rl package is the AL2023 repos.

[root@jumphost ~]# dnf search ec2rl
Last metadata expiration check: 21:37:43 ago on Mon 15 Jul 2024 08:23:16 PM UTC.
ec2rl.noarch : Automatic diagnostic tool for Linux

[root@jumphost ~]# dnf info ec2rl
Last metadata expiration check: 21:38:44 ago on Mon 15 Jul 2024 08:23:16 PM UTC.
Installed Packages
Name         : ec2rl
Version      : 1.1.6
Release      : 1.amzn2023.0.2
Architecture : noarch
Size         : 49 M
Source       : ec2rl-1.1.6-1.amzn2023.0.2.src.rpm
Repository   : @System
From repo    : amazonlinux
Summary      : Automatic diagnostic tool for Linux
URL          : https://github.com/awslabs/aws-ec2rescue-linux
License      : Apache-2.0 AND PSF-2.0
Description  : A framework and collection of modules for diagnosing and resolving issues and collecting data.
chhanz commented 1 month ago

@thimslugga, Thanks all for kind advice. However, I think the sos package is a good tool to collect more information than ec2rl. So I think it would be nice to hear additional opinions from the AL team. Thank you.