can no one help me?
Thank you for the reply. Yes that is the file but I cannot get it to work or run. I get a permission or access denied error message but I'm using an account with admin access on the server.
I tried the script running from my XP desktop and openned and closed ie but nothing. Hope you can help.
Try opening a CMD window on the ipMonitor system and running the following command:
c:\winnt\system32\cscript.exe c:\[path]\perfmon_process.vbs [system] iexplore.exe
- [path] being the full path to to the perfmon_process.vbs script
- [system] being the IP or host name of hte Windows 2000 system
Do keep in mind that this script uses a WMI query to get the process list on the remote system and Windows 2000 can be a little finicky when it comes to WMI. To test WMI connectivity, you could try the steps in the following article:
Let me know what you find
Chris Foley - SolarWinds - Support Specialist
Support:866.530.8040 |Direct:512.682.9385 |Fax:512.857.0125
network management simplified | solarwinds.com
thank you for the info. i ran the WMI query and all was well! I ran the command line and I get back
Empty_Resultset (is this good or bad)
I tried then to go to ipmonitor. I created an external_process monitor
Executable Name: cscript
Directory: c:\steve\script\ ( the script is on the ipmonitor server at this location)
command line: perfmon_process.vbs [ip number of win200 server] explorer.exe
startup directory: not sure about this one is have c:\ipmscripts\ ( not sure what machin this is looking at?
credentials the admin account on the ip monitor server.
I get "access rights are insufficient" in the last result of the monitor
just to recap:
.vbs script is on the ipmonitor server and nothing on the winnt2000 server
I checked again from the command line on the ip monitor server running notepad.exe and it worked i got the result: process_found : notepad.exe
ok - so i went back to the external process monitor and changed the startup Directory to: c:\windows\system32\ 9 this is where the script is held on the server)
that fixed the access issue: However
i know get "the expected enviroment variable was not detected"
I'm lost with the setting in the Analysis of test results:
at the momnet it is set to compare the process return value
expected return value is set to 0
i get OBJECT_NOT_INITIALIZED
what does this mean?
also i am able to enum the clasess remotely via wbemtest
ok so i logged into our ipmonitor server with the ipmonitor service account and i can run the script from command line successfully but it get 'access rights are insufficient' error when running via ipmonitor GUI. i am using the same account in gui with the run external process option checked.
any suggestions? seems the script runs fine but ipmonitor cannot process directly
ex. name: cscript.exe
command line param: perfmon_process.vbs (netbios name) (process name .exe)
startup dir: c:\Perfmon_Process\
credential - ipmonitor service credential which works via command line when i run it
forget it. i removed the credential in the gui for the monitor and now it works.
Currently unable to use this functionality
The cscript returns the correct Error code of 0 and echos
"PROCESS_FOUND:: processname.exe" to the screen when run under a command prompt.
When run from IPMonitor the Monitor returns error
"The return value does not match the expected value"
Expected Return Value is set to 0 as recommended to check if process is running
Any ideas as to why this works from a command prompt and not from IPM??
If the scripts fails to complete, it will error out and return and error level other than 0. My guess is that the Credential you are using is not able to run the WMI query within the script. Try this:
1. On the ipMonitor host, open a CMD Window.
2. Type "Runas /user:[Account] cmd.exe" ***where [Account] is the account name entered within the Credential.
3. Enter the password when prompted.
4. Within the new CMD window running as the account assigned to the Credential, try running the script.
let me know the results.
Chris Foley | Support Specialist
SolarWinds | IT Management, Inspired By You
Support:866.530.8040 || Fax:512.857.0125