
The eDirectory Management Toolbox
593
n
ov
do
cx (e
n)
11
Ju
ly 20
08
You can use a combination of the system and internal batch files for more flexibility and for
organizing and reusing commands that you run often.
Single Tasks
You can perform a single eMBox task in batch mode at the command line, simply by entering the
command using the -t option to specify the tool and task, and omitting the -i option (-i specifies
interactive mode). For example,
java embox -s 137.65.123.244 -p 8008 -u admin.mycompany
-w mypassword -l mylog.txt -t dsrepair.rld -n
WARNING:
On NetWare only, to avoid an abend you
must
include
-ns
(a Java option on NetWare
for “new screen”). For example,
java -ns embox -s 137.65.123.244 -p 8008 -u admin.mycompany -w
mypassword -l mylog.txt -t dsrepair.rld -n
For multiple tasks on different servers, or for tasks you perform often, a better alternative is to use an
internal batch file. For more information, see the following section,
“Internal Batch File” on
page 593
.
Internal Batch File
To run the eMBox Client in batch mode using an eMBox Client internal batch file, you need to
create a file which contains a group of eMBox commands you would run in the interactive mode.
An eMBox Client internal batch file lets you run all the commands in the batch file without your
attention. You can perform multiple tasks with multiple eMBox tools on the same server without
logging in and logging out again for each task. From one server, you can also perform tasks with
multiple eMBox tools on multiple servers.
Internal batch files can help you organize and reuse commands that you perform often, so you don't
need to enter them manually at the command line each time.
You can go to the command line and run the internal batch file using an eMBox Client command.
For example, this command logs in to a server and runs the commands listed in the
mybatch.mbx
file:
java embox -s 137.65.123.244 -p 8008 -u admin.mycompany -w mypassword -l mylog.txt
-o -b mybatch.mbx -n
WARNING:
On NetWare only, to avoid an abend you
must
include
-ns
(a Java option on NetWare
for “new screen”). For example,
java -ns embox -s 137.65.123.244 -p 8008 -u admin.mycompany -w
mypassword -l mylog.txt -o -b mybatch.mbx -n
Another option is to put the same kind of command in a system batch file, so that you can schedule
it to run on the server unattended. See
“System Batch File” on page 594
.
Here is an example of an eMBox internal batch file. It contains examples of the commands you
could run and an example of logging in to a different server. This example assumes that you logged
in to a server when you opened the eMBox Client. (Each command must be on a separate line. Lines
beginning with # are comments.)
Содержание EDIRECTORY 8.8 SP3
Страница 4: ...novdocx en 11 July 2008...
Страница 72: ...72 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 120: ...120 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 132: ...132 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 190: ...190 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 238: ...238 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 262: ...262 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 288: ...288 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 320: ...320 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 348: ...348 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 388: ...388 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 492: ...492 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 586: ...586 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 599: ...The eDirectory Management Toolbox 599 novdocx en 11 July 2008 Click Help for details...
Страница 600: ...600 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 614: ...614 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...