摘要: 导入Elasticsearch依赖包 <!-- Elasticsearch6.4.3 依赖 --> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>${ 阅读全文
posted @ 2020-11-04 10:17 过氧化氢 阅读(1336) 评论(0) 推荐(0) 编辑
摘要: 本来使用的paramiko实现的,后来到现场后发现人家设备不支持ssh,所以只能用telnet了,随后终于捣鼓出来了 1 import telnetlib 2 3 Host = "" # 跳板机ip 4 5 # 连接Telnet服务器 6 tn = telnetlib.Telnet(Host, po 阅读全文
posted @ 2020-11-04 09:13 过氧化氢 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 由于干java的,公司要求使用python实现跳板机连接,就上网找资料,最后终于实现了 import paramiko import sys hostname = "" # 业务主机ip username = "" password = "" blip = "" # 堡垒机ip bluser = " 阅读全文
posted @ 2020-11-03 18:03 过氧化氢 阅读(2687) 评论(0) 推荐(0) 编辑
摘要: /**AnXml.fileList(new File("F:/NWT/37227"), new ArrayList<String>())**/public static List<String> fileList(File file,List<String> path) { if(file.exis 阅读全文
posted @ 2020-11-03 17:48 过氧化氢 阅读(561) 评论(0) 推荐(0) 编辑
摘要: xml文件内容 <bulkPmMrDataFile> <fileHeader fileFormatVersion="V2.0.6" reportTime="2020-10-21T00:15:00.000" startTime="2020-10-21T00:00:00.000" endTime="20 阅读全文
posted @ 2020-11-03 17:28 过氧化氢 阅读(301) 评论(0) 推荐(0) 编辑