Skip to main content

Oracle Solaris

Agentless

Synopsis​

Director logs in to one Oracle Solaris host over SSH and runs read-only commands on it. Nothing is installed on the host and no agent is sent to it. What the device reads is decided by the datasets and profiles assigned to it: the host's inventory, its metrics, its log files, and scripts run on it — see Solaris, AIX, and macOS Datasets.

An unprivileged account is enough, and is what the device should be given: nothing runs under sudo, and the device's own collection writes nothing on the host but a script's temporary file. A script you assign runs as the login and can do whatever the login may. A few hardware details need more (prtdiag and sneep, for the manufacturer, model, and serial number); without them those fields are left out and the rest is read.

One device reads one host, and one Director owns it.

note

The Solaris device needs Director 2.2.3 or later. The wizard refuses an older Director.

Schema​

- id: <numeric>
name: <string>
description: <string>
type: solaris
tags: <string[]>
pipelines: <pipeline[]>
status: <boolean>
properties:
address: <string>
username: <string>
port: <numeric>
password: <string>
key_based: <boolean>
private_key: <string>
passphrase: <string>
timeout: <numeric>
host_key: <string>
definitions: <definition[]>

Configuration​

The following fields are used to define the device:

Device​

FieldRequiredDefaultDescription
idY-Unique numeric identifier
nameY-Device name
descriptionN-Optional description
typeY-Must be solaris
tagsN-Optional tags
pipelinesN-Optional pre-processor pipelines
statusNtrueEnable/disable the device

Connection​

FieldRequiredDefaultDescription
addressY-The host, an IP address or a name. A wildcard address (0.0.0.0, ::) is refused.
portN22The host's SSH port
usernameY-The login (resolvable via ${ENV_VAR} or $secret{...})
passwordN*-Its password (resolvable via ${ENV_VAR} or $secret{...})
key_basedNfalseLog in with private_key instead of password
private_keyN*-The private key, in PEM or OpenSSH format (resolvable via ${ENV_VAR} or $secret{...})
passphraseN-The key's passphrase, when it has one
timeoutN30Seconds for the connection and its login, from 1 to 300
host_keyN-The host's SSH key: a SHA256: fingerprint as ssh-keygen -lf prints it, or the public key itself. See Host Keys.

* password is required unless key_based is true, in which case private_key is required.

A device that fails these checks does not start, and its state is Configuration error.

Datasets​

The device's definitions are its datasets, each named after its type: solaris_inventory_collector, solaris_metrics_collector, solaris_file_log_collector, and solaris_script_collector. In the console they are the datasets and profiles assigned to the device. For their properties, see Solaris, AIX, and macOS Datasets.

Host Keys​

The host's SSH key is checked before any credential is sent.

Trusted on first use

Without host_key, the key the host presents the first time is trusted. A later login that meets a different key stops the device with Authentication error, naming the trusted key and every key the host presented. If the key changed on purpose, for example because the host was reinstalled, set host_key to the new one.

With host_key set, the host must present that key. Any of the host's keys may be pinned: the Director asks for ECDSA, RSA, then Ed25519, logging in again for each before any credential is sent, so an Ed25519 fingerprint works. The connection check reports the key the host presented, ready to pin; with no pin, it reports the ECDSA key.

Console​

In the console, go to Devices → Operating systems → Oracle Solaris and click Add new device. The wizard is the one Windows and Linux devices use. On an x86 host, choose Agentless; a SPARC host is always read over SSH and is not asked. The steps are:

  1. General settings: Device name, Director, Processor (x86 (64-bit) or SPARC), Deployment type (x86 only): Agentless, Description (Optional), Tags (Optional)
  2. Install and connect: Address, Port, Timeout (Optional), Host key (Optional), Username, and either Password or, with SSH key authentication ticked, Private key and Passphrase (Optional). Check access has the Director log in and confirm the host runs this system; Create device waits for it to pass. A Self-Managed Director skips the check.
  3. Data collection: the datasets or profiles the device reads
  4. Update management: not offered for an agentless device
  5. Review and complete setup

The wizard does not ask for a status or a pre-processing pipeline: the device is created enabled, with no pipeline. Enable device and Disable device are in the device page's Actions menu. Cloning a device opens the same five steps with its settings filled in, and asks again for a password, private key or passphrase typed by hand. A Vault or environment reference is kept.

The device's page is the one a Windows or Linux device has: Device overview, Access settings, Data collection, Health, Live data and Activity logs. Access settings shows the Host key beside the Timeout (Trusted on first use when none is pinned), and Check access in its editor logs in with the stored password or key.

Agent​

The sections above describe the host read over SSH. On an x86 host, the wizard's other Deployment type is Agent: an Agent installed on the host reads it, and the Director needs no login there. A SPARC host has no Agent. The Agent needs Oracle Solaris 11 or later, and a Director or cluster on version 2.3.1 or later; the wizard says so when an older one is chosen.

Install and connect shows the command that installs the Agent, to be run as root on the host. The Agent runs as root, as the SMF service svc:/application/vmetric-agent:default.

Updates​

The Agent is updated through its Director, as a Windows or Linux Agent is. The wizard goes through the Update management step, and the device page has an Update management tab, after Data collection. The organization's update settings apply unless Custom update policy is turned on; see Updates.

An update stops the Agent's SMF service, replaces the Agent and starts the service again. Running the installation command again on the host still updates the Agent as well, but it is no longer the only way.

Examples​

Password Authentication​

Reading a Solaris host's inventory hourly and its metrics every minute, with a password login...

- id: 471209401
name: sol-db-01
type: solaris
status: true
properties:
address: "192.0.2.20"
username: "vmetric"
password: "$secret{unix/sol-db-01}"
definitions:
- name: solaris_inventory_collector
status: true
- name: solaris_metrics_collector
status: true

Key Authentication with a Pinned Host Key​

Logging in with an SSH key and pinning the host's key, so no key is trusted on first use...

- id: 471209406
name: sol-app-01
type: solaris
status: true
properties:
address: "sol-app-01.example.com"
username: "vmetric"
key_based: true
private_key: "$secret{unix/collector-key}"
host_key: "SHA256:<fingerprint>"
definitions:
- name: solaris_metrics_collector
status: true