Produced by Araxis Merge on 6/9/2017 3:50:04 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:50:04 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-env\src\main\python | nmenroll.py | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 48 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | import sys | |||||
| 2 | import os | |||||
| 3 | ||||||
| 4 | try : | |||||
| 5 | ||||||
| 6 | params = {} | |||||
| 7 | ||||||
| 8 | print "Parsing c ommand lin e paramete rs." | |||||
| 9 | for ar g in sys.a rgv : | |||||
| 10 | if ( arg.find ('-') == 0 ) : | |||||
| 11 | # string the leadi ng '-' cha racter | |||||
| 12 | arg = ar g.strip('- ') | |||||
| 13 | ||||||
| 14 | # check to see if theres an '=' charac ter in the remaining character s | |||||
| 15 | # if the re is, the n split th e string o n the '=' and add it to the ma p | |||||
| 16 | if(arg.f ind('=') ! = -1) : | |||||
| 17 | spli t = arg.sp lit('=') | |||||
| 18 | para ms[split[0 ]] = split [1] | |||||
| 19 | else : | |||||
| 20 | para ms[arg] = True | |||||
| 21 | ||||||
| 22 | domain Name = par ams['domai nName'] | |||||
| 23 | domain User = par ams['domai nUser'] | |||||
| 24 | domain Password = params['d omainPassw ord'] | |||||
| 25 | adminU rl = param s['adminUr l'] | |||||
| 26 | domain Directory = params[' domainDire ctory'] | |||||
| 27 | nodeMa nagerHome = params[' domainMana gerHome'] | |||||
| 28 | ||||||
| 29 | # Conn ect to the domain's admin serv er | |||||
| 30 | print "Connectin g to admin server fo r domain " + domainN ame + " at " + admin Url | |||||
| 31 | connec t(domainUs er, domain Password, adminUrl) | |||||
| 32 | ||||||
| 33 | # Enro ll the mac hine in th e domain | |||||
| 34 | print "Enrolling this mach ine in the domain " + domainNa me | |||||
| 35 | nmEnro ll(domainD irectory, nodeManage rHome) | |||||
| 36 | ||||||
| 37 | except : | |||||
| 38 | print "Unexpecte d error wh ile enroll ing machin e in domai n. ", sys .exc_info( )[1] | |||||
| 39 | print "" | |||||
| 40 | print "Script Us age: wlst. sh nodemgr enroll.py " | |||||
| 41 | print " -domainNam e=thedomai nname " | |||||
| 42 | print " -domainUse r=thedomai nuser " | |||||
| 43 | print " -domainPas sword=thed omainpassw ord " | |||||
| 44 | print " -adminUrl= t3://admin host:admin port " | |||||
| 45 | print " -domainDir ectory=/pa th/to/doma in/directo ry " | |||||
| 46 | print " -domainMan agerHome=/ path/to/no de/manager /home" | |||||
| 47 | ||||||
| 48 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.