user manual

364 BES Developers Guide
Using the iastool command-line tools
Examples
The following example restarts the hub BES1 on the default management port:
iastool -restart -hub BES1
The following example restarts the partition naming service running on the hub
BES1 on the management port 24410:
iastool -restart -hub BES1 -cfg j2ee -mo standard_visinaming -mgmtport
24410
setmain
Use this tool to set the main class of a standalone Client JAR or a Client JAR
in an EAR file. Once the main class is set, the java -jar jarfile command will
automatically invoke the main class that has been set for the JAR file.
Syntax
-setmain -jar <jar_or_ear> [-uri <client_jar_in_ear>] -class
<main_classname>
Default Output
The default output displays the main class that has been set for the specified
JAR file.
-pwd password Specifies the user's password to
authenticate against the specified realm.
-file <login_file> Specifies a login script file containing the
realm, user name , and password used
to authenticate a user. The full or relative
path to this file must be specified. See
Executing iastool command-line tools
from a script file on page 372 for more
information.
Option Description