summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--lib/oxidized/model/ucs.rb31
2 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md
index fb0a5eb..30aa0f2 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,7 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen
* [NXOS](lib/oxidized/model/nxos.rb)
* [SMA](lib/oxidized/model/ciscosma.rb)
* [SMB (Nikola series)](lib/oxidized/model/ciscosmb.rb)
+ * [UCS](lib/oxidized/model/ucs.rb)
* Citrix
* [NetScaler (Virtual Applicance)](lib/oxidized/model/netscaler.rb)
* Coriant (former Tellabs)
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