Broker 10.5 | webMethods Broker Documentation | Administering webMethods Broker | Exporting and Importing Broker Metadata | Using Command-Line Utilities for Export and Import | Automating Export and Import with Command Files
 
Automating Export and Import with Command Files
You can automate the saving (export) and loading (import) of Broker metadata by executing broker_save and broker_load from a command file.
Following is an example of a command file that exports metadata for four Brokers to four ADL files.
set BROKER_BIN=c:\webMethods Broker_directory\bin\
set BROKER_HOST=localhost:9000
set CG_ADL=ClientGroups_SSL.adl
set CERT_FILE=keystore01.cert
set DN="CN=ABC Manufacturing 1"
 
set BROKER1=Broker00010@%BROKER_HOST%
set BROKER2=Broker00020@%BROKER_HOST%
set BROKER3=Broker00030@%BROKER_HOST%
set BROKER4=Broker00040@%BROKER_HOST%
 
broker_save -broker brk01.adl %BROKER1% -certfile %CERT_FILE% -dn %DN%
broker_save -broker brk02.adl %BROKER2% -certfile %CERT_FILE% -dn %DN%
broker_save -broker brk03.adl %BROKER3% -certfile %CERT_FILE% -dn %DN%
broker_save -broker brk04.adl %BROKER4% -certfile %CERT_FILE% -dn %DN%