mobatch
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Usage: mobatch [options] <sitefile>|<sitelist> <command(s)>|<commandfile>|<commanddir> [logdirectory]
Purpose: To send moshell commands to several nodes in parallel.
Arguments:
- The first argument is the sitefile or the sitelist.
The sitefile is a file containing the list of sites to connect to. Each line in the sitefile contains:
* the IP/DNS addresses and/or site names whose IP address are defined in the IP database.
* optionally: the uservariables/scriptingvariables to input with -v option.
See example of sitefile and ipdatabase in: moshell/examples/mobatch_files/
If using the sitelist, the sites are listed on the command line and separated by commas.
- The second argument is the commmand or commandfile.
See example of commands below and commandfile in moshell/examples/mobatch_files
If a directory is given, then a different commandfile will be used for each node:
the name of each commandfile should be <node-name>.cmd or <node-name>.mos
the <node-name> should be the same as given in the sitefile.
example: node-name is rbs602 ==> commandfile should be rbs602.cmd or rbs602.mos
- The third argument (logdirectory) is optional. If no logdirectory is specified, a default one will be used.
Options:
- t <minutes> Specify the number of minutes before timing out. Set to 0 for no timeout (default=20).
- p <processes> Specify the maximum number of moshell sessions that will run in parallel (default=10)
- v <userVariables> Specify moshell uservariables. Type "moshell" on its own for more info about this option.
- o Print output of every moshell session both to screen and to logfile.
- s Silent. No output is printed.
Examples:
mobatch -p 15 -t 60 ~/sitefiles/victoria-sites 'lt all ; get'
mobatch 10.1.128.10 ./cmdfiles/kget.mos
mobatch 10.1.128.10,rnc34,rbs10,mgw1.ericsson.se ./cmdfiles/kget.mos
mobatch ./sitefiles/all-rbs.txt ./cmdfiles/do_healthCheck.mos
mobatch -p 5 -t 1 ./sitefiles/all-rbs.txt 'cv cu ; rbs'
mobatch ./sitefiles/all-rnc.txt 'lt ^utrancell ; st cell'
mobatch ./sitefiles/all-bsc.txt ~/bsc-commandfiles/
mobatch -v security_method=2,sa_credential=~/sam.pbe,sa_password=oemas -p 20 ./all_mgw.txt 'hc'
mobatch -v ip_database=~/utran_network/ipdatabase ~/utran_network/ipdatabase 'lt all ; get '。