Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Getting information about a VM
      • Getting the serial port output
    • Viewing operations with resources
  • Yandex Container Solution
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Getting information about a VM
  3. Getting the serial port output

Getting the serial port output

Written by
Yandex Cloud
Updated at May 5, 2025

You can get the output from a VM serial port and use it, e.g., for troubleshooting.

To access the output data, you need the compute.operator or viewer role.

Management console
CLI
API
  1. Select the folder the VM belongs to.
  2. Select Compute Cloud.
  3. Click the line with the VM in question.
  4. Go to the Serial port tab.
  5. To use the CTRL + F shortcut to search, enable Raw mode in the top-right corner.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. See the description of the command for getting the serial port output:

    yc compute instance get-serial-port-output --help
    
  2. Select a VM, e.g., first-instance:

    yc compute instance list
    

    Result:

    +----------------------+-----------------+---------------+---------+----------------------+
    |          ID          |       NAME      |    ZONE ID    | STATUS  |     DESCRIPTION      |
    +----------------------+-----------------+---------------+---------+----------------------+
    | fhm0b28lgfp4******** | first-instance  | ru-central1-a | RUNNING | my first vm via CLI  |
    | fhm9gk85nj7g******** | second-instance | ru-central1-a | RUNNING | my second vm via CLI |
    +----------------------+-----------------+---------------+---------+----------------------+
    
  3. Get its serial port output. Since the serial port output is usually lengthy, we recommend writing it to a file:

    yc compute instance get-serial-port-output first-instance > output.txt
    

To get the serial port output, use the getSerialPortOutput REST API method for the Instance resource or the InstanceService/GetSerialPortOutput gRPC API call.

Was the article helpful?

Previous
Getting information about a VM
Next
Stopping and starting a VM
© 2025 Direct Cursus Technology L.L.C.