Cani alpha swap module
cani alpha swap module
Replace an installed module with a spare.
Synopsis
Install a spare module in the bay of an installed module and store the installed module at a location, as one change. Each module is named by UUID, name, serial number or asset tag.
The spare takes over the bay, the port names the bay gives it, and the cables on those ports, as when a card is replaced in place: each cable on the replaced module's ports is re-terminated at the spare's port of the same name. The replaced module is stored at --location, or at its parent device's location, with no cables, and keeps its name, serial and asset tag. Both modules must be the same hardware type when both record one. The next export with --merge moves both modules in the provider.
cani alpha swap module [flags]
Options
--location string Location to store the replaced module at (name or UUID; default: the parent device's location)
--dry-run Show the resulting placements without saving
Options inherited from parent commands
--config string config file (default "/home/runner/.cani/cani.yml")
--debug enable debug mode
--datastore string datastore type (json, postgres) (default "json")
--datastore-path string override path to the datastore file (for testing)
--types-dirs stringSlice local directories with additional hardware types
--types-repos stringSlice git repo URLs with additional hardware types
--types-repo-clone clone types repos that are not yet cached locally
--types-repo-pull pull latest changes from types repos on startup
--strict require a resolved device type (slug) for all devices (default true)
SEE ALSO
- cani alpha swap - Exchange the placement of two inventory items.