crash.commands.syscmd module

SUMMARY

Display system information and configuration data

sys [config]

DESCRIPTION

This command displays system-specific data. If no arguments are entered, the same system data shown during crash invocation is shown.

config If the kernel was configured with CONFIG_IKCONFIG, then
dump the in-kernel configuration data.

Examples

Display essential system information:

py-crash> sys config
      KERNEL: vmlinux.4
    DUMPFILE: lcore.cr.4
        CPUS: 4
        DATE: Mon Oct 11 18:48:55 1999
      UPTIME: 10 days, 14:14:39
LOAD AVERAGE: 0.74, 0.23, 0.08
       TASKS: 77
    NODENAME: test.mclinux.com
     RELEASE: 2.2.5-15smp
     VERSION: #24 SMP Mon Oct 11 17:41:40 CDT 1999
     MACHINE: i686  (500 MHz)
      MEMORY: 1 GB
class crash.commands.syscmd.SysCommand(name: str)[source]

Bases: crash.commands.Command

system data

execute(args: argparse.Namespace) → None[source]

This method implements the command functionality.

Each command has a derived class associated with it that, minimally, implements this method.

Parameters:args – The arguments to this command already parsed by the commmand’s parser.
static show_default() → None[source]