-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RGOS model: post_login 'enable' add for ssh #3318
Comments
Add following code directly after
Try it, and if it's working, make a PR. Example: https://github.com/ytti/oxidized/blob/master/lib/oxidized/model/acsw.rb |
I recommend using Recommended way would be cfg :telnet, :ssh do
# preferred way to handle additional passwords
post_login do
if vars(:enable) == true
cmd "enable"
elsif vars(:enable)
cmd "enable", /^[pP]assword:/
cmd vars(:enable)
end
end
end |
This issue is stale because it has been open 90 days with no activity. |
No reaction from User. If you want the change, make a PR following ytti's example or the documentation about it. |
Please add post_login 'enable' for ssh in the RGOS model. Thanks in advance
The text was updated successfully, but these errors were encountered: