Previous Topic: ADDRESS LXCON LXCMD—Send Commands To Linux SystemNext Topic: ADDRESS LXCON LIST—Return VM And Linux System Properties


ADDRESS LXCON VMCMD—Send Commands To VM System

The VMCMD command issues a VM command that can be executed from a VM command line.

This command has the following format:

ADDRESS LXCON "VMCMD keywords"
  {COMMAND('cmd text')}
  {VMNODE(vm name)}
  [LOG(Y|N)]
  [STEM(stem)]
  [WAIT(seconds)]
  [DELAY(seconds)]
COMMAND

This required keyword defines the text of the VM command. This keyword can be up to 2048 characters in mixed case.

VMNODE

Defines the name of a VM system to which you want to send the command.

LOG, STEM, WAIT, and DELAY

(Optional) Specify the LOG, STEM, WAIT, and DELAY keywords. These keywords have the same meaning as the ADDRESS USS Common Keywords.

Example: Issue command to a Linux system

This command lists active processes on a Linux system that is a VM guest machine and returns the response lines in stem variables with the stem name LXCMD. LXCMD.0 is set to the number of lines returned. The command waits up to 30 seconds for the response.

ADDRESS LXCON “LXCMD LXNAME(LINUX113) VMNODE(ZVM002) COMMAND(‘ps -e’) STEM(LXCMD.) WAIT(30)”

For more information:

Keywords Common to All ADDRESS USS Commands