View previous topic :: View next topic |
Author |
Message |
zacherynuk
Joined: 20 Jul 2006 Posts: 26
|
Posted: Wed Mar 15, 2017 9:22 am Post subject: DFSRDiag Scrip on WIndows 2012 R2 |
|
|
Hi,
I have been using the following script for years on 2008 R2 machines, but I just cannot get 2012 R2 machines to launch any 64bit command, whether powershell or cmd. Can you advise ?
Thanks.
Code: |
SET EL=
for /F "tokens=6 delims= " %%A IN ('"%WinDir%\Sysnative\dfsrdiag.exe backlog /rmem:File02 /rgname:Replicationgroup1 /rfname:Foldername /smem:file01"') DO SET EL=%%A & GOTO finish
@echo Should Never Happen
:FINISH
IF %EL%==is SET EL=0
@echo SCRIPTRES:Host is alive:%EL%
EXIT /B %EL%
|
|
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Mar 15, 2017 9:58 am Post subject: |
|
|
Where exactly do you use this script?
It should be started from 64bit cmd or powershell. |
|
Back to top |
|
|
zacherynuk
Joined: 20 Jul 2006 Posts: 26
|
Posted: Wed Mar 15, 2017 10:10 am Post subject: |
|
|
D'oh!
(As a shell script)
I'm an idiot... hah. I am running it on a non DFS machine. It's been a long day. But... without having an agent installed - is it possible to run this on another machine ?
Thanks! |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12792 Location: USA
|
Posted: Wed Mar 15, 2017 3:28 pm Post subject: |
|
|
Run script on another system without RMA agent?
If you install some service that will start script, then yes. HostMonitor can start service on remote system, it will execute script...
Regards
Alex |
|
Back to top |
|
|
zacherynuk
Joined: 20 Jul 2006 Posts: 26
|
Posted: Wed Mar 15, 2017 4:51 pm Post subject: |
|
|
Hey Alex!
I may try pstools first.
This whole thing would go away if you would compile some 64 bit agents, your know, then we could use powershell.
It's a tick-box - why don't you ? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12792 Location: USA
|
Posted: Wed Mar 15, 2017 5:45 pm Post subject: |
|
|
Not sure how 64-bit RMA will help.
Existing 32-bit RMA can start 64bit powershell when you need.
Quote: | It's a tick-box - why don't you ? |
Tick box? A lot of code should be checked to make sure everything will work correctly. E.g. pointers will require 8 bytes instead of 4.
Sure, we can done this but so far we do not see advantages.
Regards
Alex |
|
Back to top |
|
|
|