4 Replies Latest reply on Mar 4, 2014 7:44 AM by bob.mier

    Run a command as a task in ldms 9.5 SP1

    bob.mier Apprentice

      I need to run a command to invoke a benchmark to be ran on client PCs and servers from a single tiny file server.  I can invoke the benchmark using a command line command as a specific domain user.  This requires manually entering the password when prompted.  I was wanting to use a scheduled task to help provide control so that only 'X' targeted clients run the benchmark at a set time.  This is not a software installation; it is a command to invoke the benchmark program to be ran on the targeted client with the results being sent back to the file server.

       

      Does anyone know how to do this in LDMS 9.5?

        • 1. Re: Run a command as a task in ldms 9.5 SP1
          MarXtar ITSMMVPGroup

          If you create a new push delivery method then you can set the maximum simultaneous devices to 1. This would handle the numbers.

           

          You mention about needing to pass in a password. Is that because of the specific user or a password for the app?

           

          If just because of the user, then you can set the package to run under a specific user account. Not sure if you want the benchmarking app to be copied to the device or not, so maybe in your delivery method it should also be selected as run from source. The package itself could just be a batch file.

           

          Hope this helps a bit.

           

          Mark McGinn

          MarXtar Ltd/MarXtar Corporation

          http://landesk.marxtar.co.uk

          LANDesk Expert Solution Provider

           

           

          The One-Stop Shop for LANDesk Enhancements

          - Wake-On-WAN - Distributed Wake-On-LAN, Scheduled Power Down, and SWDist Sequencing

          - State Notifier - Real-Time Device & User State Inventory Updating & Alerting

          Update - New Stand-Alone State Notifier Console for Service Desk Operators

          Update - State Notifier now detects machine and user Idle states

          Update - WoW & State Notifier now integrate for even more functionality

          1 of 1 people found this helpful
          • 2. Re: Run a command as a task in ldms 9.5 SP1
            bob.mier Apprentice

            Thank you for the reply. 

             

            The batch file (CIS-CAT_deploy.bat) contains the cli command to invoke the benchmark from the file server

            (cmd.exe /c "\\fileserver\cis\cis-cat-centralized.bat").  This will run when typed in on the client pc manually from both a command prompt and from the run command.

             

            When I create a distribution task as you directed, I recieve the following - Result: "Error downloading package" with Return Code: 105.

             

            Here is the log file:

            Tue, 18 Feb 2014 15:19:25 File (\\coreserver\dist_package_files\CIS-CAT\CIS-CAT_deploy.bat) is not in cache

            Tue, 18 Feb 2014 15:19:25 Will attempt Peer Download.

             

             

            Tue, 18 Feb 2014 15:19:25 Will attempt Preferred Server Download.

             

             

            Tue, 18 Feb 2014 15:19:25 About to call DownloadFiles (1 files) with these settings:

            Tue, 18 Feb 2014 15:19:25 m_allowedBandwidthWAN: 50

            Tue, 18 Feb 2014 15:19:25 m_allowedBandwidthLAN: 75

            Tue, 18 Feb 2014 15:19:25 m_maxDiscoveryThreads: 15

            Tue, 18 Feb 2014 15:19:25 m_discardPeriodSeconds: 604800

            Tue, 18 Feb 2014 15:19:25 m_preserveDirectoryStructure: 1

            Tue, 18 Feb 2014 15:19:25 m_bUseWanBWForPush: 0

            Tue, 18 Feb 2014 15:19:25 m_bSynchronize: 0

            Tue, 18 Feb 2014 15:19:25 m_downloadControl: AttemptPeer

            Tue, 18 Feb 2014 15:19:25 m_preferredServerControl: AttemptPreferredServer

            Tue, 18 Feb 2014 15:19:35 processing of package is complete, result -1918107543 (0x8dac0069 - code 105)

            • 3. Re: Run a command as a task in ldms 9.5 SP1
              MarXtar ITSMMVPGroup

              Is the batch file you are calling located on a preferred server? If so, just use a delivery method that is set as run from source rather than using a batch file to call another batch file.

               

              Mark McGinn

              MarXtar Ltd/MarXtar Corporation

              http://landesk.marxtar.co.uk

              LANDesk Expert Solution Provider

               

               

              The One-Stop Shop for LANDesk Enhancements

              - Wake-On-WAN - Distributed Wake-On-LAN, Scheduled Power Down, and SWDist Sequencing

              - State Notifier - Real-Time Device & User State Inventory Updating & Alerting

              Update - New Stand-Alone State Notifier Console for Service Desk Operators

              Update - State Notifier now detects machine and user Idle states

              Update - WoW & State Notifier now integrate for even more functionality

              • 4. Re: Run a command as a task in ldms 9.5 SP1
                bob.mier Apprentice

                Mark,

                 

                The run from source was the key to running the batchfile.  The only issue that is currently an issue is the run under a specific account is not allowing it to be ran on all targets.  I will have to investigate more.

                 

                Thanks!