Manage racks in your CosmicAC network
Register, list, and remove racks in your CosmicAC network with the CLI.
Register, list, and remove racks in your CosmicAC network.
Prerequisites
You need the following before you start:
- A running CosmicAC deployment. See Installation.
- Access to the deployment host, to get the ORK RPC key.
- The CosmicAC CLI installed and configured. See Install the CLI.
Set up administrator access
The cosmicac admin commands authenticate with your ORK RPC key. Set this up once:
Initialize administrator access
Run cosmicac admin init, then paste the ORK RPC key at the prompt:
cosmicac admin initCosmicAC stores the key for all later cosmicac admin commands.
Register and list racks
Register a rack
Run the command without arguments:
cosmicac admin rack registerThe command prompts for the rack ID, the rack type, the RPC public key, and a two-letter country code for the rack's location.
Supported rack type
At Select the rack type, choose Server, the only rack type CosmicAC supports.
List racks
Confirm the rack appears in the network:
cosmicac admin rack listEach rack shows its ID, type, RPC key, location, and status.
Remove a rack
Remove one or more racks by ID:
cosmicac admin rack forget <id> [<id>...]To remove every rack, run the command without arguments, choose to remove all racks, and confirm twice. Removing all racks can't be undone.