metal-cli icon indicating copy to clipboard operation
metal-cli copied to clipboard

SOS options

Open displague opened this issue 5 years ago • 1 comments

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 --sos would create the device and immediately SOS into the device so I can watch the provisioning happen
  • packet device sos --id=$DEVICE_ID would SOS into an existing device

displague avatar Nov 12 '20 02:11 displague

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

dch avatar Dec 02 '22 16:12 dch