Documentation survey

レポートの生成

SUSE Multi-Linux Managerでは、ユーザがさまざまなレポートを作成できます。 これらのレポートはサブスクライブしたシステム、ユーザ、および組織のインベントリを取得するのに役立ちます。 レポートの使用は、特に多数のシステムを管理している場合は、SUSE Multi-Linux Manager Web UIから手動で情報を収集するより簡単な場合が多いです。

コマンドラインツールspacewalk-reportを使用して事前設定されたレポートを生成することができますが、Hub Reportingを導入することで、完全にカスタマイズされたレポートを生成することもできます。 これは、SQL言語をサポートする任意のレポーティングツールをレポーティングデータベースに接続し、データを直接抽出することで実現できます。 データの可用性と構造の詳細については、レポーティングデータベーススキーマのドキュメントを参照してください。

1. spacewalk-reportの使用

サーバコンテナでステップを実行する前に、mgrctl termを使用します。

レポートを生成するには、spacewalk-reportsパッケージをインストールしている必要があります。 spacewalk-reportコマンドを使用すると、SUSE Multi-Linux Manager全体のコンテンツ、システム、およびユーザリソースに関するレポートを整理して表示できます。

Hub Reportingの導入により、spacewalk-reportはデフォルトでレポーティングデータベースからデータを収集するようになりました。 詳細についてはspacewalk-reportおよびレポーティングデータベースを参照してください。

次に関するレポートを生成できます。

システムインベントリ

SUSE Multi-Linux Managerに登録されているすべてのシステムを一覧にします。

パッチ

登録されているシステムに関連するすべてのパッチを一覧にします。重大度、および特定のパッチに適用されるシステムでパッチをソートできます。

ユーザー

すべての登録済みユーザおよび特定のユーザに関連するすべてのシステムを一覧にします。

CSV形式でレポートを取得するには、サーバのコマンドプロンプトで次のコマンドを実行します。

spacewalk-report <report_name>

2. spacewalk-reportおよびレポーティングデータベース

spacewalk-reportは、デフォルトで新しいレポーティングデータベースを使用してデータを抽出します。 これは、新しく生成されたレポートには、データの構造と形式にいくつかの相違があることを意味します。 すべてのレポートに共通する相違点は次のとおりです。

  • レポートデータはリアルタイムでは変更されず、スケジュールされたタスクの実行によってのみ更新されます。

  • データの重複が削除され、以前は「多値」とみなされていた列には、;で区切られた複数の値が含まれるようになりました。 これはまた、コマンドラインオプション--multival-on-rows--multival-separatorが新しいレポートには適用されなくなったことも意味します。これは、これらの動作がデフォルトになったためです。

  • すべてのレポートで、新しい列のmgm_idsynced_dateが導入され、ハブシナリオの管理サーバと、アプリケーションデータベースから情報が最後に更新された時刻を識別します。

  • すべてのブール値は、1/0値ではなく、True/Falseで表されるようになりました。

  • org_idは、数値識別子ではなく組織名を含む、organization に置き換えられました。

  • 「サーバ」という用語は「システム」に置き換えられました。 したがって、たとえば、列server_idsystem_idと呼ばれるようになりました。

レポート固有の変更については、使用可能なレポートのリストを参照してください。

この変更された動作によって問題が発生した場合、新しいオプション--legacy-reportを使用して、アプリケーションデータベースに対して実行される古いレポートにフォールバックできます。

hubレポートの詳細については、Hub Reporting を参照してください。

3. 使用可能なレポートのリスト

この表は、使用可能なレポートを一覧表示します。

Table 1. spacewalk-reportレポート
Report Invoked as Description Uses reporting database Specific differences

Actions

actions

All actions.

Yes

The column id is now called action_id

Activation Keys

activation-keys

All activation keys, and the entitlements, channels, configuration channels, system groups, and packages associated with them.

No

Activation Keys: Channels

activation-keys-channels

All activation keys and the entities associated with each key.

No

Activation Keys: Configuration

activation-keys-config

All activation keys and the configuration channels associated with each key.

No

Activation Keys: Server Groups

activation-keys-groups

All activation keys and the system groups associated with each key.

No

Activation Keys: Packages

activation-keys-packages

All activation keys and the packages each key can deploy.

No

Channel Packages

channel-packages

All packages in a channel.

Yes

Channel Report

channels

Detailed report of a given channel.

Yes

Cloned Channel Report

cloned-channels

Detailed report of cloned channels.

Yes

Configuration Files

config-files

All configuration file revisions for all organizations, including file contents and file information.

No

Latest Configuration Files

config-files-latest

The most recent configuration file revisions for all organizations, including file contents and file information.

No

Custom Channels

custom-channels

Channel metadata for all channels owned by specific organizations.

Yes

The column id is now called channel_id

Custom Info

custom-info

Client custom information.

Yes

Patches in Channels

errata-channels

All patches in channels.

Yes

Patches Details

errata-list

All patches that affect registered clients.

Yes

All patches

errata-list-all

All patches.

No

Patches for Clients

errata-systems

Applicable patches and any registered clients that are affected.

Yes

Host Guests

host-guests

Host and guests mapping.

Yes

Inactive Clients

inactive-systems

Inactive clients.

Yes

The mandatory parameter is now called threshold.

System Inventory

inventory

Clients registered to the server, together with hardware and software information.

Yes

The column osad_status has been removed.

Kickstart Scripts

kickstart-scripts

All kickstart scripts, with details.

No

Kickstart Trees

kickstartable-trees

Kickstartable trees.

No

"

All Upgradable Versions

packages-updates-all

All newer package versions that can be upgraded.

Yes

Newest Upgradable Version

packages-updates-newest

Newest package versions that can be upgraded.

Yes

Proxy Overview

proxies-overview

All proxies and the clients registered to each.

Yes

Repositories

repositories

All repositories, with their associated SSL details, and any filters.

No

Result of SCAP

scap-scan

Result of OpenSCAP sccdf evaluations.

Yes

Result of SCAP

scap-scan-results

Result of OpenSCAP sccdf evaluations, in a different format.

Yes

System Data

splice-export

Client data needed for splice integration.

No

System Currency

system-currency

Number of available patches for each registered client.

No

System Extra Packages

system-extra-packages

All packages installed on all clients that are not available from channels the client is subscribed to.

Yes

System Groups

system-groups

System groups.

Yes

System Hardware

system-hardware

System hardware information.

No

Activation Keys for System Groups

system-groups-keys

Activation keys for system groups.

No

Systems in System Groups

system-groups-systems

Clients in system groups.

Yes

System Groups Users

system-groups-users

System groups and users that have permissions on them.

No

History: System

system-history

Event history for each client.

Yes

History: Channels

system-history-channels

Channel event history.

Yes

History: Configuration

system-history-configuration

Configuration event history.

Yes

The column created_date has been removed.

History: Entitlements

system-history-entitlements

System entitlement event history.

Yes

History: Errata

system-history-errata

Errata event history.

Yes

The column created_date has been removed.

History: Kickstart

system-history-kickstart

Kickstart event history.

Yes

The column created_date has been removed.

History: Packages

system-history-packages

Package event history.

Yes

The column created_date has been removed.

History: SCAP

system-history-scap

OpenSCAP event history.

Yes

The column created_date has been removed.

MD5 Certificates

system-md5-certificates

All registered clients using certificates with an MD5 checksum.

No

Installed Packages

system-packages-installed

Packages installed on clients.

Yes

System Profiles

system-profiles

All clients registered to the server, with software and system group information.

No

Users

users

All users registered to SUSE Multi-Linux Manager.

Yes

The column organization_id has been removed.

MD5 Users

users-md5

All users for all organizations using MD5 encrypted passwords, with their details and roles.

Yes

The column organization_id has been removed.

Systems administered

users-systems

Clients that individual users can administer.

Yes

The column organization_id has been removed.

個々のレポートに関する詳細については、オプション--infoまたは--list-fields-infoおよびレポート名を指定して、spacewalk-reportを実行します。 これにより、レポートに使用可能なフィールドの説明とリストが表示されます。

プログラムの呼び出しとオプションの詳細については、spacewalk-report(8)マニュアルページ、およびspacewalk-reportコマンドの--helpパラメータを参照してください。