Re: DDM NTCMD on Windows 2008 / xCmd challenge (184 Views)
Reply
Frequent Advisor
JanH
Posts: 65
Registered: ‎03-20-2008
Message 1 of 10 (1,982 Views)
Accepted Solution

DDM NTCMD on Windows 2008 / xCmd challenge

[ Edited ]

Hi.
I am using uCMDB 8.04 and DDM CP5.
I want to use NTCMD protocol for many reasons, but I get this error on Windows 2008 servers:

The xCmd Service service is marked as an interactive service. However the system is configured to not allow interactive services. This service may not function properly.

Any suggestions for a remedy?
Thanks
JanH

 

 

P.S. This thread has been moevd from Application Perf Mgmt (BAC / BSM) Support and News Forum to CMS and Discovery Support and News Forum. - Hp Forum Moderatro

Please use plain text.
Frequent Advisor
JanH
Posts: 65
Registered: ‎03-20-2008
Message 2 of 10 (1,982 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

The problem seems to originate from the fact, that xCmd installs xCmdsvc as an interactive service (allow service to interact with desktop)

DDM uses xCmd 1.01 which is fairly old.
Gerd F. has released an updated version 1.7, which has support for an /INTERACTIVE switch

Maybe this could be a solution? But the .exe needs to be signed properly by HP, to avoid antivirus problems?

xCmd 1.7 for NT4/2000/XP - executes commands remotely
Freeware! 2007-2009 Gerd Feldkirch, gerd@feldkir.ch
2001 Zoltan Csizmadia, zoltan_csizmadia@yahoo.com

Usage: xCmd.exe \\computer [options] command/exe arguments

Options:
/D:directory Set working directory
Default: Remote "%SystemRoot%\System32"
/IDLE Idle priority class
/NORMAL Normal priority class
/HIGH High priority class
/REALTIME Realtime priority class
/C Copy the specified program to the remote machine's
"%SystemRoot%\System32" directory
Commands's exe file must be absolute to local machine
/C:filename Copy the specified file to the remote machine's
"%SystemRoot%\System32" directory
/DL:localdir Local directory to be copied
/DR:remotedir Remote path of the directory to be copied
/INTERACTIVE Enables a program to interact with the desktop
/SYSTEM Run the remote process in the System account
/USER:user User for remote connection
/PWD:{password|*} Password for remote connection
/NOWAIT Don't wait for remote process to terminate
/QUIET Don't show program information
/CT:s Connection timeout in seconds
Please use plain text.
Frequent Advisor
JanH
Posts: 65
Registered: ‎03-20-2008
Message 3 of 10 (1,982 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

Did anybody successfully use NTCMD against Windows 2008 ?

Thanks
Jan
Please use plain text.
Frequent Advisor
fourma
Posts: 52
Registered: ‎06-11-2007
Message 4 of 10 (1,982 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

Also fails for me I have a raised a service call.
Please use plain text.
Frequent Advisor
JanH
Posts: 65
Registered: ‎03-20-2008
Message 5 of 10 (1,982 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

I also raised a call yesterday.
As far as I understand, the problem is known, but I fear the solution is not so simple.
Jan
Please use plain text.
Senior Member
rzillek
Posts: 3
Registered: ‎04-23-2010
Message 6 of 10 (1,982 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

Jan,
my UCMDB/DDM 8.03 CP5 has shown a similar nonfunctional xCmd behaviour for Win2k8.

I found out that the Win2k8 UAC has as massive impact on that old xCmd version with regards to the i/o redirection (e.g the MS-Cluster by NTCMD job will receive the return code 0x0 = "OK" but no return data of the command you sent is returned - but "ipconfig" for instance works because its not under UAC).

I tried to implement the newer, unsigned (viral:-)) xCmd 1.8 - but since the calling options in xCmd 1.8 for controlling the service lifecycle at the target systems changed, I was out of luck getting the jobs to run.

I know of at least on other customer having the same issue.

regards
Roman
Please use plain text.
Frequent Advisor
JanH
Posts: 65
Registered: ‎03-20-2008
Message 7 of 10 (1,982 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

Hi all.

Still no win2008 NTCMD from HP?

This is beginning to become a major problem, since e.g. win cluster pattern is depending on NTCMD. So are several other DDM jobs.

I would be glad to hear from anybody that succeeded using DDM NTCMD on Win2008.

Cheers
JanH
Please use plain text.
Senior Member
rzillek
Posts: 3
Registered: ‎04-23-2010
Message 8 of 10 (1,982 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

Hi Jan,
this is what I found and worked for us on 8.04 CP 6:

Problem description:
On Win2k8 natively 64bit-system-apps are stored in %Windir%\system32 and 32bit-system-apps are stored in %Windir%\SysWOW64(strange but true).
Furthermore the new win2k8 "filesystem redirector" automatically redirects 32bit-apps which refer hardcoded to resource- or ddl-files in %Windir%\system32 (now home of 64-bit-apps) to %Windir%\SysWOW64 (now home of 32bit-apps). Since "cluster.exe" is a 64bit-app it and its language resource file "cluster.exe.mui" are stored in %Windir%\system32 and %Windir%\system32\en-US respectively.
Since XcmdSvc-Service is a 32bit-app it spawns a 32bit-"cmd.exe"-Shell to run "cluster.exe". Since "cmd.exe" is 32bit it search for cluster is redirected to %Windir%\SysWOW64 where no "cluster.exe" or "cluster.exe.mui" reside.

Solution description:
Microsoft supports a special alias for legacy 32bit-apps to access %Windir%\system32 called %Windir%\Sysnative.

Proof of solution:
A manual xcmd-call for "%Windir%\Sysnative\cluster.exe /prop" returned the expected data without modification to the target wink8-system.

Note: "http://www.tipandtrick.net/2008/how-to-suppress-and-bypass-system32-file-system-redirect-to-syswow64... /"


regards
Roman
Please use plain text.
Frequent Advisor
JanH
Posts: 65
Registered: ‎03-20-2008
Message 9 of 10 (1,982 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

Wow, that amazing :-)

Thanks for the prompt answer Roman.
Will try tomorrow.

Jan
Please use plain text.
Frequent Advisor
Milap
Posts: 50
Registered: ‎02-06-2012
Message 10 of 10 (184 Views)

Re: DDM NTCMD on Windows 2008 / xCmd challenge

HI Roman,

 

Can you please let me know what all things I need to change to overcome this issue.Where to change the path which you mentioned.

 

Warm regards,

Milap

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation