Midrange News for the IBM i Community


Send Remote Command using FTP RCMD Published by: Bob Cozzi on 05 May 2012 view comments

FTPRCMD - (Send Remote CL Command using FTP)

This command is part of the COZTOOLS software package for IBM i system. Visit www.cozTools.com for more information on how to order a copy for your system.

The FTPRCMD allows you to send up to 3 CL commands to another IBM i system. Unlike the SNDRMTCMD (Send remote command IBM i CL command) this command uses FTP and does not require the *REXEC server to be running. It does, however (and obviously) require that the FTP service be active.

Use the FTPRCMD to run commands on remote IBM i systems even if QINTER is not active. For example, if you have many IBM i systems installed, and one of them has an issue with the backup procedures where QINTER was ended and there's no way to get a 5250 session going... use FTPRCMD to start QINTER on the "down" system from a working system. There are other solutions to this situation, but this is the kind of thing you can do with remote command support using FTP.

Command Parameters

Using FTPRCMD requires that a valid user profile and password be sent along with the remote CL command(s).

RMTSYS - The remote system name or IP address of the remote IBM i system on which the CL commands shall be run using FTP's RCMD statement.

USER - The remote user profile or *CURRENT to use the current job's user profile name.

PWD - The remote user profile's password. This parameter is not displayed when typed in to the CL command prompter and is not logged in the joblog.

CMD - The first CL command to run on the remote system. If you prompt the FTPRCMD, this parameter is also promptable. That is you may enter a CL command in the prompted parameter and then prompt that CL command itself.

CMD2 - An option second CL command to run on the remote system. Note due to limitations in the IBM i CL command definition design, the CMD2 and CMD3 parameters may be not be prompted. Tip: Type the CL command into the the CMD parameter, prompt it, then cut/paste it into the the CMD2 and/or CMD3 parameters.

CMD3 - An option third CL command to run on the remote system. Note due to limitations in the IBM i CL command definition design, the CMD2 and CMD3 parameters may be not be prompted. Tip: Type the CL command into the the CMD parameter, prompt it, then cut/paste it into the the CMD2 and/or CMD3 parameters.

Requirements

  • IBM i v5r4m0 or later compatible release.

Components

  • FTPRCMD - CL Command Definition
  • FTPRCMD - RPG IV Command processing program

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS