Sounds like you don't have the process running to remote commands.

See... http://www-912.ibm.com/s_dir/slkbase.NSF/0/bb7ec79d814fd69f862565c2007cb99e?OpenDocument


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of jmmckee
Sent: Tuesday, June 07, 2011 12:36 PM
To: Midrange Systems Technical Discussion
Subject: RE: Network task

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 is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.