Sha256: a9edf4fe767cad3f444eaaf70665175a0ccba18a423cce3b6c95f7b528b5907b
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
class PanOS < Oxidized::Model # PaloAlto PAN-OS model # comment '! ' prompt /^[\w.\@:\(\)-]+>\s?$/ cmd :all do |cfg| cfg.each_line.to_a[2..-3].join end cmd 'show system info' do |cfg| cfg.gsub! /^(up)?time:\ .*$/, '' cfg.gsub! /^app-.*?:\ .*$/, '' cfg.gsub! /^av-.*?:\ .*$/, '' cfg.gsub! /^threat-.*?:\ .*$/, '' cfg.gsub! /^wildfire-.*?:\ .*$/, '' cfg.gsub! /^wf-private.*?:\ .*$/, '' cfg.gsub! /^url-filtering.*?:\ .*$/, '' cfg.gsub! /^global-.*?:\ .*$/, '' comment cfg end cmd 'show config running' do |cfg| cfg end cfg :ssh do post_login 'set cli pager off' pre_logout 'quit' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.21.0 | lib/oxidized/model/panos.rb |