WEB开发网      濠电姷鏁告繛鈧繛浣冲洤纾瑰┑鐘宠壘閻ょ偓銇勯幇鍫曟闁稿鍠愰妵鍕冀閵娧佲偓鎺楁⒒閸曨偄顏柡宀嬬畱铻e〒姘煎灡绗戦梻浣筋嚙濮橈箓顢氳濠€浣糕攽閻樿宸ュΔ鐘叉啞缁傚秹宕滆绾惧ジ寮堕崼娑樺缂佹宀搁弻鐔风暋閻楀牆娈楅梺璇″枓閺呯姴鐣疯ぐ鎺濇晝闁靛牆妫欓蹇旂節閻㈤潧浠﹂柛銊ョ埣楠炴劙骞橀鑲╋紱闂佽宕樼粔顔裤亹閹烘挸浜归梺缁樺灦閿曗晛螞閸曨垱鈷戦柟鑲╁仜婵″ジ鎮楀☉鎺撴珖缂侇喖顑呴鍏煎緞濡粯娅囬梻浣瑰缁诲倿寮绘繝鍥ㄦ櫇闁稿本绋撻崢鐢告煟鎼淬垻鈯曢柨姘舵煟韫囥儳绋荤紒缁樼箖缁绘繈宕橀妸褌绱濋梻浣筋嚃閸ㄤ即宕弶鎴犳殾闁绘梻鈷堥弫鍌炴煕閳锯偓閺呮瑧妲愬Ο琛℃斀闁绘劕妯婇崵鐔封攽椤旇棄鍔ら摶鐐烘煕閺囥劌澧柛娆忕箻閺屽秹宕崟顒€娅g紓浣插亾濠㈣泛顑囩粻楣冩煙鐎涙ḿ绠橀柨娑樼У椤ㄣ儵鎮欓鍕紙闂佽鍠栫紞濠傜暦閹偊妲诲┑鈩冨絻椤兘寮诲☉銏犖╅柕澶堝労閸斿绱撴担绋库偓鍝ョ矓瑜版帒鏋侀柟鍓х帛閺呮悂鏌ㄩ悤鍌涘 ---闂傚倸鍊烽悞锔锯偓绗涘厾娲煛閸涱厾顔嗛梺璺ㄥ櫐閹凤拷
开发学院服务器云计算 管理私有云:WebSphere CloudBurst Appliance 命令... 阅读

管理私有云:WebSphere CloudBurst Appliance 命令行界面简介

 2009-09-28 00:00:00 来源:WEB开发网 闂傚倸鍊风欢姘缚瑜嶈灋闁圭虎鍠栫粻顖炴煥閻曞倹瀚�闂傚倸鍊风粈渚€骞夐敓鐘插瀭闁汇垹鐏氬畷鏌ユ煙閹殿喖顣奸柛搴$У閵囧嫰骞掗幋婵冨亾閻㈢ǹ纾婚柟鐐灱濡插牊绻涢崱妤冃℃繛宀婁簽缁辨捇宕掑鎵佹瀸闂佺懓鍤栭幏锟�濠电姷鏁告慨顓㈠箯閸愵喖宸濇い鎾寸箘閹规洟姊绘笟鈧ḿ褍煤閵堝悿娲Ω閳轰胶鍔﹀銈嗗笂閼冲爼鍩婇弴銏$厪闁搞儮鏅涙禒褏绱掓潏鈺佷槐闁轰焦鎹囬弫鎾绘晸閿燂拷闂傚倸鍊风欢姘缚瑜嶈灋闁圭虎鍠栫粻顖炴煥閻曞倹瀚�  闂傚倸鍊烽懗鑸电仚缂備胶绮〃鍛村煝瀹ュ鍗抽柕蹇曞У閻庮剟姊虹紒妯哄闁圭⒈鍋嗛惀顏囶樄闁哄本娲樼换婵婄疀閺囩姷鐛ラ梻浣哄帶婢瑰﹥绂嶅⿰鍫氣偓鏃堝礃椤忎礁浜鹃柨婵嗛婢ь喖霉閻樻瑥瀚粻楣冩煕椤愩倕鏋庨柣蹇嬪劜閵囧嫰寮村Ο鍝勫Е濡炪們鍨洪悷鈺呭箖閳╁啯鍎熼柕鍥у簻閹凤拷
核心提示: 清单 6. 使用 JSON 创建一个新用户 - 命令>>>cloudburst.users<<{"username":"newuser","fullname":"PatternDeployer&q

清单 6. 使用 JSON 创建一个新用户 - 命令

>>> cloudburst.users << {"username":"newuser", "fullname":"Pattern Deployer", 
... "password":"password", "email":"newuser@mycompany.com"} 

清单 7. 使用 JSON 创建一个新用户 - 输出

{ 
 "currentmessage": "RM02013", 
 "currentmessage_text": "User has not logged in yet", 
 "currentstatus": "RM01062", 
 "currentstatus_text": "Inactive", 
 "email": "newuser@mycompany.com", 
 "fullname": "Pattern Deployer", 
 "groups": (nested object), 
 "id": 3, 
 "parts": (nested object), 
 "password": (write-only), 
 "patterns": (nested object), 
 "roles": (nested object), 
 "scripts": (nested object), 
 "username": "newuser", 
 "virtualimages": (nested object), 
 "virtualsystems": (nested object) 
} 

CLI 还提供了一个非常方便的 help 函数,您可以对资源、资源集合和这些项的方法调用该函数:

对于资源和资源集合,help 函数提供了项的简短摘要以及可用的属性和方法。

对于方法,help 提供了方法摘要和方法接受的输入。

清单 8 和 9 展示了如何使用 help 方法找到与某个管理程序资源相关的属性和方法。

清单 8. 使用 help 函数 - 命令

>>> help(cloudburst.hypervisors[0]) 

清单 9. 使用 help 函数 - 输出

A Hypervisor object represents a particular hypervisor defined on the 
CloudBurst appliance. Use the Hypervisor object to query and 
manipulate the hypervisor definition on the appliance. Attributes of 
the hypervisor and relationships between the hypervisor and other 
resources on the CloudBurst appliance are represented as Jython 
attributes on the Hypervisor object. Manipulate these Jython 
attributes using standard Jython mechanisms to make changes to the 
corresponding data on the CloudBurst appliance. 
 
Additional help is available for the following methods: 
  acceptCertificate, __contains__, __delattr__, delete, discover, __eq__, 
  __hash__, isMaintenance, isStarted, isStatusTransient, maintenance, 
  __nonzero__, refresh, __repr__, start, __str__, __unicode__, waitFor 
 
Additional help is available for the following properties: 
  address, certificate, certified, cloud, created, currentmessage, 
  currentmessage_text, currentstatus, currentstatus_text, desiredstatus, 
  desiredstatus_text, id, name, networks, password, storage, type, updated, 
  userid 
 
Remember to append an underscore to the property name when asking for 
help using a specific instance of a resource rather than the class. 
For example, "help(cloudburst.pattern.name)" or "help(mypattern.name_)" 
will work, but "help(mypattern.name)" will resolve the name of the pattern 
referenced by mypattern and attempt to provide help for the resulting 
string rather than the property itself.

上一页  2 3 4 5 6 7 8 9 10  下一页

Tags:管理 私有 WebSphere

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接