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
| Item | Description |
|---|---|
| Command type | Driver query |
| Required permission | Administrator |
| License usage | Licensed command |
| Parallel execution | Not supported |
| Distributed execution | Runs on Data Node (mapper) |
Syntax
Output fields
| Field | Type | Description |
|---|---|---|
hostname | string | System hostname |
kernel_ver | string | Kernel version string |
kernel_build_time | string | Kernel build time |
uptime | integer | System uptime (seconds) |
load_avg_1m | string | 1-minute load average |
load_avg_5m | string | 5-minute load average |
load_avg_15m | string | 15-minute load average |
umask | string | Default file creation permission mask (UMASK) value |
console_banner | string | Console login banner (contents of the /etc/issue file) |
telnet_banner | string | Telnet login banner (contents of the /etc/issue.net file) |
system_banner | string | System banner (contents of the /etc/motd file) |
Error codes
Parse errors
| Error code | Message | Description |
|---|---|---|
95040 | no-read-permission | Occurs 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
-
Retrieve system information
linux-system-infoRetrieves the current system's hostname, kernel version, uptime, load averages, UMASK, and banner information.
-
Retrieve only hostname and kernel version
linux-system-info | fields hostname, kernel_verSelects and retrieves only the hostname and kernel version from the system information.