openpegasus的启动方式(即cimserver的启动方式)
来源:互联网 发布:淘宝客服招聘信息 编辑:程序博客网 时间:2024/05/21 18:49
我使用的操作系统为Fedora 12
1.安装
安装tog-pegasus和tog-pegasus-devel这两个包
2.配置启动选项
[root@lore ~]# cimconfig -s enableHttpConnection=True -p
Property 'enableHttpConnection' updated in configuration file.
还需禁用HTTPS方式的登录:
[root@lore Pegasus]# cimconfig -s enableHttpsConnection=False -p
Property 'enableHttpsConnection' updated in configuration file.
否则启动时会有如下错误
[root@lore Pegasus]# cimserver
cimserver not started: SSL Exception: Could not get server certificate.
会在/etc/Pegasus/目录下增加两个.conf文件
[root@lore Pegasus]# ls /etc/Pegasus/
access.conf cimserver_current.conf cimserver_planned.conf
3.启动cimserver
[root@lore Pegasus]# cimserver
4.测试连接
使用pywbem作为客户端连接cimserver
>>> import pywbem
>>> cliconn = pywbem.WBEMConnection('http://127.0.0.1',('root','password'))
>>> process_names = cliconn.EnumerateInstances('CIM_Process')
>>> print process_names[0].items()
[(u'OSCreationClassName', u'CIM_OperatingSystem'), (u'UserModeTime', 1000L), (u'Parameters', [u'/sbin/init']), (u'ExecutionState', 6L), (u'ProcessGroupID', 0L), (u'Priority', 20L), (u'OtherExecutionDescription', None), (u'Handle', u'1'), (u'Description', u'/sbin/init'), (u'RealUserID', 0L), (u'CSCreationClassName', u'CIM_UnitaryComputerSystem'), (u'ProcessTTY', u'?'), (u'OSName', u'Fedora'), (u'ProcessSessionID', 1L), (u'CreationClassName', u'PG_UnixProcess'), (u'WorkingSetSize', 0L), (u'Name', u'init'), (u'CSName', u'localhost'), (u'ParentProcessID', u'0'), (u'KernelModeTime', 66000L), (u'Caption', u'init'), (u'ProcessNiceValue', 0L)]
可以查询到服务器的一些信息。
5.添加用户(目前还有一些疑问)
cimauth -a -u lore -n root/cimv2 -R
- openpegasus的启动方式(即cimserver的启动方式)
- Fedora的启动方式(命令行启动)
- Fedora的启动方式(命令行启动)
- DM355的启动方式
- Android 的启动方式
- Activity的启动方式
- hive的启动方式
- Fedora的启动方式
- 启动webApplicationContext的方式
- mongodb的启动方式
- oracle的启动方式
- STM32的启动方式
- spring的启动方式
- Angular的启动方式
- 活动的启动方式
- Activity的启动方式
- 服务的启动方式
- MySQL的启动方式
- http://coolszy.javaeye.com/blog/563795
- 中国移动,你不要太强势了...
- 坏的和坏的混在一起
- 中国网民太伟大了!!!强烈推荐中国十大神兽,大家要补充下知识啊
- Java 字符串不区分大小写和区分大小写替换————一句代码就能搞定(2种方法)
- openpegasus的启动方式(即cimserver的启动方式)
- C/S 和 B/S 的基本概念
- 2010年1月第二期图书拍拍活动预告
- 2010.01. 10
- 难于一颗平常心
- EyesBaby功能实现之软件更新
- C#文件操作
- flash IDE 动作菜单里出现怪异字符的解决方法
- Java序列化的机制和原理(讲的很详细也很易懂)