首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

puppet kick 报错返回值cod

环境: puppetserver端  RHEL5.8或者RHEL6.4 [root@puppetserver1 etc]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga) puppetagent端  RHEL5.8 和RHEL6.4 [root@agent3 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.4 (Santiago) [root@agent2 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga) [root@agent2 ~]# [root@agent3 ~]# 故障: puppetserver推送到RHEL6.4上OK,推送到RHEL5.8上报错,具体如下   关于agent端配置参考我的博客 http://dreamfire.blog.51cto.com/418026/1257718 操作: [root@puppetserver1 etc]# [root@puppetserver1 etc]# puppet kick -p 10 --host agent2.bsgchina.com失败 Triggering agent2.bsgchina.com Getting status status is running Host agent2.bsgchina.com is already running agent2.bsgchina.com finished with exit code 3 Failed: agent2.bsgchina.com [root@puppetserver1 etc]# puppet kick -p 10 --host agent3.bsgchina.com成功 Triggering agent3.bsgchina.com Getting status status is success agent3.bsgchina.com finished with exit code 0 Finished 日志: [root@agent3 ~]# puppet agent --server=puppetserver1.bsgchina.com --verbose --no-daemonize notice: Starting Puppet client version 2.7.21 info: Caching catalog for agent3.bsgchina.com info: Applying configuration version '1377075268' notice: Finished catalog run in 0.37 seconds info: access[^/catalog/([^/]+)$]: allowing 'method' find info: access[^/catalog/([^/]+)$]: allowing $1 access info: access[^/node/([^/]+)$]: allowing 'method' find info: access[^/node/([^/]+)$]: allowing $1 access info: access[/certificate_revocation_list/ca]: allowing 'method' find info: access[/certificate_revocation_list/ca]: allowing * access info: access[^/report/([^/]+)$]: allowing 'method' save info: access[^/report/([^/]+)$]: allowing $1 access info: access[/file]: allowing * access info: access[/certificate/ca]: adding authentication any info: access[/certificate/ca]: allowing 'method' find info: access[/certificate/ca]: allowing * access info: access[/certificate/]: adding authentication any info: access[/certificate/]: allowing 'method' find info:

01
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    python读取access文件并入库

    Python读取access文件时和读取Excel文件不是很一样,当然用的工具也不一样,在读取excel中的数据时用的是xlrd,而读取access文件时用的则是pypyodbc。 简要安装过程:1、首先要安装access驱动(AccessRuntime_x64_zh-cn.exe),以便于python连接;2、安装pypyodbc模块(pypyodbc-1.3.3.zip)。安装完之后就可以连接access数据库了。(连接access是在Windows下作的,个人感觉在Linux下读取不了access) 简要使用过程(程序):安装完成后,1、在python程序中导入pypyodbc模块,然后再连接access既可。因为access属于数据库,在读取access中的数据时,也要用到sql语句。 例子: #!/usr/bin/python # -*- coding: utf-8 -*- importsys import pypyodbc reload(sys) sys.setdefaultencoding('gbk')  #####gbk也可以换成utf—8,如果出现编码问题,这两个都可以试试 conn = pypyodbc.connect(u'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=' + filepath)  #### filepath是变量,access文件的绝对路径。注意:*.accdb一定要加上 cur.execute('select * from %s' % tablename)  ### tablename是变量,指的是access中的表名 list = cur.fetchall()  ####获取access中的数据

    02

    扫码

    添加站长 进交流群

    领取专属 10元无门槛券

    手把手带您无忧上云

    扫码加入开发者社群

    相关资讯

    热门标签

    活动推荐

      运营活动

      活动名称
      广告关闭
      领券