Skip to main content

Get

Show what admits this machine.

Run this on the machine. It prints the machine ID, the hostname and the fingerprint of the agent key, in agent.pki.key_dir (/etc/osapi/pki by default), and the command that admits the machine. The controller admits the machine only when the fingerprint is the one of the key in its request. If no key exists, the command makes a new key pair.

osapi agent admission get

Examples​

osapi agent admission get

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml
--sysctl-dirDirectory the agent writes osapi's kernel parameter files to, one osapi-<key>.conf per key (behaviors.sysctl.dir)/etc/sysctl.d

Output tells how the result is printed, and what --json gives.