New Boundary Support Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Function to add right click pollchannelExpand / Collapse
Author
Message
Posted 6/2/2006 4:56:54 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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)

 

Post #1309
Posted 6/13/2006 1:40:34 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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!
Post #1313
Posted 10/19/2006 12:46:20 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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

Post #1383
Posted 5/8/2007 7:09:11 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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. 

Post #1472
Posted 5/9/2007 12:53:43 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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.

  1. Place psexec.exe in c:\Program Files\Prism Suite on administrator workstation.

  2. 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.

  3. 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

Post #1475
Posted 5/18/2007 6:20:47 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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!
Post #1492
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: New Boundary Support

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:32am

Powered By InstantForum.NET v4.1.3 © 2008
Execution: 3.688. 12 queries. Compression Enabled.