Skip to content

getinfo

Ulrich Berntien edited this page Mar 23, 2019 · 1 revision

getinfo

Name

getinfo - pulls useful information about the box in an archive file

Synopsis

getinfo

Description

getinfo pulls basically everything useful and generic i could think of and sticks it in a tar.xz file for you.

Example

Run the function. There are no parameters to set.

$ getinfo

Files

The function collects the information in files stored in the archive “f.tar.xz” or “f.tar.gz” if xz compression is not available.

The functions runs several tools to get information, e.g. getent passwd, uname -a, cpuinfo, df. The stdout output of the tools are stored in files “base-name.txt”. The stderr output are stored in files “base-name.err”. The list of the base-names and all tool calls is stored in the file “log.txt”.

Some tools are executed only if the getinfo functions runs with root effective user id.

While running the functions creates a folder “files” in which the information files are stored.

Clone this wiki locally