Unable to use ESPCOM command in OPS/MVS Rexx
search cancel

Unable to use ESPCOM command in OPS/MVS Rexx

book

Article ID: 136587

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Created a test Rexx in OPS/MVS to issue an ESPCOM command via Address ESP. Keep getting "ESP401W INVALID COMMAND, ESPCOM" messages. Below is what is in the Test Rexx.

Parse Upper Arg Server
WAEECMD = "oper espcom list dest("Server")"
Address ESP "SUBSYS(EXXX);"WAEECMD
Do I = 1 to Queued()
  Pull Cmdout
  Say Cmdout
End
Return

Issued the command with and without OPER. 

Could it be possible to advise on how we could use the command in OPS/MVS?

 

Environment

OPS/MVS,  All releases

Resolution

The ESP documentation states this command ESPCOM has to be issued against a Master subsystem. This error occurs when the command is issued to a Proxy ESP subsystem, denoted above as EXXX.