summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorDanilo Sousa <danilopopeye@users.noreply.github.com>2017-08-22 11:19:48 -0300
committerGitHub <noreply@github.com>2017-08-22 11:19:48 -0300
commiteb4dec145e87dd4e5e094b66f117992e6ec86fea (patch)
tree8df1630a2e2a888420cd58e626e9be4d16d2f4e9 /lib/oxidized/model
parent328fe9e44f64ce6ef8dcb47068cffb1f233f53cf (diff)
parent4c5785dcf6e8db4ae7004b6fefe8d75bfe7e01dd (diff)
Merge pull request #982 from WiXZlo/WiXZlo-patch-ucs
Add support for Cisco UCS model
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/ucs.rb31
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