Skip to main content

os

Description

Operating System information

Fields

IDTYPEDESCRIPTION
namestringPretty Hostname on Linux / Device name on Windows
envmap[string]stringENV variable contents
path[]stringPATH variable contents
uptimetimeCurrent uptime
updates[]os.updateList of available OS updates
rebootpendingboolIndicates if a reboot is pending
hostnamestringHostname for this OS
machineidstringMachine ID for this OS

Examples

Show all environment variables

os.env;

Retrieve a single environment variable

os.env["windir"];