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

Version Path
imperituroard-1.1.25 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.24 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.23 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.22 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.21 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.20 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.19 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.18 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.17 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.15 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.14 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.13 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.12 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.11 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.10 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.9 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.8 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.7 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.5 lib/imperituroard/platforms/staros/staros_automation_fun.rb
imperituroard-1.1.4 lib/imperituroard/platforms/staros/staros_automation_fun.rb