1 2 Previous Next 12 Replies Latest reply on Jun 10, 2011 3:03 PM by mathr601

    Running an executable once on every clients and servers.

      Hi,

      What is the best way to run an executable once on every client and servers with ePO 4.5.

      The executable can be on a public share or maybe push with ePO.

      Registered executable with automatic response?

      How do I trigger it? With an event number that will occur for every clients and servers?

       

      Thanks

        • 1. Re: Running an executable once on every clients and servers.
          Laszlo G

          Hi mathr601, you can use an automatic response to run an executable. Of course you will have to register it before, as you said, but you'll also have to look for the event you will use to trigger this response

          • 2. Re: Running an executable once on every clients and servers.

            Yes the problem is I am not able to trigger the response.

            I created a simple task (agent wakeup) that occurs at specific time.

            Now in my automatic response, under filter, I tried "Event Description" equals "Scheduler: Invoking task [Test]..." which is the exact sentence I see in the agent logs.

            It does not trigger the response.

            What should be the Event Description then?

            When I create a task, does it create an Event ID associated with the task?

             

            THanks

            • 3. Re: Running an executable once on every clients and servers.
              JoeBidgood

              This isn't going to be possible, I'm afraid - the registered executable only exists on the ePO server, not on the client machines.

              Exactly what are you trying to achieve? There's no mechanism in ePO for running executables on client machines, but we might be able to find a different approach...

               

              HTH -

               

              Joe

              • 4. Re: Running an executable once on every clients and servers.

                We need to deploy and launch an executable on every workstations. The executable will basically gather some informations and send them to a server.

                I thought it could be made with ePO as the agent is present on every machines.

                 

                Thanks

                • 5. Re: Running an executable once on every clients and servers.
                  JoeBidgood

                  There's no function built-in that can do this, but if the executable is present on each machine, you can maybe work around it

                  The agent is able to run an executable after a successful update, so as long as you don't mind waiting until the update task runs, you could maybe use this to run your executable.

                   

                  HTH -

                   

                  Joe

                  1 of 1 people found this helpful
                  • 6. Re: Running an executable once on every clients and servers.

                    mathr601, If I'm understanding you correctly you could do the following:

                     

                    Place the executable on a network path accessible to all your machines.

                    In the Agent General Policy under the Updates tab enter the information to execute your exec in the Post Update Options such as \\someshare\some.exe

                    The only potential problem is the exe will run after every update. If you using it for asset collection this may be acceptable, otherwise you need to come up with a way to only run it once.

                     

                    I've used this process with great success to move machines from one ePO server to another by having them run a force agent install for the new server. In that scenario, it only runs once.

                    1 of 1 people found this helpful
                    • 7. Re: Running an executable once on every clients and servers.

                      Many thanks.

                       

                      Let's say I want to launch the command after the update of the dat file which occurs everyday.

                      To update the dat file I need a scheduled task.

                      So for testing purpose I created a Test task to update the dat file at a specific time because I don't want to wait for tomorrow. I have rolled back my dat file.

                      The task did it's job and updated my dat file. However it did not launch the command.


                      The funny thing is that it worked once earlier but the access was denied to the file (share permissions).

                      At that time the update started by itself...

                       

                      What am I missing?

                      • 8. Re: Running an executable once on every clients and servers.

                        Here are the logs:

                         

                        When the command has been triggered:

                         

                        2011-06-10 11:09:33          I          #2260          muemsg          Calling HandlePostpone with TaskID:  UpdateState: 1

                        2011-06-10 11:09:33          I          #2260          muemsg          Calling m_pUpdateInfoCallback->HandlePostpone

                        2011-06-10 11:09:33          I          #2260          Updater          CMcAfeeUpdate::HandlePostpone() Entered taskid: 20

                        2011-06-10 11:09:33          I          #2260          Updater          Finished calling GetPostponeMins

                        2011-06-10 11:09:33          I          #2260          Updater          CMcAfeeUpdate::HandlePostpone() Exit

                        2011-06-10 11:09:33          I          #2260          muemsg          Finished Calling m_pUpdateInfoCallback->HandlePostpone

                        2011-06-10 11:09:33          I          #2260          muemsg          Finished Calling HandlePostpone

                        2011-06-10 11:09:33          I          #2260          UpdEvents          EpoEventInf Interface: Update event created.

                        2011-06-10 11:09:33          I          #2260          UpdEvents          DeInitializing Event Interface

                        2011-06-10 11:09:33          I          #2260          UpdEvents          EpoEventInf Interface: Deinitialization succeeded.

                        2011-06-10 11:09:33          I          #2260          muemsg          Updater session finish state value =1

                        2011-06-10 11:09:33          E          #2260          muemsg          Error trace:

                        2011-06-10 11:09:33          E          #2260          muemsg            CreateProcess failed on:\\blabla\calc.exe:with error code 5

                        2011-06-10 11:09:33          I          #2260          Uec          Done processing event  information

                        2011-06-10 11:09:33          I          #2260          Uec          Terminating thread

                        2011-06-10 11:09:33          I          #1520          FrmSvc          User SID is S-1-5-18 and SessionID is 0

                        2011-06-10 11:09:33          i          #2608          Sched          The task Whatever is successful

                        2011-06-10 11:09:33          i          #2608          Sched          Scheduler: Task [Whatever] is finished

                         

                        When the update has occurred with the task but the command has not been triggered for some reason:

                         

                        2011-06-10 13:46:16          I          #7816          muemsg          Calling HandlePostpone with TaskID:  UpdateState: 1

                        2011-06-10 13:46:16          I          #7816          muemsg          Calling m_pUpdateInfoCallback->HandlePostpone

                        2011-06-10 13:46:16          I          #7816          Updater          CMcAfeeUpdate::HandlePostpone() Entered taskid: 665

                        2011-06-10 13:46:16          I          #7816          Updater          Finished calling GetPostponeMins

                        2011-06-10 13:46:16          I          #7816          Updater          CMcAfeeUpdate::HandlePostpone() Exit

                        2011-06-10 13:46:16          I          #7816          muemsg          Finished Calling m_pUpdateInfoCallback->HandlePostpone

                        2011-06-10 13:46:16          I          #7816          muemsg          Finished Calling HandlePostpone

                        2011-06-10 13:46:30          I          #7816          UpdEvents          EpoEventInf Interface: Update event created.

                        2011-06-10 13:46:30          I          #7816          UpdEvents          DeInitializing Event Interface

                        2011-06-10 13:46:30          I          #7816          UpdEvents          EpoEventInf Interface: Deinitialization succeeded.

                        2011-06-10 13:46:30          I          #7816          muemsg          Updater session finish state value =1

                        2011-06-10 13:46:31          I          #2672          LstnSvr          CAsyncSocket::DoAccept for event: FD_ACCEPT

                        2011-06-10 13:46:31          I          #7816          Uec          Done processing event  information

                        2011-06-10 13:46:31          I          #7816          Uec          Terminating thread

                        2011-06-10 13:46:31          I          #5488          FrmSvc          User SID is S-1-5-18 and SessionID is 0

                        2011-06-10 13:46:31          i          #2608          Sched          The task Test is successful

                        2011-06-10 13:46:31          i          #2608          Sched          Scheduler: Task [Test] is finished

                        • 9. Re: Running an executable once on every clients and servers.

                          Alright guys.

                          It works fine.

                          The problem is that the process is running under FrameworkService.exe. There is no visible window...

                          It's fine with us as we don't need a visible window but that might be something to consider...

                           

                          Thanks again

                          1 2 Previous Next