DFSRDiag Scrip on WIndows 2012 R2

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
zacherynuk
Posts: 26
Joined: Thu Jul 20, 2006 10:24 am

DFSRDiag Scrip on WIndows 2012 R2

Post by zacherynuk »

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: Select all

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% 
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Where exactly do you use this script?
It should be started from 64bit cmd or powershell.
zacherynuk
Posts: 26
Joined: Thu Jul 20, 2006 10:24 am

Post by zacherynuk »

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!
KS-Soft
Posts: 12887
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
zacherynuk
Posts: 26
Joined: Thu Jul 20, 2006 10:24 am

Post by zacherynuk »

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 ?
KS-Soft
Posts: 12887
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Not sure how 64-bit RMA will help.
Existing 32-bit RMA can start 64bit powershell when you need.
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
Post Reply