~ggouzi/obinstall/obinstall

« back to all changes in this revision

Viewing changes to demos/telco/BulkUsersCreation.sh

  • Committer: MMorana
  • Date: 2016-03-24 01:18:40 UTC
  • Revision ID: mass@ubuntu.com-20160324011840-blxydmf7ca4ggle0
Splitting out demos from install

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash -e
2
 
 
3
 
## Try ping homer and homestead from ellis before adding user to check dns resolution
4
 
 
5
 
juju ssh clearwater-homestead/0 '. /etc/clearwater/config; for DN in {0000..0099} ; do echo sip:$DN@$home_domain,$DN@$home_domain,$home_domain,7kkzTyGW ; done > users.csv'
6
 
 
7
 
juju ssh clearwater-homestead/0 "/usr/share/clearwater/homestead/src/metaswitch/crest/tools/bulk_autocomplete.py users.csv"
8
 
juju ssh clearwater-homestead/0 "/usr/share/clearwater/homestead/src/metaswitch/crest/tools/bulk_create.py users.auto.csv"
9
 
 
10
 
juju ssh clearwater-homestead/0 "./users.auto.create_homestead.sh"
11
 
 
12
 
TMP=`mktemp -d`
13
 
juju scp clearwater-homestead/0:~/*xdm* $TMP/
14
 
juju scp $TMP/*xdm* clearwater-homer/0:~/ 
15
 
juju ssh clearwater-homer/0 "./users.auto.create_xdm.sh"
16
 
 
17
 
DOMAIN=`juju ssh  clearwater-homestead/0 '. /etc/clearwater/config; echo $home_domain'`
18
 
echo 'users range from 0000@'$DOMAIN
19
 
echo 'to  0099@'$DOMAIN
20
 
echo ' with password 7kkzTyGW created'
21
 
echo "See clearwater doc to configure your clients"