25.5. CLI

25.5.1. Overview

The CLI sensor data type records time-stamped command line invocations for a given user on a given machine. Each instance of the SDT is intended to represent the invocation of a single command at the command line. Table 25.4, “CLI SDT attributes” documents the attributes of this sensor data type.

Table 25.4. CLI SDT attributes

AttributeDescription
tstampThe UTC time at which this data was collected.
toolA string indicating the tool that collected this data, such as "Cli".
machineThe name of the machine on which this command was invoked.
commandThe command that was invoked.
argumentsAny arguments supplied to the command.
pathThe current path (working directory) of the command line invocation.

25.5.2. Applications of the CLI SDT

Most flavors of Unix have a "history" mechanism that stores the command history. We have created a sensor for certain versions of this history mechanism that retrieves this information when the user logs out and sends the command line history to the Hackystat server.