管理私有云:WebSphere CloudBurst Appliance 命令行界面简介
2009-09-28 00:00:00 来源:WEB开发网您也可以通过传入多个 -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)
}
- ››管理/var/spool/clientmqueue/下的大文件
- ››WebSphere Application Server 7.0 XML Feature P...
- ››WebSphere 反向投资者: 解决 WebSphere Applicati...
- ››WebSphere sMash 的创新应用,第 2 部分: 借助包装...
- ››Websphere MQ v6集群的负载均衡新功能
- ››WebSphere Process Server V6.0.2 集群,第 2 部分...
- ››WebSphere Process Server V6.0.2 集群,第 1 部分...
- ››WebSphere MQ性能调优浅谈
- ››WebSphere配置资源库管理
- ››WebSphere中的SSL/TLS:用法、配置和性能
- ››websphere ejb远程/本地调用总结
- ››WebSphere Application Server对SIP的支持
更多精彩
赞助商链接