![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
wangdong19921228
这个作者很懒,什么都没留下…
展开
-
python 读取数据库中数据到csv文件 ansible下发到各个agent上
1.创建数据库连接 def get_postgres_connect(): import psycopg2 import psycopg2.extensions psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) u"""从配置文件获得数据库 connect 对象.""" conf...原创 2019-02-22 14:22:53 · 353 阅读 · 0 评论 -
利用ftp连接与ssh 进行交换机备份
通过ftp方式与ssh方式进行交换机的文件备份原创 2019-05-16 10:18:19 · 834 阅读 · 0 评论 -
利用Telnet连接对探针进行备份
对探针进行备份功能 #!/usr/bin/python # encoding:utf-8 '''collect config of TMA @author : wd @license : Copyright@haohandata @version : 1.0 @todo : created in 2019-05-08 ''' import time import get_ip_list impo...原创 2019-05-16 10:34:29 · 263 阅读 · 0 评论