How do I implement or create an Action that will restart a service? (NETIQKB43482)

  • 7743482
  • 02-Feb-2007
  • 24-Jan-2011

Environment

NetIQ AppManager 6.x
NetIQ AppManager 7.0.x
Action_DosCommand Knowledge Script

Situation

How do I create a DOS batch file to stop and restart a service?

Resolution

You can create a DOS batch file that will stop and restart a service.

To create the DOS batch file:

  1. At a DOS prompt, type the following command: edit <givefilename>.bat
  2. In the file you just created, type the following text:

    Net stop <servicename>
    Net start <servicename>
    exit
  3. Press Alt+ F for the file and select Save.
  4. Copy this file to a location you can specify on the Actions tab of your Knowledge Script. You should store this batch file locally on the computer executing the action.

Additional Information

Formerly known as NETIQKB43482

DOS commands are recommendations only. Use them at your own risk.

NetIQ Technical Support can ensure a Knowledge Script is using the DOS command, but cannot troubleshoot commands or verify your commands are usable or properly formatted. Ensure you have fully tested any DOS commands in a test environment prior to implementing them in your production network.