-
Notifications
You must be signed in to change notification settings - Fork 98
add a flag for consolor to print SOL info #424
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
Conversation
|
👍 if it works :-) |
|
lgtm |
support/ruby/consolr/bin/consolr
Outdated
| opt.on('-k', '--kick', 'kick if someone is hogging the console') { options[:kick] = true } | ||
| opt.on('-l', '--log LOG', 'System Event Log (SEL) [list|clear]') { |log| options[:log] = log } | ||
| opt.on('-o', '--on', 'turn on node') { options[:on] = true } | ||
| opt.on('-p', '--sol-info', 'get Serial Over LAN (SOL) info') { options[:get_sol_info] = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you decide on -p?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nitpick: i think that in all other cases we're using the long parameter name as the symbol name in the options hash. For instance, --on => options[:on], --kick => options[:kick] etc. Might want to keep with that convention.
Not going to block you on that though. My LGTM still stands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it to -g for "get-sol-info"
|
Please remember to bump the version - https://github.com/tumblr/collins/blob/master/support/ruby/consolr/lib/consolr/version.rb |
|
do things look fine now @Primer42? |
|
Please rebase and squash before merging. |
b684eaf to
1ebf994
Compare
add a flag for consolor to print SOL info
Adding SOL info for the host we wish to connect to. This can give us session info in case we need to need to dig deeper into session count and handles.
usage --
consolr --tag <asset_tag> --sol-infoexample output