UCMDB and UD Practitioners Forum (Previously CMS)
cancel

How to execute cmd.exe by WMI in UCMDB?

Highlighted
Song Peng
New Member.

How to execute cmd.exe by WMI in UCMDB?

Hi all,
In my customer site, there is no ntcmd process but only WMI protocol could be use in PC servers. And I want to find some information in a file which path like 'c:\a.txt' in remote PC.
In my opinion, the only way to do this is to create a discovery job which use the WMI CI, and run the cmd.exe and type 'type "c:\a.txt"' in the remote PC. If it works, I could get the content of the txt. Then I format the content and input the informations into my CIs.
The problem is how to execute this command in Jython script?

 

 

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

1 REPLY
Alexander Arkhi
Acclaimed Contributor.

Re: How to execute cmd.exe by WMI in UCMDB?

Well, even if you'll be able to execute a process on destination machine with WMI call, I doubt you can read the output from its window.
What's the reason behind inability to use NTCMD (is it because of security constraints or some other)?