Fabric是Python中一个非常强大的批量远程管理和部署工具,常用于在多个远程PC上批量执行SSH任务....
分类:
编程语言 时间:
2014-11-25 23:35:40
阅读次数:
283
#!/usr/bin/python#-*-coding:utf-8-*-importparamikoimportdatetimeimportos,tab,sysfrommultiprocessingimportProcess,Poolhost_list=( (‘192.168.1.127‘,‘root‘,‘123456‘), (‘192.168.1.137‘,‘root‘,‘123456‘), (‘192.168.1.143‘,‘root‘,‘123456‘),)defssh_run(host_info,cm..
分类:
编程语言 时间:
2014-11-17 14:14:41
阅读次数:
212
ansible简介ansible是与puppet、saltstack类似的集群管理工具,其优点是仅需要ssh和Python即可使用,而不像puppet、saltstack那样都需要客户端。与puppet类似,ansible也支持丰富的功能:批量执行支持模块化,支持playbook(相比puppet还...
分类:
其他好文 时间:
2014-11-17 00:18:59
阅读次数:
307
#coding=utf-8
fromseleniumimportwebdriver
fromselenium.webdriver.common.byimportBy
fromselenium.webdriver.commonimportkeys
fromselenium.webdriver.supportimportselect
fromselenium.commonimportexceptions
importunittest,time,re
classBaidu(unittest.TestCase):
#..
分类:
编程语言 时间:
2014-11-10 01:16:19
阅读次数:
534
利用osql/ocmd批处理批量执行sql文件上周在测试环境建了几十张表,保存了.sql文件,准备在正式环境重建的时候懒得一个个打开建了,做一在网上搜寻了一下,果然有简单点的方法。利用osql/ocmd批处理批量执行sql文件注意:在上图中我们可以看到osql 并不支持 SQL Server 200...
分类:
数据库 时间:
2014-11-06 19:47:04
阅读次数:
201
Hello,
此BAT脚本可以帮助开发人员将某文件夹下所有SQL脚本按文件名依次在指定数据库中批量执行。
不用忍受powershell invoke-sqlcmd 的笨重,在指运行时多一种选择。...
分类:
数据库 时间:
2014-11-04 19:47:27
阅读次数:
450
pdsh的全称是parallel distributed shell,与pssh类似,pdsh可并行执行对远程目标主机的操作,在有批量执行命令或分发任务的运维需求时,使用这个命令可达到事半功倍的效果。同时,pdsh还支持交互模式,当要执行的命令不确定时,可直接进入pdsh命令行,非常方便。一、 pd...
分类:
其他好文 时间:
2014-09-19 17:35:45
阅读次数:
231
使用 proxool,JDBC连接池,进行批量执行的时候遇到异常:
The Thread responsible was named ‘Thread-32′, but the last SQL it performed is unknown because the trace property is
not enabled.
问题原因:sql语句执行后,长时间未...
分类:
编程语言 时间:
2014-09-18 13:20:33
阅读次数:
474
pdsh的全称是paralleldistributedshell,与pssh类似,pdsh可并行执行对远程目标主机的操作,在有批量执行命令或分发任务的运维需求时,使用这个命令可达到事半功倍的效果。同时,pdsh还支持交互模式,当要执行的命令不确定时,可直接进入pdsh命令行,非常方便。一、 pdsh应用场..
分类:
其他好文 时间:
2014-09-10 02:56:20
阅读次数:
312
#加载.net的winform模块[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")$app=[System.Windows.Forms.Application]$myForm=new-object System.Wi...
分类:
数据库 时间:
2014-09-05 18:06:31
阅读次数:
333