PDA

View Full Version : Runrmtcmd



dchristie
09-18-2002, 09:56 AM
Not sure why it's working with the 400 id/password, but have you configured the NT to allow access?

Windows NT 1. Select Control Panel, Services 2. Select Client Access Remote Command, Properties. 3. Check ‘Local System account’ and ‘Allow service to interact with desktop’. 4. Click OK. 5. Select Start. (You may also configure this task to start automatically). The Windows NT security manager is used to control access: 1. Select Start, Programs, Administrative programs 2. Select Action, New User. User name must be <= 10 characters and password <= 8 characters.

wknagata@hotmail.com
09-18-2002, 10:19 AM
In Win NT, Conrol Panel, Client Access Express Remote Command, Startup Type is Automatic and Log On As is System Account with Allow Service to Interact with Desktop checked and the service is started. When I do the Start, Programs, I have Administrative tools but no Action as you wrote. Could I be misreading the documentation? This would not be the first time. IBM writes such nice documentation.

dchristie
09-18-2002, 01:03 PM
I no longer have NT so I cannot confirm the instructions. Do you have administrator rights to the PC?

wknagata@hotmail.com
09-18-2002, 01:46 PM
yes.... I have full admin rights.

wknagata@hotmail.com
09-19-2002, 07:23 AM
I have read a lot about RUNRMTCMD but am still confused. Here is the senario: AS400 170 with OS v4r5 NT workstation with CA 4.5 attached to the AS400 via TCP/IP I have written a test CL program to display the directory contents of my C: drive thru RUNRMTCMD. The command is as follows: RUNRMTCMD CMD('DIR C:') + RMTLOCNAME('10.54.85.158' *IP) + RMTUSER('my400name') RMTPWD('my400password') The IP address is for my PC. This works because I get a printout of the C: drive. I noticed that the IP address is changed. I included a file with the history detail. I have read that the user name and password should be the NT name and password. When I use that, the CL program does not work. The error message printed is "Required userid is either missing or invalid". I should be happy that I got it to work but would like a "logical" explanation. 1. Why am I getting the CWBAR1017 message? What causes this? 2. Why does it work with the AS400 user id and password?

wknagata@hotmail.com
09-19-2002, 07:23 AM
David I solved the problem of the IP address. For some reason, our network uses a file named LMHOSTS instead of HOSTS. When I changed the HOSTS file, the IP problem went away. Now, I just have to figure out why the 400 username and password works and not the NT username and password. I think it has something to do with the fact that the 400 and the NT username are the same but the passwords are different.