From: Evgeny Sinelnikov <sin@altlinux.ru> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] system-report с профилями Date: Thu, 10 Nov 2016 04:33:48 +0300 Message-ID: <CAK42-Gq1u10Di4N0APgjX1ATULB5XqPdfpeqzr=y7a8LxSxp9A@mail.gmail.com> (raw) Здравствуйте, хочу поделиться идеей-предложением о расширении возможностей утилиты system-report. Само предложение я собрал в виде тестового задания: #172104 EPERM #1 [test-only] sisyphus system-report.git=0.2.0-alt1 git.altlinux.org/people/sin/packages/system-report.git $ system-report --help | tail -n7 -o, --outfile=FILE Save report archive info <FILE>; -p, --profile=TYPE Type of report: system, client, server, all; -q, --quiet Try to be more quiet; -v, --verbose Print a message for each action; -V, --version Print program version and exit; -h, --help Show this message. Собственно, что добавлено? Добавлена опция --profiles, которая позволяет задавать тип собираемой информации. По-умолчанию используется system, который соответствует текущему набору. Дополнительно можно задать client, server или all. Если опция -p/--profile задана, то к имени архива добавляется соответствующий суффикс. Для клиента и сервера общим является сбор информации о: - настройках возможностей control; - клиентских настройках Kerberos; - настройках NSS и PAM; - а также release и rpmlist. К набору настроек клиента добавлены настройки и логи Xorg, а к набору настроек сервера - сетевые настройки и настройки Samba. Можно подумать - подходит ли нам такой вариант? Ну, а пользоваться этим расширенным вариантом утилиты я уже начал. # system-report --profile server Obtaining status of control facilities [ DONE ] Obtaining client Kerberos configuration [ DONE ] Obtaining network information [ DONE ] Obtaining NSS (Name Service Switch) configuration [ DONE ] Obtaining PAM configuration and auth log files [ DONE ] Obtaining distribution release file [ DONE ] Obtaining installed RPM packages [ DONE ] Obtaining Samba configuration and log files [ DONE ] Saving system information to sysreport-server-20161110.tar.xz [ DONE ] Please submit /root/sysreport-server-20161110.tar.xz to sysreport@altlinux.org $ sudo system-report -p client Obtaining status of control facilities [ DONE ] Obtaining client Kerberos configuration [ DONE ] Obtaining NSS (Name Service Switch) configuration [ DONE ] Obtaining PAM configuration and auth log files [ DONE ] Obtaining distribution release file [ DONE ] Obtaining installed RPM packages [ DONE ] Obtaining Xorg configuration files [ DONE ] Obtaining Xorg log files [PASSED] Saving system information to sysreport-client-20161110.tar.xz [ DONE ] Please submit /home/sin/build/altlinux/system/system-report/sysreport-client-20161110.tar.xz to sysreport@altlinux.org -- Sin (Sinelnikov Evgeny)
next reply other threads:[~2016-11-10 1:33 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-11-10 1:33 Evgeny Sinelnikov [this message] 2016-11-10 3:06 ` Hihin Ruslan 2016-11-10 10:42 ` Alexey Gladkov 2016-11-11 12:17 ` Evgeny Sinelnikov 2016-11-11 12:53 ` Alexey Gladkov 2016-11-11 17:18 ` Evgeny Sinelnikov 2016-11-12 15:04 ` Alexey Gladkov 2016-11-11 19:57 ` Hihin Ruslan 2016-11-12 16:12 ` Alexey Gladkov 2016-11-10 12:25 ` Michael Shigorin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAK42-Gq1u10Di4N0APgjX1ATULB5XqPdfpeqzr=y7a8LxSxp9A@mail.gmail.com' \ --to=sin@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git