-
Notifications
You must be signed in to change notification settings - Fork 51
getinfo
getinfo - pulls useful information about the box in an archive file
getinfo
getinfo pulls basically everything useful and generic i could think of and sticks it in a tar.xz file for you.
Run the function. There are no parameters to set.
$ getinfo
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.