|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by aa230002 in VB Script, Windows Management Instrumentation (WMI)
i am trying to fetch the RAID controller firmware from the remote computer making use of the tools from the vendors like IBM and HP. IBM Has IPSSEND.EXE which when executed with the arguments "GETVERSION" provides the info of the RAID cards firmware in the box. I am able to riun this tool properly with my script and get the output.
But the HP tool "HPACUCLI.EXE" also has some DLLS with it without whcih it wont run. So i have put all of them in a folder on remote computer and trying to execute it from remote computer similarly as IBM tool So, the script executes but does not generate the output. I also tried one more .EXE that runs with the support of DLL that is also not generating any output on local machine. But when I run that command from the remote machine it runs fine and generates output on my local mahcine. C:\HPACUCLI.EXE CTRL SHOW > \\Remotecomputer\share\out
put.txt. So just wanted to know if i need to make any spl efforts to execute the remoteprocess that has the DLLS assosiated? Or if there is any other way in VB to invoke the remote process and get the output..
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
|
strComputer = "remote computer name"
strCommand = "c:\ipssend.exe getversion > \\Remotecomputer\share\output.txt"
Const INTERVAL = "n"
Const MINUTES = 1
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objScheduledJob = objWMIService.Get("Win32_ScheduledJob")
Set objSWbemDateTime = CreateObject("WbemScripting.SWbemDateTime")
objSWbemDateTime.SetVarDate(DateAdd(INTERVAL, MINUTES, Now()))
errReturn = objScheduledJob.Create(strCommand, objSWbemDateTime.Value, False, 0, 0, True, intJobID)
|
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625