Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

DemoSetup.sh Syntax

The DemoSetup.sh script creates a new database with the name specified in the DBName.txt file, creates all required tables, and populates the database with a sample IP address pool configuration. You can use this program to test the installation and to become familiar with Session State Register.

Syntax

DemoSetup.sh [ numpools maxranges minaddrs maxaddrs ]
DemoSetup.sh -h

Options

Table 45: DemoSetup.sh Options

Option

Description

  numpools

A number in the range 1–25 that specifies the number of IP address pools to create.

Default value is 5.

  maxranges

A number in the range 1–20 that specifies the number of address ranges within each IP address pool to create.

Default value is 4.

  minaddrs

A number in the range 1–100,000 that specifies the minimum number of IP addresses per range to create.

Default value is 1000.

  maxaddrs

A number in the range 1–100,000 that specifies the maximum number of IP addresses per range to create.

Default value is the value of minaddrs x 2.

-h

Displays help for the DemoSetup script.

Notes

The script must be executed by hadm on a management node.

Example

This example displays the contents of the DBName.txt file (to verify the name (SteelBeltedRadius) to be used to create the database) and creates a database called SteelBeltedRadius.

hadm$- DemoSetup.sh 
SBRs must be offline, do you want to proceed? <yes|no> yes
This will destroy the “ SteelBeltedRadius” database (if it exists), OK? <yes|no> yes
NUMPOOLS=5 MAXRANGES=4 MINADDRS=1000 MAXADDRS=2000 Destroying old database Database "SteelBeltedRadius" destroyed. Creating new database Creating database "SteelBeltedRadius" (using ENGINE ndbcluster). Creating misc tables. Creating IP Pool, Range and Address tables. Creating Current Sessions table. (Proxy AutoStop feature not configured.) (Session Timeout on Missed Account Stop feature not configured.) (Use Single Class Attribute feature not configured.) Creating User Concurrency table. Creating stored routines. Adding pool: A-PLATINUM Adding range: A-PLATINUM 238.203.131.14 670 Adding range: A-PLATINUM 48.226.119.162 761 Adding pool: B-GOLD Adding range: B-GOLD 90.169.221.242 549 Adding range: B-GOLD 20.97.26.189 89 Adding range: B-GOLD 114.23.180.47 407 Adding range: B-GOLD 236.99.7.33 384 Adding pool: C-SILVER Adding range: C-SILVER 201.213.13.198 978 Adding range: C-SILVER 15.28.1.17 22 Adding range: C-SILVER 28.189.195.246 2 Adding range: C-SILVER 132.185.74.85 11 Adding pool: D-BRONZE Adding range: D-BRONZE 122.219.182.131 1247 Adding range: D-BRONZE 247.168.228.227 20 Adding pool: E-ZINC Adding range: E-ZINC 135.54.24.139 1794 IpPools: +--------------------+-------+------------+ | Name| Ord| Count| +--------------------+-------+------------+ | (z o m b i e)| 0| 0| | A-PLATINUM| 1| 1,431| | B-GOLD| 2| 1,429| | C-SILVER| 3| 1,013| | D-BRONZE| 4| 1,267| | E-ZINC| 5| 1,794| +--------------------+-------+------------+ Total Pools : 5 + 1 zombie pseudo-pool. Total Ranges: 13 + 0 zombie pseudo-ranges. Total Addrs : 6,934 + 0 zombie pseudo-addrs. IpRanges: +--------------------+--------------------+-------------------+-------+ | Pool| StartAddr| EndAddr| Count| +--------------------+--------------------+-------------------+-------+ | (z o m b i e) | (v a r i o u s)| (v a r i o u s)| 0| | A-PLATINUM| 48.226.119.162| 48.226.122.154| 761| | A-PLATINUM| 238.203.131. 14| 238.203.133.171| 670| | B-GOLD| 20. 97. 26.189| 20. 97. 27. 21| 89| | B-GOLD| 90.169.221.242| 90.169.224. 22| 549| | B-GOLD| 114. 23.180. 47| 114. 23.181.197| 407| | B-GOLD| 236. 99. 7. 33| 236. 99. 8.160| 384| | C-SILVER| 15. 28. 0. 17| 15. 28. 0. 38| 22| | C-SILVER| 28.189.195.246| 28.189.195.247| 2| | C-SILVER| 132.185. 74. 85| 132.185. 74. 95| 11| | C-SILVER| 201.213. 13.198| 201.213. 17.151| 978| | D-BRONZE| 122.219.182.131| 122.219.187. 97| 1,247| | D-BRONZE| 247.168.228.227| 247.168.228.246| 20| | E-ZINC| 135. 54. 24.139| 135. 54. 31.140| 1,794| +--------------------+-------------------+-------------------+-------+

Modified: 2017-03-07