MDATA-LIST(1)
β¨ MDATA-LIST π
β the mdata-list manual page, bestie edition π
okay so this is the mdata-list page from the Metadata Commands collection, and honestly? it's giving "tiny command, big main character energy." let's get into it. π¦
πΈ NAME πΈ
mdata-list β grab the list of all the metadata key-value pairs that are available. that's it, that's the whole vibe. β¨
π SYNOPSIS π
/usr/sbin/mdata-list
no flags, no arguments, no drama. just run it. π
π DESCRIPTION π
so the mdata-list command lets you β or a script, scripts deserve nice things too β query the metadata for a guest instance running in a SmartDataCenter (SDC) cloud. π
where does this metadata even come from? bestie, gather round:
- it's generally set programmatically via CloudAPI π
- or during interactive provisioning via a Web Portal π₯οΈ
- and it can also be set from inside the instance itself using the
mdata-putcommand π«Ά
and if you want the actual value of a key-value pair? you pass its name to the mdata-get command. that's the whole system. iykyk. π
now, the important part: the list of all customer-provided metadata key-value pairs gets printed to stdout. π€
β οΈ heads up bestie: if the metadata service is unavailable at the time of the request, this command will block waiting for it to become available. it's not ghosting you, it's literally just waiting. π
Non-transient failures will cause the program to exit with a non-zero status. and depending on the nature of the error, some diagnostic output may get printed to stderr. π
β EXIT STATUS β
here are the exit values it can return, and what each one means:
0β successful completion! π the list of key-value pairs was emitted to stdout. slay.2β an error occurred. π¬ an unexpected error condition happened, and it's believed to be a non-transient condition. retrying the request is not expected to resolve it β either a software bug or a misconfiguration exists. so like, don't just hit it again and hope. periodt.3β a usage error occurred. π« malformed arguments were passed to the program. check the usage instructions to make sure you're supplying valid arguments. (this one is on you, bestie, no cap.)
π¦ SEE ALSO π¦
go read these too, they're iconic:
and that's the whole page!! brought to you by Joyent SmartDataCenter, dated October 2013 β yeah she's an elder but she still ate. π
π¦ where this page comes from
- ubuntu jammy: joyent-mdata-client 0.0.1-0ubuntu5 Β· MIT
- ubuntu noble: joyent-mdata-client 0.0.1-0ubuntu6 Β· MIT
- ubuntu questing: joyent-mdata-client 0.0.1-0ubuntu7
- ubuntu resolute: triton-mdata-client 20151001-0ubuntu3 Β· MIT
- ubuntu stonking: triton-mdata-client 20151001-0ubuntu3 Β· MIT
- Copyright (c) 2013, Joyent, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms