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
| Attribute | Description |
|---|---|
| tstamp | The UTC time at which this data was collected. |
| tool | A string indicating the tool that collected this data, such as "Cli". |
| machine | The name of the machine on which this command was invoked. |
| command | The command that was invoked. |
| arguments | Any arguments supplied to the command. |
| path | The current path (working directory) of the command line invocation. |
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.