equinix / metal-cli

Official Equinix Metal CLI
https://deploy.equinix.com/labs/metal-cli
MIT License
59 stars 46 forks source link

SOS options #99

Open displague opened 4 years ago

displague commented 4 years ago

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:

dch commented 1 year ago

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