John,

Do you have a firewall in place that might interfere with the connection, including one on the PC like ZoneAlarm?

-mark


At 6/7/2011 03:35 PM, you wrote:
I must be doing something wrong.

>From my pc:

net time \\winserver
Current time at \\winserver is

>From th i:
RUNRMTCMD CMD(' net time') RMTLOCNAME('\\winserver' *IP) either with my network login or without, I get the following:

CPE3425 "A remote host refused an attempted connect operation."

Seems like some different protocol is being used.

Also, I have tried it with and without the leading \\ characters.

My pc may be authenticating in the background. Thus no need for the user name and password. A guess. But, what can cause the CPE3425 error when attempting to communicate with the same server"?

John McKee
-----Original message-----
From: "Harman, Roger" Roger.Harman@xxxxxxxxxx
Date: Tue, 07 Jun 2011 12:07:00 -0500
To: "'Midrange Systems Technical Discussion'" midrange-l@xxxxxxxxxxxx
Subject: RE: Network task

> RunRmtCmd should work. You need to do a "net start [servicename]"
>
> I've also used Aaron Bartell's RPG2DeskTop utility to kick off jobs on a Win PC.
>
>
> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
> Sent: Tuesday, June 07, 2011 9:48 AM
> To: 'Midrange Systems Technical Discussion'
> Subject: RE: Network task
>
> John,
>
> By "nudged" it sounds like you want to restart the service. I forget what
> it's called on Windows systems, but would something like RUNRMTCMD work for
> you?
>
> Jerry C. Adams
> IBM i Programmer/Analyst
> "I've had a perfectly wonderful evening. But this wasn't it." -Groucho Marx
> --
> A&K Wholesale
> Murfreesboro, TN
> 615-867-5070
>
>
> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx
> [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of jmmckee
> Sent: Tuesday, June 07, 2011 10:56 AM
> To: Midrange Systems Technical Discussion
> Subject: Network task
>
> >From a DOS command line, I can perform some simple tasks on another
> computer. One, for example, is net time \\computername
>
> Is there a way of doing this on the i?
>
> We have a service on a Windows server that needs to be nudged at apparently
> random intervals. On that specific server, a service is stopped and
> restarted. We have a program on the i that can indicate whether the remote
> computer service needs to be nudged. What I would like to do is have that
> program be able to do that nudging. But, that appears to be based on
> understanding what happens when a net time \\computername is performed. Is
> that command using a networking function that the i does not have?
>
> John McKee


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].