Change into the directory
where your Portal Scripting Interface is installed: cd
/opt/WebSphere/PortalServer/bin
wpscript.bat -port port_number
-user user_id -password password
Description of the basic
parameters used with the wpscript.bat
|
|
|
|
Parameter
|
Description
|
-lang
|
Specifies the language of
the script file, command, or an interactive shell. Specify one of the following
values for the -lang parameter:
This parameter is optional
and has no default value. This option overrides language determinations that
are based on script file names, profile script file names, or the
com.ibm.ws.scripting.defaultLang property.
Important: If you do not
specify the script language in the command line or as a parameter, and the
wsadmin tool cannot determine the script language, an error occurs. If you do
not specify the script language as the value for -lang, the wsadmin tool
determines the script language as follows:
|
-conntype
|
The type of connection
that should be established between scripting. Valid connection types include:
The default value is SOAP.
This parameter is optional. Use the -conntype NONE option to run in local
mode. The result is that the scripting client is not connected to a running
server. If the connection type NONE is selected, the scripting beans are
inactive and cannot be used for administration, with the exception of the
help command.
|
-port
|
The connection port
number. This parameter is optional.
The port number depends on
values chosen during installation. You can verify the value that is set for
the WasSoapPort property in the wkplc.properties file found in the appropriate
directory given here:
If you are running
wpscript on a server that is part of a cell managed by a deployment manager,
the port_number can vary depending on what ports are in use on the
system when the deployment manager is created. To verify the value, check the
setting for SOAP_CONNECTOR_ADDRESS in serverindex.xml located in the
appropriate directory given here:
|
-user
|
The user ID under which
you establish the connection. This parameter can be mandatory, depending on
your security configuration.
|
-password
|
The password for the user
ID under which you establish the connection.
|
Run the following command to
login
Portal.login("user_ID",
"password")
No comments:
Post a Comment