DemoSetup.sh Syntax
The
DemoSetup.shscript creates a new database with the name specified in theDBName.txtfile, 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 -hOptions
Notes
The script must be executed by hadm on a management node.
Example
This example displays the contents of the
DBName.txtfile (to verify the name (SteelBeltedRadiusCarrier) to be used to create the database) and creates a database calledSteelBeltedRadiusCarrier.hadm$- DemoSetup.shSBRs must be offline, do you want to proceed? <yes|no> yes This will destroy the "SteelBeltedRadiusCarrier" database (if it exists), OK? <yes|no> yes NUMPOOLS=5 MAXRANGES=4 MINADDRS=1000 MAXADDRS=2000Destroying old databaseDatabase "SteelBeltedRadiusCarrier" destroyed.Creating new databaseCreating database "SteelBeltedRadiusCarrier" (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-PLATINUMAdding range: A-PLATINUM 238.203.131.14 670Adding range: A-PLATINUM 48.226.119.162 761Adding pool: B-GOLDAdding range: B-GOLD 90.169.221.242 549Adding range: B-GOLD 20.97.26.189 89Adding range: B-GOLD 114.23.180.47 407Adding range: B-GOLD 236.99.7.33 384Adding pool: C-SILVERAdding range: C-SILVER 201.213.13.198 978Adding range: C-SILVER 15.28.0.17 22Adding range: C-SILVER 28.189.195.246 2Adding range: C-SILVER 132.185.74.85 11Adding pool: D-BRONZEAdding range: D-BRONZE 122.219.182.131 1247Adding range: D-BRONZE 247.168.228.227 20Adding pool: E-ZINCAdding range: E-ZINC 135.54.24.139 1794IpPools:+--------------------+-------+------------+| 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 |+--------------------+-------------------+-------------------+-------+