12 Instance Console
You can use the console output of an instance to diagnose failures that occurred while booting the instance. The instanceconsole
object is created when an instance is launched, and it is destroyed when the instance is deleted.
Commands
instance-console get
Retrieves the messages that appear when an instance boots. Use these messages to diagnose unresponsive instances and failures in the boot up process.
Syntax
opc compute instance-console get instance_name
Example
opc -f json compute instance-console get /Compute-acme/jack.jones@example.com/68a3c40c-466e-41df-a7f2-00fbfbd590e5
Sample Output
Some lines have been truncated with ellipses (...
) for readability. When you run the command in your environment, you'll see the full output.
{ "timestamp": "2017-03-16T09:00:38", "uri": "https://api-z999.compute.us0.oraclecloud.com/instanceconsole/Compute-acme/jack.jones@example.com/68a3c40c-466e-41df-a7f2-00fbfbd590e5", "name": "/Compute-acme/jack.jones@example.com/68a3c40c-466e-41df-a7f2-00fbfbd590e5", "output": "acpiphp: Slot [7] registered\r\n[ 0.894800] ... login: " }