summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/coriant8600.rb
blob: a48ffa5a0a15ea6e55b4bd9f53db145bbb3e7192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Coriant8600 < Oxidized::Model

  comment '# '
  
  prompt /^[^\s#>]+[#>]$/

  cmd 'show hw-inventory' do |cfg|
    comment cfg
  end

  cmd 'show flash' do |cfg|
    comment cfg
  end
  
  cmd 'show run' do |cfg|
    cfg
  end

  cfg :telnet do
    username /^user name:$/
    password /^password:$/
  end
  
  cfg :telnet, :ssh do
    pre_logout 'exit'
    post_login 'enable'
    post_login 'terminal more off'
  end

end