Difference between RMTCMD and REXEC

280 pts.
Tags:
AS/400 commands
iSeries Navigator
REXEC
RMTCMD
What are the major difference between RMTCMD and REXEC? I installed iSeries navigator in my PC and I am able to access both these commands.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Make sure your profile has sufficient authority to work with these commands. By default, these commands have capabilities that cause headaches for system managers/supervisors because it does not follow/use the authorities set.

The RMTCMD command is a DOS command that is installed on your PC with iSeries Access. It used to be an SNA-only command but now it runs over TCP/IP as well and now goes through the Remote Command host server.

STRHOSTSRV SERVER(*RMTCMD)

If you start the *RMTCMD server on the iSeries, you can use the RMTCMD command from Windows to run a command or a series of commands on the iSeries.

REXEC is a TCP/IP remote command execution protocol.

If you want the AS/400 to be a server, you must start the *REXEC TCP/IP server.
From Operations Navigator – select START option (right click) on the command or run the command STRTCPSVR *REXEC from a command line.

Once that server is started, on the remote machine (pc or any server) type

REXEC [as400name] -l [userid] [as/400 command] – please note the 400 commands must be non-interactive.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Rajgoaj
    That was useful, Thanks!
    280 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following