Method for extracting server system information

The invention provides a method for extracting server system information, which comprises the following steps: a script file for extracting server system information being created; running the scriptfile to store all command output from the script in tmp/cmd-outputs module, The output module importi...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG XUFANG, KUANG ZHIPENG
Format: Patent
Sprache:chi ; eng
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method for extracting server system information, which comprises the following steps: a script file for extracting server system information being created; running the scriptfile to store all command output from the script in tmp/cmd-outputs module, The output module importing the running log and the configuration file of the system bootloader into the tmp/logs module; The files in the tmp/cmd outputs module and the tmp/logs module being packaged into tar files containing the current time and stored in the tmp module; exporting the files in the tmp module to another server via the USB mount or scp command, extracting and viewing the basic Linux information and logs. 本发明提供种服务器系统信息的提取方法,包括如下步骤:创建提取服务器系统信息脚本文件;运行脚本文件将脚本所有命令输出存放在tmp/cmd-outputs模块,将运行日志和系统bootloader的配置文件导入tmp/logs模块;将tmp/cmd-outputs模块和tmp/logs模块内的文件打包成包含当前时间的tar文件存放入tmp模块。将tmp模块内的文件通过U盘挂载或scp命令导出到其他服务器上,解压并查看里面的Linux基本信息和日志。