diff options
author | Christoffer Stokbaek <christoffers@easyspeedy.com> | 2016-08-05 10:20:07 +0200 |
---|---|---|
committer | Christoffer Stokbaek <christoffers@easyspeedy.com> | 2016-08-05 10:20:07 +0200 |
commit | b8988ecf7edfbcb414fc93baa54e702f95ed80fe (patch) | |
tree | e2bb79ad8f686fed4a4f2ec8f0787229dda2e19a | |
parent | 1aca290d70b5f2dec16bc313111cca4155b80a23 (diff) |
Switched from prompt grap to ssh exec
-rw-r--r-- | lib/oxidized/pfsense.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oxidized/pfsense.rb b/lib/oxidized/pfsense.rb index 67a1a49..078c2a4 100644 --- a/lib/oxidized/pfsense.rb +++ b/lib/oxidized/pfsense.rb @@ -1,6 +1,5 @@ class PfSense < Oxidized::Model - prompt /^\e\[0;1;33m\[\S*\e\[0;1;33m\]\e\[0;1;33m\e\[\S*\e\[0;1;31m@\S*\e\[0;1;33m\]\S*\e\[0;1;31m:\e\[0;0;0m\s$/ comment '# ' @@ -20,6 +19,10 @@ class PfSense < Oxidized::Model end + cfg :ssh do + exec true + end + cfg :telnet do username /^Username:/ password /^Password:/ |