Sha256: b59e6267867523e302807426c05d381a11d7df1d2a9325cb63a0cb8c176b3fe7
Contents?: true
Size: 632 Bytes
Versions: 35
Compression:
Stored size: 632 Bytes
Contents
require 'net/ssh' class StarosAutomationFun attr_accessor :ignore_y def initialize @ignore_y = 1 #1-yes, 0-no end def staros_massive_command(staros_hosts, staros_login, staros_password, command_array) staros_thr_pool_222 = [] staros_hosts.each do |ggsn| staros_thr_pool_222 << Thread.new do Net::SSH.start(ggsn[1], staros_login, :password => staros_password) do |session| gg = session.exec!("context AAA") p gg gg1 = session.exec!("show subscribers summary") p gg1 end end end staros_thr_pool_222.each(&:join) end end
Version data entries
35 entries across 35 versions & 1 rubygems