diff options
author | Dave <davama@gmail.com> | 2018-02-10 17:10:23 -0500 |
---|---|---|
committer | Neil Lathwood <neil@lathwood.co.uk> | 2018-02-10 22:10:23 +0000 |
commit | a9e5eed60b687b4a488eb1d11b5147e9f932c6fa (patch) | |
tree | a8af10fbc705ae8b980413598f38632135aa1cfc /lib/oxidized/model/procurve.rb | |
parent | 6bc570a7d6626eaf65fa718d3d364f77b85322a5 (diff) |
mode: Procurve model add show commands (#1176)
Sanitized output:
```
Power Supply Status:
PS# Model State AC/DC + V Wattage
---- --------- ------------- ----------------- ---------
1 Unknwn Powered AC 220V 1500
2 Unknwn Powered AC 220V 1500
2 / 2 supply bays delivering power.
Total power: 3000 W
```
Of course you see `unknwn` but that is addressed in latest firmware release.
Thanks!
Diffstat (limited to 'lib/oxidized/model/procurve.rb')
-rw-r--r-- | lib/oxidized/model/procurve.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index 11d7ea9..444fb5b 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -47,6 +47,10 @@ class Procurve < Oxidized::Model comment cfg end + cmd 'show system power-supply' do |cfg| + comment cfg + end + cmd 'show interfaces transceiver' do |cfg| comment cfg end |