Learn about the methods that you can use to configure Content Based Routing (CBR). The information center assumes use of the command line.
The command line is the most direct means of configuring Content Based Routing. The command parameter values must be entered in English characters. The only exceptions are host names (used, for example, in cluster and server commands) and file names.
cbserver
To
stop the service, enter the following command: cbserver stop
On Windows platforms, click Start
> Settings (for Windows 2000) >
Control Panel > Administrative Tools > Services.
cbcontrol he f
instead
of cbcontrol help file
To start the command line interface issue cbcontrol to receive an cbcontrol command prompt. To end the command line interface issue the exit or quit commands.
rule add 10.1.203.4@80@cbr_prod_rule_ek type content pattern uri=/nipoek/*
For
this same command to work at the operating system prompt, you must
place double quotation marks (″ ″) around the pattern
as follows:cbrcontrol rule add 10.1.203.4@80@cbr_prod_rule_ek type content pattern "uri=/nipoek/*"
If
the quotation marks are not used, some of the pattern might be truncated
when the rule is saved in CBR. Quotation marks are not supported when
you use the cbrcontrol>> command prompt.cbcontrol file appendload myscript
cbcontrol file newload myscript
cbcontrol file save savescript
This command saves the configuration script file in the install_root/servers/configurations/cbr directory.
cbserver
lbadmin
To configure the CBR component from the GUI, you must first select Content Based Routing in the tree structure. You can start the executor and manager after you connect to a Host. You can also create clusters that contain ports and servers, and start advisors for the manager.
The GUI can be used to do anything that you would do with the cbrcontrol command. For example, to define a cluster with the command line, you would enter cbcontrol cluster add cluster command. To define a cluster from the GUI, right-click Executor, then in the menu, left-click Add Cluster. Enter the cluster address in the window, then click OK.
You can load pre-existing CBR configuration files by using the Load New Configuration (for completely replacing the current configuration) and Append to Current Configuration (for updating the current configuration) options that are presented in the Host menu. Save your CBR configuration to a file periodically by using the Save Configuration File As option that is also presented in the Host menu. The File menu that is at the top of the GUI allows you to save your current host connections to a file or restore connections in existing files across all Load Balancer components.
executor report
The results
and history of the commands run in the current session and display
in the window provided.The CBR wizard guides you step-by-step through the process of creating a basic configuration for the CBR component. The wizard asks you questions about your network and guides you as you set up a cluster that enables CBR to load balance traffic between a group of servers.