Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RUNRMTCMD on AS400 to an RS6000

Status
Not open for further replies.

gogr

IS-IT--Management
Jan 8, 2003
21
IE
I'm hoping you can help ?.
I was looking for info on how to configure up the AS400 to allow it to run remote commands on our AIX servers.

Let me explain the problem

I have it sucessfully running on 2 as400's no problem . Problem - Running runrmtcmd from AS400 v5.1 to AIX 4.3.3


However when I to run a remote command on the AS400 (see below)

cmd to run . .> RUNRMTCMD CMD('df -k >/mer.txt') RMTLOCNAME(
FF_MIS_SRV_02 *IP) RMTUSER(ROOT) RMTPWD(password22)

ie I want to run the command df -k >/mer.txt on AIX server FF_MIS_SRV_02

The AS400 log not the QPJOBLOG but a QSYSPRT job log indicated an error with the login.

rexecd: 0826-604 The login is not correct.

This is definetly correct

I'm 100 % ceratin the problem is an AIX issue :


From the AIX side of things I've the following

I have the AS400 machine IP address defined correctly to the /etc/host file on AIX

on the /etc/netscv.conf file
hosts=local


On the /etc/inted.conf file I've added

exec stream tcp6 nowait root /usr/sbin/rexecd rexecd -c

and done a refresh of inetd subsystem on AIX ie refresh -s inetd

If you can help or have a document on this maybe you can help with some pointers

Thanks
Gerry
 
Try:

RUNRMTCMD CMD('df -k >/mer.txt') RMTLOCNAME(FF_MIS_SRV_02 *IP) RMTUSER('ROOT') RMTPWD('password22')

Note the single quotes around the user password. The AS/400 will convert strings to uppercase in command parameters, UNLESS you enclose them in quotes. For AS/400 to AS/400, it doesn't matter, since OS/400 is case-insensitive, but AIX/UNIX is case sensitive.

I'm not familiar with AIX, so make sure the root account for that machine is in the correct case. "Don't worry about the world coming to an end today. It's already tomorrow in Australia."
--Charles Schultz

 
Thanks - thats all it was User id and password in correct case . I thought it was some AIX set up parameters

Full command is :

=> SBMJOB CMD(RUNRMTCMD CMD('df -k | grep /e >/ora.txt') RMTLOCNAME('10.99.0.151' *IP) RMTUSER('root') RMTPWD('password')) JOB(AIX) JOBQ(QINTER)





 
Glad to help. "Don't worry about the world coming to an end today. It's already tomorrow in Australia."
--Charles Schultz

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top