InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.2: Command line administration >
6.6.0.2.2: WebSphere Control Program (wscp) >
6.6.0.2.2.2: Command syntax and usage >
6.6.0.2.2.2.8: Detailed syntax

6.6.0.2.2.2.8: Detailed syntax

The detailed syntax for the wscp command argument is as follows:
object_type operation [object_name]
[ -option  [value] | -attribute  attribute_list]

A command argument can be issued immediately following the -c option of the wscp command, or at the wscp interactive prompt, as shown in the following examples.

C:\> wscp -c  "ApplicationServer list"
wscp> ApplicationServer list

When using the -c option, enclose the command in double quotation marks (") (Windows NT systems) or in single quotation marks (') (UNIX systems).

Note:
All object type names, object instance names, and attributes are case sensitive.

The arguments are as follows:

  • The object_type argument specifies the name of an object type. Examples are application servers (the object type ApplicationServer) and JDBC providers (the object type JDBCDriver). Object type names can be abbreviated to the shortest unique string (in interactive mode only).

  • The operation argument specifies the action to be performed on the object. Examples of wscp operations are create, modify, show, and start.

  • The object_name argument specifies the name of an object on which the action is to be performed. An object_name indicates a particular instance of an object type--for example, ejbserver1. You must use fully qualified object names. See 6.6.0.2.2.2.9: Specifying object names for details on object naming.

  • The option argument specifies a qualifier that controls the precise behavior of an wscp operation. For example, using the -force option with a stop operation performs a risky operation or completes an operation without confirmation. Some options take values, which further define the operation's behavior. For example, the -constraint option of list operations takes an attribute list as its value. The use of this option causes wscp to display only those object instances that contain the attribute-value pair specified.

  • The -attribute option specifies one or more properties of an object. Examples of attributes are the DatabaseName and IdleTimeout attributes of a DataSource object. Properties are specified in a list of attribute-value pairs. For example, the following is an attribute list for a DataSource instance:
    {Name ds1} {FullName /JDBCDriver:j1/DataSource:ds1/}
    {ConfigProperties {}} {Conn Timeout 180} {DatabaseName WAS}
    {DefaultPassword {}} {DefaultUser {}} {Description {}}
    {DisableAutoConnectionCleanup False} {IdleTimeout 1800} {JNDIName
    jdbc/ds 1} {MaxPoolSize 10} {MinPoolSize 1} {OrphanTimeout 1800}
    {StatementCacheSize 100 }
    
    See 6.6.0.2.2.3.2: Specifying lists in wscp commands for details.
Go to previous article: 6.6.0.2.2.2.7: Running scripts Go to next article: 6.6.0.2.2.2.9: Specifying object names

 

 
Go to previous article: 6.6.0.2.2.2.7: Running scripts Go to next article: 6.6.0.2.2.2.9: Specifying object names