Announcement

Collapse
No announcement yet.

Remote Process Kill new performance counter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remote Process Kill new performance counter

    Hi all,

    I once setup custom tools to kill processes on remote machines (see topic below). But now, with the new performance counters, I can't setup the server name in any column. The "old" version had \\machine in %C1% - but how do I setup pskill now?
    Any help would be appreciated.
    Thanks

  • #2
    Re: Remote Process Kill new performance counter

    To use pskill, change the first parameter to \\%E%, and the second (for the process ID) to the right column, for example:

    pskill \\%S% %C2%

    %S% will substitute the active server in for the command.
    Kevin Stanush
    SystemTools Software Inc.

    Comment


    • #3
      Re: Remote Process Kill new performance counter

      Kevin,

      it works! Thanks a lot

      Comment


      • #4
        Re: Remote Process Kill new performance counter

        I've tried pskill \\%S% %C2% and pskill \\%E% %C2%

        Neither work. I've tried using the commandline to test and get this message

        C:\Program Files\Hyena>pskill \\d-9es56 2668

        PsKill v1.03 - local and remote process killer
        Copyright (C) 2000 Mark Russinovich http://www.sysinternals.com

        Error establishing communication with pskill service on d-9es56:
        The system cannot find the file specified.

        ?? Thanks,jb

        Comment


        • #5
          Re: Remote Process Kill new performance counter

          The key will be to get pskill working outside of Hyena first, then we can troubleshoot any remaining issues once added to Hyena.

          Comment


          • #6
            Re: Remote Process Kill new performance counter

            any ideas why it isn't working from the commandline?

            I thought the point of using pskill was so you didn't need a client installed on each machine :-)

            Comment


            • #7
              Re: Remote Process Kill new performance counter

              No ideas unfortunately. You might check with the developers of that product.

              Comment


              • #8
                Re: Remote Process Kill new performance counter

                Check the command line parameters for pskill and see if the dash in your computer name is not causing a problem, or test on a computer name with a different name
                Kevin Stanush
                SystemTools Software Inc.

                Comment


                • #9
                  Re: Remote Process Kill new performance counter

                  First, you may want to add " & pause" to the end of your command line (within Hyena) to pause the dialog box. Helps for troubleshooting.

                  Second, as Kevin suggested, check the parameters. You most likely will need to enclose some of the text in quotes if dealing with "other" characters (like - and _ ).

                  But most importantly, get it to work in DOS box first, manually pluggin in the computer name and process ID.

                  This is my command line from the tool:
                  cmd /c cls & pskill.exe \\%S% %C2% & pause

                  Works like a champ.

                  Comment


                  • #10
                    Re: Remote Process Kill new performance counter

                    Supply Guy, according to another post were you are posting all your lovely scripts and Tools.
                    You have: "cmd /c cls & \\\\server\\folder\\NTand2~1\\Hyena\\PsTools\\pski ll.exe \\\\%S% %C2% & pause"

                    I of course change it to the path of where my pskill resides. I keep getting errors. I can run it in a cmd box using the \\computername iexplore.exe [example] works

                    what does the S do and the C2 do?

                    [This message has been edited by Trammel (edited 04-03-2003).]

                    Comment


                    • #11
                      Re: Remote Process Kill new performance counter

                      Ok, I figured out I have to drill down to the computer on the left pane and open it up to the process. Then I double click the process and it shows in the right pane. Now the kill process works!

                      Finaly, whew.......

                      Comment


                      • #12
                        Re: Remote Process Kill new performance counter

                        Plus, I hope you noticed that the reason I have so many "\" backslashes is because this command is in the registry file.

                        All of those are required to import the entire command correctly.

                        Joel

                        Comment

                        Working...
                        X