metal-cli
metal-cli copied to clipboard
SOS options
What problem are you facing?
I have to use the Equinix Metal portal to access the SOS URL to view the device console.
How could the Equinix Metal CLI help solve this problem?
I would like the following options to simplify my workflow:
-
packet device create --soswould create the device and immediately SOS into the device so I can watch the provisioning happen -
packet device sos --id=$DEVICE_IDwould SOS into an existing device
It's possible to dervice the SOS name from the cli already, not sure if this counts as a supported option though, its exposing some internal API details.
$ export ID=some_uuid
$ export JS=/tmp/${ID}.json
$ metal device get --output json --id ${ID} | tee ${JS}
$ export FACILITY=(jq .facility.code ${JS})
$ ssh ${ID}@sos.${FACILITY}.platformequinix.com