首页
学习
活动
专区
工具
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

H3C_S3600 简单配置

<H3C> <H3C> <H3C>sy <H3C>system-view System View: return to User View with Ctrl+Z. [H3C]di [H3C]display cu [H3C]display current-configuration #  sysname H3C # radius scheme system # domain system # vlan 1  name home # vlan 2  name hanyutuiguang # vlan 3  name huanongzaixian # vlan 4  name dajiaoshi # vlan 5  name dongshizhang # vlan 6  name caiwubu #                                         vlan 7  name wufuqi # vlan 9 to 4092 # vlan 4094 # interface Vlan-interface1  ip address 192.168.1.254 255.255.255.0 # interface Vlan-interface2  ip address 192.168.2.254 255.255.255.0 # interface Vlan-interface3  ip address 192.168.3.254 255.255.255.0 # interface Vlan-interface4  ip address 192.168.4.254 255.255.255.0 # interface Vlan-interface5  ip address 192.168.5.254 255.255.255.0 # interface Vlan-interface6  ip address 192.168.6.254 255.255.255.0   # interface Vlan-interface7  ip address 192.168.7.254 255.255.255.0 # interface Aux1/0/0 # interface Ethernet1/0/1 # interface Ethernet1/0/2 # interface Ethernet1/0/3  port access vlan 2 # interface Ethernet1/0/4  port access vlan 2 # interface Ethernet1/0/5  port access vlan 2 # interface Ethernet1/0/6  port access vlan 3 # interface Ethernet1/0/7  port access vlan 3                       # interface Ethernet1/0/8  port access vlan 3 # interface Ethernet1/0/9  port access vlan 4 # interface Ethernet1/0/10  port access vlan 4 # interface Ethernet1/0/11  port access vlan 4 # interface Ethernet1/0/12  port access vlan 5 # interface Ethernet1/0/13  port access vlan 5 # interface Ethernet1/0/14  port access vlan 5 # interface Ethernet1/0/15  port access vlan 5                       # interface Ethernet1/0/16  port access vlan 6 # interface Ethernet1/0/17  port access vlan 6 # interface Ethernet1/0/18  port access vlan 7 # interface Ethernet1/0/19  port access vlan 7 # interface Ethernet1/0/20  port access vlan 7 # interface Ethernet1/0/21 # interface Ethernet1/0/22 # interface Ethernet1/0/23 # interface Ethernet1/0/24 #                                         interface Gigab

01

扫码

添加站长 进交流群

领取专属 10元无门槛券

手把手带您无忧上云

扫码加入开发者社群

相关资讯

热门标签

活动推荐

    运营活动

    活动名称
    广告关闭
    领券