How To Use the Agent Info Command
Purpose
This document describes how to use the agent info
command to retrieve metadata.
Introduction
The info
command retrieves metadata about the agent such as identifiers and timestamps when certain actions were last performed.
Running the Command
Requirements
- Linux - ssh console
- Windows - command prompt
The o24-agent
Command
For windows based agents, use agent.exe
in a Windows command prompt.
Available commands in o24-agent:
Command | Description |
---|---|
config | Print config |
fetch-enrollment-config | Fetch and install enrollment configuration file |
help | Help about any command |
info | Print agent info |
Flags:
Flag | Description |
---|---|
--disable-offset | Disables the randomized call home offset |
-h, --help | Help for o24-agent |
--journald-log | Log to journal (default true) |
--log-level string | Lowest log level to capture (default "INFO") |
--log-sd | add structured data to log (default true) |
--priority string | priority to run as:
(default "low") |
--settings string | path to settings file (default "/etc/o24-agent/agent-settings.yml ") |
--stderr-log | log to stderr |
--version | print version and quit |
Use "o24-agent [command] --help
" for more information about a command.
Using the info
command
The info
command can be executed from a terminal:
$ o24-agent info | jq
The info
command will retrieve the following information.
{ "agentUuid": "3af112bb-44d9-4ceb-8fa4-c3f1928bff3f", "tenantUuid": "ba3d2be5-56ae-454f-bee8-a4b1b023a33e", "enrollmentStatus": true, "callHome": { "postAgent": "2022-03-11T08:09:18.350347112Z", "getSettings": "2022-03-11T08:09:18.272644589Z", "getSchedules": "2022-03-11T08:09:18.400405208Z" }, "schedules": [ { "uuid": "75551ca2-b9b8-4039-98e2-5dd90fbc1050", "lastUpdated": "2022-03-10T12:58:54.900929Z", "lastRun": "2022-03-10T10:09:01.21942452Z", "modules": { "commands": { "lastDownloaded": "2022-03-10T10:08:51.971982082Z", "lastUploaded": "2022-03-10T10:09:01.22285461Z" }, "psh-commands": { "lastDownloaded": "2022-03-10T10:08:51.971982082Z" }, "registry": { "lastDownloaded": "2022-03-10T10:08:51.971982082Z" } } }, { "uuid": "ca8c72c1-a5d9-4eea-b504-56cb659f75ee", "lastUpdated": "2022-03-10T12:58:54.900929Z", "lastRun": "2022-03-10T13:08:59.458141308Z", "modules": { "commands": { "lastDownloaded": "2022-03-10T13:08:55.859837754Z", "lastUploaded": "2022-03-10T13:08:59.461690527Z" }, "psh-commands": { "lastDownloaded": "2022-03-10T13:08:55.859837754Z" }, "registry": { "lastDownloaded": "2022-03-10T13:08:55.859837754Z" } } } ], "logs": { "lastUploaded": "2022-03-11T08:09:19.237524123Z" } }
last uploaded
is relevant for all modules but is only visible for the ones that can run on the operating system.
For more information about the o24-agent command type:
$ o24-agent --help
Related Articles
- Installing Agent on macOS
- How To Remove an Agent from Linux
- How To Check Connectivity to Outpost24 Agent Server
- Installing Outpost24 Agents
- Agent Latest Version
- How To Get Results From the Agent in OUTSCAN
- How To Find the Agent Version
- How To See if OUTSCAN has Discovered the Agent
- How To Use the Agent Info Command
- How To Find New Agents In OUTSCAN
- How To Retrieve the Agent UUID
- Setting Up an Agent Using System Proxy
- How To Know if the Agent has Retrieved Schedules from OUTSCAN
- How To Add Agent Attributes
- How To Update the Agent
Copyright
© 2024 Outpost24® All rights reserved. This document may only be redistributed unedited and unaltered. This document may be cited and referenced only if clearly crediting Outpost24® and this document as the source. Any other reproduction and redistribution in print or electronically is strictly prohibited without explicit permission.
Trademark
Outpost24® and OUTSCAN™ are trademarks of Outpost24® and its affiliated companies. All other brand names, product names or trademarks belong to their respective owners.