Skip to content

Commit

Permalink
Update purityos.rb (#2678)
Browse files Browse the repository at this point in the history
* Update purityos.rb

PurityOS 6.3.5 does some kind of color-coding/ cursor-positioning things when connecting with SSH. Adjust the terminalsettings to dumb.

* Update purityos.rb

Removed lines of expired purealerts and VEEAM- Snapshots that trigger a change notification.

* Update CHANGELOG.md

Terminalmode set to "dumb", removed purealerts and VEEAM Snapshots

* Update purityos.rb

* Update purityos.rb

Fixed typo "class" instead of "lass"
  • Loading branch information
elliot64 authored Jan 31, 2023
1 parent 03119b2 commit d04b373
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- fixed secret handling for rip authentication in casa model #2648 (@grahamjohnston)
- stripped IoT-detect version for Fortigate devices
- Fix expect usage in models on telnet. Tested with Netgear GS108T. (@arrjay)
- purityos: at least v6.3.5 needs other terminal settings (@elliot64)
- purityos: remove purealerts and VEEAM snapshots from backed up config (@elliot64)

## [0.28.0 - 2020-05-18]

Expand Down
9 changes: 8 additions & 1 deletion lib/oxidized/model/purityos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ class PurityOS < Oxidized::Model
prompt /\w+@\S+(\s+\S+)*\s?>\s?$/
comment '# '

cmd 'pureconfig list'
cmd 'pureconfig list' do |cfg|
cfg.gsub! /^purealert flag \d+$/, ''
cfg.gsub! /(.*VEEAM-StorageLUNSnap-[0-9a-f].*)/, ''
cfg.gsub! /(.*VEEAM-ExportLUNSnap-[0-9A-F].*)/, ''
# remove empty lines
cfg.each_line.reject { |line| line.match /^[\r\n\s\u0000#]+$/ }.join
end

cfg :ssh do
pty_options(term: "dumb")
pre_logout 'exit'
end
end

0 comments on commit d04b373

Please sign in to comment.