Cisco Systems Version 1.1 manual Multiple Instances, CSR as a User Process

Models: Version 1.1

1 110
Download 110 pages 58.42 Kb
Page 38
Image 38
CSR as a User Process

Chapter3

Cisco Carrier Sensitive Routing Application Operations

Activating CSR

CSR as a User Process

While the CSR is running as a daemon, other instances may run as user processes. If all instances are connected to the same database at startup, startup errors can occur because the following processes are attempted by all instances:

Listening on the same TCP port for incoming connections

Attempting to connect to the same gatekeepers as the same application and priority

Listening to the database for notification events from the GUI such as shutdown, update dataset, update logging level, and update gatekeeper connections

You can create other databases with the command createcsrdb; for example, createcsrdb csrdb2. You can connect to each of the databases separately by using the GUI and provisioning the database accordingly.

Step 1 To activate CSR, enter the following command:

csr csrdb1 &

This command activates CSR by connecting it to a different database and typing the process to a console. Step 2 Optionally, to run CSR continuously after logout, enter the following command:

nohup

Multiple Instances

To run multiple CSR instances, all but one must run as a user process. If all instances are connected to the same database at startup, startup errors occur because the following processes are attempted by all instances:

Listening on the same TCP port for incoming connections

Attempting to connect to the same gatekeepers as the same application and priority

Listening to the database for notification events from the GUI such as shutdown, update dataset, update logging level, and update gatekeeper connections

You can create other databases with the command createcsrdb; for example, createcsrdb csrdb1, createcsrdb csrdb2, createcsrdb csrdb3. You can connect to each of the databases separately by using the CSR GUI and provisioning the databases accordingly.

Step 1 To start multiple instances of CSR that are connected to different databases such as csrdb1, csrdb2, csrdb3, enter the following commands:

csr csrdb1 &

csr csrdb2 &

csr csrdb3 &

This method ties the process to a console.

Step 2 Optionally, to run CSR continuously after logout, enter the following command:

nohup

Cisco Carrier Sensitive Routing User Guide

3-2

Page 38
Image 38
Cisco Systems Version 1.1 manual Multiple Instances, CSR as a User Process