Owner's Manual

Virtualization 165
Combinecerts.bat DOS Batch file
Copy the following text into a file named combinecerts.bat.
------ START OF DOS Batch File -----
@echo off
rem Usage: combinecerts <user> <password> <servers ip list file>
<output certificate file> [create|append]
rem (assuming same user and password for all servers)
rem option "create" causes the script to create a new <output certificate
file>.
rem option "append" causes the script to append new certificates to the
<output certificate file>.
if "%5"=="create" (del /F /Q %4 2>NUL)
for /f %%X in (%3) do (
echo.
echo.
echo Importing certificate from server: %%X
vifs.pl --server %%X --username %1 --password %2 --get /host/ssl_cert
tmpcert.crt
if not errorlevel 1 (type tmpcert.crt >> %4)
del /F /Q tmpcert.crt 2>NUL
)
echo.
------ END OF DOS Batch File -----
Sample Servers IP list file Copy
------ START OF SAMPLE servers IP list file -----
192.168.22.243
192.168.11.45
192.168.22.31
192.168.22.65
book.book Page 165 Monday, April 19, 2010 5:19 PM