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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running Remote Commands on AIX

Status
Not open for further replies.

gogr

IS-IT--Management
Jan 8, 2003
21
0
0
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
 
Hi Gerry,

I don't know if this will help or not. If you
are truly using the user id "root", it is not capitalized.
Here is an example of changing to the root id:

kbs80*alllab-/home/jpape
>su - root
root's Password:
#

If you have created a new user id "ROOT", then that could
be another issue.

-Joe


 

Thanks Joe
Yes the problem is with the uppercase . AS400 is non case sensitive , AIX is also need to put a quotes around the user and password as well


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

Rgds
Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top