| | | Forum Newbie
       
Group: Forum Members Last Login: 2/22/2008 3:52:19 AM Posts: 3, Visits: 30 |
| | Hi Everyone Another post with a script based on the pollchannel.cmd file Janne
Save the script in folder Prism Suite\Tools\Poll Add the following line to ExternalToolsConfig.ini in the prism suite installation folder Poll Channel=cscript.exe //nologo //B Poll.vbs \\%computername%,"C:\program\prism Suite\tools\poll" Restart the console to the read in the new settings then you can right click and make the computer poll the channel ************************************ 'Script save as 'copy below and save as poll.vbs '**************************************** 'Path to files used by the script ' psexecfile = "C:\Script\Prism\psexec.exe" cmdfile = """C:\Program Files\Script\pollchannel.cmd""" Set WShell = WScript.CreateObject("WSCript.shell") Set objArgs = WScript.Arguments run = WShell.run ( psexecfile & " " & objArgs(I) & " -i -n 5 " & cmdfile) |
| | | | Junior Member
       
Group: Forum Members Last Login: 10/25/2006 3:31:08 AM Posts: 12, Visits: 37 |
| Perfect! This is just what we need. Except I can't get it to work. I can make it work in a commandbox on my own workstation though. I guess extra "" are needed somewhere, but I can't figure out where. Help please? My own supplements to interesting tools: VNC="C:\Program Files\RealVNC\VNC4\vncviewer.exe" %computername% Open C-disk="c:\Program Files\Prism Suite\opendrive" %computername% PING=ping -t %computername% Poll Channel=cscript.exe //nologo //b "c:\Program Files\Prism Suite\poll.vbs" \\%computername%,""c:\Program Files\Prism Suite\poll""
(RealVNC is a free remote control tool we use for all workstation and servers) Opendrive is just a batchfile ("start \\%1\c$"). I Don't know any easier way.
Regards, Mario
That that doesn't kill me, only makes me stronger! |
| | | | Junior Member
       
Group: Forum Members Last Login: 7/25/2007 6:29:22 AM Posts: 16, Visits: 19 |
| | This is great stuff! Based on this thread and since we are not into vb-scripts, we have implemented it like this: 1) Put pollchannel.cmd on every client (by deploying a package). 2) Place psexec.exe in c:\Program Files\Prism Suite on administrator workstation. 3) Add the following line to the [SingleComputerApps] section of ExternalToolsconfig.ini on administrator workstation: Poll="c:\Program Files\Prism Suite\Psexec.exe" \\%computername% -i -n 5 "<local path to pollchannel.cmd on client>\pollchannel.cmd" 3) Restart Prism Console on administrator workstation. Regards, Raymond |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 5/18/2007 6:19:00 PM Posts: 3, Visits: 13 |
| | I think I am missing something here. I have downloaded the psexec.exe file and specified it's location in the poll.vbs file. I have specified the location of the poll.vbs file in the externaltoolsconfig.ini. The "poll channel" command now shows up when I right click on a machine in the console. If I right click a computer that is online and tell it to "poll channel" the command window pops up and then goes away, but the machine is not updated in the console. Our default time interval for polling is 10 minutes by the way. Where is the pollchannel.cmd file? I have version 7 of the Prism Console and Win XP 64 bit. |
| | | | 
Supreme Being
       
Group: Moderators Last Login: 2 days ago @ 3:00:04 PM Posts: 650, Visits: 760 |
| New Boundary Technical Support recommends the following, more simplified method (based on Raymond's previous post, which uses Sysinternals (now Microsoft) psexec.exe. Our method doesn't require pollchannel.cmd file.Place psexec.exe in c:\Program Files\Prism Suite on administrator workstation. Add the following line to the [SingleComputerApps] section of ExternalToolsconfig.ini on administrator workstation: Poll Now="c:\Program Files\Prism Suite\Psexec.exe" \\%computername% -i -n 5 "<local path to ptclient.exe on managed system>" /subscriber Example: Poll="c:\Program Files\Prism Suite\Psexec.exe" \\%computername% -i -n 5 "c:\Program Files\New Boundary\Client\ptclient.exe" /Subscriber Note: There are may other switches that can be used with psexec. Check the documentation on the link below. Restart Prism Console on administrator workstation.
You can download psexec.exe (which is part of pstools) here: http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx
New Boundary Technologies Support support@newboundary.com |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 5/18/2007 6:19:00 PM Posts: 3, Visits: 13 |
| | I like this simplified method much better as it doesn't put a black command window up on the user's screen when it is polling. Thanks! |
| |
|
|