![]() |
Configuring an iASP Application Using the Command Line |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
You can use the java admin.AppTuner command to delete and create ASP applications, list the names of all ASPapplications, and list or edit ASP application properties from the command line (as an alternative to using the Remote Console Applet). You can edit global ASP application properties (application root settings) or properties of a specific application. Usagejava admin.AppTuner [-options]Options-setrootpro property1=value1&property2=value2&...property(n)=value(n) Defines the property value(s) of the application root so that you can make global changes to all ASP applications. In this case, property1~(n) is the name of the property you want to change and value1~(n) is a new valid value for that property. The ampersand (&) symbol separates the different property value settings. For example, the following command sets the EnableSession and SessionTimeOut properties for the application root: java admin.AppTuner -setrootpro EnableSession=true&SessionTimeOut=20 -setrootprofromfile filename="filename" Defines the property value(s) of the application root (in order to make global changes to all ASP applications) by obtaining the property values from a specified file where filename is the name of the specified file. For example, the following command references the "setpro.txt" file to set the EnableSession, SessionTimeOut, and MaximumSessions properties for the application root: java admin.AppTuner -setrootprofromfile filename="setpro.txt"The content of "setpro.txt" might be: EnableSession=true Defines the property value(s) of the specified application where name is the name of the application, property1~(n) is the name of the property you want to change and value1~(n) is a new valid value for that property. The ampersand (&) symbol separates the different property value settings. For example, the following command sets the EnableSession and SessionTimeOut properties for the "appsample" application: java admin.AppTuner -setapppro appname="appsample" EnableSession=true&SessionTimeOut=20 -setappprofromfile appname="name" filename="filename" Defines the property value(s) of the specified application by obtaining the property values from a specified file where name is the name of the application and filename is the name of the specified file. For example, the following command references the "setpro.txt" file to set the EnableSession, SessionTimeOut, and MaximumSessions properties for the "appsample" application: java admin.AppTuner -setappprofromfile appname="appsample" filename="setpro.txt"The content of "setpro.txt" might be: EnableSession=true Deletes the specified applicationwhere name is the name of the application. For example, the following command deletes the "appsample" application: java admin.AppTuner -deleteapp appname="appsample"-addapp appname="name" path="path" Creates a new application under the current application root, where name is the name of the application you want to create and path is the path to the new application. For example, the following command adds an application named "appsample:" java admin.AppTuner -addapp appname="appsample" path="d:\myapps\sample"-listrootpro [filename="filename"] Lists the property values that are set for the application root (that is, the global ASP application root properties). If you do not specify a filename (the name of the file in which you want to save the listing of the properties), the output displays on the screen. For example, the following command displays all the properties of the application root on the screen: java admin.AppTuner -listrootproAlternatively, you can write the current properties of the application root to a file, as the following command shows: java admin.AppTuner -listapppro filename="apppro.txt" -listapppro appname="name" [filename="filename"] Lists the property values for the specified application where name is the name of the application and filename is the name of the file in which you want to save the listing of the properties. (If you do not specify a filename, the output displays on the screen.) For example, the following command displays all the properties of the "appsample" application on the screen: java admin.AppTuner -listapppro appname="appsample"Alternatively, you can write the current properties of an application to a file, as the following command shows: java admin.AppTuner -listapppro appname="appsample" filename="apppro.txt" -listallappname [filename="filename"] Lists the name(s) of all existing application(s) and their corresponding paths under the current application root. If you do not specify a filename (the name of the file in which you want to save the list of applications), the output displays on the screen. For example, the following command displays a list of all ASP applications on the screen: java admin.AppTuner -listallappnameAlternatively, you can write the list of applications to a file, as the following command shows: java admin.AppTuner -listallappname filename="appsname.txt"Appendix
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 1998-2002, Halcyon Software Inc. All rights reserved. |