diff options
author | WiXZlo <git@wixzlo.com> | 2017-08-22 10:35:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-22 10:35:15 +0300 |
commit | 1b64fafdb186d0534b80a4c36f2e31ff09d9d6e2 (patch) | |
tree | 4addb3a7cfc6d0d80a71d4d022b26adef3058d4d /lib/oxidized | |
parent | 4042b6907dd5fa07be98c524a0c23f955072652d (diff) |
Add support for Cisco UCS model
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/ucs.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/oxidized/model/ucs.rb b/lib/oxidized/model/ucs.rb new file mode 100644 index 0000000..a1f6c10 --- /dev/null +++ b/lib/oxidized/model/ucs.rb @@ -0,0 +1,31 @@ +class UCS < Oxidized::Model + + prompt /^(\r?[\w.@_()-]+[#]\s?)$/ + comment '! ' + + cmd 'show version brief' do |cfg| + comment cfg + end + + cmd 'show chassis detail' do |cfg| + comment cfg + end + + cmd 'show fabric-interconnect detail' do |cfg| + comment cfg + end + + cmd 'show configuration all | no-more' do |cfg| + cfg + end + + cfg :ssh, :telnet do + post_login 'terminal length 0' + pre_logout 'exit' + end + + cfg :telnet do + username /^login:/ + password /^Password:/ + end +end |