Class: StarosAutomationFun

Inherits:
Object
  • Object
show all
Defined in:
lib/imperituroard/platforms/staros/staros_automation_fun.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStarosAutomationFun

Returns a new instance of StarosAutomationFun.



7
8
9
# File 'lib/imperituroard/platforms/staros/staros_automation_fun.rb', line 7

def initialize
  @ignore_y = 1 #1-yes, 0-no
end

Instance Attribute Details

#ignore_yObject

Returns the value of attribute ignore_y.



5
6
7
# File 'lib/imperituroard/platforms/staros/staros_automation_fun.rb', line 5

def ignore_y
  @ignore_y
end

Instance Method Details

#staros_massive_command(staros_hosts, staros_login, staros_password, command_array) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/imperituroard/platforms/staros/staros_automation_fun.rb', line 11

def staros_massive_command(staros_hosts, , 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], , :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