How do I encapsulate applications with Services?

1 reply [Last post]
Forum Admin
Offline
Joined: 03/03/2009
Forum Admin
Offline
Joined: 03/03/2009
Encapsulate applications with Services?

Learning services

You can create an appliance by learning services. As you exercise the services, the services and any dependent services that are affected by the learning process are captured. You can relearn the services as often as required until you’ve captured all of the necessary service dependencies.

To create an appliance by learning services

1. Stop the services using the Microsoft Services Control Manager. AppZero starts the services as part of the learning process. Some services can take a few minutes to stop and start. For convenience, leave the Microsoft Services Control Manager open so that you can monitor the state of the services.

2. In the Command Prompt window, change to the AppZero directory (By default, C:\Program Files\AppZero).

3. At the command prompt, type the following to identify the services that you want to learn:

appzcreate appliance /Sservice1,service2…”

appliance is the full path of the appliance; service is the name of the service as it appears in the registry. The following are some things to note when typing the appzcreate /S command:

·      You must type the service name as it appears in the registry. To see the service name, right-click the service and then click Properties in the Services Control Manager. The service name is displayed at the top of the General tab.

·      If AppZero cannot learn one of the services, the session is cancelled and any services started during the learn service session are stopped.

·      The services must be separated by a comma (,) with no spaces.

·      If there is a space or ampersand (&) in the appliance name or services, you must enclose it in quotation marks (“ “).

The services start.

4.       Exercise the service using as many of the commands and actions as you can to identify as many of the files and registry settings as possible. For example, if you were learning Microsoft SQL Server 2000, you would login to the SQL Server and execute a few SQL commands.

5. Exit the application and stop the services using the Microsoft Services Control Manager. Learn mode runs until all of the services are stopped.

One of the following occurs:

·      If no other appliance of the same name exists, the appliance is created in the specified folder and the generated appliance XML template is created in the appliance.

·      If the appliance already exists, the newly learned information is appended.