Logging and reading the z/VM guest virtual machine console

6.10 z/VM guest

You can use the vmur command to read a console transcript that was spooled, for example, with the vmcp command.

Procedure

  1. Begin console spooling:
    # vmcp sp cons start
  2. Produce output to the z/VM® console.
    Use, for example, CP TRACE.
  3. Stop console spooling, close the file with the console output, and transfer the file to the reader queue.
    In the resulting CP message, the spool ID follows the FILE keyword. In the example, the spool ID is 398:
    # vmcp sp cons stop close \* rdr
    
    RDR FILE 0398 SENT FROM T6360025 CON WAS 0398 RECS 1872 CPY 001 T NOHOLD NOKEEP
  4. Read the file with the console output into a file in the current working directory on the Linux® file system:
    # vmur re -t 398 linux_cons