In the web console there is a field "Name" which you can edit to associate useful context with an instance, is there a way to set or retrieve this info from the command line?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
Yes, you can use the command line tools to view this information, if you need to parse this information out, you will be better off using the API (as it is both far faster and the information is much easier to work with). From the command line tools, run: You will find a line that reads similar to the following:
For a cleaner readout, you might want to pipe the output through grep:
Don't forget to export ( |
|||||||||||
|
|
You can set the Name of an instance using the command line tools with this command
|
|||
|
|
|
Also note that there are other ways to get data about an instance from an instance:
|
|||
|
|