用python 连接hive怎样连接vcenter

Add a vCenter Adapter Instance
Add a vCenter Adapter
Instance in
Operations Manager
To manage your
instances in
Operations Manager, you must configure an adapter instance for each
instance. The adapter requires the credentials that are used for communication
with the target
The vCenter Adapter that you
use to connect to one or more instances of
is provided in the
Operations Manager
solution. You do not need to install a management pack before configuring this
solution adapter.
When you configure the
adapter, you must use one of the following URL formats:
IP address
https://IP address/sdk
https://FQDN/sdk
adapter credentials you add are shared with other adapter administrators and
Operations Manager collector hosts. Other administrators might use these
credentials to configure a new adapter instance or to move an adapter instance
to a new host.
Prerequisites
Verify that you know the
credentials that have sufficient privileges to connect and collect data. If the
provided credentials have limited access to objects in
all users, regardless of their
privileges, will see only the objects that the provided credentials can access.
At a minimum, the user account must have Read privileges and the Read
privileges must be assigned at the data center or
level. See
1In the left pane of
Operations Manager, click the
Administration icon
Solutions.
Solutions tab,
vSphere and click the
Configure button on
the toolbar.
Adapter in the Adapter Type list to add a new
adapter instance.
If you are adding an
additional adapter instance, click the plus sign on the lower pane toolbar.
Description for the
adapter configuration.
For example,
vCenter Server 192.0.2.0.
text box, enter the FQDN or IP address of the
instance to which you are connecting.
FQDN or IP address must be reachable from all nodes in the
Operations Manager cluster.
6To add credentials,
click the plus sign.
Credential name
text box, enter the name by which you are identifying the configured
credentials.
Password for the
Connection to validate the connection with your
Review and
Accept Certificate dialog box, review the certificate information.
certificate presented in the dialog box matches the certificate for your target
If you do not
recognize the certificate as valid, click
Cancel. The test
fails and the connection to
is not completed. You must provide a valid
URL or verify the certificate on the
is valid before completing the adapter configuration.
9To modify the advanced
options regarding object discovery, change events, or registration user, expand
Determines which
Operations Manager collector is used to manage the adapter processes. If you
have only one adapter instance, select
Automatically select
collector. If you have multiple collectors in your environment, and
you want to distribute the workload to optimize performance, select the
collector to manage the adapter processes for this instance.
Determines whether
new objects added to the monitored system are discovered and added to
Operations Manager after the initial configuration of the adapter.
If the value
Operations Manager collects information about any new objects that are added
to the monitored system after the initial configuration. For example, if you
add more hosts and virtual machines, these objects are added during the next
collections cycle. This is the default value.
If the value
Operations Manager monitors only the objects that are present on the target
system when you configure the adapter instance.
Determines whether
the adapter uses an event collector to collect and process the events generated
If the value
is true, the event collector collects and publishes events from
This is the default value.
If the value
is false, the event collector does not collect and publish events.
Provides the
option to use a different set of credentials than you provided as the standard
credentials.
The standard
credentials must be provided. The standard credentials should have at least
read permissions so that
Operations Manager can collect data.
These advanced
credentials allow you to register a
with a different set of credentials. The registration user commonly has more
access rights. For example, this user account can register a
extension or asset. You use the advanced credentials in conjunction with the
standard credentials when you need to manage security by minimizing access.
adapter instance is added to the list.
Operations Manager begins collecting data from the
instance. Depending on the number of managed objects, the initial collection
can take more than one collection cycle. A standard collection cycle begins
every five minutes.
What to do next
a vCenter Python Actions Adapter for the same
that you configured. See
Next topic:
Related concepts
Related referencespython中如何使用pip安装自己的第三方模块
:CentOS6.8 python版本:python3.5
python中我们很多时候,需要将自己的py文件导入到python路径中,但是我们自己的文件自身并不在python默认的库文件路径下,这时候就需要我们自己将我们的py文件import进入了
下面示例怎么导入自己的第三方模块,我们首先需要自己创建一个.py文件,名字随意明名了,但是不要和python内部模块重命,内部模块路径在/usr/lib/python3.5/site-packages。要不然使用python提供的一些模块的方法时就悲剧了。
我们写代码看看一个列表是否是含有列表嵌套,如果有嵌套,就拆开输出,环境python3,命名为liname.py
#!/usr/bin/envpython3
defprint_list(the_list):传出一个列表参数
foriteminthe_list:挨个遍历列表元素
ifisinstance(item,list):判断每个元素是否为列表
print_list(item)调用自身做
print(item)
我们想要将这个.py文件变成一个模块,我们可以使用包索引(PythonPackageIndex,PyPI)这 样一个互联网中第三库的集中管理,我们首先创建一个目录,名字还是随意啊,比如就叫dog
在这个目录中创建一个名字为setup.py的文件,文件内容如下所示:
现在dog这个目录中已经包含了两个文件setup.py和lsname.py这个文件,我们在终端中输入命令:
python3setup.pysdist,然后目录下会多出几个文件和目录,如图所示
然后我们使用命令: python3 setup.py install 安装
然后我们再python3的交互式命令行下导入模块,输入一个列表,然后调用,会触发下列异常
这是因为我们的python的主程序中的代码模块与一个名为__main__的命名空间关联,将代码放在其单独的模块中时,python会自动创建与模块同名的命名空间。因此我们的模块中的代码会与一个名为liname的命名空间关联
我们刚进入到python的交互式命令行的时候是和__main__这个命名空间相关联的,我们想要使用liname这个空间的print_list方法时不能单纯的使用这个函数,而需要这样使用liname.print_list()这样子使用,比如:
这样子就完全没有问题了。
如果我们自己本身写了一段很好的代码,想将它贡献出去,除了github外,我们可以放在pypi这个网站上,也就是我们使用pip或者easy_install这样的命令安装
我们先在PyPI网站上(http://pypi.python.org/),来注册我们的信息
注册完成后我们就开始向PyPI上传我们的代码,上传时我们要知道我们注册时的账号和密码,因为接下来会用到
因为我没什么好的代码贡献所以,后面的步骤略去,进行完了这些步骤,我们就可以上传了,
我们使用命令:python3 setup.py upload
至此我们自己写的代码就贡献给了PyPI社区,别人如果想要安装我们这个模块,就可以通过pip或者easy_install这种方式来安装我们的模块了
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467142',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'david_bj 的BLOG
用户名:david_bj
文章数:78
评论数:58
访问量:94700
注册日期:
阅读量:5863
阅读量:12276
阅读量:380272
阅读量:1072605
51CTO推荐博文
&&&&&&&今天早晨被手机的短信声吵醒,打开zabbix监控系统的短信,发现Web、Vcenter、rsync等很多服务都是shutdown状态。&&&马上进行检查,首先通过ICMP协议ping了一下平台管理端和所有服务器都可以ping通。然后登入到Vcenter服务器,使用Vsphere&client登入Vcenter。发现无法登入,错误信息:&vsphere&client&无法连接&192.168.0.1。出现未知连接错误(由于连接故障,请求失败。无法连接到远程服务器)&。由于当时急于解决问题,没有对错误信息进行截图。看到这个错误信息,于是开始解决该问题。&&&&首先,判断是否是Vcenter服务是否出现问题。我们Vcenter平台是安装在Windows&&Server&2008平台下,发现服务正常:&&&&&&&&&&然后,判断是否是防火墙的问题。因为前几天刚让机房那边的工程师将这台服务器系统重新格式化了。通过查看网络适配器,发现防火墙也是关闭状态:&&&&&&&&&&&&&&想到这里,其它的应该也不会有问题了呀?无意间使用vcenter的主机名,连接了一下。竟然连接上了:&&&&&&&&&&&&&&&&&&&&&&&然后退出Vcenter,重新使用Vcenter服务器ip地址进行连接,发现也是可以成功连接的。不知道是什么问题。登入到Vcenter,发现所有的VM虚拟机都是关闭状态,赶紧启动起来。还好各种服务器上的服务都是开机自动启动状态,要不然还得到每台vm上启动服务。本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)
13:45:24 13:45:59 10:41:26 11:16:53 11:17:04查看:11753|回复:29
安装完vCenter 5.1以后,不能用vmware vSphere client连接到vCenter,但是可以连接到vSphere web client,也可以用web client 正常管理。
各位大大看看这是啥问题。
(24.97 KB)
vsphere client报错截图:
:Q&&各位有没有遇到这个情况的?
没遇到,vcenter装在什么os.可能什么服务没开
我也是这问题,不过我是连不上ESXI服务器
引用:原帖由 bboy小东 于
00:39 发表
没遇到,vcenter装在什么os.可能什么服务没开 安装在Windows 2008 R2系统,没有AD,单独安装的sql 2008 R2 数据库,与vCenter 的几个角色都安装在一台服务器上!
v开头的服务都开了,sql相关的服务也开了
本帖最后由
10:12 编辑
引用:原帖由 一颗波菜菜 于
08:44 发表
我也是这问题,不过我是连不上ESXI服务器 我这是esxi 服务器连上都没问题,是安装vCenter server以后,连不上,但是可以使用web client 连接到vCenter server,也可以用web clinet 正常管理vCenter
初级工程师
我以前遇到过,经过检查,发现是数据库不能连接了。楼主可以好好的检查一下和数据库的连接问题。。
引用:原帖由 heiyan 于
14:05 发表
我以前遇到过,经过检查,发现是数据库不能连接了。楼主可以好好的检查一下和数据库的连接问题。。 具体是sql哪出的问题?我这看都可以连接数据库啊,不然怎么连接vsphere web client ?
初级工程师
引用:原帖由
15:22 发表
具体是sql哪出的问题?我这看都可以连接数据库啊,不然怎么连接vsphere web client ? 我遇到的问题是vc与数据库的连接不可用了,具体出在sql服务器上。你可以重新配置一个vc测试一下。
引用:原帖由 heiyan 于
17:16 发表
我遇到的问题是vc与数据库的连接不可用了,具体出在sql服务器上。你可以重新配置一个vc测试一下。 刚才又看了下,32位与64位的dsn测试都成功了,数据库端口与服务都打开了。
不知道你是用什么方法测试vc与数据库的链接的?
初级工程师
引用:原帖由
17:31 发表
刚才又看了下,32位与64位的dsn测试都成功了,数据库端口与服务都打开了。
不知道你是用什么方法测试vc与数据库的链接的? 我这个很明显,呵呵,杀毒软件禁用了iscsi的连接,数据库直接没有启动。恢复连接后就正常了。。
引用:原帖由 heiyan 于
11:42 发表
我这个很明显,呵呵,杀毒软件禁用了iscsi的连接,数据库直接没有启动。恢复连接后就正常了。。 我这个数据库是本地的sql 2008, 未安装杀毒软件,自带防火墙已关闭。
安装的时候未报错,在vCenter server 本地使用vsphere client登录报错。
vsphere client 版本也是5.1的,跟其他什么插件的版本有关系吗?
疯了。。。
初级工程师
引用:原帖由
14:38 发表
我这个数据库是本地的sql 2008, 未安装杀毒软件,自带防火墙已关闭。
安装的时候未报错,在vCenter server 本地使用vsphere client登录报错。
vsphere client 版本也是5.1的,跟其他什么插件的版本有关系吗?
疯了。。 ... 我测试安装的5.0。记得当时还出现过一个问题,就是在vc上安装了麦咖啡,他禁用了vm的一个服务,后来把他加入信任后,正常了。
你看一下vc上面的vm的各个进程都正常吗?
助理工程师
Vcenter的硬件信息更改会出问题的。
你可以在vcs上安装vsphere client测试看看,如果还不行,应该是你安装不完整或系统内有端口冲突。
如果可以那就检查你管理端计算机系统上的防火墙。
域没开,先开esxi再开域,最后开vspherer
1.看一下VC服务器防火墙。
2.看一下esxi连接可正常?
3.权限够不够?
哎呀,我也是这个比问题&&我单独安装安装VCENTER SERVER5.1 就正常一点问题没有,但要我配置VIEW 所以又装了VIEW COMPOSER3.0。装上就登陆不上了
VCENTER SERVER5.1是自带的SQL 2008 EX精简版的&&
为了方便 后来又装了一个SQL 2008R2 企业版的
关闭防火墙,查看center服务
我也是&&估计是composer的问题 安装之后就登录不了了您所在的位置: &
vSphere Web Client使用指南之安装配置
vSphere Web Client使用指南之安装配置
TechTarget中国
vSphere Web Client是为忙碌的管理员提供的一款通用的、基于浏览器的VMware管理工具,能够监控并管理VMware基础设施。在摆脱Windows平台下的vSphere Client之前,需要先在后台安装并配置Web Client组件。
vSphere Web
Client是为忙碌的管理员提供的一款通用的、基于浏览器的VMware管理工具,能够监控并管理VMware基础设施。在摆脱Windows平台下的vSphere
Client之前,需要先在后台安装并配置Web Client组件。
为在服务器端设置vSphere Web Client,要确保Web Client与vCenter
Server之间的网络端口9443是开放的。该端口是默认端口,但是你可以将其设置为你所选择的任意其他端口。
接下来,确保对vCenter Server有管理员级别的权限,然后再安装Web Client软件。Web Client与vCenter
Server安装程序位于同一个安装光盘中,称之为VMware vSphere Web Client。你可以在vCenter
Server或者连接到网络中的任意其他服务器上安装vSphere Web Client。本文直接在vCenter Server上安装Web
Client软件。
安装完vSphere Web Client后,在浏览器地址栏输入https://localhost:&9443
或者你选择的其他端口&/admin-app/就可以访问vSphere Web Client管理工具了。接下来,在vSphere Web
Client中注册vCenter Server。点击注册vCenter Server后继续下一步。
接下来需要输入vCenter Server名或者IP地址,用户名以及密码。一定要使用有管理员权限的帐户。如果需要注册其他的vCenter
Server,重复执行这个任务即可。
除非你使用了链接模式,否则Web Client每次只能连接一个vCenter Server。另外,请注意,通过Web Client移除注册的vCenter
Server,那么就不能够通过Web Client访问该vCenter Server了。
使用基于浏览器的vSphere Web Client
安装完服务器端后,就可以使用Web Client访问vCenter Server或者ESXi主机了。
为访问Web Client并登陆到vCenter
Server,在浏览器上输入如下地址https://(WebClient-hostname)(port)/vsphere-client/ 即可。
498)this.width=498;' onmousewheel = 'javascript:return big(this)' alt="vSphere Web Client使用指南之安装配置" src="/wyfs01/M01/0E/B5/wKioOVGtT-HAs3ttAAE6nGLdYgc238.jpg" width="500" height="406" />
请注意下载Client集成插件的提示。你可以选择选择直接登录到vCenter Server或者安装插件。
如下图所示,登陆成功后将会看到一个页面,对基于浏览器的Web
Client的各种菜单以及相关列进行了标识。在该页面的右上角,你可以选择启动时不显示该页面。
498)this.width=498;' onmousewheel = 'javascript:return big(this)' alt="vSphere Web Client使用指南之安装配置" src="/wyfs01/M00/0E/B3/wKioJlGtT-HxWrtMAAH2fNgzNTc888.jpg" width="500" height="340" />
请格外注意位于界面上方、看起来像是倒三角的启动按钮。该按钮允许你选择不同的VMware管理应用,比如vCenter管理、查找、监控:任务控制台、事件控制台,以及系统管理:插件管理。当你选择不同的VMware管理应用时,菜单标题将会更新显示当前的选项。
vSphere Web
Client是为忙碌的管理员提供的一款通用的、基于浏览器的VMware管理工具,能够监控并管理VMware基础设施。在摆脱Windows平台下的vSphere
Client之前,需要先在后台安装并配置Web Client组件。
为在服务器端设置vSphere Web Client,要确保Web Client与vCenter
Server之间的网络端口9443是开放的。该端口是默认端口,但是你可以将其设置为你所选择的任意其他端口。
接下来,确保对vCenter Server有管理员级别的权限,然后再安装Web Client软件。Web Client与vCenter
Server安装程序位于同一个安装光盘中,称之为VMware vSphere Web Client。你可以在vCenter
Server或者连接到网络中的任意其他服务器上安装vSphere Web Client。本文直接在vCenter Server上安装Web
Client软件。
安装完vSphere Web Client后,在浏览器地址栏输入https://localhost:&9443
或者你选择的其他端口&/admin-app/就可以访问vSphere Web Client管理工具了。接下来,在vSphere Web
Client中注册vCenter Server。点击注册vCenter Server后继续下一步。
接下来需要输入vCenter Server名或者IP地址,用户名以及密码。一定要使用有管理员权限的帐户。如果需要注册其他的vCenter
Server,重复执行这个任务即可。
除非你使用了链接模式,否则Web Client每次只能连接一个vCenter Server。另外,请注意,通过Web Client移除注册的vCenter
Server,那么就不能够通过Web Client访问该vCenter Server了。
使用基于浏览器的vSphere Web Client
安装完服务器端后,就可以使用Web Client访问vCenter Server或者ESXi主机了。
为访问Web Client并登陆到vCenter
Server,在浏览器上输入如下地址https://(WebClient-hostname)(port)/vsphere-client/ 即可。
498)this.width=498;' onmousewheel = 'javascript:return big(this)' alt="vSphere Web Client使用指南之安装配置" src="/wyfs01/M01/0E/B5/wKioOVGtT-HAs3ttAAE6nGLdYgc238.jpg" width="500" height="406" />
请注意下载Client集成插件的提示。你可以选择选择直接登录到vCenter Server或者安装插件。
如下图所示,登陆成功后将会看到一个页面,对基于浏览器的Web
Client的各种菜单以及相关列进行了标识。在该页面的右上角,你可以选择启动时不显示该页面。
498)this.width=498;' onmousewheel = 'javascript:return big(this)' alt="vSphere Web Client使用指南之安装配置" src="/wyfs01/M00/0E/B3/wKioJlGtT-HxWrtMAAH2fNgzNTc888.jpg" width="500" height="340" />
请格外注意位于界面上方、看起来像是倒三角的启动按钮。该按钮允许你选择不同的VMware管理应用,比如vCenter管理、查找、监控:任务控制台、事件控制台,以及系统管理:插件管理。当你选择不同的VMware管理应用时,菜单标题将会更新显示当前的选项。
498)this.width=498;' onmousewheel = 'javascript:return big(this)' alt="vSphere Web Client使用指南之安装配置" src="/wyfs01/M01/0E/B3/wKioJlGtT-LCGhRsAAJMqD6tLZA582.jpg" width="500" height="325" />【责任编辑: TEL:(010)】
关于&&的更多文章
本书是VMware vSphere实施、部署和管理方面的经典著作,是两位资
利用 VMware View 为桌面和应用程序带来云计算的敏捷性和可用性。
享誉全球的未来学家理查德.沃森,用科学和多元的视角
本书是图文并茂的Python学习参考书,书中并不包含深奥
对于任何一门编程语言来说,算法都是程序的"灵魂"。正
《网管员世界》是国内唯一一家专门面向网管员职业的刊物。本书是2006年《网管员世界》各期内容的汇集,内容权威、全面、时效性强
51CTO旗下网站}

我要回帖

更多关于 python连接mysql 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信