生成报告
SUSE Multi-Linux Manager 允许用户生成各种报告。这些报告有助于清点已订阅的系统、用户和组织。使用报告通常比从 SUSE Multi-Linux Manager Web UI 手动收集信息更方便,尤其是要管理众多的系统时。
While the command line tool spacewalk-report can be used to generate pre-configured reports, with the introduction of the Reporting Database it is also possible to generate fully customized reports. This can be achieved by connecting any reporting tool that supports the SQL language to the reporting database and extract the data directly. For more information about the data availability and structure, see the reporting database schema documentation.
1. Using spacewalk-report
|
Use |
To generate reports, you must have the spacewalk-reports package installed. The spacewalk-report command allows you to organize and display reports about content, systems, and user resources across SUSE Multi-Linux Manager.
|
Due to the introduction of the Reporting Database, |
可以针对以下各项生成报告:
- 系统清单
-
列出所有已注册到 SUSE Multi-Linux Manager 的系统。
- 补丁
-
列出与已注册系统相关的所有补丁。可以按严重性以及适用于特定补丁的系统将补丁排序。
- 用户
-
列出所有已注册用户以及与特定用户关联的所有系统。
要获取 CSV 格式的报告,请在服务器上的命令提示符下运行以下命令:
spacewalk-report <报告名称>
2. spacewalk-report and the reporting database
spacewalk-report uses by default the new reporting database to extract the data. This means that the new generated reports will have some differences in the structure and the format of the data. The differences common to all reports are:
-
报告数据不会实时更改,而只能通过执行安排的任务来更新;
-
data duplication has been removed and columns that were previously considered "multival" contain now multiple values separated by
;. This also means that the command line options--multival-on-rowsand--multival-separatorare no longer applicable to the new reports, as their behavior is now the default; -
in all reports the new columns
mgm_idandsynced_datehave been introduced to identify the management server in the hub scenario and the last time the information was updated from the application database; -
all boolean values are now represented by the
True/Falseand not by a1/0values; -
the column
org_idhas been replaced byorganization, which contains the organization name and not the numerical identifier; -
The term "server" has been replaced by "system." So, for example, the column
server_idis now calledsystem_id.
有关特定于报告的更改,请参见可用报告列表。
|
If this changed behavior causes trouble, the new option |
For more information about the reporting database, see Reporting Database. For hub-specific aggregation of data from multiple servers, see Hub Reporting.
3. 可用报告列表
下表列出了可用报告:
| Report | Invoked as | Description | Uses reporting database | Specific differences |
|---|---|---|---|---|
Actions |
|
All actions. |
Yes |
The column |
Activation Keys |
|
All activation keys, and the entitlements, channels, configuration channels, system groups, and packages associated with them. |
No |
|
Activation Keys: Channels |
|
All activation keys and the entities associated with each key. |
No |
|
Activation Keys: Configuration |
|
All activation keys and the configuration channels associated with each key. |
No |
|
Activation Keys: Server Groups |
|
All activation keys and the system groups associated with each key. |
No |
|
Activation Keys: Packages |
|
All activation keys and the packages each key can deploy. |
No |
|
Channel Packages |
|
All packages in a channel. |
Yes |
|
Channel Report |
|
Detailed report of a given channel. |
Yes |
|
Cloned Channel Report |
|
Detailed report of cloned channels. |
Yes |
|
Configuration Files |
|
All configuration file revisions for all organizations, including file contents and file information. |
No |
|
Latest Configuration Files |
|
The most recent configuration file revisions for all organizations, including file contents and file information. |
No |
|
Custom Channels |
|
Channel metadata for all channels owned by specific organizations. |
Yes |
The column |
Custom Info |
|
Client custom information. |
Yes |
|
Patches in Channels |
|
All patches in channels. |
Yes |
|
Patches Details |
|
All patches that affect registered clients. |
Yes |
|
All patches |
|
All patches. |
No |
|
Patches for Clients |
|
Applicable patches and any registered clients that are affected. |
Yes |
|
Host Guests |
|
Host and guests mapping. |
Yes |
|
Inactive Clients |
|
Inactive clients. |
Yes |
The mandatory parameter is now called |
System Inventory |
|
Clients registered to the server, together with hardware and software information. |
Yes |
The column |
Kickstart Scripts |
|
All kickstart scripts, with details. |
No |
|
Kickstart Trees |
|
Kickstartable trees. |
No |
" |
All Upgradable Versions |
|
All newer package versions that can be upgraded. |
Yes |
|
Newest Upgradable Version |
|
Newest package versions that can be upgraded. |
Yes |
|
Proxy Overview |
|
All proxies and the clients registered to each. |
Yes |
|
Repositories |
|
All repositories, with their associated SSL details, and any filters. |
No |
|
Result of SCAP |
|
Result of OpenSCAP |
Yes |
|
Result of SCAP |
|
Result of OpenSCAP |
Yes |
|
System Data |
|
Client data needed for splice integration. |
No |
|
System Currency |
|
Number of available patches for each registered client. |
No |
|
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. |
Yes |
|
System Hardware |
|
System hardware information. |
No |
|
Activation Keys for System Groups |
|
Activation keys for system groups. |
No |
|
Systems in System Groups |
|
Clients in system groups. |
Yes |
|
System Groups Users |
|
System groups and users that have permissions on them. |
No |
|
History: System |
|
Event history for each client. |
Yes |
|
History: Channels |
|
Channel event history. |
Yes |
|
History: Configuration |
|
Configuration event history. |
Yes |
The column |
History: Entitlements |
|
System entitlement event history. |
Yes |
|
History: Errata |
|
Errata event history. |
Yes |
The column |
History: Kickstart |
|
Kickstart event history. |
Yes |
The column |
History: Packages |
|
Package event history. |
Yes |
The column |
History: SCAP |
|
OpenSCAP event history. |
Yes |
The column |
MD5 Certificates |
|
All registered clients using certificates with an MD5 checksum. |
No |
|
Installed Packages |
|
Packages installed on clients. |
Yes |
|
System Profiles |
|
All clients registered to the server, with software and system group information. |
No |
|
Users |
|
All users registered to SUSE Multi-Linux Manager. |
Yes |
The column |
MD5 Users |
|
All users for all organizations using MD5 encrypted passwords, with their details and roles. |
Yes |
The column |
Systems administered |
|
Clients that individual users can administer. |
Yes |
The column |
For more information about an individual report, run spacewalk-report with the option --info or --list-fields-info and the report name. This shows the description and list of possible fields in the report.
For further information on program invocation and options, see the spacewalk-report(8) man page as well as the --help parameter of the spacewalk-report command.