openpegasus的启动方式(即cimserver的启动方式)
2010-01-11 00:32
861 查看
我使用的操作系统为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
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
相关文章推荐
- 解决live CD方式启动Ubuntu系统不能启动openssh-server服务
- redis-win-server 正确启动方式
- 安装和启动tftp-server服务器及可能出现Redirecting to /bin/systemctl restart xinetd.service问题的解决方式
- CentOS6.3采用server方式安装后网卡不能加载或启动时不能连接网卡的问题
- 详解Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- 关于myeclipse中启动项目(server为welogic10)报valid license.bea错误的问题解决方式
- Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- hiveserver启动方式
- Apache Httpserver 集成Tomcat,在Tomcat未启动时 Error 503错误页的一种配置方式
- main启动Jetty Server方式 web工程
- [ci]jenkins server启动,通过jnlp的方式启动slave(容器模式)
- Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- 安装和启动tftp-server服务器及可能出现Redirecting to /bin/systemctl restart xinetd.service问题的解决方式
- 多个Mysql的配置与启动方式,mysqld mysql_safe mysql.server 区别
- Ms Sql Server 命令行方式的 启动,关闭
- Linux命令--多个Mysql的配置与启动方式,mysqld mysql_safe mysql.server 区别
- Ubuntu Server下启动/停止/重启MySQL数据库的三种方式
- ububtu server 14.04上,PHP5-FPM服务的启动方式变更
- 解决live CD方式启动Ubuntu系统不能启动openssh-server服务