consolr 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ef4a20b9b3cd0f01778916f2a274711d805a06f
4
- data.tar.gz: 5299063a2c12578a9caef2fbcbb609992324c36e
3
+ metadata.gz: 7eb31e066e210418fbe7c6322611f76d988a49fc
4
+ data.tar.gz: dcfe84428f442dd250f542d7ed08816e623568c4
5
5
  SHA512:
6
- metadata.gz: 3f1bc39bfb8c38cf952a342e145dcedb6100ace28fe41714035c799ccfa439dcdb18d7f06e2a1d552f16855fae584d0b7bb2bfa83ff691db4cdf0d6c56cf7224
7
- data.tar.gz: 622e10be3de466e64254964f4012efe46fabf1b521a6c33217803a329bcf88863c1db4bf682cc50c7d55870a3e02e93c1ae9a12269c4acf508229c0cc23e9b71
6
+ metadata.gz: 69348501f3c78ea1c7ceb8849cb7737729ef005617d4b8cf6abc218fd83871a9131bb4107960539db3dd2810431006579bc7ca266db16af52bbc31404218217a
7
+ data.tar.gz: abfb2941c47af3c9764a443d78fed46a42921deb879374b264927a6b11e7a86a9199e171430fa1bfba6786e8013d6e57bb550e72354e475671246ec1aedca8c1
data/bin/consolr CHANGED
@@ -12,6 +12,7 @@ opt_parser = OptionParser.new do |opt|
12
12
  opt.on('-c', '--console', 'console into node via SOL') { options[:console] = true }
13
13
  opt.on('-d', '--dangerous', 'list dangerous stuff') { options[:dangerous] = true }
14
14
  opt.on('-f', '--force', 'force run dangerous actions') { options[:force] = true }
15
+ opt.on('-g', '--get-sol-info', 'get Serial Over LAN (SOL) info') { options[:get_sol_info] = true }
15
16
  opt.on('-H', '--hostname ASSET', 'asset hostname') { |hostname| options[:hostname] = hostname }
16
17
  opt.on('-i', '--identify', 'turn on chassis UID') { options[:identify] = true }
17
18
  opt.on('-k', '--kick', 'kick if someone is hogging the console') { options[:kick] = true }
@@ -75,6 +75,10 @@ module Consolr
75
75
  cmd 'sensor list', node
76
76
  end
77
77
 
78
+ def sol_info node
79
+ cmd 'session info active', node
80
+ end
81
+
78
82
  private
79
83
  def cmd action, node
80
84
  system("#{@ipmitool} -I lanplus -H #{node.ipmi.address} -U #{node.ipmi.username} -P #{node.ipmi.password} #{action}")
@@ -62,6 +62,10 @@ module Consolr
62
62
  def sensors node
63
63
  raise 'sensors is not implemented for this runner'
64
64
  end
65
+
66
+ def sol_info node
67
+ raise 'sol info is not implemented for this runner'
68
+ end
65
69
  end
66
70
  end
67
71
  end
@@ -1,3 +1,3 @@
1
1
  module Consolr
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
data/lib/consolr.rb CHANGED
@@ -157,6 +157,8 @@ module Consolr
157
157
  puts runner.status @node
158
158
  when options[:sensors]
159
159
  puts runner.sensors @node
160
+ when options[:get_sol_info]
161
+ puts runner.sol_info @node
160
162
  else
161
163
  begin
162
164
  puts "specify an action"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consolr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Richard
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-03 00:00:00.000000000 Z
12
+ date: 2016-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: collins_auth
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.4.6
159
+ rubygems_version: 2.4.8
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: consolr is a pure ruby wrapper over IPMI to allow Out of Band communiation