linux-system-info

Retrieves basic information about the Linux system. You can check the hostname, kernel version, system uptime, load averages, UMASK, and banner information.

Command properties

ItemDescription
Command typeDriver query
Required permissionAdministrator
License usageLicensed command
Parallel executionNot supported
Distributed executionRuns on Data Node (mapper)

Syntax

linux-system-info

Output fields

FieldTypeDescription
hostnamestringSystem hostname
kernel_verstringKernel version string
kernel_build_timestringKernel build time
uptimeintegerSystem uptime (seconds)
load_avg_1mstring1-minute load average
load_avg_5mstring5-minute load average
load_avg_15mstring15-minute load average
umaskstringDefault file creation permission mask (UMASK) value
console_bannerstringConsole login banner (contents of the /etc/issue file)
telnet_bannerstringTelnet login banner (contents of the /etc/issue.net file)
system_bannerstringSystem banner (contents of the /etc/motd file)

Error codes

Parse errors
Error codeMessageDescription
95040no-read-permissionOccurs when run without administrator privilege
Runtime errors

N/A

Description

The linux-system-info command collects basic system information and outputs it as a single record. Because each information item is collected independently, even if collection of a specific item fails, the remaining items are output normally. Items that fail to be collected are excluded from the output.

The information collected includes:

  • Hostname: The system's hostname
  • Kernel information: Kernel version and build time
  • System uptime: Time elapsed since the last boot (in seconds)
  • Load averages: 1-minute, 5-minute, and 15-minute load averages
  • UMASK: Default permission mask applied when creating files
  • Banner information: Console login banner, telnet login banner, and system banner

Examples

  1. Retrieve system information

    linux-system-info
    

    Retrieves the current system's hostname, kernel version, uptime, load averages, UMASK, and banner information.

  2. Retrieve only hostname and kernel version

    linux-system-info
    | fields hostname, kernel_ver
    

    Selects and retrieves only the hostname and kernel version from the system information.