Prep-node Command

Command: prep-node

This command prepares a node to be ready to be added to a cluster. The command does the following:

  • Checks resources and access (Ports, CPU, RAM, HDD, SUDO, Clock Skew)
  • Securely connects to a list of nodes specified
  • Installs all the required prerequisites on the nodes
  • Installs Platform9 host agent and other required software on the nodes
  • Authorizes the nodes to be associated with the PMK management plane

This command is useful if you wish to prepare your nodes with the required prerequisites using the CLI, and then use the PMK UI to finish cluster creation.

When you create a cluster using PMK UI, the UI recommends that you use the CLI to run this command on all the nodes you wish to add to the cluster, then come back to the UI to finish cluster creation.

Syntax Example

Bash
Copy

All Available Commands and Flags

Bash
Copy
Bash
Copy

pf9ctl prep node has a --skip-os-checks flag that can be used to bypass the operating system check.

Command Examples

Prep Local Node

Bash
Copy

Prep Remote Node

Bash
Copy

Flag Examples and Information

FlagTypeRequired/OptionalDescription
-u , --userStringOptionalUsername for nodes. Required if you are creating a multi-node cluster, so the CLI can authenticate with each node. Refer to SSH Setup for Remote Nodes under PMK CLI Overview for more information.
-p , --passwordStringOptionalPassword for node. You need to specify either the password or provide the password during execution if you're running the command to connect to remote nodes. Refer to SSH Setup for Remote Nodes section under PMK CLI Overview for more information.
-c, --skip-checksStringOptionalIf set to true, skip-checks will bypass prompts for optional checks during prep-node. This flag is used for cases where a node is added using a script and is automated, allowing for prompts to be bypassed.
-s , --ssh-keyStringOptionalSSH private key for remote nodes. Refer to SSH Setup for Remote Nodes section under PMK CLI Overview for more information.
-i , --ipStringRequiredIPs of the nodes you wish to execute prep-node. You need to specify at least one IP address for the prep-node command to work. Repeat this option multiple times to specify multiple nodes to be prepared. If you wish to also prepare the current node, specify it as ‘localhost’ or specify the current node’s IP address
--helpShow this message and exit.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated