12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Executing iastool command-line tools from a script file<br />

Note<br />

The contents of the file are exactly what you would enter on the command-line. The<br />

first entry in the file is the realm option - not the realm name, but the number you would<br />

choose from the list presented to you if you run the ping tool without the realm option.<br />

The second line is the username and the third line is the password. This file can then be<br />

secured in such a way that it is readable by the iastool utility, but not by unauthorized<br />

users.<br />

Passing a file to the iastool utility<br />

The following command shows how to ping a hub named east1 by passing a file to the<br />

iastool utility using the -file option:<br />

iastool -ping -hub east1 -file c:\BES\mylogin.txt<br />

where mylogin.txt has the following format:<br />

Default Login<br />

Smart Agent port number<br />

username<br />

password<br />

false<br />

ServerRealm<br />

The -file option requires that you supply a fully qualified file name (the file name plus<br />

a relative or absolute path). When passing a file to the iastool utility, only the third,<br />

fourth, and sixth lines are used, which are the username, password, and realm name,<br />

respectively. The other lines must be present, but the information they contain is<br />

ignored by the iastool utility. For example:<br />

Default Login<br />

12448<br />

myusername<br />

mypassword<br />

false<br />

ServerRealm<br />

Chapter 29: iastool command-line utility 323

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!