WEB开发网
开发学院服务器云计算 管理私有云:WebSphere CloudBurst Appliance 命令... 阅读

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

 2009-09-28 00:00:00 来源:WEB开发网   
核心提示: 您也可以通过传入多个 -c 参数传递多个命令,在清单 12 所示的命令中,管理私有云:WebSphere CloudBurst Appliance 命令行界面简介(9),执行了三个不同的命令: 首先,创建 newuser WebSphere CloudBurst 用户, 通过使用多个 -c 参数

您也可以通过传入多个 -c 参数传递多个命令。在清单 12 所示的命令中,执行了三个不同的命令:

首先,创建 newuser WebSphere CloudBurst 用户。

newuser 电子邮件地址被修改为 newguy@mycompany.com。

最后,检索表示 newuser 的资源的当前状态。

通过使用多个 -c 参数,您可以构造一组有序的步骤,所有命令将按从左到右的顺序执行。

清单 12. 为 CLI 提供多个命令 - 命令

C:\cloudburst\cloudburst.cli>cloudburst -h wstiblade12.rtp.raleigh.ibm.com -u cb 
admin -p cbadmin -c "newuser = cloudburst.users.create({'username':'newuser', 'fullname':' 
Pattern Deployer', 'password':'password', 'email':'newuser@mycompany.com'})" -c 
"newuser.email='newguy@mycompany.com'" -c "newuser” 

清单 13. 为 CLI 提供多个命令 - 输出

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

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

Tags:管理 私有 WebSphere

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