diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-05 11:17:13 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-05 11:17:13 -0700 |
commit | 7e79ea13eaddf102bc8d5e7b0768c136148f16ee (patch) | |
tree | 122afbcd1c8c3763151854e63fe92b3ea1f71dde /spec | |
parent | cb90ed45d4e8afa4e5899222a78b201e1d967a53 (diff) | |
download | ohai-7e79ea13eaddf102bc8d5e7b0768c136148f16ee.tar.gz |
fixes for new chefstyle rules
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
82 files changed, 7294 insertions, 7296 deletions
diff --git a/spec/functional/application_spec.rb b/spec/functional/application_spec.rb index 4fc25097..ff963d56 100644 --- a/spec/functional/application_spec.rb +++ b/spec/functional/application_spec.rb @@ -58,8 +58,8 @@ RSpec.describe "Ohai::Application" do it "logs an error and terminates the application" do expect(STDERR).to receive(:puts).with(/FATAL:/) - expect(Ohai::Log).to receive(:fatal). - with(/Specified config file #{argv[1]} does not exist/) + expect(Ohai::Log).to receive(:fatal) + .with(/Specified config file #{argv[1]} does not exist/) expect { app.configure_ohai }.to raise_error(SystemExit) end end @@ -75,8 +75,8 @@ RSpec.describe "Ohai::Application" do let(:env) { { "KNIFE_HOME" => config_dir } } before(:each) do - allow_any_instance_of(ChefConfig::WorkstationConfigLoader). - to receive(:env).and_return(env) + allow_any_instance_of(ChefConfig::WorkstationConfigLoader) + .to receive(:env).and_return(env) end it "loads the workstation configuration file" do @@ -97,8 +97,8 @@ RSpec.describe "Ohai::Application" do it "logs an error and terminates the application" do expect(STDERR).to receive(:puts).with(/FATAL:/) - expect(Ohai::Log).to receive(:fatal). - with(/You have invalid ruby syntax in your config file/) + expect(Ohai::Log).to receive(:fatal) + .with(/You have invalid ruby syntax in your config file/) expect { app.configure_ohai }.to raise_error(SystemExit) end end diff --git a/spec/functional/loader_spec.rb b/spec/functional/loader_spec.rb index def45b3e..2b74e7b0 100644 --- a/spec/functional/loader_spec.rb +++ b/spec/functional/loader_spec.rb @@ -28,10 +28,10 @@ RSpec.describe "Ohai::Loader" do before(:each) do Ohai.config[:plugin_path] = plugin_path - plugin_content = <<-EOF -Ohai.plugin(:Foo) do - provides 'foo' -end + plugin_content = <<~EOF + Ohai.plugin(:Foo) do + provides 'foo' + end EOF File.open(File.join(plugin_directory, "foo.rb"), "w+") do |f| f.write(plugin_content) diff --git a/spec/functional/plugins/windows/uptime_spec.rb b/spec/functional/plugins/windows/uptime_spec.rb index 82e149ea..1b3f205c 100644 --- a/spec/functional/plugins/windows/uptime_spec.rb +++ b/spec/functional/plugins/windows/uptime_spec.rb @@ -28,8 +28,7 @@ describe Ohai::System, "Windows plugin uptime" do end let(:wmi) do - double("wmi", { :first_of => - { "lastbootuptime" => "20160912103128.597219+0000" }, + double("wmi", { first_of: { "lastbootuptime" => "20160912103128.597219+0000" }, }) end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 48c09f72..94bdffc6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -105,12 +105,12 @@ RSpec.configure do |config| c.syntax = :expect end - config.filter_run :focus => true + config.filter_run focus: true - config.filter_run_excluding :windows_only => true unless windows? - config.filter_run_excluding :unix_only => true unless unix? - config.filter_run_excluding :requires_root => true unless ENV["USER"] == "root" - config.filter_run_excluding :requires_unprivileged_user => true if ENV["USER"] == "root" + config.filter_run_excluding windows_only: true unless windows? + config.filter_run_excluding unix_only: true unless unix? + config.filter_run_excluding requires_root: true unless ENV["USER"] == "root" + config.filter_run_excluding requires_unprivileged_user: true if ENV["USER"] == "root" config.run_all_when_everything_filtered = true diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb index 687031b7..831fa9c4 100644 --- a/spec/unit/application_spec.rb +++ b/spec/unit/application_spec.rb @@ -43,13 +43,13 @@ RSpec.describe "Ohai::Application" do before(:each) do if windows? - expect(ChefConfig::WorkstationConfigLoader).to receive(:new). - with("C:#{config_file}", Ohai::Log). - and_return(config_loader) + expect(ChefConfig::WorkstationConfigLoader).to receive(:new) + .with("C:#{config_file}", Ohai::Log) + .and_return(config_loader) else - expect(ChefConfig::WorkstationConfigLoader).to receive(:new). - with(config_file, Ohai::Log). - and_return(config_loader) + expect(ChefConfig::WorkstationConfigLoader).to receive(:new) + .with(config_file, Ohai::Log) + .and_return(config_loader) end end @@ -69,9 +69,9 @@ RSpec.describe "Ohai::Application" do context "when a local workstation config exists" do before(:each) do - expect(ChefConfig::WorkstationConfigLoader).to receive(:new). - with(nil, Ohai::Log). - and_return(config_loader) + expect(ChefConfig::WorkstationConfigLoader).to receive(:new) + .with(nil, Ohai::Log) + .and_return(config_loader) end it "loads the configuration file" do @@ -86,8 +86,8 @@ RSpec.describe "Ohai::Application" do let(:directory) { "/some/fantastic/plugins" } it "does not generate deprecated config warnings for cli options" do - expect(Ohai::Log).to_not receive(:warn). - with(/Ohai::Config\[:directory\] is deprecated/) + expect(Ohai::Log).to_not receive(:warn) + .with(/Ohai::Config\[:directory\] is deprecated/) app.configure_ohai end end diff --git a/spec/unit/config_spec.rb b/spec/unit/config_spec.rb index 525a79d7..63341021 100644 --- a/spec/unit/config_spec.rb +++ b/spec/unit/config_spec.rb @@ -30,21 +30,21 @@ RSpec.describe Ohai::Config do end it "gets configured with a Hash" do - value = { :bar => true, :baz => true } + value = { bar: true, baz: true } Ohai::Config.ohai[:plugin][:foo] = value expect(Ohai::Config.ohai[:plugin]).to have_key(:foo) expect(Ohai::Config.ohai[:plugin][:foo]).to eq(value) end it "raises an error if the plugin name is not a symbol" do - expect { Ohai::Config.ohai[:plugin]["foo"] = false }. - to raise_error(Ohai::Exceptions::PluginConfigError, /Expected Symbol/) + expect { Ohai::Config.ohai[:plugin]["foo"] = false } + .to raise_error(Ohai::Exceptions::PluginConfigError, /Expected Symbol/) end it "raises an error if the value Hash has non-Symbol key" do value = { :bar => true, "baz" => true } - expect { Ohai::Config.ohai[:plugin][:foo] = value }. - to raise_error(Ohai::Exceptions::PluginConfigError, /Expected Symbol/) + expect { Ohai::Config.ohai[:plugin][:foo] = value } + .to raise_error(Ohai::Exceptions::PluginConfigError, /Expected Symbol/) end end end diff --git a/spec/unit/dsl/plugin_spec.rb b/spec/unit/dsl/plugin_spec.rb index 65e85891..e93871d7 100644 --- a/spec/unit/dsl/plugin_spec.rb +++ b/spec/unit/dsl/plugin_spec.rb @@ -203,8 +203,8 @@ shared_examples "Ohai::DSL::Plugin" do describe "as a list" do describe "of strings" do it "returns true when the attribute exists" do - expect(plugin.get_attribute("the_monarch", "arch_rival")). - to eql("dr_venture") + expect(plugin.get_attribute("the_monarch", "arch_rival")) + .to eql("dr_venture") end describe "when the attribute does not exist" do @@ -239,8 +239,8 @@ shared_examples "Ohai::DSL::Plugin" do describe "of symbols" do it "returns true when the attribute exists" do - expect(plugin.get_attribute(:the_monarch, :arch_rival)). - to eql("dr_venture") + expect(plugin.get_attribute(:the_monarch, :arch_rival)) + .to eql("dr_venture") end describe "when the attribute does not exist" do @@ -592,7 +592,7 @@ describe Ohai::DSL::Plugin::VersionVII do include_examples "plugin config lookup" it "returns the configuration sub-option value" do - Ohai.config[:plugin][snake_name][:foo] = { :bar => true } + Ohai.config[:plugin][snake_name][:foo] = { bar: true } expect(plugin.configuration(:foo, :bar)).to eq(true) end end diff --git a/spec/unit/hints_spec.rb b/spec/unit/hints_spec.rb index 80477d53..52d90b20 100644 --- a/spec/unit/hints_spec.rb +++ b/spec/unit/hints_spec.rb @@ -42,8 +42,8 @@ describe "Ohai::Hints" do end when_plugins_directory "contains empty and full hints" do - with_plugin("cloud.json", <<EOF) -{"name":"circus"} + with_plugin("cloud.json", <<~EOF) + {"name":"circus"} EOF with_plugin("cloud_empty.json", <<EOF) diff --git a/spec/unit/loader_spec.rb b/spec/unit/loader_spec.rb index fda8319a..9a024c56 100644 --- a/spec/unit/loader_spec.rb +++ b/spec/unit/loader_spec.rb @@ -23,7 +23,7 @@ describe Ohai::Loader do extend IntegrationSupport let(:loader) { Ohai::Loader.new(ohai) } - let(:ohai) { double("Ohai::System", :data => Mash.new, :provides_map => provides_map, logger: Ohai::Log) } + let(:ohai) { double("Ohai::System", data: Mash.new, provides_map: provides_map, logger: Ohai::Log) } let(:provides_map) { Ohai::ProvidesMap.new } describe "#initialize" do @@ -34,16 +34,16 @@ describe Ohai::Loader do end when_plugins_directory "is an additional plugin path" do - with_plugin("cookbook_a/alpha.rb", <<EOF) -Ohai.plugin(:Alpha) do - provides "alpha" -end + with_plugin("cookbook_a/alpha.rb", <<~EOF) + Ohai.plugin(:Alpha) do + provides "alpha" + end EOF - with_plugin("cookbook_b/beta.rb", <<EOF) -Ohai.plugin(:Beta) do - provides "beta" -end + with_plugin("cookbook_b/beta.rb", <<~EOF) + Ohai.plugin(:Beta) do + provides "beta" + end EOF describe "#load_additional" do @@ -59,50 +59,50 @@ EOF end when_plugins_directory "contains invalid plugins" do - with_plugin("extra_s.rb", <<EOF) -Ohai.plugins(:ExtraS) do - provides "the_letter_s" -end + with_plugin("extra_s.rb", <<~EOF) + Ohai.plugins(:ExtraS) do + provides "the_letter_s" + end EOF - with_plugin("no_method.rb", <<EOF) -Ohai.plugin(:NoMethod) do - really_wants "this_attribute" -end + with_plugin("no_method.rb", <<~EOF) + Ohai.plugin(:NoMethod) do + really_wants "this_attribute" + end EOF - with_plugin("illegal_def.rb", <<EOF) -Ohai.plugin(:Zoo) do - collect_data(:darwin) do - end - collect_data(:darwin) do - end -end + with_plugin("illegal_def.rb", <<~EOF) + Ohai.plugin(:Zoo) do + collect_data(:darwin) do + end + collect_data(:darwin) do + end + end EOF - with_plugin("unexpected_error.rb", <<EOF) -Ohai.plugin(:Zoo) do - raise "You aren't expecting this." -end + with_plugin("unexpected_error.rb", <<~EOF) + Ohai.plugin(:Zoo) do + raise "You aren't expecting this." + end EOF - with_plugin("bad_symbol.rb", <<EOF) -Ohai.plugin(:1nval!d) do - provides "not_a_symbol" -end + with_plugin("bad_symbol.rb", <<~EOF) + Ohai.plugin(:1nval!d) do + provides "not_a_symbol" + end EOF - with_plugin("no_end.rb", <<EOF) -Ohai.plugin(:NoEnd) do - provides "fish_oil" - collect_data do -end + with_plugin("no_end.rb", <<~EOF) + Ohai.plugin(:NoEnd) do + provides "fish_oil" + collect_data do + end EOF - with_plugin("bad_name.rb", <<EOF) -Ohai.plugin(:you_give_plugins_a_bad_name) do - provides "that/one/song" -end + with_plugin("bad_name.rb", <<~EOF) + Ohai.plugin(:you_give_plugins_a_bad_name) do + provides "that/one/song" + end EOF describe "load_plugin() method" do diff --git a/spec/unit/mixin/azure_metadata_spec.rb b/spec/unit/mixin/azure_metadata_spec.rb index 5889b6b0..cc216c4b 100644 --- a/spec/unit/mixin/azure_metadata_spec.rb +++ b/spec/unit/mixin/azure_metadata_spec.rb @@ -43,7 +43,7 @@ describe Ohai::Mixin::AzureMetadata do describe "#fetch_metadata" do it "returns an empty hash given a non-200 response" do - http_mock = double("http", { :code => "500" }) + http_mock = double("http", { code: "500" }) allow(mixin).to receive(:http_get).and_return(http_mock) expect(mixin.logger).to receive(:warn) @@ -52,7 +52,7 @@ describe Ohai::Mixin::AzureMetadata do end it "returns an empty hash given invalid JSON response" do - http_mock = double("http", { :code => "200", :body => '{ "foo" "bar"}' }) + http_mock = double("http", { code: "200", body: '{ "foo" "bar"}' }) allow(mixin).to receive(:http_get).and_return(http_mock) expect(mixin.logger).to receive(:warn) @@ -61,7 +61,7 @@ describe Ohai::Mixin::AzureMetadata do end it "returns a populated hash given valid JSON response" do - http_mock = double("http", { :code => "200", :body => '{ "foo": "bar"}' }) + http_mock = double("http", { code: "200", body: '{ "foo": "bar"}' }) allow(mixin).to receive(:http_get).and_return(http_mock) expect(mixin.logger).not_to receive(:warn) diff --git a/spec/unit/mixin/command_spec.rb b/spec/unit/mixin/command_spec.rb index 96cb9fb2..59a9475b 100644 --- a/spec/unit/mixin/command_spec.rb +++ b/spec/unit/mixin/command_spec.rb @@ -44,20 +44,20 @@ describe Ohai::Mixin::Command, "shell_out" do describe "when the command runs" do it "logs the command and exitstatus" do - expect(Mixlib::ShellOut). - to receive(:new). - with(cmd, options). - and_return(shell_out) + expect(Mixlib::ShellOut) + .to receive(:new) + .with(cmd, options) + .and_return(shell_out) - expect(shell_out). - to receive(:run_command) + expect(shell_out) + .to receive(:run_command) - expect(shell_out). - to receive(:exitstatus). - and_return(256) + expect(shell_out) + .to receive(:exitstatus) + .and_return(256) - expect(logger).to receive(:trace). - with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and returned 256") + expect(logger).to receive(:trace) + .with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and returned 256") Ohai::Mixin::Command.shell_out(cmd) end @@ -65,43 +65,43 @@ describe Ohai::Mixin::Command, "shell_out" do describe "when the command does not exist" do it "logs the command and error message" do - expect(Mixlib::ShellOut). - to receive(:new). - with(cmd, options). - and_return(shell_out) - - expect(shell_out). - to receive(:run_command). - and_raise(Errno::ENOENT, "sparkle-dream") - - expect(logger). - to receive(:trace). - with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and failed " \ + expect(Mixlib::ShellOut) + .to receive(:new) + .with(cmd, options) + .and_return(shell_out) + + expect(shell_out) + .to receive(:run_command) + .and_raise(Errno::ENOENT, "sparkle-dream") + + expect(logger) + .to receive(:trace) + .with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and failed " \ "#<Errno::ENOENT: No such file or directory - sparkle-dream>") - expect { Ohai::Mixin::Command.shell_out(cmd) }. - to raise_error(Ohai::Exceptions::Exec) + expect { Ohai::Mixin::Command.shell_out(cmd) } + .to raise_error(Ohai::Exceptions::Exec) end end describe "when the command times out" do it "logs the command an timeout error message" do - expect(Mixlib::ShellOut). - to receive(:new). - with(cmd, options). - and_return(shell_out) - - expect(shell_out). - to receive(:run_command). - and_raise(Mixlib::ShellOut::CommandTimeout) - - expect(logger). - to receive(:trace). - with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and timed " \ + expect(Mixlib::ShellOut) + .to receive(:new) + .with(cmd, options) + .and_return(shell_out) + + expect(shell_out) + .to receive(:run_command) + .and_raise(Mixlib::ShellOut::CommandTimeout) + + expect(logger) + .to receive(:trace) + .with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and timed " \ "out after 30 seconds") - expect { Ohai::Mixin::Command.shell_out(cmd) }. - to raise_error(Ohai::Exceptions::Exec) + expect { Ohai::Mixin::Command.shell_out(cmd) } + .to raise_error(Ohai::Exceptions::Exec) end end @@ -109,42 +109,42 @@ describe Ohai::Mixin::Command, "shell_out" do let(:options) { windows? ? { timeout: 10 } : { timeout: 10, env: { "PATH" => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" } } } it "runs the command with the provided timeout" do - expect(Mixlib::ShellOut). - to receive(:new). - with(cmd, options). - and_return(shell_out) + expect(Mixlib::ShellOut) + .to receive(:new) + .with(cmd, options) + .and_return(shell_out) - expect(shell_out). - to receive(:run_command) + expect(shell_out) + .to receive(:run_command) - expect(shell_out). - to receive(:exitstatus). - and_return(256) + expect(shell_out) + .to receive(:exitstatus) + .and_return(256) - expect(logger).to receive(:trace). - with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and returned 256") + expect(logger).to receive(:trace) + .with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and returned 256") Ohai::Mixin::Command.shell_out(cmd, options) end describe "when the command times out" do it "logs the command an timeout error message" do - expect(Mixlib::ShellOut). - to receive(:new). - with(cmd, options). - and_return(shell_out) - - expect(shell_out). - to receive(:run_command). - and_raise(Mixlib::ShellOut::CommandTimeout) - - expect(logger). - to receive(:trace). - with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and timed " \ + expect(Mixlib::ShellOut) + .to receive(:new) + .with(cmd, options) + .and_return(shell_out) + + expect(shell_out) + .to receive(:run_command) + .and_raise(Mixlib::ShellOut::CommandTimeout) + + expect(logger) + .to receive(:trace) + .with("Plugin OSSparkleDream: ran 'sparkle-dream --version' and timed " \ "out after 10 seconds") - expect { Ohai::Mixin::Command.shell_out(cmd, options) }. - to raise_error(Ohai::Exceptions::Exec) + expect { Ohai::Mixin::Command.shell_out(cmd, options) } + .to raise_error(Ohai::Exceptions::Exec) end end end diff --git a/spec/unit/mixin/ec2_metadata_spec.rb b/spec/unit/mixin/ec2_metadata_spec.rb index 3d2606a7..f9647179 100644 --- a/spec/unit/mixin/ec2_metadata_spec.rb +++ b/spec/unit/mixin/ec2_metadata_spec.rb @@ -35,7 +35,7 @@ describe Ohai::Mixin::Ec2Metadata do context "#best_api_version" do context "with a sorted list of metadata versions" do - let(:response) { double("Net::HTTP Response", :body => "1.0\n2011-05-01\n2012-01-12\nUnsupported", :code => "200") } + let(:response) { double("Net::HTTP Response", body: "1.0\n2011-05-01\n2012-01-12\nUnsupported", code: "200") } it "returns the most recent version" do expect(mixin.best_api_version).to eq("2012-01-12") @@ -43,7 +43,7 @@ describe Ohai::Mixin::Ec2Metadata do end context "with an unsorted list of metadata versions" do - let(:response) { double("Net::HTTP Response", :body => "1.0\n2009-04-04\n2007-03-01\n2011-05-01\n2008-09-01\nUnsupported", :code => "200") } + let(:response) { double("Net::HTTP Response", body: "1.0\n2009-04-04\n2007-03-01\n2011-05-01\n2008-09-01\nUnsupported", code: "200") } it "returns the most recent version (using string sort)" do expect(mixin.best_api_version).to eq("2011-05-01") @@ -51,7 +51,7 @@ describe Ohai::Mixin::Ec2Metadata do end context "when no supported versions are found" do - let(:response) { double("Net::HTTP Response", :body => "2020-01-01\nUnsupported", :code => "200") } + let(:response) { double("Net::HTTP Response", body: "2020-01-01\nUnsupported", code: "200") } it "raises an error" do expect { mixin.best_api_version }.to raise_error(RuntimeError) @@ -60,7 +60,7 @@ describe Ohai::Mixin::Ec2Metadata do # Presume 'latest' when we get a 404 for Eucalyptus back-compat context "when the response code is 404" do - let(:response) { double("Net::HTTP Response", :code => "404") } + let(:response) { double("Net::HTTP Response", code: "404") } it "returns 'latest' as the version" do expect(mixin.best_api_version).to eq("latest") @@ -68,7 +68,7 @@ describe Ohai::Mixin::Ec2Metadata do end context "when the response code is unexpected" do - let(:response) { double("Net::HTTP Response", :body => "1.0\n2011-05-01\n2012-01-12\nUnsupported", :code => "418") } + let(:response) { double("Net::HTTP Response", body: "1.0\n2011-05-01\n2012-01-12\nUnsupported", code: "418") } it "raises an error" do expect { mixin.best_api_version }.to raise_error(RuntimeError) @@ -78,7 +78,7 @@ describe Ohai::Mixin::Ec2Metadata do context "#metadata_get" do context "when the response code is unexpected" do - let(:response) { double("Net::HTTP Response", :body => "", :code => "418") } + let(:response) { double("Net::HTTP Response", body: "", code: "418") } it "raises an error" do expect { mixin.metadata_get("", "2012-01-12") }.to raise_error(RuntimeError) diff --git a/spec/unit/mixin/softlayer_metadata_spec.rb b/spec/unit/mixin/softlayer_metadata_spec.rb index 6b7c7227..97624ae3 100644 --- a/spec/unit/mixin/softlayer_metadata_spec.rb +++ b/spec/unit/mixin/softlayer_metadata_spec.rb @@ -37,7 +37,7 @@ describe ::Ohai::Mixin::SoftlayerMetadata do end def make_res(body) - double("response", { :body => body, :code => "200" }) + double("response", { body: body, code: "200" }) end context "fetch_metadata" do diff --git a/spec/unit/plugin_config_spec.rb b/spec/unit/plugin_config_spec.rb index 263121a5..8705a427 100644 --- a/spec/unit/plugin_config_spec.rb +++ b/spec/unit/plugin_config_spec.rb @@ -37,8 +37,8 @@ describe "Ohai::PluginConfig" do shared_examples_for "failure" do it "raises an error" do - expect { plugin_config[key] = value }. - to raise_error(Ohai::Exceptions::PluginConfigError, /Expected Symbol/) + expect { plugin_config[key] = value } + .to raise_error(Ohai::Exceptions::PluginConfigError, /Expected Symbol/) end end @@ -53,9 +53,9 @@ describe "Ohai::PluginConfig" do let(:value) do { - :bar0 => true, - :bar1 => [ :baz0, :baz1, :baz2 ], - :bar2 => { :qux0 => true, :qux1 => false }, + bar0: true, + bar1: [ :baz0, :baz1, :baz2 ], + bar2: { qux0: true, qux1: false }, } end @@ -69,7 +69,7 @@ describe "Ohai::PluginConfig" do { :bar0 => true, "bar1" => [ :baz0, :baz1, :baz2 ], - :bar2 => { :qux0 => true, :qux1 => false }, + :bar2 => { qux0: true, qux1: false }, } end @@ -81,9 +81,9 @@ describe "Ohai::PluginConfig" do let(:value) do { - :bar0 => true, - :bar1 => [ :baz0, :baz1, :baz2 ], - :bar2 => { :qux0 => true, "qux1" => false }, + bar0: true, + bar1: [ :baz0, :baz1, :baz2 ], + bar2: { :qux0 => true, "qux1" => false }, } end diff --git a/spec/unit/plugins/abort_spec.rb b/spec/unit/plugins/abort_spec.rb index 3a37e933..3227cecb 100644 --- a/spec/unit/plugins/abort_spec.rb +++ b/spec/unit/plugins/abort_spec.rb @@ -20,13 +20,13 @@ require_relative "../../spec_helper.rb" tmp = ENV["TMPDIR"] || ENV["TMP"] || ENV["TEMP"] || "/tmp" -abortstr = <<EOF -Ohai.plugin(:Abort) do - provides "abort_test" - collect_data do - abort +abortstr = <<~EOF + Ohai.plugin(:Abort) do + provides "abort_test" + collect_data do + abort + end end -end EOF describe "a plug-in that aborts execution" do diff --git a/spec/unit/plugins/aix/cpu_spec.rb b/spec/unit/plugins/aix/cpu_spec.rb index 7541bebb..5fd0b34c 100644 --- a/spec/unit/plugins/aix/cpu_spec.rb +++ b/spec/unit/plugins/aix/cpu_spec.rb @@ -20,24 +20,24 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "AIX cpu plugin" do before(:each) do - @lsdev_cc_processor = <<-LSDEV_CC_PROCESSOR -proc0 Available 00-00 Processor -proc4 Defined 00-04 Processor + @lsdev_cc_processor = <<~LSDEV_CC_PROCESSOR + proc0 Available 00-00 Processor + proc4 Defined 00-04 Processor LSDEV_CC_PROCESSOR - @lsattr_el_proc0 = <<-LSATTR_EL -frequency 1654344000 Processor Speed False -smt_enabled true Processor SMT enabled False -smt_threads 2 Processor SMT threads False -state enable Processor state False -type PowerPC_POWER5 Processor type False + @lsattr_el_proc0 = <<~LSATTR_EL + frequency 1654344000 Processor Speed False + smt_enabled true Processor SMT enabled False + smt_threads 2 Processor SMT threads False + state enable Processor state False + type PowerPC_POWER5 Processor type False LSATTR_EL - @pmcycles_m = <<-PMCYCLES_M -CPU 0 runs at 1654 MHz -CPU 1 runs at 1654 MHz -CPU 2 runs at 1654 MHz -CPU 3 runs at 1654 MHz + @pmcycles_m = <<~PMCYCLES_M + CPU 0 runs at 1654 MHz + CPU 1 runs at 1654 MHz + CPU 2 runs at 1654 MHz + CPU 3 runs at 1654 MHz PMCYCLES_M @plugin = get_plugin("aix/cpu") @@ -71,8 +71,8 @@ PMCYCLES_M end it "sets the number of cores" do - #from http://www-01.ibm.com/software/passportadvantage/pvu_terminology_for_customers.html - #on AIX number of cores and processors are considered same + # from http://www-01.ibm.com/software/passportadvantage/pvu_terminology_for_customers.html + # on AIX number of cores and processors are considered same expect(@plugin[:cpu][:cores]).to eq(@plugin[:cpu][:real]) end diff --git a/spec/unit/plugins/aix/filesystem_spec.rb b/spec/unit/plugins/aix/filesystem_spec.rb index 481fe70a..e729e01d 100644 --- a/spec/unit/plugins/aix/filesystem_spec.rb +++ b/spec/unit/plugins/aix/filesystem_spec.rb @@ -20,69 +20,69 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "AIX filesystem plugin" do before(:each) do - @df_pk_lpar = <<-DF_PK -Filesystem 1024-blocks Used Available Capacity Mounted on -/dev/hd4 2097152 219796 1877356 11% / -/dev/hd2 5242880 2416828 2826052 47% /usr -/dev/hd9var 5242880 395540 4847340 8% /var -/dev/hd3 5242880 1539508 3703372 30% /tmp -/dev/hd1 10485760 1972 10483788 1% /home -/dev/hd11admin 131072 380 130692 1% /admin -/proc - - - - /proc -/dev/hd10opt 5242880 1286720 3956160 25% /opt -/dev/livedump 262144 368 261776 1% /var/adm/ras/livedump -/dev/fslv00 524288 45076 479212 9% /wpars/sink-thinker-541ba3 -/dev/fslv01 2097152 8956 2088196 1% /wpars/sink-thinker-541ba3/home -/dev/fslv02 5242880 1307352 3935528 25% /wpars/sink-thinker-541ba3/opt -/proc - - - - /wpars/sink-thinker-541ba3/proc -/dev/fslv03 1048576 168840 879736 17% /wpars/sink-thinker-541ba3/tmp -/dev/fslv04 5242880 2725040 2517840 52% /wpars/sink-thinker-541ba3/usr -/dev/fslv05 524288 76000 448288 15% /wpars/sink-thinker-541ba3/var -/dev/fslv07 10485760 130872 10354888 2% /wpars/toolchain-tester-5c969f -/dev/fslv08 5242880 39572 5203308 1% /wpars/toolchain-tester-5c969f/home -/dev/fslv09 5242880 1477164 3765716 29% /wpars/toolchain-tester-5c969f/opt -/proc - - - - /wpars/toolchain-tester-5c969f/proc -/dev/fslv10 5242880 42884 5199996 1% /wpars/toolchain-tester-5c969f/tmp -/dev/fslv11 5242880 2725048 2517832 52% /wpars/toolchain-tester-5c969f/usr -/dev/fslv12 10485760 272376 10213384 3% /wpars/toolchain-tester-5c969f/var + @df_pk_lpar = <<~DF_PK + Filesystem 1024-blocks Used Available Capacity Mounted on + /dev/hd4 2097152 219796 1877356 11% / + /dev/hd2 5242880 2416828 2826052 47% /usr + /dev/hd9var 5242880 395540 4847340 8% /var + /dev/hd3 5242880 1539508 3703372 30% /tmp + /dev/hd1 10485760 1972 10483788 1% /home + /dev/hd11admin 131072 380 130692 1% /admin + /proc - - - - /proc + /dev/hd10opt 5242880 1286720 3956160 25% /opt + /dev/livedump 262144 368 261776 1% /var/adm/ras/livedump + /dev/fslv00 524288 45076 479212 9% /wpars/sink-thinker-541ba3 + /dev/fslv01 2097152 8956 2088196 1% /wpars/sink-thinker-541ba3/home + /dev/fslv02 5242880 1307352 3935528 25% /wpars/sink-thinker-541ba3/opt + /proc - - - - /wpars/sink-thinker-541ba3/proc + /dev/fslv03 1048576 168840 879736 17% /wpars/sink-thinker-541ba3/tmp + /dev/fslv04 5242880 2725040 2517840 52% /wpars/sink-thinker-541ba3/usr + /dev/fslv05 524288 76000 448288 15% /wpars/sink-thinker-541ba3/var + /dev/fslv07 10485760 130872 10354888 2% /wpars/toolchain-tester-5c969f + /dev/fslv08 5242880 39572 5203308 1% /wpars/toolchain-tester-5c969f/home + /dev/fslv09 5242880 1477164 3765716 29% /wpars/toolchain-tester-5c969f/opt + /proc - - - - /wpars/toolchain-tester-5c969f/proc + /dev/fslv10 5242880 42884 5199996 1% /wpars/toolchain-tester-5c969f/tmp + /dev/fslv11 5242880 2725048 2517832 52% /wpars/toolchain-tester-5c969f/usr + /dev/fslv12 10485760 272376 10213384 3% /wpars/toolchain-tester-5c969f/var DF_PK - @df_pk_wpar = <<-DF_PK -Filesystem 1024-blocks Used Available Capacity Mounted on -Global 10485760 130872 10354888 2% / -Global 5242880 39572 5203308 1% /home -Global 5242880 1477164 3765716 29% /opt -Global - - - - /proc -Global 5242880 42884 5199996 1% /tmp -Global 5242880 2725048 2517832 52% /usr -Global 10485760 272376 10213384 3% /var + @df_pk_wpar = <<~DF_PK + Filesystem 1024-blocks Used Available Capacity Mounted on + Global 10485760 130872 10354888 2% / + Global 5242880 39572 5203308 1% /home + Global 5242880 1477164 3765716 29% /opt + Global - - - - /proc + Global 5242880 42884 5199996 1% /tmp + Global 5242880 2725048 2517832 52% /usr + Global 10485760 272376 10213384 3% /var DF_PK - @mount_lpar = <<-MOUNT - node mounted mounted over vfs date options --------- --------------- --------------- ------ ------------ --------------- - /dev/hd4 / jfs2 Jul 17 13:22 rw,log=/dev/hd8 - /dev/hd2 /usr jfs2 Jul 17 13:22 rw,log=/dev/hd8 - /dev/hd9var /var jfs2 Jul 17 13:22 rw,log=/dev/hd8 - /dev/hd3 /tmp jfs2 Jul 17 13:22 rw,log=/dev/hd8 - /dev/hd1 /home jfs2 Jul 17 13:22 rw,log=/dev/hd8 - /dev/hd11admin /admin jfs2 Jul 17 13:22 rw,log=/dev/hd8 - /proc /proc procfs Jul 17 13:22 rw - /dev/hd10opt /opt jfs2 Jul 17 13:22 rw,log=/dev/hd8 -192.168.1.11 /stage/middleware1 /stage/middleware2 nfs3 Jul 17 13:24 ro,bg,hard,intr,sec=sys + @mount_lpar = <<~MOUNT + node mounted mounted over vfs date options + -------- --------------- --------------- ------ ------------ --------------- + /dev/hd4 / jfs2 Jul 17 13:22 rw,log=/dev/hd8 + /dev/hd2 /usr jfs2 Jul 17 13:22 rw,log=/dev/hd8 + /dev/hd9var /var jfs2 Jul 17 13:22 rw,log=/dev/hd8 + /dev/hd3 /tmp jfs2 Jul 17 13:22 rw,log=/dev/hd8 + /dev/hd1 /home jfs2 Jul 17 13:22 rw,log=/dev/hd8 + /dev/hd11admin /admin jfs2 Jul 17 13:22 rw,log=/dev/hd8 + /proc /proc procfs Jul 17 13:22 rw + /dev/hd10opt /opt jfs2 Jul 17 13:22 rw,log=/dev/hd8 + 192.168.1.11 /stage/middleware1 /stage/middleware2 nfs3 Jul 17 13:24 ro,bg,hard,intr,sec=sys MOUNT - @mount_wpar = <<-MOUNT - node mounted mounted over vfs date options --------- --------------- --------------- ------ ------------ --------------- - Global / jfs2 Nov 23 21:03 rw,log=NULL - Global /home jfs2 Nov 23 21:03 rw,log=NULL - Global /opt jfs2 Nov 23 21:03 rw,log=NULL - Global /proc namefs Nov 23 21:03 rw - Global /tmp jfs2 Nov 23 21:03 rw,log=NULL - Global /usr jfs2 Nov 23 21:03 rw,log=NULL - Global /var jfs2 Nov 23 21:03 rw,log=NULL -192.168.1.11 /stage/middleware3 /stage/middleware4 nfs3 Jul 17 13:24 ro,bg,hard,intr,sec=sys + @mount_wpar = <<~MOUNT + node mounted mounted over vfs date options + -------- --------------- --------------- ------ ------------ --------------- + Global / jfs2 Nov 23 21:03 rw,log=NULL + Global /home jfs2 Nov 23 21:03 rw,log=NULL + Global /opt jfs2 Nov 23 21:03 rw,log=NULL + Global /proc namefs Nov 23 21:03 rw + Global /tmp jfs2 Nov 23 21:03 rw,log=NULL + Global /usr jfs2 Nov 23 21:03 rw,log=NULL + Global /var jfs2 Nov 23 21:03 rw,log=NULL + 192.168.1.11 /stage/middleware3 /stage/middleware4 nfs3 Jul 17 13:24 ro,bg,hard,intr,sec=sys MOUNT @plugin = get_plugin("aix/filesystem") diff --git a/spec/unit/plugins/aix/network_spec.rb b/spec/unit/plugins/aix/network_spec.rb index c3f675eb..0f000b97 100644 --- a/spec/unit/plugins/aix/network_spec.rb +++ b/spec/unit/plugins/aix/network_spec.rb @@ -21,57 +21,57 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "AIX network plugin" do before(:each) do - @netstat_rn_grep_default = <<-NETSTAT_RN_GREP_DEFAULT -default 172.31.8.1 UG 2 121789 en0 - - + @netstat_rn_grep_default = <<~NETSTAT_RN_GREP_DEFAULT + default 172.31.8.1 UG 2 121789 en0 - - NETSTAT_RN_GREP_DEFAULT - @ifconfig = <<-IFCONFIG -en0: flags=1e080863,480<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),CHAIN> metric 1 - inet 172.29.174.58 netmask 0xffffc000 broadcast 172.29.191.255 - inet 172.29.174.59 broadcast 172.29.191.255 - inet 172.29.174.60 netmask 0xffffc000 broadcast 172.29.191.255 - inet6 ::1%1/0 - tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1 -en1: flags=1e084863,480<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),CHAIN> - inet 172.31.10.211 netmask 0xfffffc00 broadcast 172.31.11.255 - tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1 -lo0: flags=e08084b,c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,LARGESEND,CHAIN> - inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255 - inet6 ::1%1/0 - tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1 + @ifconfig = <<~IFCONFIG + en0: flags=1e080863,480<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),CHAIN> metric 1 + inet 172.29.174.58 netmask 0xffffc000 broadcast 172.29.191.255 + inet 172.29.174.59 broadcast 172.29.191.255 + inet 172.29.174.60 netmask 0xffffc000 broadcast 172.29.191.255 + inet6 ::1%1/0 + tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1 + en1: flags=1e084863,480<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),CHAIN> + inet 172.31.10.211 netmask 0xfffffc00 broadcast 172.31.11.255 + tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1 + lo0: flags=e08084b,c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,LARGESEND,CHAIN> + inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255 + inet6 ::1%1/0 + tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1 IFCONFIG - @netstat_nrf_inet = <<-NETSTAT_NRF_INET -Destination Gateway Flags Refs Use If Exp Groups -Route Tree for Protocol Family 2 (Internet): -default 172.29.128.13 UG 0 587683 en0 - - -172.29.128.0 172.29.174.58 UHSb 0 0 en0 - - => -172.29.128/18 172.29.174.58 U 7 1035485 en0 - - -172.29.191.255 172.29.174.58 UHSb 0 1 en0 - - + @netstat_nrf_inet = <<~NETSTAT_NRF_INET + Destination Gateway Flags Refs Use If Exp Groups + Route Tree for Protocol Family 2 (Internet): + default 172.29.128.13 UG 0 587683 en0 - - + 172.29.128.0 172.29.174.58 UHSb 0 0 en0 - - => + 172.29.128/18 172.29.174.58 U 7 1035485 en0 - - + 172.29.191.255 172.29.174.58 UHSb 0 1 en0 - - NETSTAT_NRF_INET - @entstat_err = <<-ENSTAT_ERR + @entstat_err = <<~ENSTAT_ERR -entstat: 0909-002 Unable to open device en0, errno = 13 -grep: 0652-033 Cannot open Address". + entstat: 0909-002 Unable to open device en0, errno = 13 + grep: 0652-033 Cannot open Address". ENSTAT_ERR - @aix_arp_an = <<-ARP_AN - ? (172.29.131.16) at 6e:87:70:0:40:3 [ethernet] stored in bucket 16 + @aix_arp_an = <<~ARP_AN + ? (172.29.131.16) at 6e:87:70:0:40:3 [ethernet] stored in bucket 16 - ? (10.153.50.202) at 34:40:b5:ab:fb:5a [ethernet] stored in bucket 40 + ? (10.153.50.202) at 34:40:b5:ab:fb:5a [ethernet] stored in bucket 40 - ? (10.153.1.99) at 52:54:0:8e:f2:fb [ethernet] stored in bucket 58 + ? (10.153.1.99) at 52:54:0:8e:f2:fb [ethernet] stored in bucket 58 - ? (172.29.132.250) at 34:40:b5:a5:d7:1e [ethernet] stored in bucket 59 + ? (172.29.132.250) at 34:40:b5:a5:d7:1e [ethernet] stored in bucket 59 - ? (172.29.132.253) at 34:40:b5:a5:d7:2a [ethernet] stored in bucket 62 + ? (172.29.132.253) at 34:40:b5:a5:d7:2a [ethernet] stored in bucket 62 - ? (172.29.128.13) at 60:73:5c:69:42:44 [ethernet] stored in bucket 139 + ? (172.29.128.13) at 60:73:5c:69:42:44 [ethernet] stored in bucket 139 -bucket: 0 contains: 0 entries -There are 6 entries in the arp table. + bucket: 0 contains: 0 entries + There are 6 entries in the arp table. ARP_AN @plugin = get_plugin("aix/network") diff --git a/spec/unit/plugins/aix/virtualization_spec.rb b/spec/unit/plugins/aix/virtualization_spec.rb index 6e8fda7c..3c9e2ce2 100644 --- a/spec/unit/plugins/aix/virtualization_spec.rb +++ b/spec/unit/plugins/aix/virtualization_spec.rb @@ -32,216 +32,216 @@ describe Ohai::System, "AIX virtualization plugin" do end before(:each) do - @lswpar_l = <<-LSWPAR_L -================================================================= -applejack-541ba3 - Active -================================================================= -GENERAL -Type: S -RootVG WPAR: no -Owner: root -Hostname: applejack-pony-541ba3.ponyville.com -WPAR-Specific Routing: yes -Virtual IP WPAR: -Directory: /wpars/applejack-541ba3 -Start/Stop Script: -Auto: no -Private /usr: yes -Checkpointable: no -Application: -UUID: 541ba314-c7ca-4f67-bc6e-a10d5eaa8541 - -NETWORK -Interface Address(6) Mask/Prefix Broadcast ------------------------------------------------------------------ -en0 192.168.0.231 255.255.252.0 192.168.0.255 -lo0 127.0.0.1 255.0.0.0 127.255.255.255 - -USER-SPECIFIED ROUTES -Type Destination Gateway Interface ------------------------------------------------------------------ - default 192.168.0.1 en0 - -FILE SYSTEMS -MountPoint Device Vfs Nodename Options ------------------------------------------------------------------ -/wpars/sink-thinker-5... /dev/fslv00 jfs2 log=NULL -/wpars/sink-thinker-5... /dev/fslv01 jfs2 log=NULL -/wpars/sink-thinker-5... /dev/fslv02 jfs2 log=NULL -/wpars/sink-thinker-5... /proc namefs rw -/wpars/sink-thinker-5... /dev/fslv03 jfs2 log=NULL -/wpars/sink-thinker-5... /dev/fslv04 jfs2 log=NULL -/wpars/sink-thinker-5... /dev/fslv05 jfs2 log=NULL - -RESOURCE CONTROLS -Active: yes -Resource Set: -CPU Shares: unlimited -CPU Limits: 0%-100%,100% -Memory Shares: unlimited -Memory Limits: 0%-100%,100% -Per-Process Virtual Memory Limit: unlimited -Total Virtual Memory Limit: unlimited -Total Processes: unlimited -Total Threads: unlimited -Total PTYs: unlimited -Total Large Pages: unlimited -Max Message Queue IDs: 100% -Max Semaphore IDs: 100% -Max Shared Memory IDs: 100% -Max Pinned Memory: 100% - -OPERATION -Operation: none -Process ID: -Start Time: - -SECURITY SETTINGS -Privileges: PV_AU_,PV_AU_ADD,PV_AU_ADMIN,PV_AU_PROC,PV_AU_READ, - PV_AU_WRITE,PV_AZ_ADMIN,PV_AZ_CHECK,PV_AZ_READ,PV_AZ_ROOT, - PV_DAC_,PV_DAC_GID,PV_DAC_O,PV_DAC_R,PV_DAC_RID,PV_DAC_UID, - PV_DAC_W,PV_DAC_X,PV_DEV_CONFIG,PV_DEV_QUERY,PV_FS_CHOWN, - PV_FS_CHROOT,PV_FS_CNTL,PV_FS_LINKDIR,PV_FS_MKNOD, - PV_FS_MOUNT,PV_FS_PDMODE,PV_FS_QUOTA,PV_KER_ACCT, - PV_KER_CONF,PV_KER_DR,PV_KER_EWLM,PV_KER_EXTCONF, - PV_KER_IPC,PV_KER_IPC_O,PV_KER_IPC_R,PV_KER_IPC_W, - PV_KER_NFS,PV_KER_RAC,PV_KER_RAS_ERR,PV_KER_REBOOT, - PV_NET_PORT,PV_PROC_CKPT,PV_PROC_CORE,PV_PROC_CRED, - PV_PROC_ENV,PV_PROC_PRIO,PV_PROC_PDMODE,PV_PROC_RAC, - PV_PROC_RTCLK,PV_PROC_SIG,PV_PROC_TIMER,PV_PROC_VARS, - PV_PROC_PRIV,PV_SU_UID,PV_TCB,PV_TP,PV_TP_SET,PV_MIC, - PV_MIC_CL,PV_LAB_,PV_LAB_CL,PV_LAB_CLTL,PV_LAB_LEF, - PV_LAB_SLDG,PV_LAB_SLDG_STR,PV_LAB_SL_FILE,PV_LAB_SL_PROC, - PV_LAB_SL_SELF,PV_LAB_SLUG,PV_LAB_SLUG_STR,PV_LAB_TL, - PV_MAC_,PV_MAC_CL,PV_MAC_R,PV_MAC_R_CL,PV_MAC_R_STR, - PV_MAC_R_PROC,PV_MAC_W,PV_MAC_W_CL,PV_MAC_W_DN,PV_MAC_W_UP, - PV_MAC_W_PROC,PV_MAC_OVRRD,PV_KER_SECCONFIG, - PV_PROBEVUE_TRC_USER,PV_PROBEVUE_TRC_USER_SELF,PV_KER_LVM - -DEVICE EXPORTS -Name Type Virtual Device RootVG Status ------------------------------------------------------------------ -/dev/null pseudo EXPORTED -/dev/tty pseudo EXPORTED -/dev/console pseudo EXPORTED -/dev/zero pseudo EXPORTED -/dev/clone pseudo EXPORTED -/dev/sad clone EXPORTED -/dev/xti/tcp clone EXPORTED -/dev/xti/tcp6 clone EXPORTED -/dev/xti/udp clone EXPORTED -/dev/xti/udp6 clone EXPORTED -/dev/xti/unixdg clone EXPORTED -/dev/xti/unixst clone EXPORTED -/dev/error pseudo EXPORTED -/dev/errorctl pseudo EXPORTED -/dev/audit pseudo EXPORTED -/dev/nvram pseudo EXPORTED - -================================================================= -fluttershy-5c969f - Active -================================================================= -GENERAL -Type: S -RootVG WPAR: no -Owner: root -Hostname: fluttershy-pony-5c969f.ponyville.com -WPAR-Specific Routing: yes -Virtual IP WPAR: -Directory: /wpars/fluttershy-5c969f -Start/Stop Script: -Auto: no -Private /usr: yes -Checkpointable: no -Application: -UUID: 6f1fd4be-8be5-4627-8ec0-3a8739cbd9e2 - -NETWORK -Interface Address(6) Mask/Prefix Broadcast ------------------------------------------------------------------ -en0 192.168.0.18 255.255.252.0 192.168.0.255 -lo0 127.0.0.1 255.0.0.0 127.255.255.255 - -USER-SPECIFIED ROUTES -Type Destination Gateway Interface ------------------------------------------------------------------ - default 192.168.0.1 en0 - -FILE SYSTEMS -MountPoint Device Vfs Nodename Options ------------------------------------------------------------------ -/wpars/toolchain-test... /dev/fslv07 jfs2 log=NULL -/wpars/toolchain-test... /dev/fslv08 jfs2 log=NULL -/wpars/toolchain-test... /dev/fslv09 jfs2 log=NULL -/wpars/toolchain-test... /proc namefs rw -/wpars/toolchain-test... /dev/fslv10 jfs2 log=NULL -/wpars/toolchain-test... /dev/fslv11 jfs2 log=NULL -/wpars/toolchain-test... /dev/fslv12 jfs2 log=NULL - -RESOURCE CONTROLS -Active: yes -Resource Set: -CPU Shares: unlimited -CPU Limits: 0%-100%,100% -Memory Shares: unlimited -Memory Limits: 0%-100%,100% -Per-Process Virtual Memory Limit: unlimited -Total Virtual Memory Limit: unlimited -Total Processes: unlimited -Total Threads: unlimited -Total PTYs: unlimited -Total Large Pages: unlimited -Max Message Queue IDs: 100% -Max Semaphore IDs: 100% -Max Shared Memory IDs: 100% -Max Pinned Memory: 100% - -OPERATION -Operation: none -Process ID: -Start Time: - -SECURITY SETTINGS -Privileges: PV_AU_,PV_AU_ADD,PV_AU_ADMIN,PV_AU_PROC,PV_AU_READ, - PV_AU_WRITE,PV_AZ_ADMIN,PV_AZ_CHECK,PV_AZ_READ,PV_AZ_ROOT, - PV_DAC_,PV_DAC_GID,PV_DAC_O,PV_DAC_R,PV_DAC_RID,PV_DAC_UID, - PV_DAC_W,PV_DAC_X,PV_DEV_CONFIG,PV_DEV_QUERY,PV_FS_CHOWN, - PV_FS_CHROOT,PV_FS_CNTL,PV_FS_LINKDIR,PV_FS_MKNOD, - PV_FS_MOUNT,PV_FS_PDMODE,PV_FS_QUOTA,PV_KER_ACCT, - PV_KER_CONF,PV_KER_DR,PV_KER_EWLM,PV_KER_EXTCONF, - PV_KER_IPC,PV_KER_IPC_O,PV_KER_IPC_R,PV_KER_IPC_W, - PV_KER_NFS,PV_KER_RAC,PV_KER_RAS_ERR,PV_KER_REBOOT, - PV_NET_PORT,PV_PROC_CKPT,PV_PROC_CORE,PV_PROC_CRED, - PV_PROC_ENV,PV_PROC_PRIO,PV_PROC_PDMODE,PV_PROC_RAC, - PV_PROC_RTCLK,PV_PROC_SIG,PV_PROC_TIMER,PV_PROC_VARS, - PV_PROC_PRIV,PV_SU_UID,PV_TCB,PV_TP,PV_TP_SET,PV_MIC, - PV_MIC_CL,PV_LAB_,PV_LAB_CL,PV_LAB_CLTL,PV_LAB_LEF, - PV_LAB_SLDG,PV_LAB_SLDG_STR,PV_LAB_SL_FILE,PV_LAB_SL_PROC, - PV_LAB_SL_SELF,PV_LAB_SLUG,PV_LAB_SLUG_STR,PV_LAB_TL, - PV_MAC_,PV_MAC_CL,PV_MAC_R,PV_MAC_R_CL,PV_MAC_R_STR, - PV_MAC_R_PROC,PV_MAC_W,PV_MAC_W_CL,PV_MAC_W_DN,PV_MAC_W_UP, - PV_MAC_W_PROC,PV_MAC_OVRRD,PV_KER_SECCONFIG, - PV_PROBEVUE_TRC_USER,PV_PROBEVUE_TRC_USER_SELF,PV_KER_LVM - -DEVICE EXPORTS -Name Type Virtual Device RootVG Status ------------------------------------------------------------------ -/dev/null pseudo EXPORTED -/dev/tty pseudo EXPORTED -/dev/console pseudo EXPORTED -/dev/zero pseudo EXPORTED -/dev/clone pseudo EXPORTED -/dev/sad clone EXPORTED -/dev/xti/tcp clone EXPORTED -/dev/xti/tcp6 clone EXPORTED -/dev/xti/udp clone EXPORTED -/dev/xti/udp6 clone EXPORTED -/dev/xti/unixdg clone EXPORTED -/dev/xti/unixst clone EXPORTED -/dev/error pseudo EXPORTED -/dev/errorctl pseudo EXPORTED -/dev/audit pseudo EXPORTED -/dev/nvram pseudo EXPORTED + @lswpar_l = <<~LSWPAR_L + ================================================================= + applejack-541ba3 - Active + ================================================================= + GENERAL + Type: S + RootVG WPAR: no + Owner: root + Hostname: applejack-pony-541ba3.ponyville.com + WPAR-Specific Routing: yes + Virtual IP WPAR: + Directory: /wpars/applejack-541ba3 + Start/Stop Script: + Auto: no + Private /usr: yes + Checkpointable: no + Application: + UUID: 541ba314-c7ca-4f67-bc6e-a10d5eaa8541 + + NETWORK + Interface Address(6) Mask/Prefix Broadcast + ----------------------------------------------------------------- + en0 192.168.0.231 255.255.252.0 192.168.0.255 + lo0 127.0.0.1 255.0.0.0 127.255.255.255 + + USER-SPECIFIED ROUTES + Type Destination Gateway Interface + ----------------------------------------------------------------- + default 192.168.0.1 en0 + + FILE SYSTEMS + MountPoint Device Vfs Nodename Options + ----------------------------------------------------------------- + /wpars/sink-thinker-5... /dev/fslv00 jfs2 log=NULL + /wpars/sink-thinker-5... /dev/fslv01 jfs2 log=NULL + /wpars/sink-thinker-5... /dev/fslv02 jfs2 log=NULL + /wpars/sink-thinker-5... /proc namefs rw + /wpars/sink-thinker-5... /dev/fslv03 jfs2 log=NULL + /wpars/sink-thinker-5... /dev/fslv04 jfs2 log=NULL + /wpars/sink-thinker-5... /dev/fslv05 jfs2 log=NULL + + RESOURCE CONTROLS + Active: yes + Resource Set: + CPU Shares: unlimited + CPU Limits: 0%-100%,100% + Memory Shares: unlimited + Memory Limits: 0%-100%,100% + Per-Process Virtual Memory Limit: unlimited + Total Virtual Memory Limit: unlimited + Total Processes: unlimited + Total Threads: unlimited + Total PTYs: unlimited + Total Large Pages: unlimited + Max Message Queue IDs: 100% + Max Semaphore IDs: 100% + Max Shared Memory IDs: 100% + Max Pinned Memory: 100% + + OPERATION + Operation: none + Process ID: + Start Time: + + SECURITY SETTINGS + Privileges: PV_AU_,PV_AU_ADD,PV_AU_ADMIN,PV_AU_PROC,PV_AU_READ, + PV_AU_WRITE,PV_AZ_ADMIN,PV_AZ_CHECK,PV_AZ_READ,PV_AZ_ROOT, + PV_DAC_,PV_DAC_GID,PV_DAC_O,PV_DAC_R,PV_DAC_RID,PV_DAC_UID, + PV_DAC_W,PV_DAC_X,PV_DEV_CONFIG,PV_DEV_QUERY,PV_FS_CHOWN, + PV_FS_CHROOT,PV_FS_CNTL,PV_FS_LINKDIR,PV_FS_MKNOD, + PV_FS_MOUNT,PV_FS_PDMODE,PV_FS_QUOTA,PV_KER_ACCT, + PV_KER_CONF,PV_KER_DR,PV_KER_EWLM,PV_KER_EXTCONF, + PV_KER_IPC,PV_KER_IPC_O,PV_KER_IPC_R,PV_KER_IPC_W, + PV_KER_NFS,PV_KER_RAC,PV_KER_RAS_ERR,PV_KER_REBOOT, + PV_NET_PORT,PV_PROC_CKPT,PV_PROC_CORE,PV_PROC_CRED, + PV_PROC_ENV,PV_PROC_PRIO,PV_PROC_PDMODE,PV_PROC_RAC, + PV_PROC_RTCLK,PV_PROC_SIG,PV_PROC_TIMER,PV_PROC_VARS, + PV_PROC_PRIV,PV_SU_UID,PV_TCB,PV_TP,PV_TP_SET,PV_MIC, + PV_MIC_CL,PV_LAB_,PV_LAB_CL,PV_LAB_CLTL,PV_LAB_LEF, + PV_LAB_SLDG,PV_LAB_SLDG_STR,PV_LAB_SL_FILE,PV_LAB_SL_PROC, + PV_LAB_SL_SELF,PV_LAB_SLUG,PV_LAB_SLUG_STR,PV_LAB_TL, + PV_MAC_,PV_MAC_CL,PV_MAC_R,PV_MAC_R_CL,PV_MAC_R_STR, + PV_MAC_R_PROC,PV_MAC_W,PV_MAC_W_CL,PV_MAC_W_DN,PV_MAC_W_UP, + PV_MAC_W_PROC,PV_MAC_OVRRD,PV_KER_SECCONFIG, + PV_PROBEVUE_TRC_USER,PV_PROBEVUE_TRC_USER_SELF,PV_KER_LVM + + DEVICE EXPORTS + Name Type Virtual Device RootVG Status + ----------------------------------------------------------------- + /dev/null pseudo EXPORTED + /dev/tty pseudo EXPORTED + /dev/console pseudo EXPORTED + /dev/zero pseudo EXPORTED + /dev/clone pseudo EXPORTED + /dev/sad clone EXPORTED + /dev/xti/tcp clone EXPORTED + /dev/xti/tcp6 clone EXPORTED + /dev/xti/udp clone EXPORTED + /dev/xti/udp6 clone EXPORTED + /dev/xti/unixdg clone EXPORTED + /dev/xti/unixst clone EXPORTED + /dev/error pseudo EXPORTED + /dev/errorctl pseudo EXPORTED + /dev/audit pseudo EXPORTED + /dev/nvram pseudo EXPORTED + + ================================================================= + fluttershy-5c969f - Active + ================================================================= + GENERAL + Type: S + RootVG WPAR: no + Owner: root + Hostname: fluttershy-pony-5c969f.ponyville.com + WPAR-Specific Routing: yes + Virtual IP WPAR: + Directory: /wpars/fluttershy-5c969f + Start/Stop Script: + Auto: no + Private /usr: yes + Checkpointable: no + Application: + UUID: 6f1fd4be-8be5-4627-8ec0-3a8739cbd9e2 + + NETWORK + Interface Address(6) Mask/Prefix Broadcast + ----------------------------------------------------------------- + en0 192.168.0.18 255.255.252.0 192.168.0.255 + lo0 127.0.0.1 255.0.0.0 127.255.255.255 + + USER-SPECIFIED ROUTES + Type Destination Gateway Interface + ----------------------------------------------------------------- + default 192.168.0.1 en0 + + FILE SYSTEMS + MountPoint Device Vfs Nodename Options + ----------------------------------------------------------------- + /wpars/toolchain-test... /dev/fslv07 jfs2 log=NULL + /wpars/toolchain-test... /dev/fslv08 jfs2 log=NULL + /wpars/toolchain-test... /dev/fslv09 jfs2 log=NULL + /wpars/toolchain-test... /proc namefs rw + /wpars/toolchain-test... /dev/fslv10 jfs2 log=NULL + /wpars/toolchain-test... /dev/fslv11 jfs2 log=NULL + /wpars/toolchain-test... /dev/fslv12 jfs2 log=NULL + + RESOURCE CONTROLS + Active: yes + Resource Set: + CPU Shares: unlimited + CPU Limits: 0%-100%,100% + Memory Shares: unlimited + Memory Limits: 0%-100%,100% + Per-Process Virtual Memory Limit: unlimited + Total Virtual Memory Limit: unlimited + Total Processes: unlimited + Total Threads: unlimited + Total PTYs: unlimited + Total Large Pages: unlimited + Max Message Queue IDs: 100% + Max Semaphore IDs: 100% + Max Shared Memory IDs: 100% + Max Pinned Memory: 100% + + OPERATION + Operation: none + Process ID: + Start Time: + + SECURITY SETTINGS + Privileges: PV_AU_,PV_AU_ADD,PV_AU_ADMIN,PV_AU_PROC,PV_AU_READ, + PV_AU_WRITE,PV_AZ_ADMIN,PV_AZ_CHECK,PV_AZ_READ,PV_AZ_ROOT, + PV_DAC_,PV_DAC_GID,PV_DAC_O,PV_DAC_R,PV_DAC_RID,PV_DAC_UID, + PV_DAC_W,PV_DAC_X,PV_DEV_CONFIG,PV_DEV_QUERY,PV_FS_CHOWN, + PV_FS_CHROOT,PV_FS_CNTL,PV_FS_LINKDIR,PV_FS_MKNOD, + PV_FS_MOUNT,PV_FS_PDMODE,PV_FS_QUOTA,PV_KER_ACCT, + PV_KER_CONF,PV_KER_DR,PV_KER_EWLM,PV_KER_EXTCONF, + PV_KER_IPC,PV_KER_IPC_O,PV_KER_IPC_R,PV_KER_IPC_W, + PV_KER_NFS,PV_KER_RAC,PV_KER_RAS_ERR,PV_KER_REBOOT, + PV_NET_PORT,PV_PROC_CKPT,PV_PROC_CORE,PV_PROC_CRED, + PV_PROC_ENV,PV_PROC_PRIO,PV_PROC_PDMODE,PV_PROC_RAC, + PV_PROC_RTCLK,PV_PROC_SIG,PV_PROC_TIMER,PV_PROC_VARS, + PV_PROC_PRIV,PV_SU_UID,PV_TCB,PV_TP,PV_TP_SET,PV_MIC, + PV_MIC_CL,PV_LAB_,PV_LAB_CL,PV_LAB_CLTL,PV_LAB_LEF, + PV_LAB_SLDG,PV_LAB_SLDG_STR,PV_LAB_SL_FILE,PV_LAB_SL_PROC, + PV_LAB_SL_SELF,PV_LAB_SLUG,PV_LAB_SLUG_STR,PV_LAB_TL, + PV_MAC_,PV_MAC_CL,PV_MAC_R,PV_MAC_R_CL,PV_MAC_R_STR, + PV_MAC_R_PROC,PV_MAC_W,PV_MAC_W_CL,PV_MAC_W_DN,PV_MAC_W_UP, + PV_MAC_W_PROC,PV_MAC_OVRRD,PV_KER_SECCONFIG, + PV_PROBEVUE_TRC_USER,PV_PROBEVUE_TRC_USER_SELF,PV_KER_LVM + + DEVICE EXPORTS + Name Type Virtual Device RootVG Status + ----------------------------------------------------------------- + /dev/null pseudo EXPORTED + /dev/tty pseudo EXPORTED + /dev/console pseudo EXPORTED + /dev/zero pseudo EXPORTED + /dev/clone pseudo EXPORTED + /dev/sad clone EXPORTED + /dev/xti/tcp clone EXPORTED + /dev/xti/tcp6 clone EXPORTED + /dev/xti/udp clone EXPORTED + /dev/xti/udp6 clone EXPORTED + /dev/xti/unixdg clone EXPORTED + /dev/xti/unixst clone EXPORTED + /dev/error pseudo EXPORTED + /dev/errorctl pseudo EXPORTED + /dev/audit pseudo EXPORTED + /dev/nvram pseudo EXPORTED LSWPAR_L diff --git a/spec/unit/plugins/azure_spec.rb b/spec/unit/plugins/azure_spec.rb index cf386657..8d041616 100644 --- a/spec/unit/plugins/azure_spec.rb +++ b/spec/unit/plugins/azure_spec.rb @@ -53,9 +53,9 @@ describe Ohai::System, "plugin azure" do before do # skips all the metadata logic unless we want to test it - allow(plugin).to receive(:can_socket_connect?). - with(Ohai::Mixin::AzureMetadata::AZURE_METADATA_ADDR, 80). - and_return(false) + allow(plugin).to receive(:can_socket_connect?) + .with(Ohai::Mixin::AzureMetadata::AZURE_METADATA_ADDR, 80) + .and_return(false) end shared_examples_for "!azure" do @@ -96,26 +96,26 @@ describe Ohai::System, "plugin azure" do allow(Dir).to receive(:exist?).with('C:\WindowsAzure').and_return(false) allow(File).to receive(:exist?).with("/var/lib/dhcp/dhclient.eth0.leases").and_return(true) @double_file = double("/var/lib/dhcp/dhclient.eth0.leases") - allow(@double_file).to receive(:each). - and_yield("lease {"). - and_yield(' interface "eth0";'). - and_yield(" fixed-address 192.168.1.194;"). - and_yield(" option subnet-mask 255.255.255.0;"). - and_yield(" option routers 192.168.1.1;"). - and_yield(" option dhcp-lease-time 86400;"). - and_yield(" option dhcp-message-type 5;"). - and_yield(" option domain-name-servers 8.8.8.8;"). - and_yield(" option dhcp-server-identifier 192.168.1.2;"). - and_yield(" option interface-mtu 1454;"). - and_yield(" option dhcp-renewal-time 42071;"). - and_yield(" option broadcast-address 192.168.1.255;"). - and_yield(" option dhcp-rebinding-time 74471;"). - and_yield(' option host-name "host-192-168-1-194";'). - and_yield(' option domain-name "openstacklocal";'). - and_yield(" renew 2 2016/03/01 01:49:41;"). - and_yield(" rebind 2 2016/03/01 13:22:07;"). - and_yield(" expire 2 2016/03/01 16:40:56;"). - and_yield("}") + allow(@double_file).to receive(:each) + .and_yield("lease {") + .and_yield(' interface "eth0";') + .and_yield(" fixed-address 192.168.1.194;") + .and_yield(" option subnet-mask 255.255.255.0;") + .and_yield(" option routers 192.168.1.1;") + .and_yield(" option dhcp-lease-time 86400;") + .and_yield(" option dhcp-message-type 5;") + .and_yield(" option domain-name-servers 8.8.8.8;") + .and_yield(" option dhcp-server-identifier 192.168.1.2;") + .and_yield(" option interface-mtu 1454;") + .and_yield(" option dhcp-renewal-time 42071;") + .and_yield(" option broadcast-address 192.168.1.255;") + .and_yield(" option dhcp-rebinding-time 74471;") + .and_yield(' option host-name "host-192-168-1-194";') + .and_yield(' option domain-name "openstacklocal";') + .and_yield(" renew 2 2016/03/01 01:49:41;") + .and_yield(" rebind 2 2016/03/01 13:22:07;") + .and_yield(" expire 2 2016/03/01 16:40:56;") + .and_yield("}") allow(File).to receive(:open).with("/var/lib/dhcp/dhclient.eth0.leases").and_return(@double_file) end @@ -161,26 +161,26 @@ describe Ohai::System, "plugin azure" do allow(Dir).to receive(:exist?).with('C:\WindowsAzure').and_return(false) allow(File).to receive(:exist?).with("/var/lib/dhcp/dhclient.eth0.leases").and_return(true) @double_file = double("/var/lib/dhcp/dhclient.eth0.leases") - allow(@double_file).to receive(:each). - and_yield("lease {"). - and_yield(' interface "eth0";'). - and_yield(" fixed-address 10.1.0.5;"). - and_yield(' server-name "RD24BE05C6F140";'). - and_yield(" option subnet-mask 255.255.255.0;"). - and_yield(" option dhcp-lease-time 4294967295;"). - and_yield(" option routers 10.1.0.1;"). - and_yield(" option dhcp-message-type 5;"). - and_yield(" option dhcp-server-identifier 168.63.129.16;"). - and_yield(" option domain-name-servers 168.63.129.16;"). - and_yield(" option dhcp-renewal-time 4294967295;"). - and_yield(" option rfc3442-classless-static-routes 0,10,1,0,1,32,168,63,129,16,10,1,0,1;"). - and_yield(" option unknown-245 a8:3f:81:10;"). - and_yield(" option dhcp-rebinding-time 4294967295;"). - and_yield(' option domain-name "v4wvfurds4relghweduc4zqjmd.dx.internal.cloudapp.net";'). - and_yield(" renew 5 2152/03/10 09:03:39;"). - and_yield(" rebind 5 2152/03/10 09:03:39;"). - and_yield(" expire 5 2152/03/10 09:03:39;"). - and_yield("}") + allow(@double_file).to receive(:each) + .and_yield("lease {") + .and_yield(' interface "eth0";') + .and_yield(" fixed-address 10.1.0.5;") + .and_yield(' server-name "RD24BE05C6F140";') + .and_yield(" option subnet-mask 255.255.255.0;") + .and_yield(" option dhcp-lease-time 4294967295;") + .and_yield(" option routers 10.1.0.1;") + .and_yield(" option dhcp-message-type 5;") + .and_yield(" option dhcp-server-identifier 168.63.129.16;") + .and_yield(" option domain-name-servers 168.63.129.16;") + .and_yield(" option dhcp-renewal-time 4294967295;") + .and_yield(" option rfc3442-classless-static-routes 0,10,1,0,1,32,168,63,129,16,10,1,0,1;") + .and_yield(" option unknown-245 a8:3f:81:10;") + .and_yield(" option dhcp-rebinding-time 4294967295;") + .and_yield(' option domain-name "v4wvfurds4relghweduc4zqjmd.dx.internal.cloudapp.net";') + .and_yield(" renew 5 2152/03/10 09:03:39;") + .and_yield(" rebind 5 2152/03/10 09:03:39;") + .and_yield(" expire 5 2152/03/10 09:03:39;") + .and_yield("}") allow(File).to receive(:open).with("/var/lib/dhcp/dhclient.eth0.leases").and_return(@double_file) end @@ -193,9 +193,9 @@ describe Ohai::System, "plugin azure" do end it "does not return metadata information" do - allow(plugin).to receive(:can_socket_connect?). - with(Ohai::Mixin::AzureMetadata::AZURE_METADATA_ADDR, 80). - and_return(true) + allow(plugin).to receive(:can_socket_connect?) + .with(Ohai::Mixin::AzureMetadata::AZURE_METADATA_ADDR, 80) + .and_return(true) allow(plugin).to receive(:fetch_metadata).and_return(nil) plugin.run @@ -207,9 +207,9 @@ describe Ohai::System, "plugin azure" do describe "with responsive metadata endpoint" do before(:each) do allow(plugin).to receive(:hint?).with("azure").and_return({}) - allow(plugin).to receive(:can_socket_connect?). - with(Ohai::Mixin::AzureMetadata::AZURE_METADATA_ADDR, 80). - and_return(true) + allow(plugin).to receive(:can_socket_connect?) + .with(Ohai::Mixin::AzureMetadata::AZURE_METADATA_ADDR, 80) + .and_return(true) allow(plugin).to receive(:fetch_metadata).and_return(response_data) plugin.run end diff --git a/spec/unit/plugins/bsd/filesystem_spec.rb b/spec/unit/plugins/bsd/filesystem_spec.rb index e9a41235..4f3e2fcd 100644 --- a/spec/unit/plugins/bsd/filesystem_spec.rb +++ b/spec/unit/plugins/bsd/filesystem_spec.rb @@ -1,7 +1,7 @@ # # Author:: Matthew Kent (<mkent@magoazul.com>) # Author:: Tim Smith (<tsmith@chef.io>) -# Copyright:: Copyright (c) 2011-2016 Chef Software, Inc. +# Copyright:: Copyright (c) 2011-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -31,18 +31,18 @@ describe Ohai::System, "BSD filesystem plugin" do describe "when gathering filesystem usage data from df" do before(:each) do - @stdout = <<-DF -Filesystem 1K-blocks Used Avail Capacity Mounted on -/dev/ada0p2 9637788 3313504 5553264 37% / -devfs 1 1 0 100% /dev + @stdout = <<~DF + Filesystem 1K-blocks Used Avail Capacity Mounted on + /dev/ada0p2 9637788 3313504 5553264 37% / + devfs 1 1 0 100% /dev DF allow(plugin).to receive(:shell_out).with("df").and_return(mock_shell_out(0, @stdout, "")) - @inode_stdout = <<-DFi -Filesystem 512-blocks Used Avail Capacity iused ifree %iused Mounted on -/dev/ada0p2 15411832 5109256 9069632 36% 252576 790750 24% / -devfs 2 2 0 100% 0 0 100% /dev -DFi + @inode_stdout = <<~DFI + Filesystem 512-blocks Used Avail Capacity iused ifree %iused Mounted on + /dev/ada0p2 15411832 5109256 9069632 36% 252576 790750 24% / + devfs 2 2 0 100% 0 0 100% /dev +DFI allow(plugin).to receive(:shell_out).with("df -iP").and_return(mock_shell_out(0, @inode_stdout, "")) end @@ -103,9 +103,9 @@ DFi describe "when gathering mounted filesystem data from mount" do before(:each) do - @stdout = <<-MOUNT -/dev/ada0p2 on / (ufs, local, journaled soft-updates) -devfs on /dev (devfs, local, multilabel) + @stdout = <<~MOUNT + /dev/ada0p2 on / (ufs, local, journaled soft-updates) + devfs on /dev (devfs, local, multilabel) MOUNT allow(plugin).to receive(:shell_out).with("mount -l").and_return(mock_shell_out(0, @stdout, "")) end diff --git a/spec/unit/plugins/bsd/virtualization_spec.rb b/spec/unit/plugins/bsd/virtualization_spec.rb index 81f5759c..1a28f601 100644 --- a/spec/unit/plugins/bsd/virtualization_spec.rb +++ b/spec/unit/plugins/bsd/virtualization_spec.rb @@ -23,7 +23,7 @@ describe Ohai::System, "BSD virtualization plugin" do @plugin = get_plugin("bsd/virtualization") allow(@plugin).to receive(:collect_os).and_return(:freebsd) allow(@plugin).to receive(:shell_out).with("sysctl -n security.jail.jailed").and_return(mock_shell_out(0, "0", "")) - allow(@plugin).to receive(:shell_out).with("#{Ohai.abs_path( "/sbin/kldstat" )}").and_return(mock_shell_out(0, "", "")) + allow(@plugin).to receive(:shell_out).with((Ohai.abs_path( "/sbin/kldstat" )).to_s).and_return(mock_shell_out(0, "", "")) allow(@plugin).to receive(:shell_out).with("jls -nd").and_return(mock_shell_out(0, "", "")) allow(@plugin).to receive(:shell_out).with("sysctl -n hw.model").and_return(mock_shell_out(0, "", "")) allow(@plugin).to receive(:shell_out).with("sysctl -n kern.vm_guest").and_return(mock_shell_out(0, "", "")) @@ -72,12 +72,12 @@ describe Ohai::System, "BSD virtualization plugin" do context "when on a virtualbox guest" do before do - @vbox_guest = <<-OUT -Id Refs Address Size Name -1 40 0xffffffff80100000 d20428 kernel -7 3 0xffffffff81055000 41e88 vboxguest.ko + @vbox_guest = <<~OUT + Id Refs Address Size Name + 1 40 0xffffffff80100000 d20428 kernel + 7 3 0xffffffff81055000 41e88 vboxguest.ko OUT - allow(@plugin).to receive(:shell_out).with("#{Ohai.abs_path("/sbin/kldstat")}").and_return(mock_shell_out(0, @vbox_guest, "")) + allow(@plugin).to receive(:shell_out).with((Ohai.abs_path("/sbin/kldstat")).to_s).and_return(mock_shell_out(0, @vbox_guest, "")) end it "detects we are a guest" do @@ -90,10 +90,10 @@ OUT context "when on a virtualbox host" do before do - @stdout = <<-OUT -Id Refs Address Size Name -1 40 0xffffffff80100000 d20428 kernel -7 3 0xffffffff81055000 41e88 vboxdrv.ko + @stdout = <<~OUT + Id Refs Address Size Name + 1 40 0xffffffff80100000 d20428 kernel + 7 3 0xffffffff81055000 41e88 vboxdrv.ko OUT allow(@plugin).to receive(:shell_out).with("/sbin/kldstat").and_return(mock_shell_out(0, @stdout, "")) end diff --git a/spec/unit/plugins/c_spec.rb b/spec/unit/plugins/c_spec.rb index 0f4286c7..b6814a08 100644 --- a/spec/unit/plugins/c_spec.rb +++ b/spec/unit/plugins/c_spec.rb @@ -18,64 +18,64 @@ require_relative "../../spec_helper.rb" -C_GCC = <<EOF -Using built-in specs. -COLLECT_GCC=gcc -COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -Target: x86_64-linux-gnu -Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu -Thread model: posix -gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) +C_GCC = <<~EOF.freeze + Using built-in specs. + COLLECT_GCC=gcc + COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper + Target: x86_64-linux-gnu + Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu + Thread model: posix + gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) EOF -C_GLIBC = <<EOF -GNU C Library stable release version 2.5, by Roland McGrath et al. -Copyright (C) 2006 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. -There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A -PARTICULAR PURPOSE. -Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-44). -Compiled on a Linux 2.6.9 system on 2009-09-02. -Available extensions: - The C stubs add-on version 2.1.2. - crypt add-on version 2.1 by Michael Glad and others - GNU Libidn by Simon Josefsson - GNU libio by Per Bothner - NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk - Native POSIX Threads Library by Ulrich Drepper et al - BIND-8.2.3-T5B - RT using linux kernel aio -Thread-local storage support included. -For bug reporting instructions, please see: -<http://www.gnu.org/software/libc/bugs.html>. +C_GLIBC = <<~EOF.freeze + GNU C Library stable release version 2.5, by Roland McGrath et al. + Copyright (C) 2006 Free Software Foundation, Inc. + This is free software; see the source for copying conditions. + There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A + PARTICULAR PURPOSE. + Compiled by GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-44). + Compiled on a Linux 2.6.9 system on 2009-09-02. + Available extensions: + The C stubs add-on version 2.1.2. + crypt add-on version 2.1 by Michael Glad and others + GNU Libidn by Simon Josefsson + GNU libio by Per Bothner + NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk + Native POSIX Threads Library by Ulrich Drepper et al + BIND-8.2.3-T5B + RT using linux kernel aio + Thread-local storage support included. + For bug reporting instructions, please see: + <http://www.gnu.org/software/libc/bugs.html>. EOF -C_CL = <<EOF -Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 -Copyright (C) Microsoft Corporation. All rights reserved. +C_CL = <<~EOF.freeze + Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 + Copyright (C) Microsoft Corporation. All rights reserved. EOF -C_VS = <<EOF +C_VS = <<~EOF.freeze -Microsoft (R) Visual Studio Version 8.0.50727.762. -Copyright (C) Microsoft Corp 1984-2005. All rights reserved. + Microsoft (R) Visual Studio Version 8.0.50727.762. + Copyright (C) Microsoft Corp 1984-2005. All rights reserved. EOF -C_XLC = <<EOF -IBM XL C/C++ Enterprise Edition for AIX, V9.0 -Version: 09.00.0000.0000 +C_XLC = <<~EOF.freeze + IBM XL C/C++ Enterprise Edition for AIX, V9.0 + Version: 09.00.0000.0000 EOF -C_SUN = <<EOF -cc: Sun C 5.8 Patch 121016-06 2007/08/01 +C_SUN = <<~EOF.freeze + cc: Sun C 5.8 Patch 121016-06 2007/08/01 EOF -C_HPUX = <<EOF -/opt/ansic/bin/cc: - $Revision: 92453-07 linker linker crt0.o B.11.47 051104 $ - LINT B.11.11.16 CXREF B.11.11.16 - HP92453-01 B.11.11.16 HP C Compiler - $ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $ +C_HPUX = <<~EOF.freeze + /opt/ansic/bin/cc: + $Revision: 92453-07 linker linker crt0.o B.11.47 051104 $ + LINT B.11.11.16 CXREF B.11.11.16 + HP92453-01 B.11.11.16 HP C Compiler + $ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $ EOF describe Ohai::System, "plugin c" do @@ -85,7 +85,7 @@ describe Ohai::System, "plugin c" do before(:each) do plugin[:languages] = Mash.new - #gcc + # gcc allow(plugin).to receive(:shell_out).with("gcc -v").and_return(mock_shell_out(0, "", C_GCC)) end @@ -95,7 +95,7 @@ describe Ohai::System, "plugin c" do allow(plugin).to receive(:shell_out).with("xlc -qversion").and_return(mock_shell_out(0, C_XLC, "")) end - #ibm xlc + # ibm xlc it "gets the xlc version from running xlc -qversion" do expect(plugin).to receive(:shell_out).with("xlc -qversion").and_return(mock_shell_out(0, C_XLC, "")) plugin.run @@ -138,7 +138,7 @@ describe Ohai::System, "plugin c" do allow(plugin).to receive(:shell_out).with("what /opt/ansic/bin/cc").and_return(mock_shell_out(0, C_HPUX, "")) end - #hpux cc + # hpux cc it "gets the cc version from running what cc" do expect(plugin).to receive(:shell_out).with("what /opt/ansic/bin/cc").and_return(mock_shell_out(0, C_HPUX, "")) plugin.run @@ -194,7 +194,7 @@ describe Ohai::System, "plugin c" do allow(plugin).to receive(:shell_out).with("devenv.com /\?").and_return(mock_shell_out(0, C_VS, "")) end - #ms cl + # ms cl it "gets the cl version from running cl /?" do expect(plugin).to receive(:shell_out).with("cl /\?") plugin.run @@ -223,7 +223,7 @@ describe Ohai::System, "plugin c" do expect(plugin[:languages][:c]).not_to be_empty # expect other attributes end - #ms vs + # ms vs it "gets the vs version from running devenv.com /?" do expect(plugin).to receive(:shell_out).with("devenv.com /\?").and_return(mock_shell_out(0, C_VS, "")) plugin.run @@ -259,11 +259,11 @@ describe Ohai::System, "plugin c" do # glibc allow(plugin).to receive(:shell_out).with("/lib/libc.so.6").and_return(mock_shell_out(0, C_GLIBC, "")) allow(plugin).to receive(:shell_out).with("/lib64/libc.so.6").and_return(mock_shell_out(0, C_GLIBC, "")) - #sun pro + # sun pro allow(plugin).to receive(:shell_out).with("cc -V -flags").and_return(mock_shell_out(0, "", C_SUN)) end - #gcc + # gcc it "gets the gcc version from running gcc -v" do expect(plugin).to receive(:shell_out).with("gcc -v") plugin.run @@ -307,7 +307,7 @@ describe Ohai::System, "plugin c" do expect(plugin[:languages][:c]).not_to be_empty # expect other attributes end - #glibc + # glibc it "gets the glibc x.x.x version from running /lib/libc.so.6" do expect(plugin).to receive(:shell_out).with("/lib/libc.so.6") plugin.run @@ -345,7 +345,7 @@ describe Ohai::System, "plugin c" do expect(plugin.languages[:c][:glibc][:version]).to eql("2.5") end - #sun pro + # sun pro it "gets the cc version from running cc -V -flags" do expect(plugin).to receive(:shell_out).with("cc -V -flags").and_return(mock_shell_out(0, "", C_SUN)) plugin.run diff --git a/spec/unit/plugins/chef_spec.rb b/spec/unit/plugins/chef_spec.rb index 672a172c..773fa349 100644 --- a/spec/unit/plugins/chef_spec.rb +++ b/spec/unit/plugins/chef_spec.rb @@ -27,18 +27,18 @@ begin @plugin = get_plugin("chef") end - it "should set [:chef_packages][:chef][:version] to the current chef version", :if => defined?(Chef) do + it "should set [:chef_packages][:chef][:version] to the current chef version", if: defined?(Chef) do @plugin.run expect(@plugin[:chef_packages][:chef][:version]).to eq(Chef::VERSION) end - pending "would set [:chef_packages][:chef][:version] if chef was available", :unless => defined?(Chef) + pending "would set [:chef_packages][:chef][:version] if chef was available", unless: defined?(Chef) end rescue LoadError # the chef module is not available, ignoring. describe Ohai::System, "plugin chef" do - pending "would set [:chef_packages][:chef][:version] if chef was available", :unless => defined?(Chef) + pending "would set [:chef_packages][:chef][:version] if chef was available", unless: defined?(Chef) end end diff --git a/spec/unit/plugins/darwin/cpu_spec.rb b/spec/unit/plugins/darwin/cpu_spec.rb index a6945962..1ad65e30 100644 --- a/spec/unit/plugins/darwin/cpu_spec.rb +++ b/spec/unit/plugins/darwin/cpu_spec.rb @@ -21,60 +21,60 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "Darwin cpu plugin" do before(:each) do @plugin = get_plugin("darwin/cpu") - @stdout = <<-CTL -hw.ncpu: 8 -hw.byteorder: 1234 -hw.memsize: 17179869184 -hw.activecpu: 8 -hw.packages: 1 -hw.tbfrequency: 1000000000 -hw.l3cachesize: 6291456 -hw.l2cachesize: 262144 -hw.l1dcachesize: 32768 -hw.l1icachesize: 32768 -hw.cachelinesize: 64 -hw.cpufrequency: 2800000000 -hw.busfrequency: 100000000 -hw.pagesize32: 4096 -hw.pagesize: 4096 -hw.cpufamily: 280134364 -hw.cpu64bit_capable: 1 -hw.cpusubtype: 8 -hw.cputype: 7 -hw.logicalcpu_max: 8 -hw.logicalcpu: 8 -hw.physicalcpu_max: 4 -hw.physicalcpu: 4 -hw.targettype: Mac -hw.cputhreadtype: 1 -machdep.cpu.thread_count: 8 -machdep.cpu.core_count: 4 -machdep.cpu.address_bits.virtual: 48 -machdep.cpu.address_bits.physical: 39 -machdep.cpu.cache.size: 256 -machdep.cpu.cache.L2_associativity: 8 -machdep.cpu.cache.linesize: 64 -machdep.cpu.processor_flag: 5 -machdep.cpu.microcode_version: 15 -machdep.cpu.cores_per_package: 8 -machdep.cpu.logical_per_package: 16 -machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT RDTSCP TSCI -machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 HLE AVX2 BMI2 INVPCID RTM FPU_CSDS -machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C -machdep.cpu.brand: 0 -machdep.cpu.signature: 263777 -machdep.cpu.extfeature_bits: 142473169152 -machdep.cpu.leaf7_feature_bits: 12219 -machdep.cpu.feature_bits: 9221960262849657855 -machdep.cpu.stepping: 1 -machdep.cpu.extfamily: 0 -machdep.cpu.extmodel: 4 -machdep.cpu.model: 70 -machdep.cpu.family: 6 -machdep.cpu.brand_string: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz -machdep.cpu.vendor: GenuineIntel -machdep.cpu.max_ext: 2147483656 -machdep.cpu.max_basic: 13 + @stdout = <<~CTL + hw.ncpu: 8 + hw.byteorder: 1234 + hw.memsize: 17179869184 + hw.activecpu: 8 + hw.packages: 1 + hw.tbfrequency: 1000000000 + hw.l3cachesize: 6291456 + hw.l2cachesize: 262144 + hw.l1dcachesize: 32768 + hw.l1icachesize: 32768 + hw.cachelinesize: 64 + hw.cpufrequency: 2800000000 + hw.busfrequency: 100000000 + hw.pagesize32: 4096 + hw.pagesize: 4096 + hw.cpufamily: 280134364 + hw.cpu64bit_capable: 1 + hw.cpusubtype: 8 + hw.cputype: 7 + hw.logicalcpu_max: 8 + hw.logicalcpu: 8 + hw.physicalcpu_max: 4 + hw.physicalcpu: 4 + hw.targettype: Mac + hw.cputhreadtype: 1 + machdep.cpu.thread_count: 8 + machdep.cpu.core_count: 4 + machdep.cpu.address_bits.virtual: 48 + machdep.cpu.address_bits.physical: 39 + machdep.cpu.cache.size: 256 + machdep.cpu.cache.L2_associativity: 8 + machdep.cpu.cache.linesize: 64 + machdep.cpu.processor_flag: 5 + machdep.cpu.microcode_version: 15 + machdep.cpu.cores_per_package: 8 + machdep.cpu.logical_per_package: 16 + machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT RDTSCP TSCI + machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 HLE AVX2 BMI2 INVPCID RTM FPU_CSDS + machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C + machdep.cpu.brand: 0 + machdep.cpu.signature: 263777 + machdep.cpu.extfeature_bits: 142473169152 + machdep.cpu.leaf7_feature_bits: 12219 + machdep.cpu.feature_bits: 9221960262849657855 + machdep.cpu.stepping: 1 + machdep.cpu.extfamily: 0 + machdep.cpu.extmodel: 4 + machdep.cpu.model: 70 + machdep.cpu.family: 6 + machdep.cpu.brand_string: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz + machdep.cpu.vendor: GenuineIntel + machdep.cpu.max_ext: 2147483656 + machdep.cpu.max_basic: 13 CTL allow(@plugin).to receive(:collect_os).and_return(:darwin) diff --git a/spec/unit/plugins/darwin/filesystem_spec.rb b/spec/unit/plugins/darwin/filesystem_spec.rb index 17ffb071..aaafbd13 100644 --- a/spec/unit/plugins/darwin/filesystem_spec.rb +++ b/spec/unit/plugins/darwin/filesystem_spec.rb @@ -29,14 +29,14 @@ describe Ohai::System, "darwin filesystem plugin" do describe "when gathering filesystem usage data from df" do before(:each) do - @stdout = <<-DF -Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on -/dev/disk0s2 488555536 313696448 174347088 65% 39276054 21793386 64% / -devfs 385 385 0 100% 666 0 100% /dev -map /etc/auto.direct 0 0 0 100% 0 0 100% /mnt/vol -map -hosts 0 0 0 100% 0 0 100% /net -map -static 0 0 0 100% 0 0 100% /mobile_symbol -deweyfs@osxfuse0 0 0 0 100% 0 0 100% /mnt/dewey + @stdout = <<~DF + Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on + /dev/disk0s2 488555536 313696448 174347088 65% 39276054 21793386 64% / + devfs 385 385 0 100% 666 0 100% /dev + map /etc/auto.direct 0 0 0 100% 0 0 100% /mnt/vol + map -hosts 0 0 0 100% 0 0 100% /net + map -static 0 0 0 100% 0 0 100% /mobile_symbol + deweyfs@osxfuse0 0 0 0 100% 0 0 100% /mnt/dewey DF allow(plugin).to receive(:shell_out).with("df -i").and_return(mock_shell_out(0, @stdout, "")) end @@ -70,13 +70,13 @@ DF describe "when gathering mounted filesystem data from mount" do before(:each) do - @stdout = <<-MOUNT -/dev/disk0s2 on / (hfs, local, journaled) -devfs on /dev (devfs, local, nobrowse) -map /etc/auto.direct on /mnt/vol (autofs, automounted, nobrowse) -map -hosts on /net (autofs, nosuid, automounted, nobrowse) -map -static on /mobile_symbol (autofs, automounted, nobrowse) -deweyfs@osxfuse0 on /mnt/dewey (osxfusefs, synchronous, nobrowse) + @stdout = <<~MOUNT + /dev/disk0s2 on / (hfs, local, journaled) + devfs on /dev (devfs, local, nobrowse) + map /etc/auto.direct on /mnt/vol (autofs, automounted, nobrowse) + map -hosts on /net (autofs, nosuid, automounted, nobrowse) + map -static on /mobile_symbol (autofs, automounted, nobrowse) + deweyfs@osxfuse0 on /mnt/dewey (osxfusefs, synchronous, nobrowse) MOUNT allow(plugin).to receive(:shell_out).with("mount").and_return(mock_shell_out(0, @stdout, "")) end @@ -96,15 +96,15 @@ MOUNT describe "when gathering filesystem data with devices mounted more than once" do before(:each) do - @dfstdout = <<-DF -Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on -/dev/disk0s2 488555536 313696448 174347088 65% 39276054 21793386 64% / -devfs 385 385 0 100% 666 0 100% /dev -map /etc/auto.direct 0 0 0 100% 0 0 100% /mnt/vol -map -hosts 0 0 0 100% 0 0 100% /net -map -static 0 0 0 100% 0 0 100% /mobile_symbol -deweyfs@osxfuse0 0 0 0 100% 0 0 100% /mnt/dewey -/dev/disk0s2 488555536 313696448 174347088 65% 39276054 21793386 64% /another/mountpoint + @dfstdout = <<~DF + Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on + /dev/disk0s2 488555536 313696448 174347088 65% 39276054 21793386 64% / + devfs 385 385 0 100% 666 0 100% /dev + map /etc/auto.direct 0 0 0 100% 0 0 100% /mnt/vol + map -hosts 0 0 0 100% 0 0 100% /net + map -static 0 0 0 100% 0 0 100% /mobile_symbol + deweyfs@osxfuse0 0 0 0 100% 0 0 100% /mnt/dewey + /dev/disk0s2 488555536 313696448 174347088 65% 39276054 21793386 64% /another/mountpoint DF allow(plugin).to receive(:shell_out).with("df -i").and_return(mock_shell_out(0, @dfstdout, "")) end @@ -117,16 +117,16 @@ DF describe "when gathering filesystem data with double-mounts" do before(:each) do - @dfstdout = <<-DF -Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on -/dev/disk0s2 488555536 313696448 174347088 65% 39276054 21793386 64% / -devfs 385 385 0 100% 666 0 100% /dev -map /etc/auto.direct 0 0 0 100% 0 0 100% /mnt/vol -map -hosts 0 0 0 100% 0 0 100% /net -map -static 0 0 0 100% 0 0 100% /mobile_symbol -deweyfs@osxfuse0 0 0 0 100% 0 0 100% /mnt/dewey -/dev/disk0s3 488555536 313696448 174347088 65% 39276054 21793386 64% /mnt -/dev/disk0s4 488555536 313696448 174347088 65% 39276054 21793386 64% /mnt + @dfstdout = <<~DF + Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on + /dev/disk0s2 488555536 313696448 174347088 65% 39276054 21793386 64% / + devfs 385 385 0 100% 666 0 100% /dev + map /etc/auto.direct 0 0 0 100% 0 0 100% /mnt/vol + map -hosts 0 0 0 100% 0 0 100% /net + map -static 0 0 0 100% 0 0 100% /mobile_symbol + deweyfs@osxfuse0 0 0 0 100% 0 0 100% /mnt/dewey + /dev/disk0s3 488555536 313696448 174347088 65% 39276054 21793386 64% /mnt + /dev/disk0s4 488555536 313696448 174347088 65% 39276054 21793386 64% /mnt DF allow(plugin).to receive(:shell_out).with("df -i").and_return(mock_shell_out(0, @dfstdout, "")) end diff --git a/spec/unit/plugins/darwin/hardware_system_profiler_output.rb b/spec/unit/plugins/darwin/hardware_system_profiler_output.rb index d56f2223..212d563a 100644 --- a/spec/unit/plugins/darwin/hardware_system_profiler_output.rb +++ b/spec/unit/plugins/darwin/hardware_system_profiler_output.rb @@ -1,1110 +1,1110 @@ module HardwareSystemProfilerOutput - HARDWARE = <<hardware_output -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<array> - <dict> - <key>_SPCommandLineArguments</key> + HARDWARE = <<~HARDWARE_OUTPUT.freeze + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> <array> - <string>/usr/sbin/system_profiler</string> - <string>-nospawn</string> - <string>-xml</string> - <string>SPHardwareDataType</string> - <string>-detailLevel</string> - <string>full</string> - </array> - <key>_SPCompletionInterval</key> - <real>0.095997989177703857</real> - <key>_SPResponseTime</key> - <real>0.21922904253005981</real> - <key>_dataType</key> - <string>SPHardwareDataType</string> - <key>_detailLevel</key> - <string>-2</string> - <key>_items</key> - <array> - <dict> - <key>SMC_version_system</key> - <string>2.16f68</string> - <key>_name</key> - <string>hardware_overview</string> - <key>boot_rom_version</key> - <string>MBP111.0138.B17</string> - <key>cpu_type</key> - <string>Intel Core i7</string> - <key>current_processor_speed</key> - <string>3 GHz</string> - <key>l2_cache_core</key> - <string>256 KB</string> - <key>l3_cache</key> - <string>4 MB</string> - <key>machine_model</key> - <string>MacBookPro11,1</string> - <key>machine_name</key> - <string>MacBook Pro</string> - <key>number_processors</key> - <integer>2</integer> - <key>packages</key> - <integer>1</integer> - <key>physical_memory</key> - <string>16 GB</string> - <key>platform_UUID</key> - <string>F1A4AE0F-84A8-45D8-83C7-F3F904464FC5</string> - <key>serial_number</key> - <string>ABCDEFG12345</string> - </dict> - </array> - <key>_parentDataType</key> - <string>SPRootDataType</string> - <key>_properties</key> - <dict> - <key>LOM_revision</key> - <dict> - <key>_order</key> - <string>85</string> - </dict> - <key>Lightshow_version</key> - <dict> - <key>_order</key> - <string>83</string> - <key>_suppressLocalization</key> - <string>YES</string> - </dict> - <key>MMM_state</key> - <dict> - <key>_order</key> - <string>70</string> - </dict> - <key>SMC_version_other</key> - <dict> - <key>_order</key> - <string>82</string> - </dict> - <key>SMC_version_riser</key> - <dict> - <key>_order</key> - <string>81</string> - </dict> - <key>SMC_version_system</key> - <dict> - <key>_order</key> - <string>80</string> - <key>_suppressLocalization</key> - <string>YES</string> - </dict> - <key>apple_rom_info</key> - <dict> - <key>_order</key> - <string>53</string> - </dict> - <key>boot_rom_release_date</key> - <dict> - <key>_order</key> - <string>52</string> - </dict> - <key>boot_rom_vendor</key> - <dict> - <key>_order</key> - <string>50</string> - </dict> - <key>boot_rom_version</key> - <dict> - <key>_order</key> - <string>51</string> - </dict> - <key>bus_speed</key> - <dict> - <key>_order</key> - <string>45</string> - </dict> - <key>cores_per_package</key> - <dict> - <key>_order</key> - <string>24</string> - </dict> - <key>cpu_interconnect_speed</key> - <dict> - <key>_order</key> - <string>46</string> - </dict> - <key>cpu_type</key> - <dict> - <key>_order</key> - <string>15</string> - </dict> - <key>current_processor_speed</key> - <dict> - <key>_order</key> - <string>17</string> - </dict> - <key>l2_cache</key> - <dict> - <key>_order</key> - <string>26</string> - </dict> - <key>l2_cache_core</key> - <dict> - <key>_order</key> - <string>26</string> - </dict> - <key>l2_cache_share</key> - <dict> - <key>_order</key> - <string>26</string> - </dict> - <key>l2_cache_size</key> - <dict> - <key>_order</key> - <string>26</string> - </dict> - <key>l3_cache</key> - <dict> - <key>_order</key> - <string>27</string> - </dict> - <key>l3_cache_processor</key> - <dict> - <key>_order</key> - <string>27</string> - </dict> - <key>l3_cache_size</key> - <dict> - <key>_order</key> - <string>27</string> - </dict> - <key>machine_model</key> - <dict> - <key>_order</key> - <string>11</string> - </dict> - <key>machine_name</key> - <dict> - <key>_order</key> - <string>10</string> - </dict> - <key>maximum_processor_speed</key> - <dict> - <key>_order</key> - <string>19</string> - </dict> - <key>minimum_processor_speed</key> - <dict> - <key>_order</key> - <string>18</string> - </dict> - <key>number_cpus</key> - <dict> - <key>_order</key> - <string>20</string> - </dict> - <key>number_processors</key> - <dict> - <key>_order</key> - <string>22</string> - </dict> - <key>packages</key> - <dict> - <key>_order</key> - <string>20</string> - </dict> - <key>physical_memory</key> - <dict> - <key>_order</key> - <string>40</string> - </dict> - <key>platform_UUID</key> - <dict> - <key>_detailLevel</key> - <string>0</string> - <key>_order</key> - <string>98</string> - </dict> - <key>platform_cpu_features</key> - <dict> - <key>_order</key> - <string>30</string> - </dict> - <key>platform_cpu_htt</key> - <dict> - <key>_order</key> - <string>28</string> - </dict> - <key>platform_cpu_vendor</key> - <dict> - <key>_order</key> - <string>12</string> - </dict> - <key>platform_manufacturer</key> - <dict> - <key>_order</key> - <string>4</string> - </dict> - <key>platform_product_name</key> - <dict> - <key>_order</key> - <string>2</string> - </dict> - <key>platform_version</key> - <dict> - <key>_order</key> - <string>6</string> - </dict> - <key>riser_serial_number</key> - <dict> - <key>_detailLevel</key> - <string>0</string> - <key>_order</key> - <string>92</string> - </dict> - <key>sales_order_number</key> - <dict> - <key>_detailLevel</key> - <string>0</string> - <key>_order</key> - <string>95</string> - </dict> - <key>serial_number</key> - <dict> - <key>_detailLevel</key> - <string>0</string> - <key>_order</key> - <string>90</string> - </dict> - <key>volumes</key> <dict> + <key>_SPCommandLineArguments</key> + <array> + <string>/usr/sbin/system_profiler</string> + <string>-nospawn</string> + <string>-xml</string> + <string>SPHardwareDataType</string> + <string>-detailLevel</string> + <string>full</string> + </array> + <key>_SPCompletionInterval</key> + <real>0.095997989177703857</real> + <key>_SPResponseTime</key> + <real>0.21922904253005981</real> + <key>_dataType</key> + <string>SPHardwareDataType</string> <key>_detailLevel</key> - <string>0</string> + <string>-2</string> + <key>_items</key> + <array> + <dict> + <key>SMC_version_system</key> + <string>2.16f68</string> + <key>_name</key> + <string>hardware_overview</string> + <key>boot_rom_version</key> + <string>MBP111.0138.B17</string> + <key>cpu_type</key> + <string>Intel Core i7</string> + <key>current_processor_speed</key> + <string>3 GHz</string> + <key>l2_cache_core</key> + <string>256 KB</string> + <key>l3_cache</key> + <string>4 MB</string> + <key>machine_model</key> + <string>MacBookPro11,1</string> + <key>machine_name</key> + <string>MacBook Pro</string> + <key>number_processors</key> + <integer>2</integer> + <key>packages</key> + <integer>1</integer> + <key>physical_memory</key> + <string>16 GB</string> + <key>platform_UUID</key> + <string>F1A4AE0F-84A8-45D8-83C7-F3F904464FC5</string> + <key>serial_number</key> + <string>ABCDEFG12345</string> + </dict> + </array> + <key>_parentDataType</key> + <string>SPRootDataType</string> + <key>_properties</key> + <dict> + <key>LOM_revision</key> + <dict> + <key>_order</key> + <string>85</string> + </dict> + <key>Lightshow_version</key> + <dict> + <key>_order</key> + <string>83</string> + <key>_suppressLocalization</key> + <string>YES</string> + </dict> + <key>MMM_state</key> + <dict> + <key>_order</key> + <string>70</string> + </dict> + <key>SMC_version_other</key> + <dict> + <key>_order</key> + <string>82</string> + </dict> + <key>SMC_version_riser</key> + <dict> + <key>_order</key> + <string>81</string> + </dict> + <key>SMC_version_system</key> + <dict> + <key>_order</key> + <string>80</string> + <key>_suppressLocalization</key> + <string>YES</string> + </dict> + <key>apple_rom_info</key> + <dict> + <key>_order</key> + <string>53</string> + </dict> + <key>boot_rom_release_date</key> + <dict> + <key>_order</key> + <string>52</string> + </dict> + <key>boot_rom_vendor</key> + <dict> + <key>_order</key> + <string>50</string> + </dict> + <key>boot_rom_version</key> + <dict> + <key>_order</key> + <string>51</string> + </dict> + <key>bus_speed</key> + <dict> + <key>_order</key> + <string>45</string> + </dict> + <key>cores_per_package</key> + <dict> + <key>_order</key> + <string>24</string> + </dict> + <key>cpu_interconnect_speed</key> + <dict> + <key>_order</key> + <string>46</string> + </dict> + <key>cpu_type</key> + <dict> + <key>_order</key> + <string>15</string> + </dict> + <key>current_processor_speed</key> + <dict> + <key>_order</key> + <string>17</string> + </dict> + <key>l2_cache</key> + <dict> + <key>_order</key> + <string>26</string> + </dict> + <key>l2_cache_core</key> + <dict> + <key>_order</key> + <string>26</string> + </dict> + <key>l2_cache_share</key> + <dict> + <key>_order</key> + <string>26</string> + </dict> + <key>l2_cache_size</key> + <dict> + <key>_order</key> + <string>26</string> + </dict> + <key>l3_cache</key> + <dict> + <key>_order</key> + <string>27</string> + </dict> + <key>l3_cache_processor</key> + <dict> + <key>_order</key> + <string>27</string> + </dict> + <key>l3_cache_size</key> + <dict> + <key>_order</key> + <string>27</string> + </dict> + <key>machine_model</key> + <dict> + <key>_order</key> + <string>11</string> + </dict> + <key>machine_name</key> + <dict> + <key>_order</key> + <string>10</string> + </dict> + <key>maximum_processor_speed</key> + <dict> + <key>_order</key> + <string>19</string> + </dict> + <key>minimum_processor_speed</key> + <dict> + <key>_order</key> + <string>18</string> + </dict> + <key>number_cpus</key> + <dict> + <key>_order</key> + <string>20</string> + </dict> + <key>number_processors</key> + <dict> + <key>_order</key> + <string>22</string> + </dict> + <key>packages</key> + <dict> + <key>_order</key> + <string>20</string> + </dict> + <key>physical_memory</key> + <dict> + <key>_order</key> + <string>40</string> + </dict> + <key>platform_UUID</key> + <dict> + <key>_detailLevel</key> + <string>0</string> + <key>_order</key> + <string>98</string> + </dict> + <key>platform_cpu_features</key> + <dict> + <key>_order</key> + <string>30</string> + </dict> + <key>platform_cpu_htt</key> + <dict> + <key>_order</key> + <string>28</string> + </dict> + <key>platform_cpu_vendor</key> + <dict> + <key>_order</key> + <string>12</string> + </dict> + <key>platform_manufacturer</key> + <dict> + <key>_order</key> + <string>4</string> + </dict> + <key>platform_product_name</key> + <dict> + <key>_order</key> + <string>2</string> + </dict> + <key>platform_version</key> + <dict> + <key>_order</key> + <string>6</string> + </dict> + <key>riser_serial_number</key> + <dict> + <key>_detailLevel</key> + <string>0</string> + <key>_order</key> + <string>92</string> + </dict> + <key>sales_order_number</key> + <dict> + <key>_detailLevel</key> + <string>0</string> + <key>_order</key> + <string>95</string> + </dict> + <key>serial_number</key> + <dict> + <key>_detailLevel</key> + <string>0</string> + <key>_order</key> + <string>90</string> + </dict> + <key>volumes</key> + <dict> + <key>_detailLevel</key> + <string>0</string> + </dict> + </dict> + <key>_timeStamp</key> + <date>2016-07-08T19:44:04Z</date> + <key>_versionInfo</key> + <dict> + <key>com.apple.SystemProfiler.SPPlatformReporter</key> + <string>1445</string> + </dict> </dict> - </dict> - <key>_timeStamp</key> - <date>2016-07-08T19:44:04Z</date> - <key>_versionInfo</key> - <dict> - <key>com.apple.SystemProfiler.SPPlatformReporter</key> - <string>1445</string> - </dict> - </dict> -</array> -</plist> -hardware_output - - STORAGE = <<storage_output -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<array> - <dict> - <key>_SPCommandLineArguments</key> - <array> - <string>/usr/sbin/system_profiler</string> - <string>-nospawn</string> - <string>-xml</string> - <string>SPStorageDataType</string> - <string>-detailLevel</string> - <string>full</string> </array> - <key>_SPCompletionInterval</key> - <real>0.35913503170013428</real> - <key>_SPResponseTime</key> - <real>0.46972799301147461</real> - <key>_dataType</key> - <string>SPStorageDataType</string> - <key>_items</key> + </plist> +HARDWARE_OUTPUT + + STORAGE = <<~STORAGE_OUTPUT.freeze + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> <array> <dict> - <key>_name</key> - <string>Macintosh HD</string> - <key>bsd_name</key> - <string>disk1</string> - <key>com.apple.corestorage.lv</key> + <key>_SPCommandLineArguments</key> + <array> + <string>/usr/sbin/system_profiler</string> + <string>-nospawn</string> + <string>-xml</string> + <string>SPStorageDataType</string> + <string>-detailLevel</string> + <string>full</string> + </array> + <key>_SPCompletionInterval</key> + <real>0.35913503170013428</real> + <key>_SPResponseTime</key> + <real>0.46972799301147461</real> + <key>_dataType</key> + <string>SPStorageDataType</string> + <key>_items</key> + <array> + <dict> + <key>_name</key> + <string>Macintosh HD</string> + <key>bsd_name</key> + <string>disk1</string> + <key>com.apple.corestorage.lv</key> + <dict> + <key>com.apple.corestorage.lv.encrypted</key> + <string>yes</string> + <key>com.apple.corestorage.lv.encryptionType</key> + <string>AES-XTS</string> + <key>com.apple.corestorage.lv.locked</key> + <string>no</string> + <key>com.apple.corestorage.lv.revertible</key> + <string>kCoreStorageDecryptRevert</string> + <key>com.apple.corestorage.lv.uuid</key> + <string>1CD892E5-60BC-4339-AEF9-8C2818735617</string> + </dict> + <key>com.apple.corestorage.lvg</key> + <dict> + <key>com.apple.corestorage.lvg.freeSpace</key> + <integer>0</integer> + <key>com.apple.corestorage.lvg.name</key> + <string>Macintosh HD</string> + <key>com.apple.corestorage.lvg.size</key> + <integer>250006216704</integer> + <key>com.apple.corestorage.lvg.uuid</key> + <string>949A3F85-1B19-4930-8EE0-B1565D66F2C5</string> + </dict> + <key>com.apple.corestorage.pv</key> + <array> + <dict> + <key>_name</key> + <string>disk0s2</string> + <key>com.apple.corestorage.pv.size</key> + <integer>250006216704</integer> + <key>com.apple.corestorage.pv.status</key> + <string>Online</string> + <key>com.apple.corestorage.pv.uuid</key> + <string>D26DACEB-E661-4621-9BE3-355FAE611398</string> + <key>device_name</key> + <string>APPLE SSD SM0256F</string> + <key>is_internal_disk</key> + <string>yes</string> + <key>media_name</key> + <string>APPLE SSD SM0256F Media</string> + <key>medium_type</key> + <string>ssd</string> + <key>partition_map_type</key> + <string>guid_partition_map_type</string> + <key>protocol</key> + <string>PCI</string> + <key>smart_status</key> + <string>Verified</string> + </dict> + </array> + <key>file_system</key> + <string>Journaled HFS+</string> + <key>free_space_in_bytes</key> + <integer>23864803328</integer> + <key>ignore_ownership</key> + <string>no</string> + <key>mount_point</key> + <string>/</string> + <key>size_in_bytes</key> + <integer>249661751296</integer> + <key>volume_uuid</key> + <string>06A53A23-1675-31BF-93BF-E78C149C61E9</string> + <key>writable</key> + <string>yes</string> + </dict> + </array> + <key>_parentDataType</key> + <string>SPHardwareDataType</string> + <key>_properties</key> <dict> + <key>_name</key> + <dict> + <key>_isColumn</key> + <string>YES</string> + <key>_order</key> + <string>100</string> + </dict> + <key>bsd_name</key> + <dict> + <key>_isColumn</key> + <true/> + <key>_order</key> + <string>180</string> + </dict> + <key>com.apple.corestorage.lv</key> + <dict> + <key>_order</key> + <string>200</string> + </dict> + <key>com.apple.corestorage.lv.bytesConverted</key> + <dict> + <key>_isByteSize</key> + <true/> + <key>_order</key> + <string>250</string> + </dict> + <key>com.apple.corestorage.lv.conversionState</key> + <dict> + <key>_order</key> + <string>240</string> + </dict> <key>com.apple.corestorage.lv.encrypted</key> - <string>yes</string> + <dict> + <key>_order</key> + <string>220</string> + </dict> <key>com.apple.corestorage.lv.encryptionType</key> - <string>AES-XTS</string> + <dict> + <key>_order</key> + <string>225</string> + </dict> <key>com.apple.corestorage.lv.locked</key> - <string>no</string> + <dict> + <key>_order</key> + <string>230</string> + </dict> <key>com.apple.corestorage.lv.revertible</key> - <string>kCoreStorageDecryptRevert</string> + <dict> + <key>_order</key> + <string>210</string> + </dict> <key>com.apple.corestorage.lv.uuid</key> - <string>1CD892E5-60BC-4339-AEF9-8C2818735617</string> - </dict> - <key>com.apple.corestorage.lvg</key> - <dict> + <dict> + <key>_order</key> + <string>290</string> + </dict> + <key>com.apple.corestorage.lvg</key> + <dict> + <key>_order</key> + <string>400</string> + </dict> <key>com.apple.corestorage.lvg.freeSpace</key> - <integer>0</integer> + <dict> + <key>_isByteSize</key> + <true/> + <key>_order</key> + <string>430</string> + </dict> <key>com.apple.corestorage.lvg.name</key> - <string>Macintosh HD</string> + <dict> + <key>_order</key> + <string>410</string> + </dict> <key>com.apple.corestorage.lvg.size</key> - <integer>250006216704</integer> + <dict> + <key>_isByteSize</key> + <true/> + <key>_order</key> + <string>420</string> + </dict> <key>com.apple.corestorage.lvg.uuid</key> - <string>949A3F85-1B19-4930-8EE0-B1565D66F2C5</string> - </dict> - <key>com.apple.corestorage.pv</key> - <array> <dict> - <key>_name</key> - <string>disk0s2</string> - <key>com.apple.corestorage.pv.size</key> - <integer>250006216704</integer> - <key>com.apple.corestorage.pv.status</key> - <string>Online</string> - <key>com.apple.corestorage.pv.uuid</key> - <string>D26DACEB-E661-4621-9BE3-355FAE611398</string> - <key>device_name</key> - <string>APPLE SSD SM0256F</string> - <key>is_internal_disk</key> - <string>yes</string> - <key>media_name</key> - <string>APPLE SSD SM0256F Media</string> - <key>medium_type</key> - <string>ssd</string> - <key>partition_map_type</key> - <string>guid_partition_map_type</string> - <key>protocol</key> - <string>PCI</string> - <key>smart_status</key> - <string>Verified</string> + <key>_order</key> + <string>440</string> </dict> - </array> - <key>file_system</key> - <string>Journaled HFS+</string> - <key>free_space_in_bytes</key> - <integer>23864803328</integer> - <key>ignore_ownership</key> - <string>no</string> - <key>mount_point</key> - <string>/</string> - <key>size_in_bytes</key> - <integer>249661751296</integer> - <key>volume_uuid</key> - <string>06A53A23-1675-31BF-93BF-E78C149C61E9</string> - <key>writable</key> - <string>yes</string> + <key>com.apple.corestorage.pv</key> + <dict> + <key>_order</key> + <string>500</string> + </dict> + <key>com.apple.corestorage.pv.size</key> + <dict> + <key>_isByteSize</key> + <true/> + <key>_order</key> + <string>520</string> + </dict> + <key>com.apple.corestorage.pv.status</key> + <dict> + <key>_order</key> + <string>565</string> + </dict> + <key>com.apple.corestorage.pv.uuid</key> + <dict> + <key>_order</key> + <string>590</string> + </dict> + <key>device_name</key> + <dict> + <key>_order</key> + <string>505</string> + </dict> + <key>file_system</key> + <dict> + <key>_isColumn</key> + <true/> + <key>_order</key> + <string>140</string> + </dict> + <key>free_space_in_bytes</key> + <dict> + <key>_isByteSize</key> + <true/> + <key>_isColumn</key> + <true/> + <key>_order</key> + <string>110</string> + </dict> + <key>ignore_ownership</key> + <dict> + <key>_order</key> + <string>160</string> + </dict> + <key>is_internal_disk</key> + <dict> + <key>_order</key> + <string>550</string> + </dict> + <key>media_name</key> + <dict> + <key>_order</key> + <string>510</string> + </dict> + <key>medium_type</key> + <dict> + <key>_order</key> + <string>530</string> + </dict> + <key>mount_point</key> + <dict> + <key>_isColumn</key> + <true/> + <key>_order</key> + <string>130</string> + </dict> + <key>optical_media_type</key> + <dict> + <key>_order</key> + <string>535</string> + </dict> + <key>partition_map_type</key> + <dict> + <key>_order</key> + <string>560</string> + </dict> + <key>protocol</key> + <dict> + <key>_order</key> + <string>540</string> + </dict> + <key>size_in_bytes</key> + <dict> + <key>_isByteSize</key> + <string>YES</string> + <key>_isColumn</key> + <true/> + <key>_order</key> + <string>120</string> + </dict> + <key>smart_status</key> + <dict> + <key>_order</key> + <string>570</string> + </dict> + <key>volume_uuid</key> + <dict> + <key>_order</key> + <string>190</string> + </dict> + <key>volumes</key> + <dict> + <key>_detailLevel</key> + <string>0</string> + </dict> + <key>writable</key> + <dict> + <key>_order</key> + <string>150</string> + </dict> + </dict> + <key>_timeStamp</key> + <date>2016-07-08T19:45:57Z</date> + <key>_versionInfo</key> + <dict> + <key>com.apple.SystemProfiler.SPStorageReporter</key> + <string>900</string> + </dict> </dict> </array> - <key>_parentDataType</key> - <string>SPHardwareDataType</string> - <key>_properties</key> - <dict> - <key>_name</key> - <dict> - <key>_isColumn</key> - <string>YES</string> - <key>_order</key> - <string>100</string> - </dict> - <key>bsd_name</key> - <dict> - <key>_isColumn</key> - <true/> - <key>_order</key> - <string>180</string> - </dict> - <key>com.apple.corestorage.lv</key> - <dict> - <key>_order</key> - <string>200</string> - </dict> - <key>com.apple.corestorage.lv.bytesConverted</key> - <dict> - <key>_isByteSize</key> - <true/> - <key>_order</key> - <string>250</string> - </dict> - <key>com.apple.corestorage.lv.conversionState</key> - <dict> - <key>_order</key> - <string>240</string> - </dict> - <key>com.apple.corestorage.lv.encrypted</key> - <dict> - <key>_order</key> - <string>220</string> - </dict> - <key>com.apple.corestorage.lv.encryptionType</key> - <dict> - <key>_order</key> - <string>225</string> - </dict> - <key>com.apple.corestorage.lv.locked</key> - <dict> - <key>_order</key> - <string>230</string> - </dict> - <key>com.apple.corestorage.lv.revertible</key> - <dict> - <key>_order</key> - <string>210</string> - </dict> - <key>com.apple.corestorage.lv.uuid</key> - <dict> - <key>_order</key> - <string>290</string> - </dict> - <key>com.apple.corestorage.lvg</key> - <dict> - <key>_order</key> - <string>400</string> - </dict> - <key>com.apple.corestorage.lvg.freeSpace</key> - <dict> - <key>_isByteSize</key> - <true/> - <key>_order</key> - <string>430</string> - </dict> - <key>com.apple.corestorage.lvg.name</key> - <dict> - <key>_order</key> - <string>410</string> - </dict> - <key>com.apple.corestorage.lvg.size</key> - <dict> - <key>_isByteSize</key> - <true/> - <key>_order</key> - <string>420</string> - </dict> - <key>com.apple.corestorage.lvg.uuid</key> - <dict> - <key>_order</key> - <string>440</string> - </dict> - <key>com.apple.corestorage.pv</key> - <dict> - <key>_order</key> - <string>500</string> - </dict> - <key>com.apple.corestorage.pv.size</key> - <dict> - <key>_isByteSize</key> - <true/> - <key>_order</key> - <string>520</string> - </dict> - <key>com.apple.corestorage.pv.status</key> - <dict> - <key>_order</key> - <string>565</string> - </dict> - <key>com.apple.corestorage.pv.uuid</key> - <dict> - <key>_order</key> - <string>590</string> - </dict> - <key>device_name</key> - <dict> - <key>_order</key> - <string>505</string> - </dict> - <key>file_system</key> - <dict> - <key>_isColumn</key> - <true/> - <key>_order</key> - <string>140</string> - </dict> - <key>free_space_in_bytes</key> - <dict> - <key>_isByteSize</key> - <true/> - <key>_isColumn</key> - <true/> - <key>_order</key> - <string>110</string> - </dict> - <key>ignore_ownership</key> - <dict> - <key>_order</key> - <string>160</string> - </dict> - <key>is_internal_disk</key> - <dict> - <key>_order</key> - <string>550</string> - </dict> - <key>media_name</key> - <dict> - <key>_order</key> - <string>510</string> - </dict> - <key>medium_type</key> - <dict> - <key>_order</key> - <string>530</string> - </dict> - <key>mount_point</key> - <dict> - <key>_isColumn</key> - <true/> - <key>_order</key> - <string>130</string> - </dict> - <key>optical_media_type</key> - <dict> - <key>_order</key> - <string>535</string> - </dict> - <key>partition_map_type</key> - <dict> - <key>_order</key> - <string>560</string> - </dict> - <key>protocol</key> - <dict> - <key>_order</key> - <string>540</string> - </dict> - <key>size_in_bytes</key> - <dict> - <key>_isByteSize</key> - <string>YES</string> - <key>_isColumn</key> - <true/> - <key>_order</key> - <string>120</string> - </dict> - <key>smart_status</key> - <dict> - <key>_order</key> - <string>570</string> - </dict> - <key>volume_uuid</key> - <dict> - <key>_order</key> - <string>190</string> - </dict> - <key>volumes</key> - <dict> - <key>_detailLevel</key> - <string>0</string> - </dict> - <key>writable</key> - <dict> - <key>_order</key> - <string>150</string> - </dict> - </dict> - <key>_timeStamp</key> - <date>2016-07-08T19:45:57Z</date> - <key>_versionInfo</key> - <dict> - <key>com.apple.SystemProfiler.SPStorageReporter</key> - <string>900</string> - </dict> - </dict> -</array> -</plist> -storage_output + </plist> +STORAGE_OUTPUT - POWER = <<power_output -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<array> - <dict> - <key>_SPCommandLineArguments</key> - <array> - <string>/usr/sbin/system_profiler</string> - <string>-nospawn</string> - <string>-xml</string> - <string>SPPowerDataType</string> - <string>-detailLevel</string> - <string>full</string> - </array> - <key>_SPCompletionInterval</key> - <real>0.061106979846954346</real> - <key>_SPResponseTime</key> - <real>0.16731500625610352</real> - <key>_dataType</key> - <string>SPPowerDataType</string> - <key>_detailLevel</key> - <string>0</string> - <key>_items</key> + POWER = <<~POWER_OUTPUT.freeze + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> <array> <dict> - <key>_name</key> - <string>spbattery_information</string> - <key>sppower_battery_charge_info</key> - <dict> - <key>sppower_battery_current_capacity</key> - <integer>5841</integer> - <key>sppower_battery_fully_charged</key> - <string>TRUE</string> - <key>sppower_battery_is_charging</key> - <string>FALSE</string> - <key>sppower_battery_max_capacity</key> - <integer>5841</integer> - </dict> - <key>sppower_battery_health_info</key> - <dict> - <key>sppower_battery_cycle_count</key> - <integer>201</integer> - <key>sppower_battery_health</key> - <string>Good</string> - </dict> - <key>sppower_battery_installed</key> - <string>TRUE</string> - <key>sppower_battery_model_info</key> + <key>_SPCommandLineArguments</key> + <array> + <string>/usr/sbin/system_profiler</string> + <string>-nospawn</string> + <string>-xml</string> + <string>SPPowerDataType</string> + <string>-detailLevel</string> + <string>full</string> + </array> + <key>_SPCompletionInterval</key> + <real>0.061106979846954346</real> + <key>_SPResponseTime</key> + <real>0.16731500625610352</real> + <key>_dataType</key> + <string>SPPowerDataType</string> + <key>_detailLevel</key> + <string>0</string> + <key>_items</key> + <array> + <dict> + <key>_name</key> + <string>spbattery_information</string> + <key>sppower_battery_charge_info</key> + <dict> + <key>sppower_battery_current_capacity</key> + <integer>5841</integer> + <key>sppower_battery_fully_charged</key> + <string>TRUE</string> + <key>sppower_battery_is_charging</key> + <string>FALSE</string> + <key>sppower_battery_max_capacity</key> + <integer>5841</integer> + </dict> + <key>sppower_battery_health_info</key> + <dict> + <key>sppower_battery_cycle_count</key> + <integer>201</integer> + <key>sppower_battery_health</key> + <string>Good</string> + </dict> + <key>sppower_battery_installed</key> + <string>TRUE</string> + <key>sppower_battery_model_info</key> + <dict> + <key>PCB Lot Code</key> + <string>0000</string> + <key>Pack Lot Code</key> + <string>0000</string> + <key>sppower_battery_cell_revision</key> + <string>0389</string> + <key>sppower_battery_device_name</key> + <string>bq20z451</string> + <key>sppower_battery_firmware_version</key> + <string>0702</string> + <key>sppower_battery_hardware_revision</key> + <string>000a</string> + <key>sppower_battery_manufacturer</key> + <string>SMP</string> + <key>sppower_battery_serial_number</key> + <string>D123456789ABCDEFG</string> + </dict> + <key>sppower_current_amperage</key> + <integer>0</integer> + <key>sppower_current_voltage</key> + <integer>12788</integer> + </dict> + <dict> + <key>AC Power</key> + <dict> + <key>AutoPowerOff Delay</key> + <integer>14400</integer> + <key>AutoPowerOff Enabled</key> + <integer>1</integer> + <key>Current Power Source</key> + <string>TRUE</string> + <key>DarkWakeBackgroundTasks</key> + <true/> + <key>Disk Sleep Timer</key> + <integer>10</integer> + <key>Display Sleep Timer</key> + <integer>10</integer> + <key>Display Sleep Uses Dim</key> + <string>Yes</string> + <key>Hibernate Mode</key> + <integer>3</integer> + <key>PrioritizeNetworkReachabilityOverSleep</key> + <integer>0</integer> + <key>Standby Delay</key> + <integer>10800</integer> + <key>Standby Enabled</key> + <integer>1</integer> + <key>System Sleep Timer</key> + <integer>1</integer> + <key>Wake On AC Change</key> + <string>No</string> + <key>Wake On Clamshell Open</key> + <string>Yes</string> + <key>Wake On LAN</key> + <string>Yes</string> + </dict> + <key>Battery Power</key> + <dict> + <key>AutoPowerOff Delay</key> + <integer>14400</integer> + <key>AutoPowerOff Enabled</key> + <integer>1</integer> + <key>DarkWakeBackgroundTasks</key> + <false/> + <key>Disk Sleep Timer</key> + <integer>10</integer> + <key>Display Sleep Timer</key> + <integer>2</integer> + <key>Display Sleep Uses Dim</key> + <string>Yes</string> + <key>Hibernate Mode</key> + <integer>3</integer> + <key>ReduceBrightness</key> + <string>Yes</string> + <key>Standby Delay</key> + <integer>10800</integer> + <key>Standby Enabled</key> + <integer>1</integer> + <key>System Sleep Timer</key> + <integer>1</integer> + <key>Wake On AC Change</key> + <string>No</string> + <key>Wake On Clamshell Open</key> + <string>Yes</string> + </dict> + <key>_name</key> + <string>sppower_information</string> + </dict> + <dict> + <key>_name</key> + <string>sppower_hwconfig_information</string> + <key>sppower_ups_installed</key> + <string>FALSE</string> + </dict> + <dict> + <key>_name</key> + <string>sppower_ac_charger_information</string> + <key>sppower_ac_charger_ID</key> + <string>0x0100</string> + <key>sppower_ac_charger_family</key> + <string>0x0085</string> + <key>sppower_ac_charger_revision</key> + <string>0x0000</string> + <key>sppower_ac_charger_serial_number</key> + <string>0x00a1dab7</string> + <key>sppower_ac_charger_watts</key> + <string>85</string> + <key>sppower_battery_charger_connected</key> + <string>TRUE</string> + <key>sppower_battery_is_charging</key> + <string>FALSE</string> + </dict> + </array> + <key>_parentDataType</key> + <string>SPHardwareDataType</string> + <key>_properties</key> <dict> + <key>Automatic Restart On Power Loss</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>107</string> + </dict> + <key>Disk Sleep Timer</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>102</string> + </dict> + <key>Display Sleep Timer</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>103</string> + </dict> + <key>Dynamic Power Step</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>104</string> + </dict> <key>PCB Lot Code</key> - <string>0000</string> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>404</string> + </dict> <key>Pack Lot Code</key> - <string>0000</string> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>403</string> + </dict> + <key>Reduce Processor Speed</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>105</string> + </dict> + <key>Sleep On Power Button</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>106</string> + </dict> + <key>System Sleep Timer</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>101</string> + </dict> + <key>Wake On AC Change</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>108</string> + </dict> + <key>Wake On Clamshell Open</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>109</string> + </dict> + <key>Wake On LAN</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>110</string> + </dict> + <key>Wake On Modem Ring</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>111</string> + </dict> + <key>spbattery_information</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>200</string> + </dict> + <key>sppower_ac_charger_ID</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>310</string> + </dict> + <key>sppower_ac_charger_family</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>313</string> + </dict> + <key>sppower_ac_charger_firmware_version</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>318</string> + </dict> + <key>sppower_ac_charger_hardware_version</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>317</string> + </dict> + <key>sppower_ac_charger_information</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>300</string> + </dict> + <key>sppower_ac_charger_manufacturer</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>316</string> + </dict> + <key>sppower_ac_charger_name</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>315</string> + </dict> + <key>sppower_ac_charger_revision</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>312</string> + </dict> + <key>sppower_ac_charger_serial_number</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>314</string> + </dict> + <key>sppower_ac_charger_watts</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>311</string> + </dict> + <key>sppower_battery_cannot_charge</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>401</string> + </dict> <key>sppower_battery_cell_revision</key> - <string>0389</string> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>407</string> + </dict> + <key>sppower_battery_charge_info</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>2</string> + </dict> + <key>sppower_battery_charger_connected</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>302</string> + </dict> + <key>sppower_battery_depleted</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>203</string> + </dict> <key>sppower_battery_device_name</key> - <string>bq20z451</string> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>402</string> + </dict> <key>sppower_battery_firmware_version</key> - <string>0702</string> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>405</string> + </dict> <key>sppower_battery_hardware_revision</key> - <string>000a</string> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>406</string> + </dict> + <key>sppower_battery_health_info</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>3</string> + </dict> + <key>sppower_battery_installed</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>201</string> + </dict> <key>sppower_battery_manufacturer</key> - <string>SMP</string> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>401</string> + </dict> + <key>sppower_battery_model_info</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>1</string> + </dict> <key>sppower_battery_serial_number</key> - <string>D123456789ABCDEFG</string> - </dict> - <key>sppower_current_amperage</key> - <integer>0</integer> - <key>sppower_current_voltage</key> - <integer>12788</integer> - </dict> - <dict> - <key>AC Power</key> - <dict> - <key>AutoPowerOff Delay</key> - <integer>14400</integer> - <key>AutoPowerOff Enabled</key> - <integer>1</integer> - <key>Current Power Source</key> - <string>TRUE</string> - <key>DarkWakeBackgroundTasks</key> - <true/> - <key>Disk Sleep Timer</key> - <integer>10</integer> - <key>Display Sleep Timer</key> - <integer>10</integer> - <key>Display Sleep Uses Dim</key> - <string>Yes</string> - <key>Hibernate Mode</key> - <integer>3</integer> - <key>PrioritizeNetworkReachabilityOverSleep</key> - <integer>0</integer> - <key>Standby Delay</key> - <integer>10800</integer> - <key>Standby Enabled</key> - <integer>1</integer> - <key>System Sleep Timer</key> - <integer>1</integer> - <key>Wake On AC Change</key> - <string>No</string> - <key>Wake On Clamshell Open</key> - <string>Yes</string> - <key>Wake On LAN</key> - <string>Yes</string> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>400</string> + </dict> + <key>sppower_clamshell_closed</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>401</string> + </dict> + <key>sppower_current_amperage</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>206</string> + </dict> + <key>sppower_current_voltage</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>207</string> + </dict> + <key>sppower_events_info</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>500</string> + </dict> + <key>sppower_hwconfig_information</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>400</string> + </dict> + <key>sppower_information</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>100</string> + </dict> + <key>sppower_repeating_events_info</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>520</string> + </dict> + <key>sppower_scheduled_events_info</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>510</string> + </dict> + <key>sppower_watts</key> + <dict> + <key>_isColumn</key> + <string>NO</string> + <key>_order</key> + <string>301</string> + </dict> + <key>volumes</key> + <dict> + <key>_detailLevel</key> + <string>0</string> + </dict> </dict> - <key>Battery Power</key> + <key>_timeStamp</key> + <date>2016-07-08T19:46:23Z</date> + <key>_versionInfo</key> <dict> - <key>AutoPowerOff Delay</key> - <integer>14400</integer> - <key>AutoPowerOff Enabled</key> - <integer>1</integer> - <key>DarkWakeBackgroundTasks</key> - <false/> - <key>Disk Sleep Timer</key> - <integer>10</integer> - <key>Display Sleep Timer</key> - <integer>2</integer> - <key>Display Sleep Uses Dim</key> - <string>Yes</string> - <key>Hibernate Mode</key> - <integer>3</integer> - <key>ReduceBrightness</key> - <string>Yes</string> - <key>Standby Delay</key> - <integer>10800</integer> - <key>Standby Enabled</key> - <integer>1</integer> - <key>System Sleep Timer</key> - <integer>1</integer> - <key>Wake On AC Change</key> - <string>No</string> - <key>Wake On Clamshell Open</key> - <string>Yes</string> + <key>com.apple.SystemProfiler.SPPowerReporter</key> + <string>150</string> </dict> - <key>_name</key> - <string>sppower_information</string> - </dict> - <dict> - <key>_name</key> - <string>sppower_hwconfig_information</string> - <key>sppower_ups_installed</key> - <string>FALSE</string> - </dict> - <dict> - <key>_name</key> - <string>sppower_ac_charger_information</string> - <key>sppower_ac_charger_ID</key> - <string>0x0100</string> - <key>sppower_ac_charger_family</key> - <string>0x0085</string> - <key>sppower_ac_charger_revision</key> - <string>0x0000</string> - <key>sppower_ac_charger_serial_number</key> - <string>0x00a1dab7</string> - <key>sppower_ac_charger_watts</key> - <string>85</string> - <key>sppower_battery_charger_connected</key> - <string>TRUE</string> - <key>sppower_battery_is_charging</key> - <string>FALSE</string> </dict> </array> - <key>_parentDataType</key> - <string>SPHardwareDataType</string> - <key>_properties</key> - <dict> - <key>Automatic Restart On Power Loss</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>107</string> - </dict> - <key>Disk Sleep Timer</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>102</string> - </dict> - <key>Display Sleep Timer</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>103</string> - </dict> - <key>Dynamic Power Step</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>104</string> - </dict> - <key>PCB Lot Code</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>404</string> - </dict> - <key>Pack Lot Code</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>403</string> - </dict> - <key>Reduce Processor Speed</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>105</string> - </dict> - <key>Sleep On Power Button</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>106</string> - </dict> - <key>System Sleep Timer</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>101</string> - </dict> - <key>Wake On AC Change</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>108</string> - </dict> - <key>Wake On Clamshell Open</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>109</string> - </dict> - <key>Wake On LAN</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>110</string> - </dict> - <key>Wake On Modem Ring</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>111</string> - </dict> - <key>spbattery_information</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>200</string> - </dict> - <key>sppower_ac_charger_ID</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>310</string> - </dict> - <key>sppower_ac_charger_family</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>313</string> - </dict> - <key>sppower_ac_charger_firmware_version</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>318</string> - </dict> - <key>sppower_ac_charger_hardware_version</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>317</string> - </dict> - <key>sppower_ac_charger_information</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>300</string> - </dict> - <key>sppower_ac_charger_manufacturer</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>316</string> - </dict> - <key>sppower_ac_charger_name</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>315</string> - </dict> - <key>sppower_ac_charger_revision</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>312</string> - </dict> - <key>sppower_ac_charger_serial_number</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>314</string> - </dict> - <key>sppower_ac_charger_watts</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>311</string> - </dict> - <key>sppower_battery_cannot_charge</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>401</string> - </dict> - <key>sppower_battery_cell_revision</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>407</string> - </dict> - <key>sppower_battery_charge_info</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>2</string> - </dict> - <key>sppower_battery_charger_connected</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>302</string> - </dict> - <key>sppower_battery_depleted</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>203</string> - </dict> - <key>sppower_battery_device_name</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>402</string> - </dict> - <key>sppower_battery_firmware_version</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>405</string> - </dict> - <key>sppower_battery_hardware_revision</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>406</string> - </dict> - <key>sppower_battery_health_info</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>3</string> - </dict> - <key>sppower_battery_installed</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>201</string> - </dict> - <key>sppower_battery_manufacturer</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>401</string> - </dict> - <key>sppower_battery_model_info</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>1</string> - </dict> - <key>sppower_battery_serial_number</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>400</string> - </dict> - <key>sppower_clamshell_closed</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>401</string> - </dict> - <key>sppower_current_amperage</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>206</string> - </dict> - <key>sppower_current_voltage</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>207</string> - </dict> - <key>sppower_events_info</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>500</string> - </dict> - <key>sppower_hwconfig_information</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>400</string> - </dict> - <key>sppower_information</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>100</string> - </dict> - <key>sppower_repeating_events_info</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>520</string> - </dict> - <key>sppower_scheduled_events_info</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>510</string> - </dict> - <key>sppower_watts</key> - <dict> - <key>_isColumn</key> - <string>NO</string> - <key>_order</key> - <string>301</string> - </dict> - <key>volumes</key> - <dict> - <key>_detailLevel</key> - <string>0</string> - </dict> - </dict> - <key>_timeStamp</key> - <date>2016-07-08T19:46:23Z</date> - <key>_versionInfo</key> - <dict> - <key>com.apple.SystemProfiler.SPPowerReporter</key> - <string>150</string> - </dict> - </dict> -</array> -</plist> -power_output + </plist> +POWER_OUTPUT end diff --git a/spec/unit/plugins/darwin/memory_spec.rb b/spec/unit/plugins/darwin/memory_spec.rb index 904a5ea7..b4bdf907 100644 --- a/spec/unit/plugins/darwin/memory_spec.rb +++ b/spec/unit/plugins/darwin/memory_spec.rb @@ -20,23 +20,23 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "Darwin Memory Plugin" do before(:each) do - darwin_memsize = <<-DARWIN_MEMSIZE -17179869184 + darwin_memsize = <<~DARWIN_MEMSIZE + 17179869184 DARWIN_MEMSIZE - darwin_vm_stat = <<-DARWIN_VM_STAT -Mach Virtual Memory Statistics: (page size of 4096 bytes) -Pages free: 2155305. -Pages active: 924164. -Pages inactive: 189127. -Pages speculative: 531321. -Pages wired down: 391749. -"Translation faults": 14107520. -Pages copy-on-write: 810071. -Pages zero filled: 6981505. -Pages reactivated: 1397. -Pageins: 630064. -Pageouts: 0. -Object cache: 12 hits of 139872 lookups (0% hit rate) + darwin_vm_stat = <<~DARWIN_VM_STAT + Mach Virtual Memory Statistics: (page size of 4096 bytes) + Pages free: 2155305. + Pages active: 924164. + Pages inactive: 189127. + Pages speculative: 531321. + Pages wired down: 391749. + "Translation faults": 14107520. + Pages copy-on-write: 810071. + Pages zero filled: 6981505. + Pages reactivated: 1397. + Pageins: 630064. + Pageouts: 0. + Object cache: 12 hits of 139872 lookups (0% hit rate) DARWIN_VM_STAT @plugin = get_plugin("darwin/memory") diff --git a/spec/unit/plugins/darwin/network_spec.rb b/spec/unit/plugins/darwin/network_spec.rb index fdfb9b7d..65300b9f 100644 --- a/spec/unit/plugins/darwin/network_spec.rb +++ b/spec/unit/plugins/darwin/network_spec.rb @@ -20,396 +20,396 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "Darwin Network Plugin" do before(:each) do - @darwin_ifconfig = <<-DARWIN_IFCONFIG -lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 - options=3<RXCSUM,TXCSUM> - inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 - inet 127.0.0.1 netmask 0xff000000 - inet6 ::1 prefixlen 128 - inet6 fd54:185f:37df:cad2:ba8d:12ff:fe3a:32de prefixlen 128 -gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 -stf0: flags=0<> mtu 1280 -en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 - ether b8:8d:12:3a:32:de - inet6 fe80::ba8d:12ff:fe3a:32de%en1 prefixlen 64 scopeid 0x4 - inet 10.20.10.144 netmask 0xffffff00 broadcast 10.20.10.255 - inet6 2001:44b8:4186:1100:ba8d:12ff:fe3a:32de prefixlen 64 autoconf - inet6 2001:44b8:4186:1100:7dba:7a60:97a:e14a prefixlen 64 autoconf temporary - media: autoselect - status: active -p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304 - ether 0a:8d:12:3a:32:de - media: autoselect - status: inactive -en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 - options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4> - ether 3c:07:54:4e:0e:35 - media: autoselect (none) - status: inactive -fw0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 4078 - lladdr a4:b1:97:ff:fe:b9:3a:d4 - media: autoselect <full-duplex> - status: inactive -utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 - inet6 fe80::ba8d:12ff:fe3a:32de%utun0 prefixlen 64 scopeid 0x8 - inet6 fd00:6587:52d7:c87:ba8d:12ff:fe3a:32de prefixlen 64 + @darwin_ifconfig = <<~DARWIN_IFCONFIG + lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 + options=3<RXCSUM,TXCSUM> + inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 + inet 127.0.0.1 netmask 0xff000000 + inet6 ::1 prefixlen 128 + inet6 fd54:185f:37df:cad2:ba8d:12ff:fe3a:32de prefixlen 128 + gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 + stf0: flags=0<> mtu 1280 + en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 + ether b8:8d:12:3a:32:de + inet6 fe80::ba8d:12ff:fe3a:32de%en1 prefixlen 64 scopeid 0x4 + inet 10.20.10.144 netmask 0xffffff00 broadcast 10.20.10.255 + inet6 2001:44b8:4186:1100:ba8d:12ff:fe3a:32de prefixlen 64 autoconf + inet6 2001:44b8:4186:1100:7dba:7a60:97a:e14a prefixlen 64 autoconf temporary + media: autoselect + status: active + p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304 + ether 0a:8d:12:3a:32:de + media: autoselect + status: inactive + en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 + options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4> + ether 3c:07:54:4e:0e:35 + media: autoselect (none) + status: inactive + fw0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 4078 + lladdr a4:b1:97:ff:fe:b9:3a:d4 + media: autoselect <full-duplex> + status: inactive + utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 + inet6 fe80::ba8d:12ff:fe3a:32de%utun0 prefixlen 64 scopeid 0x8 + inet6 fd00:6587:52d7:c87:ba8d:12ff:fe3a:32de prefixlen 64 DARWIN_IFCONFIG - @darwin_arp = <<-DARWIN_ARP -? (10.20.10.1) at 0:4:ed:de:41:bf on en1 ifscope [ethernet] -? (10.20.10.2) at 0:1e:c9:55:7e:ee on en1 ifscope [ethernet] -? (10.20.10.6) at 34:15:9e:18:a1:20 on en1 ifscope [ethernet] -? (10.20.10.57) at cc:8:e0:e0:8a:2 on en1 ifscope [ethernet] -? (10.20.10.61) at 28:37:37:12:5:77 on en1 ifscope [ethernet] -? (10.20.10.73) at e0:f8:47:8:86:2 on en1 ifscope [ethernet] -? (10.20.10.130) at 68:a8:6d:da:2b:24 on en1 ifscope [ethernet] -? (10.20.10.138) at 8:0:37:8c:d2:23 on en1 ifscope [ethernet] -? (10.20.10.141) at b8:8d:12:28:c5:90 on en1 ifscope [ethernet] -? (10.20.10.166) at 0:1b:63:a0:1:3a on en1 ifscope [ethernet] -? (10.20.10.174) at 98:d6:bb:bd:37:ad on en1 ifscope [ethernet] -? (10.20.10.178) at 24:ab:81:2d:a3:c5 on en1 ifscope [ethernet] -? (10.20.10.181) at 78:a3:e4:e4:16:32 on en1 ifscope [ethernet] -? (10.20.10.185) at 0:26:8:9a:e8:a3 on en1 ifscope [ethernet] -? (10.20.10.200) at b8:8d:12:55:7f:7f on en1 ifscope [ethernet] -? (10.20.10.255) at ff:ff:ff:ff:ff:ff on en1 ifscope [ethernet] + @darwin_arp = <<~DARWIN_ARP + ? (10.20.10.1) at 0:4:ed:de:41:bf on en1 ifscope [ethernet] + ? (10.20.10.2) at 0:1e:c9:55:7e:ee on en1 ifscope [ethernet] + ? (10.20.10.6) at 34:15:9e:18:a1:20 on en1 ifscope [ethernet] + ? (10.20.10.57) at cc:8:e0:e0:8a:2 on en1 ifscope [ethernet] + ? (10.20.10.61) at 28:37:37:12:5:77 on en1 ifscope [ethernet] + ? (10.20.10.73) at e0:f8:47:8:86:2 on en1 ifscope [ethernet] + ? (10.20.10.130) at 68:a8:6d:da:2b:24 on en1 ifscope [ethernet] + ? (10.20.10.138) at 8:0:37:8c:d2:23 on en1 ifscope [ethernet] + ? (10.20.10.141) at b8:8d:12:28:c5:90 on en1 ifscope [ethernet] + ? (10.20.10.166) at 0:1b:63:a0:1:3a on en1 ifscope [ethernet] + ? (10.20.10.174) at 98:d6:bb:bd:37:ad on en1 ifscope [ethernet] + ? (10.20.10.178) at 24:ab:81:2d:a3:c5 on en1 ifscope [ethernet] + ? (10.20.10.181) at 78:a3:e4:e4:16:32 on en1 ifscope [ethernet] + ? (10.20.10.185) at 0:26:8:9a:e8:a3 on en1 ifscope [ethernet] + ? (10.20.10.200) at b8:8d:12:55:7f:7f on en1 ifscope [ethernet] + ? (10.20.10.255) at ff:ff:ff:ff:ff:ff on en1 ifscope [ethernet] DARWIN_ARP - @darwin_route = <<-DARWIN_ROUTE - route to: default -destination: default - mask: default - gateway: 10.20.10.1 - interface: en1 - flags: <UP,GATEWAY,DONE,STATIC,PRCLONING> - recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire - 0 0 0 0 0 0 1500 0 + @darwin_route = <<~DARWIN_ROUTE + route to: default + destination: default + mask: default + gateway: 10.20.10.1 + interface: en1 + flags: <UP,GATEWAY,DONE,STATIC,PRCLONING> + recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire + 0 0 0 0 0 0 1500 0 DARWIN_ROUTE - @darwin_netstat = <<-DARWIN_NETSTAT -Name Mtu Network Address Ipkts Ierrs Ibytes Opkts Oerrs Obytes Coll Drop -lo0 16384 <Link#1> 174982 0 25774844 174982 0 25774844 0 -lo0 16384 fe80::1%lo0 fe80:1::1 174982 - 25774844 174982 - 25774844 - - -lo0 16384 127 127.0.0.1 174982 - 25774844 174982 - 25774844 - - -lo0 16384 ::1/128 ::1 174982 - 25774844 174982 - 25774844 - - -lo0 16384 fd54:185f:3 fd54:185f:37df:ca 174982 - 25774844 174982 - 25774844 - - -gif0* 1280 <Link#2> 0 0 0 0 0 0 0 -stf0* 1280 <Link#3> 0 0 0 0 0 0 0 -en1 1500 <Link#4> b8:8d:12:3a:32:de 5921903 0 2530556736 14314573 0 18228234970 0 -en1 1500 fe80::ba8d: fe80:4::ba8d:12ff 5921903 - 2530556736 14314573 - 18228234970 - - -en1 1500 10.20.10/24 10.20.10.144 5921903 - 2530556736 14314573 - 18228234970 - - -en1 1500 2001:44b8:4 2001:44b8:4186:11 5921903 - 2530556736 14314573 - 18228234970 - - -en1 1500 2001:44b8:4 2001:44b8:4186:11 5921903 - 2530556736 14314573 - 18228234970 - - -p2p0 2304 <Link#5> 0a:8d:12:3a:32:de 0 0 0 0 0 0 0 -en0 1500 <Link#6> 3c:07:54:4e:0e:35 0 0 0 0 0 2394 0 -fw0* 4078 <Link#7> a4:b1:97:ff:fe:b9:3a:d4 0 0 0 0 0 1038 0 -utun0 1380 <Link#8> 5 0 324 13 0 740 0 -utun0 1380 fe80::ba8d: fe80:8::ba8d:12ff 5 - 324 13 - 740 - - -utun0 1380 fd00:6587:5 fd00:6587:52d7:c8 5 - 324 13 - 740 - - + @darwin_netstat = <<~DARWIN_NETSTAT + Name Mtu Network Address Ipkts Ierrs Ibytes Opkts Oerrs Obytes Coll Drop + lo0 16384 <Link#1> 174982 0 25774844 174982 0 25774844 0 + lo0 16384 fe80::1%lo0 fe80:1::1 174982 - 25774844 174982 - 25774844 - - + lo0 16384 127 127.0.0.1 174982 - 25774844 174982 - 25774844 - - + lo0 16384 ::1/128 ::1 174982 - 25774844 174982 - 25774844 - - + lo0 16384 fd54:185f:3 fd54:185f:37df:ca 174982 - 25774844 174982 - 25774844 - - + gif0* 1280 <Link#2> 0 0 0 0 0 0 0 + stf0* 1280 <Link#3> 0 0 0 0 0 0 0 + en1 1500 <Link#4> b8:8d:12:3a:32:de 5921903 0 2530556736 14314573 0 18228234970 0 + en1 1500 fe80::ba8d: fe80:4::ba8d:12ff 5921903 - 2530556736 14314573 - 18228234970 - - + en1 1500 10.20.10/24 10.20.10.144 5921903 - 2530556736 14314573 - 18228234970 - - + en1 1500 2001:44b8:4 2001:44b8:4186:11 5921903 - 2530556736 14314573 - 18228234970 - - + en1 1500 2001:44b8:4 2001:44b8:4186:11 5921903 - 2530556736 14314573 - 18228234970 - - + p2p0 2304 <Link#5> 0a:8d:12:3a:32:de 0 0 0 0 0 0 0 + en0 1500 <Link#6> 3c:07:54:4e:0e:35 0 0 0 0 0 2394 0 + fw0* 4078 <Link#7> a4:b1:97:ff:fe:b9:3a:d4 0 0 0 0 0 1038 0 + utun0 1380 <Link#8> 5 0 324 13 0 740 0 + utun0 1380 fe80::ba8d: fe80:8::ba8d:12ff 5 - 324 13 - 740 - - + utun0 1380 fd00:6587:5 fd00:6587:52d7:c8 5 - 324 13 - 740 - - DARWIN_NETSTAT - @darwin_sysctl = <<-DARWIN_SYSCTL -net.local.stream.sendspace: 8192 -net.local.stream.recvspace: 8192 -net.local.stream.tracemdns: 0 -net.local.dgram.maxdgram: 2048 -net.local.dgram.recvspace: 4096 -net.local.inflight: 0 -net.inet.ip.portrange.lowfirst: 1023 -net.inet.ip.portrange.lowlast: 600 -net.inet.ip.portrange.first: 49152 -net.inet.ip.portrange.last: 65535 -net.inet.ip.portrange.hifirst: 49152 -net.inet.ip.portrange.hilast: 65535 -net.inet.ip.forwarding: 1 -net.inet.ip.redirect: 1 -net.inet.ip.ttl: 64 -net.inet.ip.rtexpire: 12 -net.inet.ip.rtminexpire: 10 -net.inet.ip.rtmaxcache: 128 -net.inet.ip.sourceroute: 0 -net.inet.ip.intr_queue_maxlen: 50 -net.inet.ip.intr_queue_drops: 0 -net.inet.ip.accept_sourceroute: 0 -net.inet.ip.keepfaith: 0 -net.inet.ip.gifttl: 30 -net.inet.ip.subnets_are_local: 0 -net.inet.ip.mcast.maxgrpsrc: 512 -net.inet.ip.mcast.maxsocksrc: 128 -net.inet.ip.mcast.loop: 1 -net.inet.ip.check_route_selfref: 1 -net.inet.ip.use_route_genid: 1 -net.inet.ip.dummynet.hash_size: 64 -net.inet.ip.dummynet.curr_time: 0 -net.inet.ip.dummynet.ready_heap: 0 -net.inet.ip.dummynet.extract_heap: 0 -net.inet.ip.dummynet.searches: 0 -net.inet.ip.dummynet.search_steps: 0 -net.inet.ip.dummynet.expire: 1 -net.inet.ip.dummynet.max_chain_len: 16 -net.inet.ip.dummynet.red_lookup_depth: 256 -net.inet.ip.dummynet.red_avg_pkt_size: 512 -net.inet.ip.dummynet.red_max_pkt_size: 1500 -net.inet.ip.dummynet.debug: 0 -net.inet.ip.fw.enable: 1 -net.inet.ip.fw.autoinc_step: 100 -net.inet.ip.fw.one_pass: 0 -net.inet.ip.fw.debug: 0 -net.inet.ip.fw.verbose: 0 -net.inet.ip.fw.verbose_limit: 0 -net.inet.ip.fw.dyn_buckets: 256 -net.inet.ip.fw.curr_dyn_buckets: 256 -net.inet.ip.fw.dyn_count: 0 -net.inet.ip.fw.dyn_max: 4096 -net.inet.ip.fw.static_count: 2 -net.inet.ip.fw.dyn_ack_lifetime: 300 -net.inet.ip.fw.dyn_syn_lifetime: 20 -net.inet.ip.fw.dyn_fin_lifetime: 1 -net.inet.ip.fw.dyn_rst_lifetime: 1 -net.inet.ip.fw.dyn_udp_lifetime: 10 -net.inet.ip.fw.dyn_short_lifetime: 5 -net.inet.ip.fw.dyn_keepalive: 1 -net.inet.ip.maxfragpackets: 1536 -net.inet.ip.maxfragsperpacket: 128 -net.inet.ip.maxfrags: 3072 -net.inet.ip.scopedroute: 1 -net.inet.ip.check_interface: 0 -net.inet.ip.linklocal.in.allowbadttl: 1 -net.inet.ip.random_id: 1 -net.inet.ip.maxchainsent: 0 -net.inet.ip.select_srcif_debug: 0 -net.inet.icmp.maskrepl: 0 -net.inet.icmp.icmplim: 250 -net.inet.icmp.timestamp: 0 -net.inet.icmp.drop_redirect: 0 -net.inet.icmp.log_redirect: 0 -net.inet.icmp.bmcastecho: 1 -net.inet.igmp.recvifkludge: 1 -net.inet.igmp.sendra: 1 -net.inet.igmp.sendlocal: 1 -net.inet.igmp.v1enable: 1 -net.inet.igmp.v2enable: 1 -net.inet.igmp.legacysupp: 0 -net.inet.igmp.default_version: 3 -net.inet.igmp.gsrdelay: 10 -net.inet.igmp.debug: 0 -net.inet.tcp.rfc1323: 1 -net.inet.tcp.rfc1644: 0 -net.inet.tcp.mssdflt: 512 -net.inet.tcp.keepidle: 7200000 -net.inet.tcp.keepintvl: 75000 -net.inet.tcp.sendspace: 65536 -net.inet.tcp.recvspace: 65536 -net.inet.tcp.keepinit: 75000 -net.inet.tcp.v6mssdflt: 1024 -net.inet.tcp.log_in_vain: 0 -net.inet.tcp.blackhole: 0 -net.inet.tcp.delayed_ack: 3 -net.inet.tcp.tcp_lq_overflow: 1 -net.inet.tcp.recvbg: 0 -net.inet.tcp.drop_synfin: 1 -net.inet.tcp.reass.maxsegments: 3072 -net.inet.tcp.reass.cursegments: 0 -net.inet.tcp.reass.overflows: 0 -net.inet.tcp.slowlink_wsize: 8192 -net.inet.tcp.maxseg_unacked: 8 -net.inet.tcp.rfc3465: 1 -net.inet.tcp.rfc3465_lim2: 1 -net.inet.tcp.rtt_samples_per_slot: 20 -net.inet.tcp.recv_allowed_iaj: 5 -net.inet.tcp.acc_iaj_high_thresh: 100 -net.inet.tcp.rexmt_thresh: 2 -net.inet.tcp.path_mtu_discovery: 1 -net.inet.tcp.slowstart_flightsize: 1 -net.inet.tcp.local_slowstart_flightsize: 8 -net.inet.tcp.tso: 1 -net.inet.tcp.ecn_initiate_out: 0 -net.inet.tcp.ecn_negotiate_in: 0 -net.inet.tcp.packetchain: 50 -net.inet.tcp.socket_unlocked_on_output: 1 -net.inet.tcp.rfc3390: 1 -net.inet.tcp.min_iaj_win: 4 -net.inet.tcp.acc_iaj_react_limit: 200 -net.inet.tcp.sack: 1 -net.inet.tcp.sack_maxholes: 128 -net.inet.tcp.sack_globalmaxholes: 65536 -net.inet.tcp.sack_globalholes: 0 -net.inet.tcp.minmss: 216 -net.inet.tcp.minmssoverload: 0 -net.inet.tcp.do_tcpdrain: 0 -net.inet.tcp.pcbcount: 86 -net.inet.tcp.icmp_may_rst: 1 -net.inet.tcp.strict_rfc1948: 0 -net.inet.tcp.isn_reseed_interval: 0 -net.inet.tcp.background_io_enabled: 1 -net.inet.tcp.rtt_min: 100 -net.inet.tcp.rexmt_slop: 200 -net.inet.tcp.randomize_ports: 0 -net.inet.tcp.newreno_sockets: 81 -net.inet.tcp.background_sockets: -1 -net.inet.tcp.tcbhashsize: 4096 -net.inet.tcp.background_io_trigger: 5 -net.inet.tcp.msl: 15000 -net.inet.tcp.max_persist_timeout: 0 -net.inet.tcp.always_keepalive: 0 -net.inet.tcp.timer_fastmode_idlemax: 20 -net.inet.tcp.broken_peer_syn_rxmit_thres: 7 -net.inet.tcp.tcp_timer_advanced: 5 -net.inet.tcp.tcp_resched_timerlist: 12209 -net.inet.tcp.pmtud_blackhole_detection: 1 -net.inet.tcp.pmtud_blackhole_mss: 1200 -net.inet.tcp.timer_fastquantum: 100 -net.inet.tcp.timer_slowquantum: 500 -net.inet.tcp.win_scale_factor: 3 -net.inet.tcp.in_sw_cksum: 5658081 -net.inet.tcp.in_sw_cksum_bytes: 2198681467 -net.inet.tcp.out_sw_cksum: 14166053 -net.inet.tcp.out_sw_cksum_bytes: 17732561863 -net.inet.tcp.sockthreshold: 64 -net.inet.tcp.bg_target_qdelay: 100 -net.inet.tcp.bg_allowed_increase: 2 -net.inet.tcp.bg_tether_shift: 1 -net.inet.tcp.bg_ss_fltsz: 2 -net.inet.udp.checksum: 1 -net.inet.udp.maxdgram: 9216 -net.inet.udp.recvspace: 42080 -net.inet.udp.in_sw_cksum: 19639 -net.inet.udp.in_sw_cksum_bytes: 3928092 -net.inet.udp.out_sw_cksum: 17436 -net.inet.udp.out_sw_cksum_bytes: 2495444 -net.inet.udp.log_in_vain: 0 -net.inet.udp.blackhole: 0 -net.inet.udp.pcbcount: 72 -net.inet.udp.randomize_ports: 1 -net.inet.ipsec.def_policy: 1 -net.inet.ipsec.esp_trans_deflev: 1 -net.inet.ipsec.esp_net_deflev: 1 -net.inet.ipsec.ah_trans_deflev: 1 -net.inet.ipsec.ah_net_deflev: 1 -net.inet.ipsec.ah_cleartos: 1 -net.inet.ipsec.ah_offsetmask: 0 -net.inet.ipsec.dfbit: 0 -net.inet.ipsec.ecn: 0 -net.inet.ipsec.debug: 0 -net.inet.ipsec.esp_randpad: -1 -net.inet.ipsec.bypass: 0 -net.inet.ipsec.esp_port: 4500 -net.inet.raw.maxdgram: 8192 -net.inet.raw.recvspace: 8192 -net.link.generic.system.ifcount: 10 -net.link.generic.system.dlil_verbose: 0 -net.link.generic.system.multi_threaded_input: 1 -net.link.generic.system.dlil_input_sanity_check: 0 -net.link.ether.inet.prune_intvl: 300 -net.link.ether.inet.max_age: 1200 -net.link.ether.inet.host_down_time: 20 -net.link.ether.inet.apple_hwcksum_tx: 1 -net.link.ether.inet.apple_hwcksum_rx: 1 -net.link.ether.inet.arp_llreach_base: 30 -net.link.ether.inet.maxtries: 5 -net.link.ether.inet.useloopback: 1 -net.link.ether.inet.proxyall: 0 -net.link.ether.inet.sendllconflict: 0 -net.link.ether.inet.log_arp_warnings: 0 -net.link.ether.inet.keep_announcements: 1 -net.link.ether.inet.send_conflicting_probes: 1 -net.link.bridge.log_stp: 0 -net.link.bridge.debug: 0 -net.key.debug: 0 -net.key.spi_trycnt: 1000 -net.key.spi_minval: 256 -net.key.spi_maxval: 268435455 -net.key.int_random: 60 -net.key.larval_lifetime: 30 -net.key.blockacq_count: 10 -net.key.blockacq_lifetime: 20 -net.key.esp_keymin: 256 -net.key.esp_auth: 0 -net.key.ah_keymin: 128 -net.key.prefered_oldsa: 0 -net.key.natt_keepalive_interval: 20 -net.inet6.ip6.forwarding: 0 -net.inet6.ip6.redirect: 1 -net.inet6.ip6.hlim: 64 -net.inet6.ip6.maxfragpackets: 1536 -net.inet6.ip6.accept_rtadv: 0 -net.inet6.ip6.keepfaith: 0 -net.inet6.ip6.log_interval: 5 -net.inet6.ip6.hdrnestlimit: 15 -net.inet6.ip6.dad_count: 1 -net.inet6.ip6.auto_flowlabel: 1 -net.inet6.ip6.defmcasthlim: 1 -net.inet6.ip6.gifhlim: 0 -net.inet6.ip6.kame_version: 2009/apple-darwin -net.inet6.ip6.use_deprecated: 1 -net.inet6.ip6.rr_prune: 5 -net.inet6.ip6.v6only: 0 -net.inet6.ip6.rtexpire: 3600 -net.inet6.ip6.rtminexpire: 10 -net.inet6.ip6.rtmaxcache: 128 -net.inet6.ip6.use_tempaddr: 1 -net.inet6.ip6.temppltime: 86400 -net.inet6.ip6.tempvltime: 604800 -net.inet6.ip6.auto_linklocal: 1 -net.inet6.ip6.prefer_tempaddr: 1 -net.inet6.ip6.use_defaultzone: 0 -net.inet6.ip6.maxfrags: 12288 -net.inet6.ip6.mcast_pmtu: 0 -net.inet6.ip6.neighborgcthresh: 1024 -net.inet6.ip6.maxifprefixes: 16 -net.inet6.ip6.maxifdefrouters: 16 -net.inet6.ip6.maxdynroutes: 1024 -net.inet6.ip6.fw.enable: 1 -net.inet6.ip6.fw.debug: 0 -net.inet6.ip6.fw.verbose: 0 -net.inet6.ip6.fw.verbose_limit: 0 -net.inet6.ip6.scopedroute: 1 -net.inet6.ip6.select_srcif_debug: 0 -net.inet6.ip6.mcast.maxgrpsrc: 512 -net.inet6.ip6.mcast.maxsocksrc: 128 -net.inet6.ip6.mcast.loop: 1 -net.inet6.ip6.only_allow_rfc4193_prefixes: 0 -net.inet6.ipsec6.def_policy: 1 -net.inet6.ipsec6.esp_trans_deflev: 1 -net.inet6.ipsec6.esp_net_deflev: 1 -net.inet6.ipsec6.ah_trans_deflev: 1 -net.inet6.ipsec6.ah_net_deflev: 1 -net.inet6.ipsec6.ecn: 0 -net.inet6.ipsec6.debug: 0 -net.inet6.ipsec6.esp_randpad: -1 -net.inet6.icmp6.rediraccept: 1 -net.inet6.icmp6.redirtimeout: 600 -net.inet6.icmp6.nd6_prune: 1 -net.inet6.icmp6.nd6_delay: 5 -net.inet6.icmp6.nd6_umaxtries: 3 -net.inet6.icmp6.nd6_mmaxtries: 3 -net.inet6.icmp6.nd6_useloopback: 1 -net.inet6.icmp6.nodeinfo: 3 -net.inet6.icmp6.errppslimit: 500 -net.inet6.icmp6.nd6_maxnudhint: 0 -net.inet6.icmp6.nd6_debug: 0 -net.inet6.icmp6.nd6_accept_6to4: 1 -net.inet6.icmp6.nd6_onlink_ns_rfc4861: 0 -net.inet6.icmp6.nd6_llreach_base: 30 -net.inet6.mld.gsrdelay: 10 -net.inet6.mld.v1enable: 1 -net.inet6.mld.use_allow: 1 -net.inet6.mld.debug: 0 -net.idle.route.expire_timeout: 30 -net.idle.route.drain_interval: 10 -net.statistics: 1 -net.alf.loglevel: 55 -net.alf.perm: 0 -net.alf.defaultaction: 1 -net.alf.mqcount: 0 -net.smb.fs.version: 107000 -net.smb.fs.loglevel: 0 -net.smb.fs.kern_ntlmssp: 0 -net.smb.fs.kern_deprecatePreXPServers: 1 -net.smb.fs.kern_deadtimer: 60 -net.smb.fs.kern_hard_deadtimer: 600 -net.smb.fs.kern_soft_deadtimer: 30 -net.smb.fs.tcpsndbuf: 261120 -net.smb.fs.tcprcvbuf: 261120 + @darwin_sysctl = <<~DARWIN_SYSCTL + net.local.stream.sendspace: 8192 + net.local.stream.recvspace: 8192 + net.local.stream.tracemdns: 0 + net.local.dgram.maxdgram: 2048 + net.local.dgram.recvspace: 4096 + net.local.inflight: 0 + net.inet.ip.portrange.lowfirst: 1023 + net.inet.ip.portrange.lowlast: 600 + net.inet.ip.portrange.first: 49152 + net.inet.ip.portrange.last: 65535 + net.inet.ip.portrange.hifirst: 49152 + net.inet.ip.portrange.hilast: 65535 + net.inet.ip.forwarding: 1 + net.inet.ip.redirect: 1 + net.inet.ip.ttl: 64 + net.inet.ip.rtexpire: 12 + net.inet.ip.rtminexpire: 10 + net.inet.ip.rtmaxcache: 128 + net.inet.ip.sourceroute: 0 + net.inet.ip.intr_queue_maxlen: 50 + net.inet.ip.intr_queue_drops: 0 + net.inet.ip.accept_sourceroute: 0 + net.inet.ip.keepfaith: 0 + net.inet.ip.gifttl: 30 + net.inet.ip.subnets_are_local: 0 + net.inet.ip.mcast.maxgrpsrc: 512 + net.inet.ip.mcast.maxsocksrc: 128 + net.inet.ip.mcast.loop: 1 + net.inet.ip.check_route_selfref: 1 + net.inet.ip.use_route_genid: 1 + net.inet.ip.dummynet.hash_size: 64 + net.inet.ip.dummynet.curr_time: 0 + net.inet.ip.dummynet.ready_heap: 0 + net.inet.ip.dummynet.extract_heap: 0 + net.inet.ip.dummynet.searches: 0 + net.inet.ip.dummynet.search_steps: 0 + net.inet.ip.dummynet.expire: 1 + net.inet.ip.dummynet.max_chain_len: 16 + net.inet.ip.dummynet.red_lookup_depth: 256 + net.inet.ip.dummynet.red_avg_pkt_size: 512 + net.inet.ip.dummynet.red_max_pkt_size: 1500 + net.inet.ip.dummynet.debug: 0 + net.inet.ip.fw.enable: 1 + net.inet.ip.fw.autoinc_step: 100 + net.inet.ip.fw.one_pass: 0 + net.inet.ip.fw.debug: 0 + net.inet.ip.fw.verbose: 0 + net.inet.ip.fw.verbose_limit: 0 + net.inet.ip.fw.dyn_buckets: 256 + net.inet.ip.fw.curr_dyn_buckets: 256 + net.inet.ip.fw.dyn_count: 0 + net.inet.ip.fw.dyn_max: 4096 + net.inet.ip.fw.static_count: 2 + net.inet.ip.fw.dyn_ack_lifetime: 300 + net.inet.ip.fw.dyn_syn_lifetime: 20 + net.inet.ip.fw.dyn_fin_lifetime: 1 + net.inet.ip.fw.dyn_rst_lifetime: 1 + net.inet.ip.fw.dyn_udp_lifetime: 10 + net.inet.ip.fw.dyn_short_lifetime: 5 + net.inet.ip.fw.dyn_keepalive: 1 + net.inet.ip.maxfragpackets: 1536 + net.inet.ip.maxfragsperpacket: 128 + net.inet.ip.maxfrags: 3072 + net.inet.ip.scopedroute: 1 + net.inet.ip.check_interface: 0 + net.inet.ip.linklocal.in.allowbadttl: 1 + net.inet.ip.random_id: 1 + net.inet.ip.maxchainsent: 0 + net.inet.ip.select_srcif_debug: 0 + net.inet.icmp.maskrepl: 0 + net.inet.icmp.icmplim: 250 + net.inet.icmp.timestamp: 0 + net.inet.icmp.drop_redirect: 0 + net.inet.icmp.log_redirect: 0 + net.inet.icmp.bmcastecho: 1 + net.inet.igmp.recvifkludge: 1 + net.inet.igmp.sendra: 1 + net.inet.igmp.sendlocal: 1 + net.inet.igmp.v1enable: 1 + net.inet.igmp.v2enable: 1 + net.inet.igmp.legacysupp: 0 + net.inet.igmp.default_version: 3 + net.inet.igmp.gsrdelay: 10 + net.inet.igmp.debug: 0 + net.inet.tcp.rfc1323: 1 + net.inet.tcp.rfc1644: 0 + net.inet.tcp.mssdflt: 512 + net.inet.tcp.keepidle: 7200000 + net.inet.tcp.keepintvl: 75000 + net.inet.tcp.sendspace: 65536 + net.inet.tcp.recvspace: 65536 + net.inet.tcp.keepinit: 75000 + net.inet.tcp.v6mssdflt: 1024 + net.inet.tcp.log_in_vain: 0 + net.inet.tcp.blackhole: 0 + net.inet.tcp.delayed_ack: 3 + net.inet.tcp.tcp_lq_overflow: 1 + net.inet.tcp.recvbg: 0 + net.inet.tcp.drop_synfin: 1 + net.inet.tcp.reass.maxsegments: 3072 + net.inet.tcp.reass.cursegments: 0 + net.inet.tcp.reass.overflows: 0 + net.inet.tcp.slowlink_wsize: 8192 + net.inet.tcp.maxseg_unacked: 8 + net.inet.tcp.rfc3465: 1 + net.inet.tcp.rfc3465_lim2: 1 + net.inet.tcp.rtt_samples_per_slot: 20 + net.inet.tcp.recv_allowed_iaj: 5 + net.inet.tcp.acc_iaj_high_thresh: 100 + net.inet.tcp.rexmt_thresh: 2 + net.inet.tcp.path_mtu_discovery: 1 + net.inet.tcp.slowstart_flightsize: 1 + net.inet.tcp.local_slowstart_flightsize: 8 + net.inet.tcp.tso: 1 + net.inet.tcp.ecn_initiate_out: 0 + net.inet.tcp.ecn_negotiate_in: 0 + net.inet.tcp.packetchain: 50 + net.inet.tcp.socket_unlocked_on_output: 1 + net.inet.tcp.rfc3390: 1 + net.inet.tcp.min_iaj_win: 4 + net.inet.tcp.acc_iaj_react_limit: 200 + net.inet.tcp.sack: 1 + net.inet.tcp.sack_maxholes: 128 + net.inet.tcp.sack_globalmaxholes: 65536 + net.inet.tcp.sack_globalholes: 0 + net.inet.tcp.minmss: 216 + net.inet.tcp.minmssoverload: 0 + net.inet.tcp.do_tcpdrain: 0 + net.inet.tcp.pcbcount: 86 + net.inet.tcp.icmp_may_rst: 1 + net.inet.tcp.strict_rfc1948: 0 + net.inet.tcp.isn_reseed_interval: 0 + net.inet.tcp.background_io_enabled: 1 + net.inet.tcp.rtt_min: 100 + net.inet.tcp.rexmt_slop: 200 + net.inet.tcp.randomize_ports: 0 + net.inet.tcp.newreno_sockets: 81 + net.inet.tcp.background_sockets: -1 + net.inet.tcp.tcbhashsize: 4096 + net.inet.tcp.background_io_trigger: 5 + net.inet.tcp.msl: 15000 + net.inet.tcp.max_persist_timeout: 0 + net.inet.tcp.always_keepalive: 0 + net.inet.tcp.timer_fastmode_idlemax: 20 + net.inet.tcp.broken_peer_syn_rxmit_thres: 7 + net.inet.tcp.tcp_timer_advanced: 5 + net.inet.tcp.tcp_resched_timerlist: 12209 + net.inet.tcp.pmtud_blackhole_detection: 1 + net.inet.tcp.pmtud_blackhole_mss: 1200 + net.inet.tcp.timer_fastquantum: 100 + net.inet.tcp.timer_slowquantum: 500 + net.inet.tcp.win_scale_factor: 3 + net.inet.tcp.in_sw_cksum: 5658081 + net.inet.tcp.in_sw_cksum_bytes: 2198681467 + net.inet.tcp.out_sw_cksum: 14166053 + net.inet.tcp.out_sw_cksum_bytes: 17732561863 + net.inet.tcp.sockthreshold: 64 + net.inet.tcp.bg_target_qdelay: 100 + net.inet.tcp.bg_allowed_increase: 2 + net.inet.tcp.bg_tether_shift: 1 + net.inet.tcp.bg_ss_fltsz: 2 + net.inet.udp.checksum: 1 + net.inet.udp.maxdgram: 9216 + net.inet.udp.recvspace: 42080 + net.inet.udp.in_sw_cksum: 19639 + net.inet.udp.in_sw_cksum_bytes: 3928092 + net.inet.udp.out_sw_cksum: 17436 + net.inet.udp.out_sw_cksum_bytes: 2495444 + net.inet.udp.log_in_vain: 0 + net.inet.udp.blackhole: 0 + net.inet.udp.pcbcount: 72 + net.inet.udp.randomize_ports: 1 + net.inet.ipsec.def_policy: 1 + net.inet.ipsec.esp_trans_deflev: 1 + net.inet.ipsec.esp_net_deflev: 1 + net.inet.ipsec.ah_trans_deflev: 1 + net.inet.ipsec.ah_net_deflev: 1 + net.inet.ipsec.ah_cleartos: 1 + net.inet.ipsec.ah_offsetmask: 0 + net.inet.ipsec.dfbit: 0 + net.inet.ipsec.ecn: 0 + net.inet.ipsec.debug: 0 + net.inet.ipsec.esp_randpad: -1 + net.inet.ipsec.bypass: 0 + net.inet.ipsec.esp_port: 4500 + net.inet.raw.maxdgram: 8192 + net.inet.raw.recvspace: 8192 + net.link.generic.system.ifcount: 10 + net.link.generic.system.dlil_verbose: 0 + net.link.generic.system.multi_threaded_input: 1 + net.link.generic.system.dlil_input_sanity_check: 0 + net.link.ether.inet.prune_intvl: 300 + net.link.ether.inet.max_age: 1200 + net.link.ether.inet.host_down_time: 20 + net.link.ether.inet.apple_hwcksum_tx: 1 + net.link.ether.inet.apple_hwcksum_rx: 1 + net.link.ether.inet.arp_llreach_base: 30 + net.link.ether.inet.maxtries: 5 + net.link.ether.inet.useloopback: 1 + net.link.ether.inet.proxyall: 0 + net.link.ether.inet.sendllconflict: 0 + net.link.ether.inet.log_arp_warnings: 0 + net.link.ether.inet.keep_announcements: 1 + net.link.ether.inet.send_conflicting_probes: 1 + net.link.bridge.log_stp: 0 + net.link.bridge.debug: 0 + net.key.debug: 0 + net.key.spi_trycnt: 1000 + net.key.spi_minval: 256 + net.key.spi_maxval: 268435455 + net.key.int_random: 60 + net.key.larval_lifetime: 30 + net.key.blockacq_count: 10 + net.key.blockacq_lifetime: 20 + net.key.esp_keymin: 256 + net.key.esp_auth: 0 + net.key.ah_keymin: 128 + net.key.prefered_oldsa: 0 + net.key.natt_keepalive_interval: 20 + net.inet6.ip6.forwarding: 0 + net.inet6.ip6.redirect: 1 + net.inet6.ip6.hlim: 64 + net.inet6.ip6.maxfragpackets: 1536 + net.inet6.ip6.accept_rtadv: 0 + net.inet6.ip6.keepfaith: 0 + net.inet6.ip6.log_interval: 5 + net.inet6.ip6.hdrnestlimit: 15 + net.inet6.ip6.dad_count: 1 + net.inet6.ip6.auto_flowlabel: 1 + net.inet6.ip6.defmcasthlim: 1 + net.inet6.ip6.gifhlim: 0 + net.inet6.ip6.kame_version: 2009/apple-darwin + net.inet6.ip6.use_deprecated: 1 + net.inet6.ip6.rr_prune: 5 + net.inet6.ip6.v6only: 0 + net.inet6.ip6.rtexpire: 3600 + net.inet6.ip6.rtminexpire: 10 + net.inet6.ip6.rtmaxcache: 128 + net.inet6.ip6.use_tempaddr: 1 + net.inet6.ip6.temppltime: 86400 + net.inet6.ip6.tempvltime: 604800 + net.inet6.ip6.auto_linklocal: 1 + net.inet6.ip6.prefer_tempaddr: 1 + net.inet6.ip6.use_defaultzone: 0 + net.inet6.ip6.maxfrags: 12288 + net.inet6.ip6.mcast_pmtu: 0 + net.inet6.ip6.neighborgcthresh: 1024 + net.inet6.ip6.maxifprefixes: 16 + net.inet6.ip6.maxifdefrouters: 16 + net.inet6.ip6.maxdynroutes: 1024 + net.inet6.ip6.fw.enable: 1 + net.inet6.ip6.fw.debug: 0 + net.inet6.ip6.fw.verbose: 0 + net.inet6.ip6.fw.verbose_limit: 0 + net.inet6.ip6.scopedroute: 1 + net.inet6.ip6.select_srcif_debug: 0 + net.inet6.ip6.mcast.maxgrpsrc: 512 + net.inet6.ip6.mcast.maxsocksrc: 128 + net.inet6.ip6.mcast.loop: 1 + net.inet6.ip6.only_allow_rfc4193_prefixes: 0 + net.inet6.ipsec6.def_policy: 1 + net.inet6.ipsec6.esp_trans_deflev: 1 + net.inet6.ipsec6.esp_net_deflev: 1 + net.inet6.ipsec6.ah_trans_deflev: 1 + net.inet6.ipsec6.ah_net_deflev: 1 + net.inet6.ipsec6.ecn: 0 + net.inet6.ipsec6.debug: 0 + net.inet6.ipsec6.esp_randpad: -1 + net.inet6.icmp6.rediraccept: 1 + net.inet6.icmp6.redirtimeout: 600 + net.inet6.icmp6.nd6_prune: 1 + net.inet6.icmp6.nd6_delay: 5 + net.inet6.icmp6.nd6_umaxtries: 3 + net.inet6.icmp6.nd6_mmaxtries: 3 + net.inet6.icmp6.nd6_useloopback: 1 + net.inet6.icmp6.nodeinfo: 3 + net.inet6.icmp6.errppslimit: 500 + net.inet6.icmp6.nd6_maxnudhint: 0 + net.inet6.icmp6.nd6_debug: 0 + net.inet6.icmp6.nd6_accept_6to4: 1 + net.inet6.icmp6.nd6_onlink_ns_rfc4861: 0 + net.inet6.icmp6.nd6_llreach_base: 30 + net.inet6.mld.gsrdelay: 10 + net.inet6.mld.v1enable: 1 + net.inet6.mld.use_allow: 1 + net.inet6.mld.debug: 0 + net.idle.route.expire_timeout: 30 + net.idle.route.drain_interval: 10 + net.statistics: 1 + net.alf.loglevel: 55 + net.alf.perm: 0 + net.alf.defaultaction: 1 + net.alf.mqcount: 0 + net.smb.fs.version: 107000 + net.smb.fs.loglevel: 0 + net.smb.fs.kern_ntlmssp: 0 + net.smb.fs.kern_deprecatePreXPServers: 1 + net.smb.fs.kern_deadtimer: 60 + net.smb.fs.kern_hard_deadtimer: 600 + net.smb.fs.kern_soft_deadtimer: 30 + net.smb.fs.tcpsndbuf: 261120 + net.smb.fs.tcprcvbuf: 261120 DARWIN_SYSCTL @plugin = get_plugin("darwin/network") diff --git a/spec/unit/plugins/digital_ocean_spec.rb b/spec/unit/plugins/digital_ocean_spec.rb index 71500266..44354d68 100644 --- a/spec/unit/plugins/digital_ocean_spec.rb +++ b/spec/unit/plugins/digital_ocean_spec.rb @@ -62,9 +62,9 @@ describe Ohai::System, "plugin digital_ocean" do end it "should fetch and properly parse json metadata" do - expect(@http_client).to receive(:get). - with("/metadata/v1.json"). - and_return(double("Net::HTTP Response", :body => body, :code => "200")) + expect(@http_client).to receive(:get) + .with("/metadata/v1.json") + .and_return(double("Net::HTTP Response", body: body, code: "200")) plugin.run expect(plugin[:digital_ocean]).not_to be_nil @@ -73,9 +73,9 @@ describe Ohai::System, "plugin digital_ocean" do end it "should complete the run despite unavailable metadata" do - expect(@http_client).to receive(:get). - with("/metadata/v1.json"). - and_return(double("Net::HTTP Response", :body => "", :code => "404")) + expect(@http_client).to receive(:get) + .with("/metadata/v1.json") + .and_return(double("Net::HTTP Response", body: "", code: "404")) plugin.run expect(plugin[:digitalocean]).to be_nil @@ -98,7 +98,7 @@ describe Ohai::System, "plugin digital_ocean" do it_should_behave_like "digital_ocean" before(:each) do - plugin[:dmi] = { :bios => { :all_records => [ { :Vendor => "DigitalOcean" } ] } } + plugin[:dmi] = { bios: { all_records: [ { Vendor: "DigitalOcean" } ] } } end end end diff --git a/spec/unit/plugins/dmi_spec.rb b/spec/unit/plugins/dmi_spec.rb index a8074bf0..f43e540e 100644 --- a/spec/unit/plugins/dmi_spec.rb +++ b/spec/unit/plugins/dmi_spec.rb @@ -19,85 +19,85 @@ require_relative "../../spec_helper.rb" # NOTE: These data lines must be prefixed with one or two tabs, not spaces. -DMI_OUT = <<-EOS -# dmidecode 2.9 -SMBIOS 2.4 present. -98 structures occupying 3699 bytes. -Table at 0x000E0010. +DMI_OUT = <<~EOS.freeze + # dmidecode 2.9 + SMBIOS 2.4 present. + 98 structures occupying 3699 bytes. + Table at 0x000E0010. -Handle 0x0000, DMI type 0, 24 bytes -BIOS Information - Vendor: Phoenix Technologies LTD - Version: 6.00 - Release Date: 12/31/2009 - Address: 0xEA2E0 - Runtime Size: 89376 bytes - ROM Size: 64 kB - Characteristics: - ISA is supported - PCI is supported - PC Card (PCMCIA) is supported - PNP is supported - APM is supported - BIOS is upgradeable - BIOS shadowing is allowed - ESCD support is available - USB legacy is supported - Smart battery is supported - BIOS boot specification is supported - Targeted content distribution is supported - BIOS Revision: 4.6 - Firmware Revision: 0.0 + Handle 0x0000, DMI type 0, 24 bytes + BIOS Information + Vendor: Phoenix Technologies LTD + Version: 6.00 + Release Date: 12/31/2009 + Address: 0xEA2E0 + Runtime Size: 89376 bytes + ROM Size: 64 kB + Characteristics: + ISA is supported + PCI is supported + PC Card (PCMCIA) is supported + PNP is supported + APM is supported + BIOS is upgradeable + BIOS shadowing is allowed + ESCD support is available + USB legacy is supported + Smart battery is supported + BIOS boot specification is supported + Targeted content distribution is supported + BIOS Revision: 4.6 + Firmware Revision: 0.0 -Handle 0x0001, DMI type 1, 27 bytes -System Information - Manufacturer: VMware, Inc. - Product Name: VMware Virtual Platform - Version: None - Serial Number: VMware-56 4d 71 d1 65 70 83 a8-df c8 14 12 19 41 71 45 - UUID: 564D71D1-6570-83A8-DFC8-141219417145 - Wake-up Type: Power Switch - SKU Number: Not Specified - Family: Not Specified + Handle 0x0001, DMI type 1, 27 bytes + System Information + Manufacturer: VMware, Inc. + Product Name: VMware Virtual Platform + Version: None + Serial Number: VMware-56 4d 71 d1 65 70 83 a8-df c8 14 12 19 41 71 45 + UUID: 564D71D1-6570-83A8-DFC8-141219417145 + Wake-up Type: Power Switch + SKU Number: Not Specified + Family: Not Specified -Handle 0x0002, DMI type 2, 15 bytes -Base Board Information - Manufacturer: Intel Corporation - Product Name: 440BX Desktop Reference Platform - Version: None - Serial Number: None - Asset Tag: Not Specified - Features: None - Location In Chassis: Not Specified - Chassis Handle: 0x0000 - Type: Unknown - Contained Object Handles: 0 + Handle 0x0002, DMI type 2, 15 bytes + Base Board Information + Manufacturer: Intel Corporation + Product Name: 440BX Desktop Reference Platform + Version: None + Serial Number: None + Asset Tag: Not Specified + Features: None + Location In Chassis: Not Specified + Chassis Handle: 0x0000 + Type: Unknown + Contained Object Handles: 0 -Handle 0x1000, DMI type 16, 15 bytes -Physical Memory Array - Location: Other - Use: System Memory - Error Correction Type: Multi-bit ECC - Maximum Capacity: 2 GB - Error Information Handle: Not Provided - Number Of Devices: 1 + Handle 0x1000, DMI type 16, 15 bytes + Physical Memory Array + Location: Other + Use: System Memory + Error Correction Type: Multi-bit ECC + Maximum Capacity: 2 GB + Error Information Handle: Not Provided + Number Of Devices: 1 -Handle 0x0003, DMI type 3, 21 bytes -Chassis Information - Manufacturer: No Enclosure - Type: Other - Lock: Not Present - Version: N/A - Serial Number: None - Asset Tag: No Asset Tag - Boot-up State: Safe - Power Supply State: Safe - Thermal State: Safe - Security Status: None - OEM Information: 0x00001234 - Height: Unspecified - Number Of Power Cords: Unspecified - Contained Elements: 0 + Handle 0x0003, DMI type 3, 21 bytes + Chassis Information + Manufacturer: No Enclosure + Type: Other + Lock: Not Present + Version: N/A + Serial Number: None + Asset Tag: No Asset Tag + Boot-up State: Safe + Power Supply State: Safe + Thermal State: Safe + Security Status: None + OEM Information: 0x00001234 + Height: Unspecified + Number Of Power Cords: Unspecified + Contained Elements: 0 EOS describe Ohai::System, "plugin dmi" do @@ -115,17 +115,17 @@ describe Ohai::System, "plugin dmi" do # Test some simple sample data { - :bios => { - :vendor => "Phoenix Technologies LTD", - :release_date => "12/31/2009", + bios: { + vendor: "Phoenix Technologies LTD", + release_date: "12/31/2009", }, - :system => { - :manufacturer => "VMware, Inc.", - :product_name => "VMware Virtual Platform", + system: { + manufacturer: "VMware, Inc.", + product_name: "VMware Virtual Platform", }, - :chassis => { - :lock => "Not Present", - :asset_tag => "No Asset Tag", + chassis: { + lock: "Not Present", + asset_tag: "No Asset Tag", }, }.each do |id, data| data.each do |attribute, value| diff --git a/spec/unit/plugins/docker_spec.rb b/spec/unit/plugins/docker_spec.rb index e524d7a9..3b839636 100644 --- a/spec/unit/plugins/docker_spec.rb +++ b/spec/unit/plugins/docker_spec.rb @@ -16,8 +16,8 @@ require_relative "../../spec_helper.rb" -docker_output = <<EOF -{"ID":"KZET:VDFN:2V2G:JS5Z:HAKO:SOGI:AFSZ:HDMT:GVEM:V2NT:DUSW:J3Z6","Containers":11,"ContainersRunning":0,"ContainersPaused":0,"ContainersStopped":11,"Images":30,"Driver":"overlay2","DriverStatus":[["Backing Filesystem","extfs"],["Supports d_type","true"],["Native Overlay Diff","true"]],"SystemStatus":null,"Plugins":{"Volume":["local"],"Network":["bridge","host","ipvlan","macvlan","null","overlay"],"Authorization":null,"Log":["awslogs","fluentd","gcplogs","gelf","journald","json-file","logentries","splunk","syslog"]},"MemoryLimit":true,"SwapLimit":true,"KernelMemory":true,"CpuCfsPeriod":true,"CpuCfsQuota":true,"CPUShares":true,"CPUSet":true,"IPv4Forwarding":true,"BridgeNfIptables":true,"BridgeNfIp6tables":true,"Debug":true,"NFd":21,"OomKillDisable":true,"NGoroutines":39,"SystemTime":"2018-02-15T19:12:40.214106068Z","LoggingDriver":"json-file","CgroupDriver":"cgroupfs","NEventsListener":2,"KernelVersion":"4.9.60-linuxkit-aufs","OperatingSystem":"Docker for Mac","OSType":"linux","Architecture":"x86_64","IndexServerAddress":"https://index.docker.io/v1/","RegistryConfig":{"AllowNondistributableArtifactsCIDRs":[],"AllowNondistributableArtifactsHostnames":[],"InsecureRegistryCIDRs":["127.0.0.0/8"],"IndexConfigs":{"docker.io":{"Name":"docker.io","Mirrors":[],"Secure":true,"Official":true}},"Mirrors":[]},"NCPU":4,"MemTotal":2095816704,"GenericResources":null,"DockerRootDir":"/var/lib/docker","HttpProxy":"docker.for.mac.http.internal:3128","HttpsProxy":"docker.for.mac.http.internal:3129","NoProxy":"","Name":"linuxkit-025000000001","Labels":[],"ExperimentalBuild":true,"ServerVersion":"17.12.0-ce","ClusterStore":"","ClusterAdvertise":"","Runtimes":{"runc":{"path":"docker-runc"}},"DefaultRuntime":"runc","Swarm":{"NodeID":"","NodeAddr":"","LocalNodeState":"inactive","ControlAvailable":false,"Error":"","RemoteManagers":null},"LiveRestoreEnabled":false,"Isolation":"","InitBinary":"docker-init","ContainerdCommit":{"ID":"89623f28b87a6004d4b785663257362d1658a729","Expected":"89623f28b87a6004d4b785663257362d1658a729"},"RuncCommit":{"ID":"b2567b37d7b75eb4cf325b77297b140ea686ce8f","Expected":"b2567b37d7b75eb4cf325b77297b140ea686ce8f"},"InitCommit":{"ID":"949e6fa","Expected":"949e6fa"},"SecurityOptions":["name=seccomp,profile=default"]} +docker_output = <<~EOF + {"ID":"KZET:VDFN:2V2G:JS5Z:HAKO:SOGI:AFSZ:HDMT:GVEM:V2NT:DUSW:J3Z6","Containers":11,"ContainersRunning":0,"ContainersPaused":0,"ContainersStopped":11,"Images":30,"Driver":"overlay2","DriverStatus":[["Backing Filesystem","extfs"],["Supports d_type","true"],["Native Overlay Diff","true"]],"SystemStatus":null,"Plugins":{"Volume":["local"],"Network":["bridge","host","ipvlan","macvlan","null","overlay"],"Authorization":null,"Log":["awslogs","fluentd","gcplogs","gelf","journald","json-file","logentries","splunk","syslog"]},"MemoryLimit":true,"SwapLimit":true,"KernelMemory":true,"CpuCfsPeriod":true,"CpuCfsQuota":true,"CPUShares":true,"CPUSet":true,"IPv4Forwarding":true,"BridgeNfIptables":true,"BridgeNfIp6tables":true,"Debug":true,"NFd":21,"OomKillDisable":true,"NGoroutines":39,"SystemTime":"2018-02-15T19:12:40.214106068Z","LoggingDriver":"json-file","CgroupDriver":"cgroupfs","NEventsListener":2,"KernelVersion":"4.9.60-linuxkit-aufs","OperatingSystem":"Docker for Mac","OSType":"linux","Architecture":"x86_64","IndexServerAddress":"https://index.docker.io/v1/","RegistryConfig":{"AllowNondistributableArtifactsCIDRs":[],"AllowNondistributableArtifactsHostnames":[],"InsecureRegistryCIDRs":["127.0.0.0/8"],"IndexConfigs":{"docker.io":{"Name":"docker.io","Mirrors":[],"Secure":true,"Official":true}},"Mirrors":[]},"NCPU":4,"MemTotal":2095816704,"GenericResources":null,"DockerRootDir":"/var/lib/docker","HttpProxy":"docker.for.mac.http.internal:3128","HttpsProxy":"docker.for.mac.http.internal:3129","NoProxy":"","Name":"linuxkit-025000000001","Labels":[],"ExperimentalBuild":true,"ServerVersion":"17.12.0-ce","ClusterStore":"","ClusterAdvertise":"","Runtimes":{"runc":{"path":"docker-runc"}},"DefaultRuntime":"runc","Swarm":{"NodeID":"","NodeAddr":"","LocalNodeState":"inactive","ControlAvailable":false,"Error":"","RemoteManagers":null},"LiveRestoreEnabled":false,"Isolation":"","InitBinary":"docker-init","ContainerdCommit":{"ID":"89623f28b87a6004d4b785663257362d1658a729","Expected":"89623f28b87a6004d4b785663257362d1658a729"},"RuncCommit":{"ID":"b2567b37d7b75eb4cf325b77297b140ea686ce8f","Expected":"b2567b37d7b75eb4cf325b77297b140ea686ce8f"},"InitCommit":{"ID":"949e6fa","Expected":"949e6fa"},"SecurityOptions":["name=seccomp,profile=default"]} EOF expected_output = { diff --git a/spec/unit/plugins/ec2_spec.rb b/spec/unit/plugins/ec2_spec.rb index 00937a3a..6103d1a7 100644 --- a/spec/unit/plugins/ec2_spec.rb +++ b/spec/unit/plugins/ec2_spec.rb @@ -48,9 +48,9 @@ describe Ohai::System, "plugin ec2" do t = double("connection") allow(t).to receive(:connect_nonblock).and_raise(Errno::EINPROGRESS) allow(Socket).to receive(:new).and_return(t) - expect(@http_client).to receive(:get). - with("/"). - and_return(double("Net::HTTP Response", :body => "2012-01-12", :code => "200")) + expect(@http_client).to receive(:get) + .with("/") + .and_return(double("Net::HTTP Response", body: "2012-01-12", code: "200")) end context "with common metadata paths" do @@ -64,16 +64,16 @@ describe Ohai::System, "plugin ec2" do it "recursively fetches all the ec2 metadata" do paths.each do |name, body| - expect(@http_client).to receive(:get). - with("/2012-01-12/#{name}"). - and_return(double("Net::HTTP Response", :body => body, :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/#{name}") + .and_return(double("Net::HTTP Response", body: body, code: "200")) end - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "By the pricking of my thumb...", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"accountId\":\"4815162342\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "By the pricking of my thumb...", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"accountId\":\"4815162342\"}", code: "200")) plugin.run @@ -85,16 +85,16 @@ describe Ohai::System, "plugin ec2" do it "fetches binary userdata opaquely" do paths.each do |name, body| - expect(@http_client).to receive(:get). - with("/2012-01-12/#{name}"). - and_return(double("Net::HTTP Response", :body => body, :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/#{name}") + .and_return(double("Net::HTTP Response", body: body, code: "200")) end - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "^_<8B>^H^H<C7>U^@^Csomething^@KT<C8><C9>,)<C9>IU(I-.I<CB><CC>I<E5>^B^@^Qz<BF><B0>^R^@^@^@", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"accountId\":\"4815162342\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "^_<8B>^H^H<C7>U^@^Csomething^@KT<C8><C9>,)<C9>IU(I-.I<CB><CC>I<E5>^B^@^Qz<BF><B0>^R^@^@^@", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"accountId\":\"4815162342\"}", code: "200")) plugin.run @@ -107,16 +107,16 @@ describe Ohai::System, "plugin ec2" do it "fetches AWS account id" do paths.each do |name, body| - expect(@http_client).to receive(:get). - with("/2012-01-12/#{name}"). - and_return(double("Net::HTTP Response", :body => body, :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/#{name}") + .and_return(double("Net::HTTP Response", body: body, code: "200")) end - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "^_<8B>^H^H<C7>U^@^Csomething^@KT<C8><C9>,)<C9>IU(I-.I<CB><CC>I<E5>^B^@^Qz<BF><B0>^R^@^@^@", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"accountId\":\"4815162342\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "^_<8B>^H^H<C7>U^@^Csomething^@KT<C8><C9>,)<C9>IU(I-.I<CB><CC>I<E5>^B^@^Qz<BF><B0>^R^@^@^@", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"accountId\":\"4815162342\"}", code: "200")) plugin.run @@ -129,16 +129,16 @@ describe Ohai::System, "plugin ec2" do it "fetches AWS region" do paths.each do |name, body| - expect(@http_client).to receive(:get). - with("/2012-01-12/#{name}"). - and_return(double("Net::HTTP Response", :body => body, :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/#{name}") + .and_return(double("Net::HTTP Response", body: body, code: "200")) end - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "^_<8B>^H^H<C7>U^@^Csomething^@KT<C8><C9>,)<C9>IU(I-.I<CB><CC>I<E5>^B^@^Qz<BF><B0>^R^@^@^@", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"region\":\"us-east-1\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "^_<8B>^H^H<C7>U^@^Csomething^@KT<C8><C9>,)<C9>IU(I-.I<CB><CC>I<E5>^B^@^Qz<BF><B0>^R^@^@^@", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"region\":\"us-east-1\"}", code: "200")) plugin.run @@ -151,16 +151,16 @@ describe Ohai::System, "plugin ec2" do it "fetches AWS availability zone" do paths.each do |name, body| - expect(@http_client).to receive(:get). - with("/2012-01-12/#{name}"). - and_return(double("Net::HTTP Response", :body => body, :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/#{name}") + .and_return(double("Net::HTTP Response", body: body, code: "200")) end - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "^_<8B>^H^H<C7>U^@^Csomething^@KT<C8><C9>,)<C9>IU(I-.I<CB><CC>I<E5>^B^@^Qz<BF><B0>^R^@^@^@", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"availabilityZone\":\"us-east-1d\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "^_<8B>^H^H<C7>U^@^Csomething^@KT<C8><C9>,)<C9>IU(I-.I<CB><CC>I<E5>^B^@^Qz<BF><B0>^R^@^@^@", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"availabilityZone\":\"us-east-1d\"}", code: "200")) plugin.run @@ -173,30 +173,30 @@ describe Ohai::System, "plugin ec2" do end it "parses ec2 network/ directory as a multi-level hash" do - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/"). - and_return(double("Net::HTTP Response", :body => "network/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/network/"). - and_return(double("Net::HTTP Response", :body => "interfaces/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/network/interfaces/"). - and_return(double("Net::HTTP Response", :body => "macs/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/network/interfaces/macs/"). - and_return(double("Net::HTTP Response", :body => "12:34:56:78:9a:bc/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/network/interfaces/macs/12:34:56:78:9a:bc/"). - and_return(double("Net::HTTP Response", :body => "public_hostname", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/network/interfaces/macs/12:34:56:78:9a:bc/public_hostname"). - and_return(double("Net::HTTP Response", :body => "server17.opscode.com", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "By the pricking of my thumb...", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"accountId\":\"4815162342\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/") + .and_return(double("Net::HTTP Response", body: "network/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/network/") + .and_return(double("Net::HTTP Response", body: "interfaces/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/network/interfaces/") + .and_return(double("Net::HTTP Response", body: "macs/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/network/interfaces/macs/") + .and_return(double("Net::HTTP Response", body: "12:34:56:78:9a:bc/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/network/interfaces/macs/12:34:56:78:9a:bc/") + .and_return(double("Net::HTTP Response", body: "public_hostname", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/network/interfaces/macs/12:34:56:78:9a:bc/public_hostname") + .and_return(double("Net::HTTP Response", body: "server17.opscode.com", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "By the pricking of my thumb...", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"accountId\":\"4815162342\"}", code: "200")) plugin.run @@ -210,24 +210,24 @@ describe Ohai::System, "plugin ec2" do end it "parses ec2 iam/ directory and collect iam/security-credentials/" do - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/"). - and_return(double("Net::HTTP Response", :body => "iam/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/iam/"). - and_return(double("Net::HTTP Response", :body => "security-credentials/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/iam/security-credentials/"). - and_return(double("Net::HTTP Response", :body => "MyRole", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/iam/security-credentials/MyRole"). - and_return(double("Net::HTTP Response", :body => "{\n \"Code\" : \"Success\",\n \"LastUpdated\" : \"2012-08-22T07:47:22Z\",\n \"Type\" : \"AWS-HMAC\",\n \"AccessKeyId\" : \"AAAAAAAA\",\n \"SecretAccessKey\" : \"SSSSSSSS\",\n \"Token\" : \"12345678\",\n \"Expiration\" : \"2012-08-22T11:25:52Z\"\n}", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "By the pricking of my thumb...", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"accountId\":\"4815162342\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/") + .and_return(double("Net::HTTP Response", body: "iam/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/iam/") + .and_return(double("Net::HTTP Response", body: "security-credentials/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/iam/security-credentials/") + .and_return(double("Net::HTTP Response", body: "MyRole", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/iam/security-credentials/MyRole") + .and_return(double("Net::HTTP Response", body: "{\n \"Code\" : \"Success\",\n \"LastUpdated\" : \"2012-08-22T07:47:22Z\",\n \"Type\" : \"AWS-HMAC\",\n \"AccessKeyId\" : \"AAAAAAAA\",\n \"SecretAccessKey\" : \"SSSSSSSS\",\n \"Token\" : \"12345678\",\n \"Expiration\" : \"2012-08-22T11:25:52Z\"\n}", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "By the pricking of my thumb...", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"accountId\":\"4815162342\"}", code: "200")) plugin.run @@ -243,24 +243,24 @@ describe Ohai::System, "plugin ec2" do end it "parses ec2 iam/ directory and NOT collect iam/security-credentials/" do - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/"). - and_return(double("Net::HTTP Response", :body => "iam/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/iam/"). - and_return(double("Net::HTTP Response", :body => "security-credentials/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/iam/security-credentials/"). - and_return(double("Net::HTTP Response", :body => "MyRole", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/iam/security-credentials/MyRole"). - and_return(double("Net::HTTP Response", :body => "{\n \"Code\" : \"Success\",\n \"LastUpdated\" : \"2012-08-22T07:47:22Z\",\n \"Type\" : \"AWS-HMAC\",\n \"AccessKeyId\" : \"AAAAAAAA\",\n \"SecretAccessKey\" : \"SSSSSSSS\",\n \"Token\" : \"12345678\",\n \"Expiration\" : \"2012-08-22T11:25:52Z\"\n}", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "By the pricking of my thumb...", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"accountId\":\"4815162342\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/") + .and_return(double("Net::HTTP Response", body: "iam/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/iam/") + .and_return(double("Net::HTTP Response", body: "security-credentials/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/iam/security-credentials/") + .and_return(double("Net::HTTP Response", body: "MyRole", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/iam/security-credentials/MyRole") + .and_return(double("Net::HTTP Response", body: "{\n \"Code\" : \"Success\",\n \"LastUpdated\" : \"2012-08-22T07:47:22Z\",\n \"Type\" : \"AWS-HMAC\",\n \"AccessKeyId\" : \"AAAAAAAA\",\n \"SecretAccessKey\" : \"SSSSSSSS\",\n \"Token\" : \"12345678\",\n \"Expiration\" : \"2012-08-22T11:25:52Z\"\n}", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "By the pricking of my thumb...", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"accountId\":\"4815162342\"}", code: "200")) plugin.run @@ -270,39 +270,39 @@ describe Ohai::System, "plugin ec2" do end it "ignores \"./\" and \"../\" on ec2 metadata paths to avoid infinity loops" do - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/"). - and_return(double("Net::HTTP Response", :body => ".\n./\n..\n../\npath1/.\npath2/./\npath3/..\npath4/../", :code => "200")) - - expect(@http_client).not_to receive(:get). - with("/2012-01-12/meta-data/.") - expect(@http_client).not_to receive(:get). - with("/2012-01-12/meta-data/./") - expect(@http_client).not_to receive(:get). - with("/2012-01-12/meta-data/..") - expect(@http_client).not_to receive(:get). - with("/2012-01-12/meta-data/../") - expect(@http_client).not_to receive(:get). - with("/2012-01-12/meta-data/path1/..") - - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/path1/"). - and_return(double("Net::HTTP Response", :body => "", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/path2/"). - and_return(double("Net::HTTP Response", :body => "", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/path3/"). - and_return(double("Net::HTTP Response", :body => "", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/path4/"). - and_return(double("Net::HTTP Response", :body => "", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "By the pricking of my thumb...", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"accountId\":\"4815162342\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/") + .and_return(double("Net::HTTP Response", body: ".\n./\n..\n../\npath1/.\npath2/./\npath3/..\npath4/../", code: "200")) + + expect(@http_client).not_to receive(:get) + .with("/2012-01-12/meta-data/.") + expect(@http_client).not_to receive(:get) + .with("/2012-01-12/meta-data/./") + expect(@http_client).not_to receive(:get) + .with("/2012-01-12/meta-data/..") + expect(@http_client).not_to receive(:get) + .with("/2012-01-12/meta-data/../") + expect(@http_client).not_to receive(:get) + .with("/2012-01-12/meta-data/path1/..") + + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/path1/") + .and_return(double("Net::HTTP Response", body: "", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/path2/") + .and_return(double("Net::HTTP Response", body: "", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/path3/") + .and_return(double("Net::HTTP Response", body: "", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/path4/") + .and_return(double("Net::HTTP Response", body: "", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "By the pricking of my thumb...", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"accountId\":\"4815162342\"}", code: "200")) plugin.run @@ -310,21 +310,21 @@ describe Ohai::System, "plugin ec2" do end it "completes the run despite unavailable metadata" do - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/"). - and_return(double("Net::HTTP Response", :body => "metrics/", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/metrics/"). - and_return(double("Net::HTTP Response", :body => "vhostmd", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/metrics/vhostmd"). - and_return(double("Net::HTTP Response", :body => "", :code => "404")) - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "By the pricking of my thumb...", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/dynamic/instance-identity/document/"). - and_return(double("Net::HTTP Response", :body => "{\"accountId\":\"4815162342\"}", :code => "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/") + .and_return(double("Net::HTTP Response", body: "metrics/", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/metrics/") + .and_return(double("Net::HTTP Response", body: "vhostmd", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/metrics/vhostmd") + .and_return(double("Net::HTTP Response", body: "", code: "404")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "By the pricking of my thumb...", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/dynamic/instance-identity/document/") + .and_return(double("Net::HTTP Response", body: "{\"accountId\":\"4815162342\"}", code: "200")) plugin.run diff --git a/spec/unit/plugins/eucalyptus_spec.rb b/spec/unit/plugins/eucalyptus_spec.rb index 426301af..a21c203b 100644 --- a/spec/unit/plugins/eucalyptus_spec.rb +++ b/spec/unit/plugins/eucalyptus_spec.rb @@ -35,24 +35,24 @@ describe Ohai::System, "plugin eucalyptus" do @http_client = double("Net::HTTP client") allow(plugin).to receive(:http_client).and_return(@http_client) - expect(@http_client).to receive(:get). - with("/"). - and_return(double("Net::HTTP Response", :body => "2012-01-12", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/"). - and_return(double("Net::HTTP Response", :body => "instance_type\nami_id\nsecurity-groups", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/instance_type"). - and_return(double("Net::HTTP Response", :body => "c1.medium", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/ami_id"). - and_return(double("Net::HTTP Response", :body => "ami-5d2dc934", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/meta-data/security-groups"). - and_return(double("Net::HTTP Response", :body => "group1\ngroup2", :code => "200")) - expect(@http_client).to receive(:get). - with("/2012-01-12/user-data/"). - and_return(double("Net::HTTP Response", :body => "By the pricking of my thumb...", :code => "200")) + expect(@http_client).to receive(:get) + .with("/") + .and_return(double("Net::HTTP Response", body: "2012-01-12", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/") + .and_return(double("Net::HTTP Response", body: "instance_type\nami_id\nsecurity-groups", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/instance_type") + .and_return(double("Net::HTTP Response", body: "c1.medium", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/ami_id") + .and_return(double("Net::HTTP Response", body: "ami-5d2dc934", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/meta-data/security-groups") + .and_return(double("Net::HTTP Response", body: "group1\ngroup2", code: "200")) + expect(@http_client).to receive(:get) + .with("/2012-01-12/user-data/") + .and_return(double("Net::HTTP Response", body: "By the pricking of my thumb...", code: "200")) end it "recursively fetches all the eucalyptus metadata" do @@ -97,7 +97,7 @@ describe Ohai::System, "plugin eucalyptus" do it_behaves_like "!eucalyptus" before(:each) do - plugin[:network] = { :interfaces => {} } + plugin[:network] = { interfaces: {} } allow(plugin).to receive(:hint?).with("eucalyptus").and_return(false) end end diff --git a/spec/unit/plugins/fail_spec.rb b/spec/unit/plugins/fail_spec.rb index 7274bae8..75330cb4 100644 --- a/spec/unit/plugins/fail_spec.rb +++ b/spec/unit/plugins/fail_spec.rb @@ -55,7 +55,7 @@ shared_examples "a v7 loading failure" do it "should not have attribute keys" do @loader.load_plugin("#{tmp}/plugins/fail.rb") - #@ohai.attributes.should_not have_key("fail") + # @ohai.attributes.should_not have_key("fail") expect { @ohai.provides_map.find_providers_for(["fail"]) }.to raise_error(Ohai::Exceptions::AttributeNotFound) end @@ -152,23 +152,23 @@ shared_examples "a v7 run failure" do end describe "when using DSL commands outside Ohai.plugin block" do - failstr1 = <<EOF -provides "fail" -Ohai.plugin do -end + failstr1 = <<~EOF + provides "fail" + Ohai.plugin do + end EOF - failstr2 = <<EOF -depends "fail" -Ohai.plugin do -end + failstr2 = <<~EOF + depends "fail" + Ohai.plugin do + end EOF - failstr3 = <<EOF -collect_data do -end -Ohai.plugin do -end + failstr3 = <<~EOF + collect_data do + end + Ohai.plugin do + end EOF it_behaves_like "a v7 loading failure" do diff --git a/spec/unit/plugins/freebsd/cpu_spec.rb b/spec/unit/plugins/freebsd/cpu_spec.rb index b4e16ed4..2b71a417 100644 --- a/spec/unit/plugins/freebsd/cpu_spec.rb +++ b/spec/unit/plugins/freebsd/cpu_spec.rb @@ -23,21 +23,21 @@ describe Ohai::System, "FreeBSD cpu plugin on FreeBSD >=10.2" do @plugin = get_plugin("freebsd/cpu") allow(@plugin).to receive(:collect_os).and_return(:freebsd) @double_file = double("/var/run/dmesg.boot") - allow(@double_file).to receive(:each). - and_yield("CPU: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (2793.59-MHz K8-class CPU)"). - and_yield(' Origin="GenuineIntel" Id=0x40661 Family=0x6 Model=0x46 Stepping=1'). - and_yield(" Features=0x783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>"). - and_yield(" Features2=0x5ed8220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,RDRAND>"). - and_yield(" AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>"). - and_yield(" AMD Features2=0x21<LAHF,ABM>"). - and_yield(" Structured Extended Features=0x2000<NFPUSG>"). - and_yield(" TSC: P-state invariant"). - and_yield("real memory = 1073676288 (1023 MB)"). - and_yield("avail memory = 1010253824 (963 MB)"). - and_yield('Event timer "LAPIC" quality 400'). - and_yield("ACPI APIC Table: <VBOX VBOXAPIC>"). - and_yield("FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs"). - and_yield("FreeBSD/SMP: 2 package(s) x 4 core(s) x 2 SMT threads") + allow(@double_file).to receive(:each) + .and_yield("CPU: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (2793.59-MHz K8-class CPU)") + .and_yield(' Origin="GenuineIntel" Id=0x40661 Family=0x6 Model=0x46 Stepping=1') + .and_yield(" Features=0x783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>") + .and_yield(" Features2=0x5ed8220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,RDRAND>") + .and_yield(" AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>") + .and_yield(" AMD Features2=0x21<LAHF,ABM>") + .and_yield(" Structured Extended Features=0x2000<NFPUSG>") + .and_yield(" TSC: P-state invariant") + .and_yield("real memory = 1073676288 (1023 MB)") + .and_yield("avail memory = 1010253824 (963 MB)") + .and_yield('Event timer "LAPIC" quality 400') + .and_yield("ACPI APIC Table: <VBOX VBOXAPIC>") + .and_yield("FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs") + .and_yield("FreeBSD/SMP: 2 package(s) x 4 core(s) x 2 SMT threads") allow(File).to receive(:open).with("/var/run/dmesg.boot").and_return(@double_file) end @@ -99,9 +99,9 @@ describe Ohai::System, "FreeBSD cpu plugin on FreeBSD <=10.1" do allow(@plugin).to receive(:collect_os).and_return(:freebsd) allow(@plugin).to receive(:shell_out).with("sysctl -n hw.ncpu").and_return(mock_shell_out(0, "2", "")) @double_file = double("/var/run/dmesg.boot") - allow(@double_file).to receive(:each). - and_yield("CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (1596.03-MHz 686-class CPU)"). - and_yield(' Origin = "GenuineIntel" Id = 0x106c2 Family = 0x6 Model = 0x1c Stepping = 2') + allow(@double_file).to receive(:each) + .and_yield("CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (1596.03-MHz 686-class CPU)") + .and_yield(' Origin = "GenuineIntel" Id = 0x106c2 Family = 0x6 Model = 0x1c Stepping = 2') allow(File).to receive(:open).with("/var/run/dmesg.boot").and_return(@double_file) end diff --git a/spec/unit/plugins/freebsd/kernel_spec.rb b/spec/unit/plugins/freebsd/kernel_spec.rb index 9830676d..d79379db 100644 --- a/spec/unit/plugins/freebsd/kernel_spec.rb +++ b/spec/unit/plugins/freebsd/kernel_spec.rb @@ -22,7 +22,7 @@ describe Ohai::System, "FreeBSD kernel plugin" do before(:each) do @plugin = get_plugin("kernel") allow(@plugin).to receive(:collect_os).and_return(:freebsd) - allow(@plugin).to receive(:init_kernel).and_return({ :name => "freebsd" }) + allow(@plugin).to receive(:init_kernel).and_return({ name: "freebsd" }) allow(@plugin).to receive(:shell_out).with("uname -i").and_return(mock_shell_out(0, "foo\n", "")) allow(@plugin).to receive(:shell_out).with("sysctl kern.securelevel").and_return(mock_shell_out(0, "kern.securelevel: 1", "")) allow(@plugin).to receive(:shell_out).with( Ohai.abs_path( "/sbin/kldstat" )).and_return(mock_shell_out(0, " 1 7 0xc0400000 97f830 kernel", "")) diff --git a/spec/unit/plugins/gce_spec.rb b/spec/unit/plugins/gce_spec.rb index d357451c..e769a9d2 100644 --- a/spec/unit/plugins/gce_spec.rb +++ b/spec/unit/plugins/gce_spec.rb @@ -36,7 +36,7 @@ describe Ohai::System, "plugin gce" do shared_examples_for "gce" do before(:each) do @http_get = double("Net::HTTP client") - allow(plugin).to receive(:http_get).and_return(double("Net::HTTP Response", :body => '{"instance":{"hostname":"test-host"}}', :code => "200")) + allow(plugin).to receive(:http_get).and_return(double("Net::HTTP Response", body: '{"instance":{"hostname":"test-host"}}', code: "200")) allow(IO).to receive(:select).and_return([[], [1], []]) t = double("connection") allow(t).to receive(:connect_nonblock).and_raise(Errno::EINPROGRESS) diff --git a/spec/unit/plugins/init_package_spec.rb b/spec/unit/plugins/init_package_spec.rb index 58966307..4cf597e1 100644 --- a/spec/unit/plugins/init_package_spec.rb +++ b/spec/unit/plugins/init_package_spec.rb @@ -28,7 +28,7 @@ describe Ohai::System, "Init package" do let(:proc1_content) { "init\n" } let(:proc1_exists) { true } let(:proc_1_file_path) { "/proc/1/comm" } - let(:proc_1_file) { double(proc_1_file_path, :gets => proc1_content) } + let(:proc_1_file) { double(proc_1_file_path, gets: proc1_content) } before(:each) do allow(File).to receive(:exist?).with(proc_1_file_path).and_return(proc1_exists) diff --git a/spec/unit/plugins/java_spec.rb b/spec/unit/plugins/java_spec.rb index 2335d644..148eab56 100644 --- a/spec/unit/plugins/java_spec.rb +++ b/spec/unit/plugins/java_spec.rb @@ -193,8 +193,8 @@ describe Ohai::System, "plugin java (Java5 Client VM)" do context "and real Java is installed" do before do - java_home_status = double(Process::Status, :success? => true) - java_home_cmd = double(Mixlib::ShellOut, :status => java_home_status) + java_home_status = double(Process::Status, success?: true) + java_home_cmd = double(Mixlib::ShellOut, status: java_home_status) expect(plugin).to receive(:shell_out).with("/usr/libexec/java_home").and_return(java_home_cmd) end @@ -211,8 +211,8 @@ describe Ohai::System, "plugin java (Java5 Client VM)" do context "and the JVM stubs are installed" do before do - java_home_status = double(Process::Status, :success? => false) - java_home_cmd = double(Mixlib::ShellOut, :status => java_home_status) + java_home_status = double(Process::Status, success?: false) + java_home_cmd = double(Mixlib::ShellOut, status: java_home_status) expect(plugin).to receive(:shell_out).with("/usr/libexec/java_home").and_return(java_home_cmd) end diff --git a/spec/unit/plugins/joyent_spec.rb b/spec/unit/plugins/joyent_spec.rb index 8ee854e0..24782445 100644 --- a/spec/unit/plugins/joyent_spec.rb +++ b/spec/unit/plugins/joyent_spec.rb @@ -61,17 +61,17 @@ describe Ohai::System, "plugin joyent" do plugin[:virtualization][:guest_uuid] = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" plugin[:virtualization][:guest_id] = "30" - etc_product = <<-EOS -Name: Joyent Instance -Image: pkgbuild 16.3.1 -Documentation: https://docs.joyent.com/images/smartos/pkgbuild + etc_product = <<~EOS + Name: Joyent Instance + Image: pkgbuild 16.3.1 + Documentation: https://docs.joyent.com/images/smartos/pkgbuild EOS - pkg_install_conf = <<-EOS -GPG_KEYRING_VERIFY=/opt/local/etc/gnupg/pkgsrc.gpg -GPG_KEYRING_PKGVULN=/opt/local/share/gnupg/pkgsrc-security.gpg -PKG_PATH=https://pkgsrc.joyent.com/packages/SmartOS/2016Q3/x86_64/All -VERIFIED_INSTALLATION=trusted + pkg_install_conf = <<~EOS + GPG_KEYRING_VERIFY=/opt/local/etc/gnupg/pkgsrc.gpg + GPG_KEYRING_PKGVULN=/opt/local/share/gnupg/pkgsrc-security.gpg + PKG_PATH=https://pkgsrc.joyent.com/packages/SmartOS/2016Q3/x86_64/All + VERIFIED_INSTALLATION=trusted EOS allow(::File).to receive(:read).with("/etc/product").and_return(etc_product) diff --git a/spec/unit/plugins/linux/block_device_spec.rb b/spec/unit/plugins/linux/block_device_spec.rb index 57d2929f..0ae45036 100644 --- a/spec/unit/plugins/linux/block_device_spec.rb +++ b/spec/unit/plugins/linux/block_device_spec.rb @@ -33,7 +33,7 @@ describe Ohai::System, "Linux Block Device Plugin" do "size" => "7806976", "removable" => "0", }, - } + }.freeze def file_double(value) tmp_double = double diff --git a/spec/unit/plugins/linux/cpu_spec.rb b/spec/unit/plugins/linux/cpu_spec.rb index 120b64ae..a34345d8 100644 --- a/spec/unit/plugins/linux/cpu_spec.rb +++ b/spec/unit/plugins/linux/cpu_spec.rb @@ -42,20 +42,20 @@ shared_examples "S390 processor info" do |cpu_no, version, identification, machi describe "S390 processor" do it "has a version for cpu #{cpu_no}" do plugin.run - expect(plugin[:cpu]["#{cpu_no}"]).to have_key("version") - expect(plugin[:cpu]["#{cpu_no}"]["version"]).to eql(version) + expect(plugin[:cpu][cpu_no.to_s]).to have_key("version") + expect(plugin[:cpu][cpu_no.to_s]["version"]).to eql(version) end it "has a identification for cpu #{cpu_no}" do plugin.run - expect(plugin[:cpu]["#{cpu_no}"]).to have_key("identification") - expect(plugin[:cpu]["#{cpu_no}"]["identification"]).to eql(identification) + expect(plugin[:cpu][cpu_no.to_s]).to have_key("identification") + expect(plugin[:cpu][cpu_no.to_s]["identification"]).to eql(identification) end it "has a machine for cpu #{cpu_no}" do plugin.run - expect(plugin[:cpu]["#{cpu_no}"]).to have_key("machine") - expect(plugin[:cpu]["#{cpu_no}"]["machine"]).to eql(machine) + expect(plugin[:cpu][cpu_no.to_s]).to have_key("machine") + expect(plugin[:cpu][cpu_no.to_s]["machine"]).to eql(machine) end end end @@ -64,14 +64,14 @@ shared_examples "arm64 processor info" do |cpu_no, bogomips, features| describe "arm64 processor" do it "has bogomips for cpu #{cpu_no}" do plugin.run - expect(plugin[:cpu]["#{cpu_no}"]).to have_key("bogomips") - expect(plugin[:cpu]["#{cpu_no}"]["bogomips"]).to eql(bogomips) + expect(plugin[:cpu][cpu_no.to_s]).to have_key("bogomips") + expect(plugin[:cpu][cpu_no.to_s]["bogomips"]).to eql(bogomips) end it "has features for cpu #{cpu_no}" do plugin.run - expect(plugin[:cpu]["#{cpu_no}"]).to have_key("features") - expect(plugin[:cpu]["#{cpu_no}"]["features"]).to eql(features) + expect(plugin[:cpu][cpu_no.to_s]).to have_key("features") + expect(plugin[:cpu][cpu_no.to_s]["features"]).to eql(features) end end end @@ -126,31 +126,31 @@ describe Ohai::System, "General Linux cpu plugin" do end let(:lscpu) do - <<-EOF -Architecture: x86_64 -CPU op-mode(s): 32-bit, 64-bit -Byte Order: Little Endian -CPU(s): 1 -On-line CPU(s) list: 0 -Thread(s) per core: 1 -Core(s) per socket: 1 -Socket(s): 1 -NUMA node(s): 1 -Vendor ID: GenuineIntel -CPU family: 6 -Model: 23 -Model name: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz -Stepping: 2 -CPU MHz: 1968.770 -BogoMIPS: 2575.86 -Hypervisor vendor: Xen -Virtualization type: full -L1d cache: 32K -L1i cache: 32K -L2 cache: 256K -L3 cache: 30720K -NUMA node0 CPU(s): 0 -Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt + <<~EOF + Architecture: x86_64 + CPU op-mode(s): 32-bit, 64-bit + Byte Order: Little Endian + CPU(s): 1 + On-line CPU(s) list: 0 + Thread(s) per core: 1 + Core(s) per socket: 1 + Socket(s): 1 + NUMA node(s): 1 + Vendor ID: GenuineIntel + CPU family: 6 + Model: 23 + Model name: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz + Stepping: 2 + CPU MHz: 1968.770 + BogoMIPS: 2575.86 + Hypervisor vendor: Xen + Virtualization type: full + L1d cache: 32K + L1i cache: 32K + L2 cache: 256K + L3 cache: 30720K + NUMA node0 CPU(s): 0 + Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt EOF end @@ -235,110 +235,110 @@ Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca end context "with a dual-core hyperthreaded /proc/cpuinfo" do let(:cpuinfo_contents) do - <<-EOF -processor : 0 -vendor_id : GenuineIntel -cpu family : 6 -model : 69 -model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz -stepping : 1 -microcode : 0x17 -cpu MHz : 774.000 -cache size : 4096 KB -physical id : 0 -siblings : 4 -core id : 0 -cpu cores : 2 -apicid : 0 -initial apicid : 0 -fpu : yes -fpu_exception : yes -cpuid level : 13 -wp : yes -flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid -bogomips : 3591.40 -clflush size : 64 -cache_alignment : 64 -address sizes : 39 bits physical, 48 bits virtual -power management: - -processor : 1 -vendor_id : GenuineIntel -cpu family : 6 -model : 69 -model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz -stepping : 1 -microcode : 0x17 -cpu MHz : 1600.000 -cache size : 4096 KB -physical id : 0 -siblings : 4 -core id : 0 -cpu cores : 2 -apicid : 1 -initial apicid : 1 -fpu : yes -fpu_exception : yes -cpuid level : 13 -wp : yes -flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid -bogomips : 3591.40 -clflush size : 64 -cache_alignment : 64 -address sizes : 39 bits physical, 48 bits virtual -power management: - -processor : 2 -vendor_id : GenuineIntel -cpu family : 6 -model : 69 -model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz -stepping : 1 -microcode : 0x17 -cpu MHz : 800.000 -cache size : 4096 KB -physical id : 0 -siblings : 4 -core id : 1 -cpu cores : 2 -apicid : 2 -initial apicid : 2 -fpu : yes -fpu_exception : yes -cpuid level : 13 -wp : yes -flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid -bogomips : 3591.40 -clflush size : 64 -cache_alignment : 64 -address sizes : 39 bits physical, 48 bits virtual -power management: - -processor : 3 -vendor_id : GenuineIntel -cpu family : 6 -model : 69 -model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz -stepping : 1 -microcode : 0x17 -cpu MHz : 774.000 -cache size : 4096 KB -physical id : 0 -siblings : 4 -core id : 1 -cpu cores : 2 -apicid : 3 -initial apicid : 3 -fpu : yes -fpu_exception : yes -cpuid level : 13 -wp : yes -flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid -bogomips : 3591.40 -clflush size : 64 -cache_alignment : 64 -address sizes : 39 bits physical, 48 bits virtual -power management: + <<~EOF + processor : 0 + vendor_id : GenuineIntel + cpu family : 6 + model : 69 + model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz + stepping : 1 + microcode : 0x17 + cpu MHz : 774.000 + cache size : 4096 KB + physical id : 0 + siblings : 4 + core id : 0 + cpu cores : 2 + apicid : 0 + initial apicid : 0 + fpu : yes + fpu_exception : yes + cpuid level : 13 + wp : yes + flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid + bogomips : 3591.40 + clflush size : 64 + cache_alignment : 64 + address sizes : 39 bits physical, 48 bits virtual + power management: + + processor : 1 + vendor_id : GenuineIntel + cpu family : 6 + model : 69 + model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz + stepping : 1 + microcode : 0x17 + cpu MHz : 1600.000 + cache size : 4096 KB + physical id : 0 + siblings : 4 + core id : 0 + cpu cores : 2 + apicid : 1 + initial apicid : 1 + fpu : yes + fpu_exception : yes + cpuid level : 13 + wp : yes + flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid + bogomips : 3591.40 + clflush size : 64 + cache_alignment : 64 + address sizes : 39 bits physical, 48 bits virtual + power management: + + processor : 2 + vendor_id : GenuineIntel + cpu family : 6 + model : 69 + model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz + stepping : 1 + microcode : 0x17 + cpu MHz : 800.000 + cache size : 4096 KB + physical id : 0 + siblings : 4 + core id : 1 + cpu cores : 2 + apicid : 2 + initial apicid : 2 + fpu : yes + fpu_exception : yes + cpuid level : 13 + wp : yes + flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid + bogomips : 3591.40 + clflush size : 64 + cache_alignment : 64 + address sizes : 39 bits physical, 48 bits virtual + power management: + + processor : 3 + vendor_id : GenuineIntel + cpu family : 6 + model : 69 + model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz + stepping : 1 + microcode : 0x17 + cpu MHz : 774.000 + cache size : 4096 KB + physical id : 0 + siblings : 4 + core id : 1 + cpu cores : 2 + apicid : 3 + initial apicid : 3 + fpu : yes + fpu_exception : yes + cpuid level : 13 + wp : yes + flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid + bogomips : 3591.40 + clflush size : 64 + cache_alignment : 64 + address sizes : 39 bits physical, 48 bits virtual + power management: EOF end @@ -368,13 +368,13 @@ describe Ohai::System, "S390 linux cpu plugin" do allow(plugin).to receive(:shell_out).with("lscpu").and_return(mock_shell_out(1, "", "")) @double_file = double("/proc/cpuinfo") - allow(@double_file).to receive(:each). - and_yield("vendor_id : IBM/S390"). - and_yield("# processors : 2"). - and_yield("bogomips per cpu: 9328.00"). - and_yield("features : esan3 zarch stfle msa ldisp eimm dfp etf3eh highgprs"). - and_yield("processor 0: version = EE, identification = 06E276, machine = 2717"). - and_yield("processor 1: version = FF, identification = 06E278, machine = 2818") + allow(@double_file).to receive(:each) + .and_yield("vendor_id : IBM/S390") + .and_yield("# processors : 2") + .and_yield("bogomips per cpu: 9328.00") + .and_yield("features : esan3 zarch stfle msa ldisp eimm dfp etf3eh highgprs") + .and_yield("processor 0: version = EE, identification = 06E276, machine = 2717") + .and_yield("processor 1: version = FF, identification = 06E278, machine = 2818") allow(File).to receive(:open).with("/proc/cpuinfo").and_return(@double_file) end @@ -415,15 +415,15 @@ describe Ohai::System, "arm64 linux cpu plugin" do allow(plugin).to receive(:shell_out).with("lscpu").and_return(mock_shell_out(1, "", "")) @double_file = double("/proc/cpuinfo") - allow(@double_file).to receive(:each). - and_yield("processor : 0"). - and_yield("BogoMIPS : 40.00"). - and_yield("Features : fp asimd evtstrm aes pmull sha1 sha2 crc32"). - and_yield(""). - and_yield("processor : 1"). - and_yield("BogoMIPS : 40.00"). - and_yield("Features : fp asimd evtstrm aes pmull sha1 sha2 crc32"). - and_yield("") + allow(@double_file).to receive(:each) + .and_yield("processor : 0") + .and_yield("BogoMIPS : 40.00") + .and_yield("Features : fp asimd evtstrm aes pmull sha1 sha2 crc32") + .and_yield("") + .and_yield("processor : 1") + .and_yield("BogoMIPS : 40.00") + .and_yield("Features : fp asimd evtstrm aes pmull sha1 sha2 crc32") + .and_yield("") allow(File).to receive(:open).with("/proc/cpuinfo").and_return(@double_file) end diff --git a/spec/unit/plugins/linux/filesystem_spec.rb b/spec/unit/plugins/linux/filesystem_spec.rb index 322d9718..459f744e 100644 --- a/spec/unit/plugins/linux/filesystem_spec.rb +++ b/spec/unit/plugins/linux/filesystem_spec.rb @@ -1,6 +1,6 @@ # # Author:: Matthew Kent (<mkent@magoazul.com>) -# Copyright:: Copyright (c) 2011-2016 Chef Software, Inc. +# Copyright:: Copyright (c) 2011-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -32,9 +32,9 @@ describe Ohai::System, "Linux filesystem plugin" do allow(plugin).to receive(:which).with("blkid").and_return("/sbin/blkid") allow(plugin).to receive(:shell_out).with("/sbin/blkid", timeout: 60).and_return(mock_shell_out(0, "", "")) - allow(plugin).to receive(:shell_out). - with("lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60). - and_return(mock_shell_out(0, "", "")) + allow(plugin).to receive(:shell_out) + .with("lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60) + .and_return(mock_shell_out(0, "", "")) allow(File).to receive(:exist?).with("/proc/mounts").and_return(false) @@ -57,29 +57,29 @@ describe Ohai::System, "Linux filesystem plugin" do describe "when gathering filesystem usage data from df" do before(:each) do - @stdout = <<-DF -Filesystem 1024-blocks Used Available Capacity Mounted on -/dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / -tmpfs 2030944 0 2030944 0% /lib/init/rw -udev 2025576 228 2025348 1% /dev -tmpfs 2030944 2960 2027984 1% /dev/shm -/dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home -/dev/mapper/sys.vg-special.lv 97605057 53563253 44041805 56% /special -/dev/mapper/sys.vg-tmp.lv 1919048 46588 1774976 3% /tmp -/dev/mapper/sys.vg-usr.lv 19223252 5479072 12767696 31% /usr -/dev/mapper/sys.vg-var.lv 19223252 3436556 14810212 19% /var -/dev/md0 960492 36388 875312 4% /boot + @stdout = <<~DF + Filesystem 1024-blocks Used Available Capacity Mounted on + /dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / + tmpfs 2030944 0 2030944 0% /lib/init/rw + udev 2025576 228 2025348 1% /dev + tmpfs 2030944 2960 2027984 1% /dev/shm + /dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home + /dev/mapper/sys.vg-special.lv 97605057 53563253 44041805 56% /special + /dev/mapper/sys.vg-tmp.lv 1919048 46588 1774976 3% /tmp + /dev/mapper/sys.vg-usr.lv 19223252 5479072 12767696 31% /usr + /dev/mapper/sys.vg-var.lv 19223252 3436556 14810212 19% /var + /dev/md0 960492 36388 875312 4% /boot DF allow(plugin).to receive(:shell_out).with("df -P").and_return(mock_shell_out(0, @stdout, "")) - @inode_stdout = <<-DFi -Filesystem Inodes IUsed IFree IUse% Mounted on -/dev/xvda1 1310720 107407 1203313 9% / -/dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special -tmpfs 126922 273 126649 1% /run -none 126922 1 126921 1% /run/lock -none 126922 1 126921 1% /run/shm -DFi + @inode_stdout = <<~DFI + Filesystem Inodes IUsed IFree IUse% Mounted on + /dev/xvda1 1310720 107407 1203313 9% / + /dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special + tmpfs 126922 273 126649 1% /run + none 126922 1 126921 1% /run/lock + none 126922 1 126921 1% /run/shm +DFI allow(plugin).to receive(:shell_out).with("df -iP").and_return(mock_shell_out(0, @inode_stdout, "")) end @@ -132,22 +132,22 @@ DFi describe "when gathering mounted filesystem data from mount" do before(:each) do - @stdout = <<-MOUNT -/dev/mapper/sys.vg-root.lv on / type ext4 (rw,noatime,errors=remount-ro) -tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) -proc on /proc type proc (rw,noexec,nosuid,nodev) -sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) -udev on /dev type tmpfs (rw,mode=0755) -tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) -devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) -/dev/mapper/sys.vg-home.lv on /home type xfs (rw,noatime) -/dev/mapper/sys.vg-special.lv on /special type xfs (ro,noatime) -/dev/mapper/sys.vg-tmp.lv on /tmp type ext4 (rw,noatime) -/dev/mapper/sys.vg-usr.lv on /usr type ext4 (rw,noatime) -/dev/mapper/sys.vg-var.lv on /var type ext4 (rw,noatime) -/dev/md0 on /boot type ext3 (rw,noatime,errors=remount-ro) -fusectl on /sys/fs/fuse/connections type fusectl (rw) -binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) + @stdout = <<~MOUNT + /dev/mapper/sys.vg-root.lv on / type ext4 (rw,noatime,errors=remount-ro) + tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) + proc on /proc type proc (rw,noexec,nosuid,nodev) + sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) + udev on /dev type tmpfs (rw,mode=0755) + tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) + devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) + /dev/mapper/sys.vg-home.lv on /home type xfs (rw,noatime) + /dev/mapper/sys.vg-special.lv on /special type xfs (ro,noatime) + /dev/mapper/sys.vg-tmp.lv on /tmp type ext4 (rw,noatime) + /dev/mapper/sys.vg-usr.lv on /usr type ext4 (rw,noatime) + /dev/mapper/sys.vg-var.lv on /var type ext4 (rw,noatime) + /dev/md0 on /boot type ext3 (rw,noatime,errors=remount-ro) + fusectl on /sys/fs/fuse/connections type fusectl (rw) + binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) MOUNT allow(plugin).to receive(:shell_out).with("mount").and_return(mock_shell_out(0, @stdout, "")) end @@ -177,44 +177,44 @@ MOUNT before(:each) do # blkid and lsblk output are coorelated with df/mount output, so the # most full test of them actually requires we have both - @dfstdout = <<-DF -Filesystem 1024-blocks Used Available Capacity Mounted on -/dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / -tmpfs 2030944 0 2030944 0% /lib/init/rw -udev 2025576 228 2025348 1% /dev -tmpfs 2030944 2960 2027984 1% /dev/shm -/dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home -/dev/mapper/sys.vg-special.lv 97605057 53563253 44041805 56% /special -/dev/mapper/sys.vg-tmp.lv 1919048 46588 1774976 3% /tmp -/dev/mapper/sys.vg-usr.lv 19223252 5479072 12767696 31% /usr -/dev/mapper/sys.vg-var.lv 19223252 3436556 14810212 19% /var -/dev/md0 960492 36388 875312 4% /boot + @dfstdout = <<~DF + Filesystem 1024-blocks Used Available Capacity Mounted on + /dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / + tmpfs 2030944 0 2030944 0% /lib/init/rw + udev 2025576 228 2025348 1% /dev + tmpfs 2030944 2960 2027984 1% /dev/shm + /dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home + /dev/mapper/sys.vg-special.lv 97605057 53563253 44041805 56% /special + /dev/mapper/sys.vg-tmp.lv 1919048 46588 1774976 3% /tmp + /dev/mapper/sys.vg-usr.lv 19223252 5479072 12767696 31% /usr + /dev/mapper/sys.vg-var.lv 19223252 3436556 14810212 19% /var + /dev/md0 960492 36388 875312 4% /boot DF allow(plugin).to receive(:shell_out).with("df -P").and_return(mock_shell_out(0, @dfstdout, "")) - @inode_stdout = <<-DFi -Filesystem Inodes IUsed IFree IUse% Mounted on -/dev/xvda1 1310720 107407 1203313 9% / -/dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special -tmpfs 126922 273 126649 1% /run -none 126922 1 126921 1% /run/lock -none 126922 1 126921 1% /run/shm -DFi + @inode_stdout = <<~DFI + Filesystem Inodes IUsed IFree IUse% Mounted on + /dev/xvda1 1310720 107407 1203313 9% / + /dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special + tmpfs 126922 273 126649 1% /run + none 126922 1 126921 1% /run/lock + none 126922 1 126921 1% /run/shm +DFI allow(plugin).to receive(:shell_out).with("df -iP").and_return(mock_shell_out(0, @inode_stdout, "")) - @stdout = <<-BLKID_TYPE -/dev/sdb1: LABEL=\"fuego:0\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" TYPE=\"linux_raid_member\" -/dev/sdb2: LABEL=\"fuego:1\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" TYPE=\"linux_raid_member\" -/dev/sda1: LABEL=\"fuego:0\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" TYPE=\"linux_raid_member\" -/dev/sda2: LABEL=\"fuego:1\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" TYPE=\"linux_raid_member\" -/dev/md0: LABEL=\"/boot\" UUID=\"37b8de8e-0fe3-4b5a-b9b4-dde33e19bb32\" TYPE=\"ext3\" -/dev/md1: UUID=\"YsIe0R-fj1y-LXTd-imla-opKo-OuIe-TBoxSK\" TYPE=\"LVM2_member\" -/dev/mapper/sys.vg-root.lv: LABEL=\"/\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" TYPE=\"ext4\" -/dev/mapper/sys.vg-swap.lv: UUID=\"9bc2e515-8ddc-41c3-9f63-4eaebde9ce96\" TYPE=\"swap\" -/dev/mapper/sys.vg-tmp.lv: LABEL=\"/tmp\" UUID=\"74cf7eb9-428f-479e-9a4a-9943401e81e5\" TYPE=\"ext4\" -/dev/mapper/sys.vg-usr.lv: LABEL=\"/usr\" UUID=\"26ec33c5-d00b-4f88-a550-492def013bbc\" TYPE=\"ext4\" -/dev/mapper/sys.vg-var.lv: LABEL=\"/var\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" TYPE=\"ext4\" -/dev/mapper/sys.vg-home.lv: LABEL=\"/home\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" TYPE=\"xfs\" + @stdout = <<~BLKID_TYPE + /dev/sdb1: LABEL=\"fuego:0\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" TYPE=\"linux_raid_member\" + /dev/sdb2: LABEL=\"fuego:1\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" TYPE=\"linux_raid_member\" + /dev/sda1: LABEL=\"fuego:0\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" TYPE=\"linux_raid_member\" + /dev/sda2: LABEL=\"fuego:1\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" TYPE=\"linux_raid_member\" + /dev/md0: LABEL=\"/boot\" UUID=\"37b8de8e-0fe3-4b5a-b9b4-dde33e19bb32\" TYPE=\"ext3\" + /dev/md1: UUID=\"YsIe0R-fj1y-LXTd-imla-opKo-OuIe-TBoxSK\" TYPE=\"LVM2_member\" + /dev/mapper/sys.vg-root.lv: LABEL=\"/\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" TYPE=\"ext4\" + /dev/mapper/sys.vg-swap.lv: UUID=\"9bc2e515-8ddc-41c3-9f63-4eaebde9ce96\" TYPE=\"swap\" + /dev/mapper/sys.vg-tmp.lv: LABEL=\"/tmp\" UUID=\"74cf7eb9-428f-479e-9a4a-9943401e81e5\" TYPE=\"ext4\" + /dev/mapper/sys.vg-usr.lv: LABEL=\"/usr\" UUID=\"26ec33c5-d00b-4f88-a550-492def013bbc\" TYPE=\"ext4\" + /dev/mapper/sys.vg-var.lv: LABEL=\"/var\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" TYPE=\"ext4\" + /dev/mapper/sys.vg-home.lv: LABEL=\"/home\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" TYPE=\"xfs\" BLKID_TYPE allow(plugin).to receive(:shell_out).with("/sbin/blkid", timeout: 60).and_return(mock_shell_out(0, @stdout, "")) end @@ -233,51 +233,51 @@ BLKID_TYPE describe "when gathering filesystem type data from lsblk" do before(:each) do - @dfstdout = <<-DF -Filesystem 1024-blocks Used Available Capacity Mounted on -/dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / -tmpfs 2030944 0 2030944 0% /lib/init/rw -udev 2025576 228 2025348 1% /dev -tmpfs 2030944 2960 2027984 1% /dev/shm -/dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home -/dev/mapper/sys.vg-special.lv 97605057 53563253 44041805 56% /special -/dev/mapper/sys.vg-tmp.lv 1919048 46588 1774976 3% /tmp -/dev/mapper/sys.vg-usr.lv 19223252 5479072 12767696 31% /usr -/dev/mapper/sys.vg-var.lv 19223252 3436556 14810212 19% /var -/dev/md0 960492 36388 875312 4% /boot + @dfstdout = <<~DF + Filesystem 1024-blocks Used Available Capacity Mounted on + /dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / + tmpfs 2030944 0 2030944 0% /lib/init/rw + udev 2025576 228 2025348 1% /dev + tmpfs 2030944 2960 2027984 1% /dev/shm + /dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home + /dev/mapper/sys.vg-special.lv 97605057 53563253 44041805 56% /special + /dev/mapper/sys.vg-tmp.lv 1919048 46588 1774976 3% /tmp + /dev/mapper/sys.vg-usr.lv 19223252 5479072 12767696 31% /usr + /dev/mapper/sys.vg-var.lv 19223252 3436556 14810212 19% /var + /dev/md0 960492 36388 875312 4% /boot DF allow(plugin).to receive(:shell_out).with("df -P").and_return(mock_shell_out(0, @dfstdout, "")) - @inode_stdout = <<-DFi -Filesystem Inodes IUsed IFree IUse% Mounted on -/dev/xvda1 1310720 107407 1203313 9% / -/dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special -tmpfs 126922 273 126649 1% /run -none 126922 1 126921 1% /run/lock -none 126922 1 126921 1% /run/shm -DFi + @inode_stdout = <<~DFI + Filesystem Inodes IUsed IFree IUse% Mounted on + /dev/xvda1 1310720 107407 1203313 9% / + /dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special + tmpfs 126922 273 126649 1% /run + none 126922 1 126921 1% /run/lock + none 126922 1 126921 1% /run/shm +DFI allow(plugin).to receive(:shell_out).with("df -iP").and_return(mock_shell_out(0, @inode_stdout, "")) allow(plugin).to receive(:which).with("lsblk").and_return("/sbin/lsblk") allow(plugin).to receive(:which).with("blkid").and_return(nil) - @stdout = <<-BLKID_TYPE -NAME=\"sdb1\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" LABEL=\"fuego:0\" FSTYPE=\"LVM2_member\" -NAME=\"sdb2\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" LABEL=\"fuego:1\" FSTYPE=\"LVM2_member\" -NAME=\"sda1\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" LABEL=\"fuego:0\" FSTYPE=\"LVM2_member\" -NAME=\"sda2\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" LABEL=\"fuego:1\" FSTYPE=\"LVM2_member\" -NAME=\"md0\" UUID=\"37b8de8e-0fe3-4b5a-b9b4-dde33e19bb32\" LABEL=\"/boot\" FSTYPE=\"ext3\" -NAME=\"md1\" UUID=\"YsIe0R-fj1y-LXTd-imla-opKo-OuIe-TBoxSK\" LABEL=\"\" FSTYPE=\"LVM2_member\" -NAME=\"sys.vg-root.lv\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" LABEL=\"/\" FSTYPE=\"ext4\" -NAME=\"sys.vg-swap.lv\" UUID=\"9bc2e515-8ddc-41c3-9f63-4eaebde9ce96\" LABEL=\"\" FSTYPE=\"swap\" -NAME=\"sys.vg-tmp.lv\" UUID=\"74cf7eb9-428f-479e-9a4a-9943401e81e5\" LABEL=\"/tmp\" FSTYPE=\"ext4\" -NAME=\"sys.vg-usr.lv\" UUID=\"26ec33c5-d00b-4f88-a550-492def013bbc\" LABEL=\"/usr\" FSTYPE=\"ext4\" -NAME=\"sys.vg-var.lv\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" LABEL=\"/var\" FSTYPE=\"ext4\" -NAME=\"sys.vg-home.lv\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" LABEL=\"/home\" FSTYPE=\"xfs\" -NAME=\"debian--7-root (dm-0)\" UUID=\"09187faa-3512-4505-81af-7e86d2ccb99a\" LABEL=\"root\" FSTYPE=\"ext4\" + @stdout = <<~BLKID_TYPE + NAME=\"sdb1\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" LABEL=\"fuego:0\" FSTYPE=\"LVM2_member\" + NAME=\"sdb2\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" LABEL=\"fuego:1\" FSTYPE=\"LVM2_member\" + NAME=\"sda1\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" LABEL=\"fuego:0\" FSTYPE=\"LVM2_member\" + NAME=\"sda2\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" LABEL=\"fuego:1\" FSTYPE=\"LVM2_member\" + NAME=\"md0\" UUID=\"37b8de8e-0fe3-4b5a-b9b4-dde33e19bb32\" LABEL=\"/boot\" FSTYPE=\"ext3\" + NAME=\"md1\" UUID=\"YsIe0R-fj1y-LXTd-imla-opKo-OuIe-TBoxSK\" LABEL=\"\" FSTYPE=\"LVM2_member\" + NAME=\"sys.vg-root.lv\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" LABEL=\"/\" FSTYPE=\"ext4\" + NAME=\"sys.vg-swap.lv\" UUID=\"9bc2e515-8ddc-41c3-9f63-4eaebde9ce96\" LABEL=\"\" FSTYPE=\"swap\" + NAME=\"sys.vg-tmp.lv\" UUID=\"74cf7eb9-428f-479e-9a4a-9943401e81e5\" LABEL=\"/tmp\" FSTYPE=\"ext4\" + NAME=\"sys.vg-usr.lv\" UUID=\"26ec33c5-d00b-4f88-a550-492def013bbc\" LABEL=\"/usr\" FSTYPE=\"ext4\" + NAME=\"sys.vg-var.lv\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" LABEL=\"/var\" FSTYPE=\"ext4\" + NAME=\"sys.vg-home.lv\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" LABEL=\"/home\" FSTYPE=\"xfs\" + NAME=\"debian--7-root (dm-0)\" UUID=\"09187faa-3512-4505-81af-7e86d2ccb99a\" LABEL=\"root\" FSTYPE=\"ext4\" BLKID_TYPE - allow(plugin).to receive(:shell_out). - with("/sbin/lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60). - and_return(mock_shell_out(0, @stdout, "")) + allow(plugin).to receive(:shell_out) + .with("/sbin/lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60) + .and_return(mock_shell_out(0, @stdout, "")) end it "should run lsblk -n -P -o NAME,UUID,LABEL,FSTYPE" do @@ -300,64 +300,64 @@ BLKID_TYPE describe "when gathering filesystem type data from both lsblk and blkid" do before(:each) do - @dfstdout = <<-DF -Filesystem 1024-blocks Used Available Capacity Mounted on -/dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / -tmpfs 2030944 0 2030944 0% /lib/init/rw -udev 2025576 228 2025348 1% /dev -tmpfs 2030944 2960 2027984 1% /dev/shm -/dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home -/dev/mapper/sys.vg-special.lv 97605057 53563253 44041805 56% /special -/dev/mapper/sys.vg-tmp.lv 1919048 46588 1774976 3% /tmp -/dev/mapper/sys.vg-usr.lv 19223252 5479072 12767696 31% /usr -/dev/mapper/sys.vg-var.lv 19223252 3436556 14810212 19% /var -/dev/md0 960492 36388 875312 4% /boot + @dfstdout = <<~DF + Filesystem 1024-blocks Used Available Capacity Mounted on + /dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / + tmpfs 2030944 0 2030944 0% /lib/init/rw + udev 2025576 228 2025348 1% /dev + tmpfs 2030944 2960 2027984 1% /dev/shm + /dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home + /dev/mapper/sys.vg-special.lv 97605057 53563253 44041805 56% /special + /dev/mapper/sys.vg-tmp.lv 1919048 46588 1774976 3% /tmp + /dev/mapper/sys.vg-usr.lv 19223252 5479072 12767696 31% /usr + /dev/mapper/sys.vg-var.lv 19223252 3436556 14810212 19% /var + /dev/md0 960492 36388 875312 4% /boot DF allow(plugin).to receive(:shell_out).with("df -P").and_return(mock_shell_out(0, @dfstdout, "")) - @inode_stdout = <<-DFi -Filesystem Inodes IUsed IFree IUse% Mounted on -/dev/xvda1 1310720 107407 1203313 9% / -/dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special -tmpfs 126922 273 126649 1% /run -none 126922 1 126921 1% /run/lock -none 126922 1 126921 1% /run/shm -DFi + @inode_stdout = <<~DFI + Filesystem Inodes IUsed IFree IUse% Mounted on + /dev/xvda1 1310720 107407 1203313 9% / + /dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special + tmpfs 126922 273 126649 1% /run + none 126922 1 126921 1% /run/lock + none 126922 1 126921 1% /run/shm +DFI allow(plugin).to receive(:shell_out).with("df -iP").and_return(mock_shell_out(0, @inode_stdout, "")) allow(plugin).to receive(:which).with("lsblk").and_return("/sbin/lsblk") allow(plugin).to receive(:which).with("blkid").and_return("/sbin/blkid") - @stdout = <<-BLKID_TYPE -NAME=\"sdb1\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" LABEL=\"fuego:0\" FSTYPE=\"LVM2_member\" -NAME=\"sdb2\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" LABEL=\"fuego:1\" FSTYPE=\"LVM2_member\" -NAME=\"sda1\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" LABEL=\"fuego:0\" FSTYPE=\"LVM2_member\" -NAME=\"sda2\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" LABEL=\"fuego:1\" FSTYPE=\"LVM2_member\" -NAME=\"md0\" UUID=\"37b8de8e-0fe3-4b5a-b9b4-dde33e19bb32\" LABEL=\"/boot\" FSTYPE=\"ext3\" -NAME=\"md1\" UUID=\"YsIe0R-fj1y-LXTd-imla-opKo-OuIe-TBoxSK\" LABEL=\"\" FSTYPE=\"LVM2_member\" -NAME=\"sys.vg-root.lv\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" LABEL=\"/\" -NAME=\"sys.vg-swap.lv\" UUID=\"9bc2e515-8ddc-41c3-9f63-4eaebde9ce96\" LABEL=\"\" FSTYPE=\"swap\" -NAME=\"sys.vg-tmp.lv\" UUID=\"74cf7eb9-428f-479e-9a4a-9943401e81e5\" LABEL=\"/tmp\" FSTYPE=\"ext4\" -NAME=\"sys.vg-usr.lv\" UUID=\"26ec33c5-d00b-4f88-a550-492def013bbc\" LABEL=\"/usr\" -NAME=\"sys.vg-var.lv\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" LABEL=\"/var\" FSTYPE=\"ext4\" -NAME=\"sys.vg-home.lv\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" LABEL=\"/BADhome\" FSTYPE=\"xfs\" -NAME=\"debian--7-root (dm-0)\" UUID=\"09187faa-3512-4505-81af-7e86d2ccb99a\" LABEL=\"root\" FSTYPE=\"ext4\" + @stdout = <<~BLKID_TYPE + NAME=\"sdb1\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" LABEL=\"fuego:0\" FSTYPE=\"LVM2_member\" + NAME=\"sdb2\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" LABEL=\"fuego:1\" FSTYPE=\"LVM2_member\" + NAME=\"sda1\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" LABEL=\"fuego:0\" FSTYPE=\"LVM2_member\" + NAME=\"sda2\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" LABEL=\"fuego:1\" FSTYPE=\"LVM2_member\" + NAME=\"md0\" UUID=\"37b8de8e-0fe3-4b5a-b9b4-dde33e19bb32\" LABEL=\"/boot\" FSTYPE=\"ext3\" + NAME=\"md1\" UUID=\"YsIe0R-fj1y-LXTd-imla-opKo-OuIe-TBoxSK\" LABEL=\"\" FSTYPE=\"LVM2_member\" + NAME=\"sys.vg-root.lv\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" LABEL=\"/\" + NAME=\"sys.vg-swap.lv\" UUID=\"9bc2e515-8ddc-41c3-9f63-4eaebde9ce96\" LABEL=\"\" FSTYPE=\"swap\" + NAME=\"sys.vg-tmp.lv\" UUID=\"74cf7eb9-428f-479e-9a4a-9943401e81e5\" LABEL=\"/tmp\" FSTYPE=\"ext4\" + NAME=\"sys.vg-usr.lv\" UUID=\"26ec33c5-d00b-4f88-a550-492def013bbc\" LABEL=\"/usr\" + NAME=\"sys.vg-var.lv\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" LABEL=\"/var\" FSTYPE=\"ext4\" + NAME=\"sys.vg-home.lv\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" LABEL=\"/BADhome\" FSTYPE=\"xfs\" + NAME=\"debian--7-root (dm-0)\" UUID=\"09187faa-3512-4505-81af-7e86d2ccb99a\" LABEL=\"root\" FSTYPE=\"ext4\" BLKID_TYPE - allow(plugin).to receive(:shell_out). - with("/sbin/lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60). - and_return(mock_shell_out(0, @stdout, "")) - @stdout = <<-BLKID_TYPE -/dev/sdb1: LABEL=\"fuego:0\" TYPE=\"linux_raid_member\" -/dev/sdb2: LABEL=\"fuego:1\" TYPE=\"linux_raid_member\" -/dev/sda1: LABEL=\"fuego:0\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" TYPE=\"linux_raid_member\" -/dev/sda2: LABEL=\"fuego:1\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" TYPE=\"linux_raid_member\" -/dev/md0: LABEL=\"/boot\" UUID=\"37b8de8e-0fe3-4b5a-b9b4-dde33e19bb32\" TYPE=\"ext3\" -/dev/md1: UUID=\"YsIe0R-fj1y-LXTd-imla-opKo-OuIe-TBoxSK\" TYPE=\"LVM2_member\" -/dev/mapper/sys.vg-root.lv: LABEL=\"/\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" TYPE=\"ext4\" -/dev/mapper/sys.vg-swap.lv: UUID=\"9bc2e515-8ddc-41c3-9f63-4eaebde9ce96\" TYPE=\"swap\" -/dev/mapper/sys.vg-tmp.lv: LABEL=\"/tmp\" UUID=\"74cf7eb9-428f-479e-9a4a-9943401e81e5\" TYPE=\"ext4\" -/dev/mapper/sys.vg-usr.lv: LABEL=\"/usr\" UUID=\"26ec33c5-d00b-4f88-a550-492def013bbc\" TYPE=\"ext4\" -/dev/mapper/sys.vg-var.lv: LABEL=\"/var\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" TYPE=\"ext4\" -/dev/mapper/sys.vg-home.lv: LABEL=\"/home\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" TYPE=\"xfs\" + allow(plugin).to receive(:shell_out) + .with("/sbin/lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60) + .and_return(mock_shell_out(0, @stdout, "")) + @stdout = <<~BLKID_TYPE + /dev/sdb1: LABEL=\"fuego:0\" TYPE=\"linux_raid_member\" + /dev/sdb2: LABEL=\"fuego:1\" TYPE=\"linux_raid_member\" + /dev/sda1: LABEL=\"fuego:0\" UUID=\"bd1197e0-6997-1f3a-e27e-7801388308b5\" TYPE=\"linux_raid_member\" + /dev/sda2: LABEL=\"fuego:1\" UUID=\"e36d933e-e5b9-cfe5-6845-1f84d0f7fbfa\" TYPE=\"linux_raid_member\" + /dev/md0: LABEL=\"/boot\" UUID=\"37b8de8e-0fe3-4b5a-b9b4-dde33e19bb32\" TYPE=\"ext3\" + /dev/md1: UUID=\"YsIe0R-fj1y-LXTd-imla-opKo-OuIe-TBoxSK\" TYPE=\"LVM2_member\" + /dev/mapper/sys.vg-root.lv: LABEL=\"/\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" TYPE=\"ext4\" + /dev/mapper/sys.vg-swap.lv: UUID=\"9bc2e515-8ddc-41c3-9f63-4eaebde9ce96\" TYPE=\"swap\" + /dev/mapper/sys.vg-tmp.lv: LABEL=\"/tmp\" UUID=\"74cf7eb9-428f-479e-9a4a-9943401e81e5\" TYPE=\"ext4\" + /dev/mapper/sys.vg-usr.lv: LABEL=\"/usr\" UUID=\"26ec33c5-d00b-4f88-a550-492def013bbc\" TYPE=\"ext4\" + /dev/mapper/sys.vg-var.lv: LABEL=\"/var\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" TYPE=\"ext4\" + /dev/mapper/sys.vg-home.lv: LABEL=\"/home\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" TYPE=\"xfs\" BLKID_TYPE allow(plugin).to receive(:shell_out).with("/sbin/blkid", timeout: 60).and_return(mock_shell_out(0, @stdout, "")) end @@ -388,23 +388,23 @@ BLKID_TYPE before(:each) do allow(File).to receive(:exist?).with("/proc/mounts").and_return(true) @double_file = double("/proc/mounts") - @mounts = <<-MOUNTS -rootfs / rootfs rw 0 0 -none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 -none /proc proc rw,nosuid,nodev,noexec,relatime 0 0 -none /dev devtmpfs rw,relatime,size=2025576k,nr_inodes=506394,mode=755 0 0 -none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 -/dev/mapper/sys.vg-root.lv / ext4 rw,noatime,errors=remount-ro,barrier=1,data=ordered 0 0 -tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0 -tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0 -/dev/mapper/sys.vg-home.lv /home xfs rw,noatime,attr2,noquota 0 0 -/dev/mapper/sys.vg-special.lv /special xfs ro,noatime,attr2,noquota 0 0 -/dev/mapper/sys.vg-tmp.lv /tmp ext4 rw,noatime,barrier=1,data=ordered 0 0 -/dev/mapper/sys.vg-usr.lv /usr ext4 rw,noatime,barrier=1,data=ordered 0 0 -/dev/mapper/sys.vg-var.lv /var ext4 rw,noatime,barrier=1,data=ordered 0 0 -/dev/md0 /boot ext3 rw,noatime,errors=remount-ro,data=ordered 0 0 -fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 -binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0 + @mounts = <<~MOUNTS + rootfs / rootfs rw 0 0 + none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 + none /proc proc rw,nosuid,nodev,noexec,relatime 0 0 + none /dev devtmpfs rw,relatime,size=2025576k,nr_inodes=506394,mode=755 0 0 + none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 + /dev/mapper/sys.vg-root.lv / ext4 rw,noatime,errors=remount-ro,barrier=1,data=ordered 0 0 + tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0 + tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0 + /dev/mapper/sys.vg-home.lv /home xfs rw,noatime,attr2,noquota 0 0 + /dev/mapper/sys.vg-special.lv /special xfs ro,noatime,attr2,noquota 0 0 + /dev/mapper/sys.vg-tmp.lv /tmp ext4 rw,noatime,barrier=1,data=ordered 0 0 + /dev/mapper/sys.vg-usr.lv /usr ext4 rw,noatime,barrier=1,data=ordered 0 0 + /dev/mapper/sys.vg-var.lv /var ext4 rw,noatime,barrier=1,data=ordered 0 0 + /dev/md0 /boot ext3 rw,noatime,errors=remount-ro,data=ordered 0 0 + fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 + binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0 MOUNTS @counter = 0 allow(@double_file).to receive(:read_nonblock) do @@ -439,39 +439,39 @@ MOUNTS # 2. A bind-mounted directory, which shows up as the same device in a # subdir: / and /var/chroot # 3. tmpfs in multiple places. - @dfstdout = <<-DF -Filesystem 1024-blocks Used Available Capacity Mounted on -/dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / -tmpfs 2030944 0 2030944 0% /lib/init/rw -udev 2025576 228 2025348 1% /dev -tmpfs 2030944 2960 2027984 1% /dev/shm -/dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home -/dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home2 -/dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% /var/chroot + @dfstdout = <<~DF + Filesystem 1024-blocks Used Available Capacity Mounted on + /dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / + tmpfs 2030944 0 2030944 0% /lib/init/rw + udev 2025576 228 2025348 1% /dev + tmpfs 2030944 2960 2027984 1% /dev/shm + /dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home + /dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home2 + /dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% /var/chroot DF allow(plugin).to receive(:shell_out).with("df -P").and_return(mock_shell_out(0, @dfstdout, "")) - @inode_stdout = <<-DFi -Filesystem Inodes IUsed IFree IUse% Mounted on -/dev/mapper/sys.vg-root.lv 1310720 107407 1203313 9% / -tmpfs 126922 273 126649 1% /lib/init/rw -none 126922 1 126921 1% /dev/shm -udev 126922 1 126921 1% /dev -/dev/mapper/sys.vg-home.lv 60891136 4696030 56195106 8% /home -/dev/mapper/sys.vg-home.lv 60891136 4696030 56195106 8% /home2 -/dev/mapper/sys.vg-root.lv 1310720 107407 1203313 9% /var/chroot -DFi + @inode_stdout = <<~DFI + Filesystem Inodes IUsed IFree IUse% Mounted on + /dev/mapper/sys.vg-root.lv 1310720 107407 1203313 9% / + tmpfs 126922 273 126649 1% /lib/init/rw + none 126922 1 126921 1% /dev/shm + udev 126922 1 126921 1% /dev + /dev/mapper/sys.vg-home.lv 60891136 4696030 56195106 8% /home + /dev/mapper/sys.vg-home.lv 60891136 4696030 56195106 8% /home2 + /dev/mapper/sys.vg-root.lv 1310720 107407 1203313 9% /var/chroot +DFI allow(plugin).to receive(:shell_out).with("df -iP").and_return(mock_shell_out(0, @inode_stdout, "")) allow(plugin).to receive(:which).with("lsblk").and_return("/sbin/lsblk") allow(plugin).to receive(:which).with("blkid").and_return(nil) - @stdout = <<-BLKID_TYPE -NAME=\"/dev/mapper/sys.vg-root.lv\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" LABEL=\"/\" FSTYPE=\"ext4\" -NAME=\"/dev/mapper/sys.vg-home.lv\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" LABEL=\"/home\" FSTYPE=\"xfs\" + @stdout = <<~BLKID_TYPE + NAME=\"/dev/mapper/sys.vg-root.lv\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" LABEL=\"/\" FSTYPE=\"ext4\" + NAME=\"/dev/mapper/sys.vg-home.lv\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" LABEL=\"/home\" FSTYPE=\"xfs\" BLKID_TYPE - allow(plugin).to receive(:shell_out). - with("/sbin/lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60). - and_return(mock_shell_out(0, @stdout, "")) + allow(plugin).to receive(:shell_out) + .with("/sbin/lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60) + .and_return(mock_shell_out(0, @stdout, "")) end it "should provide a devices view with all mountpoints" do @@ -484,41 +484,41 @@ BLKID_TYPE describe "when gathering filesystem data with double-mounts" do before(:each) do - @dfstdout = <<-DF -Filesystem 1024-blocks Used Available Capacity Mounted on -/dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / -tmpfs 2030944 0 2030944 0% /lib/init/rw -udev 2025576 228 2025348 1% /dev -tmpfs 2030944 2960 2027984 1% /dev/shm -/dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home -/dev/sdb1 97605056 53563252 44041804 55% /mnt -/dev/sdc1 4805760 378716 4182924 9% /mnt + @dfstdout = <<~DF + Filesystem 1024-blocks Used Available Capacity Mounted on + /dev/mapper/sys.vg-root.lv 4805760 378716 4182924 9% / + tmpfs 2030944 0 2030944 0% /lib/init/rw + udev 2025576 228 2025348 1% /dev + tmpfs 2030944 2960 2027984 1% /dev/shm + /dev/mapper/sys.vg-home.lv 97605056 53563252 44041804 55% /home + /dev/sdb1 97605056 53563252 44041804 55% /mnt + /dev/sdc1 4805760 378716 4182924 9% /mnt DF allow(plugin).to receive(:shell_out).with("df -P").and_return(mock_shell_out(0, @dfstdout, "")) - @inode_stdout = <<-DFi -Filesystem Inodes IUsed IFree IUse% Mounted on -/dev/mapper/sys.vg-root.lv 1310720 107407 1203313 9% / -tmpfs 126922 273 126649 1% /lib/init/rw -none 126922 1 126921 1% /dev/shm -udev 126922 1 126921 1% /dev -/dev/mapper/sys.vg-home.lv 60891136 4696030 56195106 8% /home -/dev/sdb1 60891136 4696030 56195106 8% /mnt -/dev/sdc1 1310720 107407 1203313 9% /mnt -DFi + @inode_stdout = <<~DFI + Filesystem Inodes IUsed IFree IUse% Mounted on + /dev/mapper/sys.vg-root.lv 1310720 107407 1203313 9% / + tmpfs 126922 273 126649 1% /lib/init/rw + none 126922 1 126921 1% /dev/shm + udev 126922 1 126921 1% /dev + /dev/mapper/sys.vg-home.lv 60891136 4696030 56195106 8% /home + /dev/sdb1 60891136 4696030 56195106 8% /mnt + /dev/sdc1 1310720 107407 1203313 9% /mnt +DFI allow(plugin).to receive(:shell_out).with("df -iP").and_return(mock_shell_out(0, @inode_stdout, "")) allow(plugin).to receive(:which).with("lsblk").and_return("/sbin/lsblk") allow(plugin).to receive(:which).with("blkid").and_return(nil) - @stdout = <<-BLKID_TYPE -NAME=\"/dev/mapper/sys.vg-root.lv\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" LABEL=\"/\" FSTYPE=\"ext4\" -NAME=\"/dev/sdb1\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" LABEL=\"/mnt\" FSTYPE=\"ext4\" -NAME=\"/dev/sdc1\" UUID=\"7f1e51bf-3608-4351-b7cd-379e39cff36a\" LABEL=\"/mnt\" FSTYPE=\"ext4\" -NAME=\"/dev/mapper/sys.vg-home.lv\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" LABEL=\"/home\" FSTYPE=\"xfs\" + @stdout = <<~BLKID_TYPE + NAME=\"/dev/mapper/sys.vg-root.lv\" UUID=\"7742d14b-80a3-4e97-9a32-478be9ea9aea\" LABEL=\"/\" FSTYPE=\"ext4\" + NAME=\"/dev/sdb1\" UUID=\"6b559c35-7847-4ae2-b512-c99012d3f5b3\" LABEL=\"/mnt\" FSTYPE=\"ext4\" + NAME=\"/dev/sdc1\" UUID=\"7f1e51bf-3608-4351-b7cd-379e39cff36a\" LABEL=\"/mnt\" FSTYPE=\"ext4\" + NAME=\"/dev/mapper/sys.vg-home.lv\" UUID=\"d6efda02-1b73-453c-8c74-7d8dee78fa5e\" LABEL=\"/home\" FSTYPE=\"xfs\" BLKID_TYPE - allow(plugin).to receive(:shell_out). - with("/sbin/lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60). - and_return(mock_shell_out(0, @stdout, "")) + allow(plugin).to receive(:shell_out) + .with("/sbin/lsblk -n -P -o NAME,UUID,LABEL,FSTYPE", timeout: 60) + .and_return(mock_shell_out(0, @stdout, "")) end it "should provide a mounts view with all devices" do diff --git a/spec/unit/plugins/linux/kernel_spec.rb b/spec/unit/plugins/linux/kernel_spec.rb index 5b24cc34..edf6d98a 100644 --- a/spec/unit/plugins/linux/kernel_spec.rb +++ b/spec/unit/plugins/linux/kernel_spec.rb @@ -21,15 +21,15 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "Linux kernel plugin" do before(:each) do - @env_lsmod = <<-ENV_LSMOD -Module Size Used by -dm_crypt 22321 0 -psmouse 81038 0 -acpiphp 23314 0 -microcode 18286 0 -serio_raw 13031 0 -virtio_balloon 13168 0 -floppy 55441 0 + @env_lsmod = <<~ENV_LSMOD + Module Size Used by + dm_crypt 22321 0 + psmouse 81038 0 + acpiphp 23314 0 + microcode 18286 0 + serio_raw 13031 0 + virtio_balloon 13168 0 + floppy 55441 0 ENV_LSMOD @version_module = { dm_crypt: "", diff --git a/spec/unit/plugins/linux/lsb_spec.rb b/spec/unit/plugins/linux/lsb_spec.rb index b5ab74a4..ff110805 100644 --- a/spec/unit/plugins/linux/lsb_spec.rb +++ b/spec/unit/plugins/linux/lsb_spec.rb @@ -29,11 +29,11 @@ describe Ohai::System, "Linux lsb plugin" do describe "on systems with /etc/lsb-release" do before(:each) do @double_file = double("/etc/lsb-release") - allow(@double_file).to receive(:each). - and_yield("DISTRIB_ID=Ubuntu"). - and_yield("DISTRIB_RELEASE=8.04"). - and_yield("DISTRIB_CODENAME=hardy"). - and_yield('DISTRIB_DESCRIPTION="Ubuntu 8.04"') + allow(@double_file).to receive(:each) + .and_yield("DISTRIB_ID=Ubuntu") + .and_yield("DISTRIB_RELEASE=8.04") + .and_yield("DISTRIB_CODENAME=hardy") + .and_yield('DISTRIB_DESCRIPTION="Ubuntu 8.04"') allow(File).to receive(:open).with("/etc/lsb-release").and_return(@double_file) allow(File).to receive(:exist?).with("/usr/bin/lsb_release").and_return(false) allow(File).to receive(:exist?).with("/etc/lsb-release").and_return(true) @@ -64,7 +64,7 @@ describe Ohai::System, "Linux lsb plugin" do before(:each) do allow(File).to receive(:exist?).with("/usr/bin/lsb_release").and_return(true) - @stdin = double("STDIN", { :close => true }) + @stdin = double("STDIN", { close: true }) @pid = 10 @stderr = double("STDERR") @stdout = double("STDOUT") @@ -74,12 +74,12 @@ describe Ohai::System, "Linux lsb plugin" do describe "on Centos 5.4 correctly" do before(:each) do - @stdout = <<-LSB_RELEASE -LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch -Distributor ID: CentOS -Description: CentOS release 5.4 (Final) -Release: 5.4 -Codename: Final + @stdout = <<~LSB_RELEASE + LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch + Distributor ID: CentOS + Description: CentOS release 5.4 (Final) + Release: 5.4 + Codename: Final LSB_RELEASE allow(@plugin).to receive(:shell_out).with("lsb_release -a").and_return(mock_shell_out(0, @stdout, "")) end @@ -107,12 +107,12 @@ LSB_RELEASE describe "on Fedora 14 correctly" do before(:each) do - @stdout = <<-LSB_RELEASE -LSB Version: :core-4.0-ia32:core-4.0-noarch -Distributor ID: Fedora -Description: Fedora release 14 (Laughlin) -Release: 14 -Codename: Laughlin + @stdout = <<~LSB_RELEASE + LSB Version: :core-4.0-ia32:core-4.0-noarch + Distributor ID: Fedora + Description: Fedora release 14 (Laughlin) + Release: 14 + Codename: Laughlin LSB_RELEASE allow(@plugin).to receive(:shell_out).with("lsb_release -a").and_return(mock_shell_out(0, @stdout, "")) end diff --git a/spec/unit/plugins/linux/lspci_spec.rb b/spec/unit/plugins/linux/lspci_spec.rb index 9948e2f8..c62e1486 100644 --- a/spec/unit/plugins/linux/lspci_spec.rb +++ b/spec/unit/plugins/linux/lspci_spec.rb @@ -22,69 +22,69 @@ describe Ohai::System, "Linux lspci plugin" do let(:plugin) { get_plugin("linux/lspci") } before(:each) do allow(plugin).to receive(:collect_os).and_return(:linux) - @stdout = <<LSPCI -Device: 00:1f.3 -Class: Audio device [0403] -Vendor: Intel Corporation [8086] -Device: Sunrise Point-LP HD Audio [9d71] -SVendor: Lenovo [17aa] -SDevice: Sunrise Point-LP HD Audio [224e] -Rev: 21 -Driver: snd_hda_intel -Module: snd_hda_intel -Module: snd_soc_skl + @stdout = <<~LSPCI + Device: 00:1f.3 + Class: Audio device [0403] + Vendor: Intel Corporation [8086] + Device: Sunrise Point-LP HD Audio [9d71] + SVendor: Lenovo [17aa] + SDevice: Sunrise Point-LP HD Audio [224e] + Rev: 21 + Driver: snd_hda_intel + Module: snd_hda_intel + Module: snd_soc_skl -Device: 00:1f.4 -Class: SMBus [0c05] -Vendor: Intel Corporation [8086] -Device: Sunrise Point-LP SMBus [9d23] -SVendor: Lenovo [17aa] -SDevice: Sunrise Point-LP SMBus [224e] -Rev: 21 -Driver: i801_smbus -Module: i2c_i801 + Device: 00:1f.4 + Class: SMBus [0c05] + Vendor: Intel Corporation [8086] + Device: Sunrise Point-LP SMBus [9d23] + SVendor: Lenovo [17aa] + SDevice: Sunrise Point-LP SMBus [224e] + Rev: 21 + Driver: i801_smbus + Module: i2c_i801 -Device: 00:1f.6 -Class: Ethernet controller [0200] -Vendor: Intel Corporation [8086] -Device: Ethernet Connection (4) I219-LM [15d7] -SVendor: Lenovo [17aa] -SDevice: Ethernet Connection (4) I219-LM [224e] -Rev: 21 -Driver: e1000e -Module: e1000e + Device: 00:1f.6 + Class: Ethernet controller [0200] + Vendor: Intel Corporation [8086] + Device: Ethernet Connection (4) I219-LM [15d7] + SVendor: Lenovo [17aa] + SDevice: Ethernet Connection (4) I219-LM [224e] + Rev: 21 + Driver: e1000e + Module: e1000e -Device: 02:00.0 -Class: Unassigned class [ff00] -Vendor: Realtek Semiconductor Co., Ltd. [10ec] -Device: RTS525A PCI Express Card Reader [525a] -SVendor: Lenovo [17aa] -SDevice: RTS525A PCI Express Card Reader [224e] -Rev: 01 -Driver: rtsx_pci -Module: rtsx_pci + Device: 02:00.0 + Class: Unassigned class [ff00] + Vendor: Realtek Semiconductor Co., Ltd. [10ec] + Device: RTS525A PCI Express Card Reader [525a] + SVendor: Lenovo [17aa] + SDevice: RTS525A PCI Express Card Reader [224e] + Rev: 01 + Driver: rtsx_pci + Module: rtsx_pci -Device: 04:00.0 -Class: Network controller [0280] -Vendor: Intel Corporation [8086] -Device: Wireless 8265 / 8275 [24fd] -SVendor: Intel Corporation [8086] -SDevice: Wireless 8265 / 8275 [0130] -Rev: 88 -Driver: iwlwifi -Module: iwlwifi + Device: 04:00.0 + Class: Network controller [0280] + Vendor: Intel Corporation [8086] + Device: Wireless 8265 / 8275 [24fd] + SVendor: Intel Corporation [8086] + SDevice: Wireless 8265 / 8275 [0130] + Rev: 88 + Driver: iwlwifi + Module: iwlwifi -Device: 05:00.0 -Class: Non-Volatile memory controller [0108] -Vendor: Toshiba America Info Systems [1179] -Device: Device [0115] -SVendor: Toshiba America Info Systems [1179] -SDevice: Device [0001] -Rev: 01 -ProgIf: 02 -Driver: nvme -Module: nvme -NUMANode: 0 + Device: 05:00.0 + Class: Non-Volatile memory controller [0108] + Vendor: Toshiba America Info Systems [1179] + Device: Device [0115] + SVendor: Toshiba America Info Systems [1179] + SDevice: Device [0001] + Rev: 01 + ProgIf: 02 + Driver: nvme + Module: nvme + NUMANode: 0 LSPCI allow(plugin).to receive(:shell_out).with("lspci -vnnmk").and_return( mock_shell_out(0, @stdout, "")) diff --git a/spec/unit/plugins/linux/mdadm_spec.rb b/spec/unit/plugins/linux/mdadm_spec.rb index 15e9bf10..6adc1d77 100644 --- a/spec/unit/plugins/linux/mdadm_spec.rb +++ b/spec/unit/plugins/linux/mdadm_spec.rb @@ -20,46 +20,46 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "Linux Mdadm Plugin" do before(:each) do - @md0 = <<-MD -/dev/md0: - Version : 1.2 - Creation Time : Thu Jan 30 03:11:40 2014 - Raid Level : raid10 - Array Size : 2929893888 (2794.16 GiB 3000.21 GB) - Used Dev Size : 976631296 (931.39 GiB 1000.07 GB) - Raid Devices : 6 - Total Devices : 6 - Persistence : Superblock is persistent - - Update Time : Tue May 6 23:30:32 2014 - State : clean - Active Devices : 6 -Working Devices : 6 - Failed Devices : 0 - Spare Devices : 0 - - Layout : near=2 - Chunk Size : 256K - - Name : host.therealtimsmith.com:3 (local to host host.therealtimsmith.com) - UUID : 5ed74d5b:70bfe21d:8cd57792:c1e13d65 - Events : 155 - - Number Major Minor RaidDevice State - 0 8 32 0 active sync /dev/sdc - 1 8 48 1 active sync /dev/sdd - 2 8 64 2 active sync /dev/sde - 3 8 80 3 active sync /dev/sdf - 4 8 96 4 active sync /dev/sdg - 5 8 112 5 active sync /dev/sdh + @md0 = <<~MD + /dev/md0: + Version : 1.2 + Creation Time : Thu Jan 30 03:11:40 2014 + Raid Level : raid10 + Array Size : 2929893888 (2794.16 GiB 3000.21 GB) + Used Dev Size : 976631296 (931.39 GiB 1000.07 GB) + Raid Devices : 6 + Total Devices : 6 + Persistence : Superblock is persistent + + Update Time : Tue May 6 23:30:32 2014 + State : clean + Active Devices : 6 + Working Devices : 6 + Failed Devices : 0 + Spare Devices : 0 + + Layout : near=2 + Chunk Size : 256K + + Name : host.therealtimsmith.com:3 (local to host host.therealtimsmith.com) + UUID : 5ed74d5b:70bfe21d:8cd57792:c1e13d65 + Events : 155 + + Number Major Minor RaidDevice State + 0 8 32 0 active sync /dev/sdc + 1 8 48 1 active sync /dev/sdd + 2 8 64 2 active sync /dev/sde + 3 8 80 3 active sync /dev/sdf + 4 8 96 4 active sync /dev/sdg + 5 8 112 5 active sync /dev/sdh MD @plugin = get_plugin("linux/mdadm") allow(@plugin).to receive(:collect_os).and_return(:linux) @double_file = double("/proc/mdstat") - allow(@double_file).to receive(:each). - and_yield("Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]"). - and_yield("md0 : active raid10 sdh[5] sdg[4] sdf[3] sde[2] sdd[1] sdc[0]"). - and_yield(" 2929893888 blocks super 1.2 256K chunks 2 near-copies [6/6] [UUUUUU]") + allow(@double_file).to receive(:each) + .and_yield("Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]") + .and_yield("md0 : active raid10 sdh[5] sdg[4] sdf[3] sde[2] sdd[1] sdc[0]") + .and_yield(" 2929893888 blocks super 1.2 256K chunks 2 near-copies [6/6] [UUUUUU]") allow(File).to receive(:open).with("/proc/mdstat").and_return(@double_file) allow(File).to receive(:exist?).with("/proc/mdstat").and_return(true) allow(@plugin).to receive(:shell_out).with("mdadm --detail /dev/md0").and_return(mock_shell_out(0, @md0, "")) @@ -91,7 +91,7 @@ MD expect(@plugin[:mdadm][:md0][:version]).to eq(1.2) end - device_counts = { :raid => 6, :total => 6, :active => 6, :working => 6, :failed => 0, :spare => 0 } + device_counts = { raid: 6, total: 6, active: 6, working: 6, failed: 0, spare: 0 } device_counts.each_pair do |item, expected_value| it "should detect device count of \"#{item}\"" do @plugin.run @@ -108,10 +108,10 @@ MD it "should detect member devices even if there are multi-digit numbers" do new_mdstat = double("/proc/mdstat2") - allow(new_mdstat).to receive(:each). - and_yield("Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]"). - and_yield("md0 : active raid10 sdj[2010] sdi[99] sdh[5] sdg[4] sdf[3] sde[2] sdd[1] sdc[0]"). - and_yield(" 2929893888 blocks super 1.2 256K chunks 2 near-copies [6/6] [UUUUUU]") + allow(new_mdstat).to receive(:each) + .and_yield("Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]") + .and_yield("md0 : active raid10 sdj[2010] sdi[99] sdh[5] sdg[4] sdf[3] sde[2] sdd[1] sdc[0]") + .and_yield(" 2929893888 blocks super 1.2 256K chunks 2 near-copies [6/6] [UUUUUU]") allow(File).to receive(:open).with("/proc/mdstat").and_return(new_mdstat) @plugin.run @@ -122,10 +122,10 @@ MD it "should detect member devices even if mdstat has extra entries" do new_mdstat = double("/proc/mdstat2") - allow(new_mdstat).to receive(:each). - and_yield("Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]"). - and_yield("md0 : active (somecraphere) <morestuff> raid10 sdh[5] sdg[4] sdf[3] sde[2] sdd[1] sdc[0]"). - and_yield(" 2929893888 blocks super 1.2 256K chunks 2 near-copies [6/6] [UUUUUU]") + allow(new_mdstat).to receive(:each) + .and_yield("Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]") + .and_yield("md0 : active (somecraphere) <morestuff> raid10 sdh[5] sdg[4] sdf[3] sde[2] sdd[1] sdc[0]") + .and_yield(" 2929893888 blocks super 1.2 256K chunks 2 near-copies [6/6] [UUUUUU]") allow(File).to receive(:open).with("/proc/mdstat").and_return(new_mdstat) @plugin.run @@ -136,9 +136,9 @@ MD it "should accurately report inactive arrays" do new_mdstat = double("/proc/mdstat_inactive") - allow(new_mdstat).to receive(:each). - and_yield("Personalities :"). - and_yield("md0 : inactive nvme2n1p3[2](S)") + allow(new_mdstat).to receive(:each) + .and_yield("Personalities :") + .and_yield("md0 : inactive nvme2n1p3[2](S)") allow(File).to receive(:open).with("/proc/mdstat").and_return(new_mdstat) @plugin.run @@ -147,9 +147,9 @@ MD it "should report journal devices" do new_mdstat = double("/proc/mdstat_journal") - allow(new_mdstat).to receive(:each). - and_yield("Personalies : [raid6]"). - and_yield("md0 : active (somecraphere) <morestuff raid6 sdbc1[7] sdd1[6] sde1[5] sdd1[4] sde1[3] sdf1[2] sdg1[1] nvme2n1p3[0](J)") + allow(new_mdstat).to receive(:each) + .and_yield("Personalies : [raid6]") + .and_yield("md0 : active (somecraphere) <morestuff raid6 sdbc1[7] sdd1[6] sde1[5] sdd1[4] sde1[3] sdf1[2] sdg1[1] nvme2n1p3[0](J)") allow(File).to receive(:open).with("/proc/mdstat").and_return(new_mdstat) @plugin.run @@ -158,9 +158,9 @@ MD it "should report spare devices" do new_mdstat = double("/proc/mdstat_spare") - allow(new_mdstat).to receive(:each). - and_yield("Personalies : [raid6]"). - and_yield("md0 : active (somecraphere) <morestuff raid6 sdbc1[7] sdd1[6] sde1[5] sdd1[4] sde1[3] sdf1[2] sdg1[1] sdh1[0](S)") + allow(new_mdstat).to receive(:each) + .and_yield("Personalies : [raid6]") + .and_yield("md0 : active (somecraphere) <morestuff raid6 sdbc1[7] sdd1[6] sde1[5] sdd1[4] sde1[3] sdf1[2] sdg1[1] sdh1[0](S)") allow(File).to receive(:open).with("/proc/mdstat").and_return(new_mdstat) @plugin.run diff --git a/spec/unit/plugins/linux/memory_spec.rb b/spec/unit/plugins/linux/memory_spec.rb index 5859edd1..d0d0e2a9 100644 --- a/spec/unit/plugins/linux/memory_spec.rb +++ b/spec/unit/plugins/linux/memory_spec.rb @@ -21,41 +21,41 @@ describe Ohai::System, "Linux memory plugin" do @plugin = get_plugin("linux/memory") allow(@plugin).to receive(:collect_os).and_return(:linux) @double_file = double("/proc/meminfo") - allow(@double_file).to receive(:each). - and_yield("MemTotal: 131932120 kB"). - and_yield("MemFree: 2269032 kB"). - and_yield("MemAvailable: 9208922 kB"). - and_yield("Buffers: 646368 kB"). - and_yield("Cached: 32346556 kB"). - and_yield("SwapCached: 312 kB"). - and_yield("Active: 98595796 kB"). - and_yield("Inactive: 18477320 kB"). - and_yield("HighTotal: 0 kB"). - and_yield("HighFree: 0 kB"). - and_yield("LowTotal: 131932120 kB"). - and_yield("LowFree: 2269032 kB"). - and_yield("SwapTotal: 16777208 kB"). - and_yield("SwapFree: 14127356 kB"). - and_yield("Dirty: 3212 kB"). - and_yield("Writeback: 0 kB"). - and_yield("AnonPages: 84082132 kB"). - and_yield("Mapped: 3445224 kB"). - and_yield("Slab: 9892096 kB"). - and_yield("SReclaimable: 362636 kB"). - and_yield("SUnreclaim: 18860 kB"). - and_yield("PageTables: 1759332 kB"). - and_yield("NFS_Unstable: 0 kB"). - and_yield("Bounce: 0 kB"). - and_yield("CommitLimit: 148709328 kB"). - and_yield("Committed_AS: 333717060 kB"). - and_yield("VmallocTotal: 34359738367 kB"). - and_yield("VmallocUsed: 276796 kB"). - and_yield("VmallocChunk: 34359461515 kB"). - and_yield("HugePages_Total: 11542"). - and_yield("HugePages_Free: 11235"). - and_yield("HugePages_Rsvd: 11226"). - and_yield("HugePages_Surp: 0"). - and_yield("Hugepagesize: 2048 kB") + allow(@double_file).to receive(:each) + .and_yield("MemTotal: 131932120 kB") + .and_yield("MemFree: 2269032 kB") + .and_yield("MemAvailable: 9208922 kB") + .and_yield("Buffers: 646368 kB") + .and_yield("Cached: 32346556 kB") + .and_yield("SwapCached: 312 kB") + .and_yield("Active: 98595796 kB") + .and_yield("Inactive: 18477320 kB") + .and_yield("HighTotal: 0 kB") + .and_yield("HighFree: 0 kB") + .and_yield("LowTotal: 131932120 kB") + .and_yield("LowFree: 2269032 kB") + .and_yield("SwapTotal: 16777208 kB") + .and_yield("SwapFree: 14127356 kB") + .and_yield("Dirty: 3212 kB") + .and_yield("Writeback: 0 kB") + .and_yield("AnonPages: 84082132 kB") + .and_yield("Mapped: 3445224 kB") + .and_yield("Slab: 9892096 kB") + .and_yield("SReclaimable: 362636 kB") + .and_yield("SUnreclaim: 18860 kB") + .and_yield("PageTables: 1759332 kB") + .and_yield("NFS_Unstable: 0 kB") + .and_yield("Bounce: 0 kB") + .and_yield("CommitLimit: 148709328 kB") + .and_yield("Committed_AS: 333717060 kB") + .and_yield("VmallocTotal: 34359738367 kB") + .and_yield("VmallocUsed: 276796 kB") + .and_yield("VmallocChunk: 34359461515 kB") + .and_yield("HugePages_Total: 11542") + .and_yield("HugePages_Free: 11235") + .and_yield("HugePages_Rsvd: 11226") + .and_yield("HugePages_Surp: 0") + .and_yield("Hugepagesize: 2048 kB") allow(File).to receive(:open).with("/proc/meminfo").and_return(@double_file) end diff --git a/spec/unit/plugins/linux/network_spec.rb b/spec/unit/plugins/linux/network_spec.rb index ed5c2a7e..c5dbba79 100644 --- a/spec/unit/plugins/linux/network_spec.rb +++ b/spec/unit/plugins/linux/network_spec.rb @@ -24,349 +24,349 @@ describe Ohai::System, "Linux Network Plugin" do let(:plugin) { get_plugin("linux/network") } let(:linux_ifconfig) do - <<-EOM -eth0 Link encap:Ethernet HWaddr 12:31:3D:02:BE:A2 - inet addr:10.116.201.76 Bcast:10.116.201.255 Mask:255.255.255.0 - inet6 addr: fe80::1031:3dff:fe02:bea2/64 Scope:Link - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:2659966 errors:0 dropped:0 overruns:0 frame:0 - TX packets:1919690 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:1000 - RX bytes:1392844460 (1.2 GiB) TX bytes:691785313 (659.7 MiB) - Interrupt:16 - -eth0:5 Link encap:Ethernet HWaddr 00:0c:29:41:71:45 - inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0 - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - -eth0.11 Link encap:Ethernet HWaddr 00:aa:bb:cc:dd:ee - inet addr:192.168.0.16 Bcast:192.168.0.255 Mask:255.255.255.0 - inet6 addr: fe80::2aa:bbff:fecc:ddee/64 Scope:Link - inet6 addr: 1111:2222:3333:4444::2/64 Scope:Global - inet6 addr: 1111:2222:3333:4444::3/64 Scope:Global - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:1208795008 errors:0 dropped:0 overruns:0 frame:0 - TX packets:3269635153 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:1751940374 (1.6 GiB) TX bytes:2195567597 (2.0 GiB) - -eth0.151 Link encap:Ethernet HWaddr 00:aa:bb:cc:dd:ee - inet addr:10.151.0.16 Bcast:10.151.0.255 Mask:255.255.255.0 - inet6 addr: fe80::2aa:bbff:fecc:ddee/64 Scope:Link - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:206553677 errors:0 dropped:0 overruns:0 frame:0 - TX packets:163901336 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:3190792261 (2.9 GiB) TX bytes:755086548 (720.1 MiB) - -eth0.152 Link encap:Ethernet HWaddr 00:aa:bb:cc:dd:ee - inet addr:10.152.1.16 Bcast:10.152.3.255 Mask:255.255.252.0 - inet6 addr: fe80::2aa:bbff:fecc:ddee/64 Scope:Link - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:14016741 errors:0 dropped:0 overruns:0 frame:0 - TX packets:55232 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:664957462 (634.1 MiB) TX bytes:4876434 (4.6 MiB) - -eth0.153 Link encap:Ethernet HWaddr 00:aa:bb:cc:dd:ee - inet addr:10.153.1.16 Bcast:10.153.3.255 Mask:255.255.252.0 - inet6 addr: fe80::2aa:bbff:fecc:ddee/64 Scope:Link - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:2022667595 errors:0 dropped:0 overruns:0 frame:0 - TX packets:1798627472 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:4047036732 (3.7 GiB) TX bytes:3451231474 (3.2 GiB) - -foo:veth0@eth0 Link encap:Ethernet HWaddr ca:b3:73:8b:0c:e4 - BROADCAST MULTICAST MTU:1500 Metric:1 - -tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 - inet addr:172.16.19.39 P-t-P:172.16.19.1 Mask:255.255.255.255 - UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1418 Metric:1 - RX packets:57200 errors:0 dropped:0 overruns:0 frame:0 - TX packets:13782 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:100 - RX bytes:7377600 (7.0 MiB) TX bytes:1175481 (1.1 MiB) - -venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 - UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1418 Metric:1 - RX packets:57200 errors:0 dropped:0 overruns:0 frame:0 - TX packets:13782 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:100 - RX bytes:7377600 (7.0 MiB) TX bytes:1175481 (1.1 MiB) - -venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 - UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1418 Metric:1 - RX packets:57200 errors:0 dropped:0 overruns:0 frame:0 - TX packets:13782 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:100 - RX bytes:7377600 (7.0 MiB) TX bytes:1175481 (1.1 MiB) - -lo Link encap:Local Loopback - inet addr:127.0.0.1 Mask:255.0.0.0 - inet6 addr: ::1/128 Scope:Host - UP LOOPBACK RUNNING MTU:16436 Metric:1 - RX packets:524 errors:0 dropped:0 overruns:0 frame:0 - TX packets:524 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:35224 (34.3 KiB) TX bytes:35224 (34.3 KiB) - -eth3 Link encap:Ethernet HWaddr E8:39:35:C5:C8:54 - UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 - RX packets:13395101 errors:0 dropped:0 overruns:0 frame:0 - TX packets:9492909 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:1000 - RX bytes:1325650573 (1.2 GiB) TX bytes:1666310189 (1.5 GiB) - Interrupt:36 Memory:f4800000-f4ffffff - -ovs-system Link encap:Ethernet HWaddr 7A:7A:80:80:6C:24 - BROADCAST MULTICAST MTU:1500 Metric:1 - RX packets:0 errors:0 dropped:0 overruns:0 frame:0 - TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) - -xapi1 Link encap:Ethernet HWaddr E8:39:35:C5:C8:50 - inet addr:192.168.13.34 Bcast:192.168.13.255 Mask:255.255.255.0 - UP BROADCAST RUNNING MTU:1500 Metric:1 - RX packets:160275 errors:0 dropped:0 overruns:0 frame:0 - TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 - collisions:0 txqueuelen:0 - RX bytes:21515031 (20.5 MiB) TX bytes:2052 (2.0 KiB) - -fwdintf Link encap:Ethernet HWaddr 00:00:00:00:00:0a - inet6 addr: fe80::200:ff:fe00:a/64 Scope:Link - UP RUNNING NOARP MULTICAST MTU:1496 Metric:1 - RX packets:0 errors:0 dropped:0 overruns:0 frame:0 - TX packets:2 errors:0 dropped:1 overruns:0 carrier:0 - collisions:0 txqueuelen:1000 - RX bytes:0 (0.0 B) TX bytes:140 (140.0 B) + <<~EOM + eth0 Link encap:Ethernet HWaddr 12:31:3D:02:BE:A2 + inet addr:10.116.201.76 Bcast:10.116.201.255 Mask:255.255.255.0 + inet6 addr: fe80::1031:3dff:fe02:bea2/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:2659966 errors:0 dropped:0 overruns:0 frame:0 + TX packets:1919690 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:1392844460 (1.2 GiB) TX bytes:691785313 (659.7 MiB) + Interrupt:16 + + eth0:5 Link encap:Ethernet HWaddr 00:0c:29:41:71:45 + inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + + eth0.11 Link encap:Ethernet HWaddr 00:aa:bb:cc:dd:ee + inet addr:192.168.0.16 Bcast:192.168.0.255 Mask:255.255.255.0 + inet6 addr: fe80::2aa:bbff:fecc:ddee/64 Scope:Link + inet6 addr: 1111:2222:3333:4444::2/64 Scope:Global + inet6 addr: 1111:2222:3333:4444::3/64 Scope:Global + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:1208795008 errors:0 dropped:0 overruns:0 frame:0 + TX packets:3269635153 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:1751940374 (1.6 GiB) TX bytes:2195567597 (2.0 GiB) + + eth0.151 Link encap:Ethernet HWaddr 00:aa:bb:cc:dd:ee + inet addr:10.151.0.16 Bcast:10.151.0.255 Mask:255.255.255.0 + inet6 addr: fe80::2aa:bbff:fecc:ddee/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:206553677 errors:0 dropped:0 overruns:0 frame:0 + TX packets:163901336 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:3190792261 (2.9 GiB) TX bytes:755086548 (720.1 MiB) + + eth0.152 Link encap:Ethernet HWaddr 00:aa:bb:cc:dd:ee + inet addr:10.152.1.16 Bcast:10.152.3.255 Mask:255.255.252.0 + inet6 addr: fe80::2aa:bbff:fecc:ddee/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:14016741 errors:0 dropped:0 overruns:0 frame:0 + TX packets:55232 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:664957462 (634.1 MiB) TX bytes:4876434 (4.6 MiB) + + eth0.153 Link encap:Ethernet HWaddr 00:aa:bb:cc:dd:ee + inet addr:10.153.1.16 Bcast:10.153.3.255 Mask:255.255.252.0 + inet6 addr: fe80::2aa:bbff:fecc:ddee/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:2022667595 errors:0 dropped:0 overruns:0 frame:0 + TX packets:1798627472 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:4047036732 (3.7 GiB) TX bytes:3451231474 (3.2 GiB) + + foo:veth0@eth0 Link encap:Ethernet HWaddr ca:b3:73:8b:0c:e4 + BROADCAST MULTICAST MTU:1500 Metric:1 + + tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 + inet addr:172.16.19.39 P-t-P:172.16.19.1 Mask:255.255.255.255 + UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1418 Metric:1 + RX packets:57200 errors:0 dropped:0 overruns:0 frame:0 + TX packets:13782 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:100 + RX bytes:7377600 (7.0 MiB) TX bytes:1175481 (1.1 MiB) + + venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 + UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1418 Metric:1 + RX packets:57200 errors:0 dropped:0 overruns:0 frame:0 + TX packets:13782 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:100 + RX bytes:7377600 (7.0 MiB) TX bytes:1175481 (1.1 MiB) + + venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 + UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1418 Metric:1 + RX packets:57200 errors:0 dropped:0 overruns:0 frame:0 + TX packets:13782 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:100 + RX bytes:7377600 (7.0 MiB) TX bytes:1175481 (1.1 MiB) + + lo Link encap:Local Loopback + inet addr:127.0.0.1 Mask:255.0.0.0 + inet6 addr: ::1/128 Scope:Host + UP LOOPBACK RUNNING MTU:16436 Metric:1 + RX packets:524 errors:0 dropped:0 overruns:0 frame:0 + TX packets:524 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:35224 (34.3 KiB) TX bytes:35224 (34.3 KiB) + + eth3 Link encap:Ethernet HWaddr E8:39:35:C5:C8:54 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:13395101 errors:0 dropped:0 overruns:0 frame:0 + TX packets:9492909 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:1325650573 (1.2 GiB) TX bytes:1666310189 (1.5 GiB) + Interrupt:36 Memory:f4800000-f4ffffff + + ovs-system Link encap:Ethernet HWaddr 7A:7A:80:80:6C:24 + BROADCAST MULTICAST MTU:1500 Metric:1 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0 + TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) + + xapi1 Link encap:Ethernet HWaddr E8:39:35:C5:C8:50 + inet addr:192.168.13.34 Bcast:192.168.13.255 Mask:255.255.255.0 + UP BROADCAST RUNNING MTU:1500 Metric:1 + RX packets:160275 errors:0 dropped:0 overruns:0 frame:0 + TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:21515031 (20.5 MiB) TX bytes:2052 (2.0 KiB) + + fwdintf Link encap:Ethernet HWaddr 00:00:00:00:00:0a + inet6 addr: fe80::200:ff:fe00:a/64 Scope:Link + UP RUNNING NOARP MULTICAST MTU:1496 Metric:1 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0 + TX packets:2 errors:0 dropped:1 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:0 (0.0 B) TX bytes:140 (140.0 B) EOM # Note that ifconfig shows foo:veth0@eth0 but fails to show any address information. # This was not a mistake collecting the output and Apparently ifconfig is broken in this regard. end let(:linux_ip_route) do - <<-EOM -10.116.201.0/24 dev eth0 proto kernel -192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 -192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 -172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 -192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 -10.5.4.0/24 \\ nexthop via 10.5.4.1 dev eth0 weight 1\\ nexthop via 10.5.4.2 dev eth0 weight 1 -default via 10.116.201.1 dev eth0 + <<~EOM + 10.116.201.0/24 dev eth0 proto kernel + 192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 + 192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 + 172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 + 192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 + 10.5.4.0/24 \\ nexthop via 10.5.4.1 dev eth0 weight 1\\ nexthop via 10.5.4.2 dev eth0 weight 1 + default via 10.116.201.1 dev eth0 EOM end let(:linux_route_n) do - <<-EOM -Kernel IP routing table -Destination Gateway Genmask Flags Metric Ref Use Iface -10.116.201.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 -169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 -0.0.0.0 10.116.201.1 0.0.0.0 UG 0 0 0 eth0 + <<~EOM + Kernel IP routing table + Destination Gateway Genmask Flags Metric Ref Use Iface + 10.116.201.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 + 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 + 0.0.0.0 10.116.201.1 0.0.0.0 UG 0 0 0 eth0 EOM end let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -fe80::/64 dev eth0.11 proto kernel metric 256 -1111:2222:3333:4444::/64 dev eth0.11 metric 1024 expires 86023sec -default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + fe80::/64 dev eth0.11 proto kernel metric 256 + 1111:2222:3333:4444::/64 dev eth0.11 metric 1024 expires 86023sec + default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 EOM end let(:linux_ip_addr) do - <<-EOM -1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN - link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 - inet 127.0.0.1/8 scope host lo - inet6 ::1/128 scope host - valid_lft forever preferred_lft forever -2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 - link/ether 12:31:3d:02:be:a2 brd ff:ff:ff:ff:ff:ff - inet 10.116.201.76/24 brd 10.116.201.255 scope global eth0 - inet 10.116.201.75/32 scope global eth0 - inet 10.116.201.74/24 scope global secondary eth0 - inet 192.168.5.1/24 brd 192.168.5.255 scope global eth0:5 - inet6 fe80::1031:3dff:fe02:bea2/64 scope link - valid_lft forever preferred_lft forever - inet6 2001:44b8:4160:8f00:a00:27ff:fe13:eacd/64 scope global dynamic - valid_lft 6128sec preferred_lft 2526sec -3: eth0.11@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP - link/ether 00:aa:bb:cc:dd:ee brd ff:ff:ff:ff:ff:ff - inet 192.168.0.16/24 brd 192.168.0.255 scope global eth0.11 - inet6 fe80::2e0:81ff:fe2b:48e7/64 scope link - inet6 1111:2222:3333:4444::2/64 scope global - valid_lft forever preferred_lft forever - inet6 1111:2222:3333:4444::3/64 scope global - valid_lft forever preferred_lft forever -4: eth0.151@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP - link/ether 00:aa:bb:cc:dd:ee brd ff:ff:ff:ff:ff:ff - inet 10.151.0.16/24 brd 10.151.0.255 scope global eth0.151 - inet 10.151.1.16/24 scope global eth0.151 - inet6 fe80::2e0:81ff:fe2b:48e7/64 scope link - valid_lft forever preferred_lft forever -5: eth0.152@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP - link/ether 00:aa:bb:cc:dd:ee brd ff:ff:ff:ff:ff:ff - inet 10.152.1.16/22 brd 10.152.3.255 scope global eth0.152 - inet6 fe80::2e0:81ff:fe2b:48e7/64 scope link - valid_lft forever preferred_lft forever -6: eth0.153@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP - link/ether 00:aa:bb:cc:dd:ee brd ff:ff:ff:ff:ff:ff - inet 10.153.1.16/22 brd 10.153.3.255 scope global eth0.153 - inet6 fe80::2e0:81ff:fe2b:48e7/64 scope link - valid_lft forever preferred_lft forever -7: foo:veth0@eth0@veth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN - link/ether ca:b3:73:8b:0c:e4 brd ff:ff:ff:ff:ff:ff - inet 192.168.212.2/24 scope global foo:veth0@eth0 -8: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 - link/none - inet 172.16.19.39 peer 172.16.19.1 scope global tun0 -9: venet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 - link/void - inet 127.0.0.2/32 scope host venet0 - inet 172.16.19.48/32 scope global venet0:0 -12: xapi1: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN - link/ether e8:39:35:c5:c8:50 brd ff:ff:ff:ff:ff:ff - inet 192.168.13.34/24 brd 192.168.13.255 scope global xapi1 - valid_lft forever preferred_lft forever -13: fwdintf: <MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 1000 - link/ether 00:00:00:00:00:0a brd ff:ff:ff:ff:ff:ff -14: ip6tnl0@NONE: <NOARP,UP,LOWER_UP> mtu 1452 qdisc noqueue state UNKNOWN group default qlen 1 - link/tunnel6 :: brd :: - inet6 fe80::f47a:2aff:fef0:c6ef/64 scope link - valid_lft forever preferred_lft forever + <<~EOM + 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + inet6 ::1/128 scope host + valid_lft forever preferred_lft forever + 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 + link/ether 12:31:3d:02:be:a2 brd ff:ff:ff:ff:ff:ff + inet 10.116.201.76/24 brd 10.116.201.255 scope global eth0 + inet 10.116.201.75/32 scope global eth0 + inet 10.116.201.74/24 scope global secondary eth0 + inet 192.168.5.1/24 brd 192.168.5.255 scope global eth0:5 + inet6 fe80::1031:3dff:fe02:bea2/64 scope link + valid_lft forever preferred_lft forever + inet6 2001:44b8:4160:8f00:a00:27ff:fe13:eacd/64 scope global dynamic + valid_lft 6128sec preferred_lft 2526sec + 3: eth0.11@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP + link/ether 00:aa:bb:cc:dd:ee brd ff:ff:ff:ff:ff:ff + inet 192.168.0.16/24 brd 192.168.0.255 scope global eth0.11 + inet6 fe80::2e0:81ff:fe2b:48e7/64 scope link + inet6 1111:2222:3333:4444::2/64 scope global + valid_lft forever preferred_lft forever + inet6 1111:2222:3333:4444::3/64 scope global + valid_lft forever preferred_lft forever + 4: eth0.151@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP + link/ether 00:aa:bb:cc:dd:ee brd ff:ff:ff:ff:ff:ff + inet 10.151.0.16/24 brd 10.151.0.255 scope global eth0.151 + inet 10.151.1.16/24 scope global eth0.151 + inet6 fe80::2e0:81ff:fe2b:48e7/64 scope link + valid_lft forever preferred_lft forever + 5: eth0.152@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP + link/ether 00:aa:bb:cc:dd:ee brd ff:ff:ff:ff:ff:ff + inet 10.152.1.16/22 brd 10.152.3.255 scope global eth0.152 + inet6 fe80::2e0:81ff:fe2b:48e7/64 scope link + valid_lft forever preferred_lft forever + 6: eth0.153@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP + link/ether 00:aa:bb:cc:dd:ee brd ff:ff:ff:ff:ff:ff + inet 10.153.1.16/22 brd 10.153.3.255 scope global eth0.153 + inet6 fe80::2e0:81ff:fe2b:48e7/64 scope link + valid_lft forever preferred_lft forever + 7: foo:veth0@eth0@veth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN + link/ether ca:b3:73:8b:0c:e4 brd ff:ff:ff:ff:ff:ff + inet 192.168.212.2/24 scope global foo:veth0@eth0 + 8: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 + link/none + inet 172.16.19.39 peer 172.16.19.1 scope global tun0 + 9: venet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 + link/void + inet 127.0.0.2/32 scope host venet0 + inet 172.16.19.48/32 scope global venet0:0 + 12: xapi1: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN + link/ether e8:39:35:c5:c8:50 brd ff:ff:ff:ff:ff:ff + inet 192.168.13.34/24 brd 192.168.13.255 scope global xapi1 + valid_lft forever preferred_lft forever + 13: fwdintf: <MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 1000 + link/ether 00:00:00:00:00:0a brd ff:ff:ff:ff:ff:ff + 14: ip6tnl0@NONE: <NOARP,UP,LOWER_UP> mtu 1452 qdisc noqueue state UNKNOWN group default qlen 1 + link/tunnel6 :: brd :: + inet6 fe80::f47a:2aff:fef0:c6ef/64 scope link + valid_lft forever preferred_lft forever EOM end let(:linux_ip_link_s_d) do - <<-EOM -1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN - link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 - RX: bytes packets errors dropped overrun mcast - 35224 524 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 35224 524 0 0 0 0 -2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 - link/ether 12:31:3d:02:be:a2 brd ff:ff:ff:ff:ff:ff - RX: bytes packets errors dropped overrun mcast - 1392844460 2659966 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 691785313 1919690 0 0 0 0 -3: eth0.11@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP - link/ether 00:0c:29:41:71:45 brd ff:ff:ff:ff:ff:ff - vlan id 11 <REORDER_HDR> - RX: bytes packets errors dropped overrun mcast - 0 0 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 0 0 0 0 0 0 -4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100 - link/none - RX: bytes packets errors dropped overrun mcast - 1392844460 2659966 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 691785313 1919690 0 0 0 0 -5: venet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 - link/void - RX: bytes packets errors dropped overrun mcast - 1392844460 2659966 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 691785313 1919690 0 0 0 0 -10: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP mode DEFAULT qlen 1000 - link/ether e8:39:35:c5:c8:54 brd ff:ff:ff:ff:ff:ff - RX: bytes packets errors dropped overrun mcast - 1321907045 13357087 0 0 0 3126613 - TX: bytes packets errors dropped carrier collsns - 1661526184 9467091 0 0 0 0 -11: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT - link/ether 7a:7a:80:80:6c:24 brd ff:ff:ff:ff:ff:ff - RX: bytes packets errors dropped overrun mcast - 0 0 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 0 0 0 0 0 0 -12: xapi1: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT - link/ether e8:39:35:c5:c8:50 brd ff:ff:ff:ff:ff:ff - RX: bytes packets errors dropped overrun mcast - 21468183 159866 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 2052 6 0 0 0 0 -13: fwdintf: <MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000 - link/ether 00:00:00:00:00:0a brd ff:ff:ff:ff:ff:ff promiscuity 0 - RX: bytes packets errors dropped overrun mcast - 0 0 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 140 2 0 1 0 0 -14: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default qlen 1 - link/tunnel6 :: brd :: promiscuity 0 - ip6tnl ip6ip6 remote :: local :: encaplimit 0 hoplimit 0 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 - RX: bytes packets errors dropped overrun mcast - 0 0 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 0 0 0 0 0 0 + <<~EOM + 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + RX: bytes packets errors dropped overrun mcast + 35224 524 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 35224 524 0 0 0 0 + 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 + link/ether 12:31:3d:02:be:a2 brd ff:ff:ff:ff:ff:ff + RX: bytes packets errors dropped overrun mcast + 1392844460 2659966 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 691785313 1919690 0 0 0 0 + 3: eth0.11@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP + link/ether 00:0c:29:41:71:45 brd ff:ff:ff:ff:ff:ff + vlan id 11 <REORDER_HDR> + RX: bytes packets errors dropped overrun mcast + 0 0 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 0 0 0 0 0 0 + 4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100 + link/none + RX: bytes packets errors dropped overrun mcast + 1392844460 2659966 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 691785313 1919690 0 0 0 0 + 5: venet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 + link/void + RX: bytes packets errors dropped overrun mcast + 1392844460 2659966 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 691785313 1919690 0 0 0 0 + 10: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP mode DEFAULT qlen 1000 + link/ether e8:39:35:c5:c8:54 brd ff:ff:ff:ff:ff:ff + RX: bytes packets errors dropped overrun mcast + 1321907045 13357087 0 0 0 3126613 + TX: bytes packets errors dropped carrier collsns + 1661526184 9467091 0 0 0 0 + 11: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT + link/ether 7a:7a:80:80:6c:24 brd ff:ff:ff:ff:ff:ff + RX: bytes packets errors dropped overrun mcast + 0 0 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 0 0 0 0 0 0 + 12: xapi1: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT + link/ether e8:39:35:c5:c8:50 brd ff:ff:ff:ff:ff:ff + RX: bytes packets errors dropped overrun mcast + 21468183 159866 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 2052 6 0 0 0 0 + 13: fwdintf: <MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000 + link/ether 00:00:00:00:00:0a brd ff:ff:ff:ff:ff:ff promiscuity 0 + RX: bytes packets errors dropped overrun mcast + 0 0 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 140 2 0 1 0 0 + 14: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default qlen 1 + link/tunnel6 :: brd :: promiscuity 0 + ip6tnl ip6ip6 remote :: local :: encaplimit 0 hoplimit 0 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 + RX: bytes packets errors dropped overrun mcast + 0 0 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 0 0 0 0 0 0 EOM end let(:linux_arp_an) do - <<-EOM -? (10.116.201.1) at fe:ff:ff:ff:ff:ff [ether] on eth0 + <<~EOM + ? (10.116.201.1) at fe:ff:ff:ff:ff:ff [ether] on eth0 EOM end let(:linux_ip_neighbor_show) do - <<-EOM -10.116.201.1 dev eth0 lladdr fe:ff:ff:ff:ff:ff REACHABLE + <<~EOM + 10.116.201.1 dev eth0 lladdr fe:ff:ff:ff:ff:ff REACHABLE EOM end let(:linux_ip_inet6_neighbor_show) do - <<-EOM -1111:2222:3333:4444::1 dev eth0.11 lladdr 00:1c:0e:12:34:56 router REACHABLE -fe80::21c:eff:fe12:3456 dev eth0.11 lladdr 00:1c:0e:30:28:00 router REACHABLE -fe80::21c:eff:fe12:3456 dev eth0.153 lladdr 00:1c:0e:30:28:00 router REACHABLE + <<~EOM + 1111:2222:3333:4444::1 dev eth0.11 lladdr 00:1c:0e:12:34:56 router REACHABLE + fe80::21c:eff:fe12:3456 dev eth0.11 lladdr 00:1c:0e:30:28:00 router REACHABLE + fe80::21c:eff:fe12:3456 dev eth0.153 lladdr 00:1c:0e:30:28:00 router REACHABLE EOM end let(:linux_ethtool) do - <<-EOM -Settings for eth0: - Supported ports: [ FIBRE ] - Supported link modes: 1000baseT/Full - 10000baseT/Full - Supported pause frame use: No - Supports auto-negotiation: Yes - Advertised link modes: 1000baseT/Full - 10000baseT/Full - Advertised pause frame use: No - Advertised auto-negotiation: Yes - Speed: 10000Mb/s - Duplex: Full - Port: FIBRE - PHYAD: 0 - Transceiver: external - Auto-negotiation: on - Supports Wake-on: d - Wake-on: d - Current message level: 0x00000007 (7) - drv probe link - Link detected: yes + <<~EOM + Settings for eth0: + Supported ports: [ FIBRE ] + Supported link modes: 1000baseT/Full + 10000baseT/Full + Supported pause frame use: No + Supports auto-negotiation: Yes + Advertised link modes: 1000baseT/Full + 10000baseT/Full + Advertised pause frame use: No + Advertised auto-negotiation: Yes + Speed: 10000Mb/s + Duplex: Full + Port: FIBRE + PHYAD: 0 + Transceiver: external + Auto-negotiation: on + Supports Wake-on: d + Wake-on: d + Current message level: 0x00000007 (7) + drv probe link + Link detected: yes EOM end let(:linux_ethtool_g) do - <<-EOM -Ring parameters for eth0: -Pre-set maximums: -RX: 8192 -RX Mini: 0 -RX Jumbo: 0 -TX: 8192 -Current hardware settings: -RX: 8192 -RX Mini: 0 -RX Jumbo: 0 -TX: 8192 + <<~EOM + Ring parameters for eth0: + Pre-set maximums: + RX: 8192 + RX Mini: 0 + RX Jumbo: 0 + TX: 8192 + Current hardware settings: + RX: 8192 + RX Mini: 0 + RX Jumbo: 0 + TX: 8192 EOM end @@ -745,18 +745,18 @@ EOM describe "with a link level default route" do let(:linux_ip_route) do - <<-EOM -10.116.201.0/24 dev eth0 proto kernel -default dev eth0 scope link + <<~EOM + 10.116.201.0/24 dev eth0 proto kernel + default dev eth0 scope link EOM end let(:linux_route_n) do - <<-EOM -Kernel IP routing table -Destination Gateway Genmask Flags Metric Ref Use Iface -10.116.201.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 -0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0 + <<~EOM + Kernel IP routing table + Destination Gateway Genmask Flags Metric Ref Use Iface + 10.116.201.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 + 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0 EOM end @@ -775,18 +775,18 @@ EOM describe "with a subinterface" do let(:linux_ip_route) do - <<-EOM -192.168.0.0/24 dev eth0.11 proto kernel src 192.168.0.2 -default via 192.168.0.15 dev eth0.11 + <<~EOM + 192.168.0.0/24 dev eth0.11 proto kernel src 192.168.0.2 + default via 192.168.0.15 dev eth0.11 EOM end let(:linux_route_n) do - <<-EOM -Kernel IP routing table -Destination Gateway Genmask Flags Metric Ref Use Iface -192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.11 -0.0.0.0 192.168.0.15 0.0.0.0 UG 0 0 0 eth0.11 + <<~EOM + Kernel IP routing table + Destination Gateway Genmask Flags Metric Ref Use Iface + 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.11 + 0.0.0.0 192.168.0.15 0.0.0.0 UG 0 0 0 eth0.11 EOM end @@ -873,21 +873,21 @@ EOM describe "when dealing with routes" do it "adds routes" do plugin.run - expect(plugin["network"]["interfaces"]["eth0"]["routes"]).to include Mash.new( :destination => "10.116.201.0/24", :proto => "kernel", :family => "inet" ) - expect(plugin["network"]["interfaces"]["eth0"]["routes"]).to include Mash.new( :destination => "10.5.4.0/24", :family => "inet", :via => "10.5.4.1") - expect(plugin["network"]["interfaces"]["eth0"]["routes"]).to include Mash.new( :destination => "10.5.4.0/24", :family => "inet", :via => "10.5.4.2") - expect(plugin["network"]["interfaces"]["foo:veth0@eth0"]["routes"]).to include Mash.new( :destination => "192.168.212.0/24", :proto => "kernel", :src => "192.168.212.2", :family => "inet" ) - expect(plugin["network"]["interfaces"]["eth0"]["routes"]).to include Mash.new( :destination => "fe80::/64", :metric => "256", :proto => "kernel", :family => "inet6" ) - expect(plugin["network"]["interfaces"]["eth0.11"]["routes"]).to include Mash.new( :destination => "1111:2222:3333:4444::/64", :metric => "1024", :family => "inet6" ) - expect(plugin["network"]["interfaces"]["eth0.11"]["routes"]).to include Mash.new( :destination => "default", :via => "1111:2222:3333:4444::1", :metric => "1024", :family => "inet6") + expect(plugin["network"]["interfaces"]["eth0"]["routes"]).to include Mash.new( destination: "10.116.201.0/24", proto: "kernel", family: "inet" ) + expect(plugin["network"]["interfaces"]["eth0"]["routes"]).to include Mash.new( destination: "10.5.4.0/24", family: "inet", via: "10.5.4.1") + expect(plugin["network"]["interfaces"]["eth0"]["routes"]).to include Mash.new( destination: "10.5.4.0/24", family: "inet", via: "10.5.4.2") + expect(plugin["network"]["interfaces"]["foo:veth0@eth0"]["routes"]).to include Mash.new( destination: "192.168.212.0/24", proto: "kernel", src: "192.168.212.2", family: "inet" ) + expect(plugin["network"]["interfaces"]["eth0"]["routes"]).to include Mash.new( destination: "fe80::/64", metric: "256", proto: "kernel", family: "inet6" ) + expect(plugin["network"]["interfaces"]["eth0.11"]["routes"]).to include Mash.new( destination: "1111:2222:3333:4444::/64", metric: "1024", family: "inet6" ) + expect(plugin["network"]["interfaces"]["eth0.11"]["routes"]).to include Mash.new( destination: "default", via: "1111:2222:3333:4444::1", metric: "1024", family: "inet6") end describe "when there isn't a source field in route entries and no ipv6 default routes" do let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -fe80::/64 dev eth0.11 proto kernel metric 256 -1111:2222:3333:4444::/64 dev eth0.11 metric 1024 expires 86023sec + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + fe80::/64 dev eth0.11 proto kernel metric 256 + 1111:2222:3333:4444::/64 dev eth0.11 metric 1024 expires 86023sec EOM end @@ -910,22 +910,22 @@ EOM describe "when there's a source field in the default route entry" do let(:linux_ip_route) do - <<-EOM -10.116.201.0/24 dev eth0 proto kernel -192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 -192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 -172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 -192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 -default via 10.116.201.1 dev eth0 src 10.116.201.76 + <<~EOM + 10.116.201.0/24 dev eth0 proto kernel + 192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 + 192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 + 172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 + 192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 + default via 10.116.201.1 dev eth0 src 10.116.201.76 EOM end let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -fe80::/64 dev eth0.11 proto kernel metric 256 -1111:2222:3333:4444::/64 dev eth0.11 metric 1024 -default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + fe80::/64 dev eth0.11 proto kernel metric 256 + 1111:2222:3333:4444::/64 dev eth0.11 metric 1024 + default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 EOM end @@ -949,24 +949,24 @@ EOM describe "when there're several default routes" do let(:linux_ip_route) do - <<-EOM -10.116.201.0/24 dev eth0 proto kernel src 10.116.201.76 -192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 -192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 -172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 -192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 -default via 10.116.201.1 dev eth0 metric 10 -default via 10.116.201.254 dev eth0 metric 9 + <<~EOM + 10.116.201.0/24 dev eth0 proto kernel src 10.116.201.76 + 192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 + 192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 + 172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 + 192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 + default via 10.116.201.1 dev eth0 metric 10 + default via 10.116.201.254 dev eth0 metric 9 EOM end let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -fe80::/64 dev eth0.11 proto kernel metric 256 -1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 -default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 -default via 1111:2222:3333:4444::ffff dev eth0.11 metric 1023 + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + fe80::/64 dev eth0.11 proto kernel metric 256 + 1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 + default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 + default via 1111:2222:3333:4444::ffff dev eth0.11 metric 1023 EOM end @@ -992,24 +992,24 @@ EOM describe "when there're a mixed setup of routes that could be used to set ipaddress" do let(:linux_ip_route) do - <<-EOM -10.116.201.0/24 dev eth0 proto kernel src 10.116.201.76 -192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 -192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 -172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 -192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 -default via 10.116.201.1 dev eth0 metric 10 -default via 10.116.201.254 dev eth0 metric 9 src 10.116.201.74 + <<~EOM + 10.116.201.0/24 dev eth0 proto kernel src 10.116.201.76 + 192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 + 192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 + 172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 + 192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 + default via 10.116.201.1 dev eth0 metric 10 + default via 10.116.201.254 dev eth0 metric 9 src 10.116.201.74 EOM end let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -fe80::/64 dev eth0.11 proto kernel metric 256 -1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 -default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 -default via 1111:2222:3333:4444::ffff dev eth0.11 metric 1023 src 1111:2222:3333:4444::2 + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + fe80::/64 dev eth0.11 proto kernel metric 256 + 1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 + default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 + default via 1111:2222:3333:4444::ffff dev eth0.11 metric 1023 src 1111:2222:3333:4444::2 EOM end @@ -1033,22 +1033,22 @@ EOM describe "when there's a source field in a local route entry but it isnt in the default route" do let(:linux_ip_route) do - <<-EOM -10.116.201.0/24 dev eth0 proto kernel src 10.116.201.76 -192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 -192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 -172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 -192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 -default via 10.116.201.1 dev eth0 + <<~EOM + 10.116.201.0/24 dev eth0 proto kernel src 10.116.201.76 + 192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 + 192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 + 172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 + 192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 + default via 10.116.201.1 dev eth0 EOM end let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -fe80::/64 dev eth0.11 proto kernel metric 256 -1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 -default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + fe80::/64 dev eth0.11 proto kernel metric 256 + 1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 + default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 EOM end @@ -1086,9 +1086,9 @@ EOM context "when then ipv4 interface has the NOARP flag and no ipv6 routes exist" do let(:linux_ip_route) do - <<-EOM -10.118.19.1 dev tun0 proto kernel src 10.118.19.39 -default via 172.16.19.1 dev tun0 + <<~EOM + 10.118.19.1 dev tun0 proto kernel src 10.118.19.39 + default via 172.16.19.1 dev tun0 EOM end let(:linux_ip_route_inet6) { "" } @@ -1109,8 +1109,8 @@ EOM describe "with a link level default route" do let(:linux_ip_route) do - <<-EOM -default dev venet0 scope link + <<~EOM + default dev venet0 scope link EOM end @@ -1130,8 +1130,8 @@ EOM describe "with a link level default route to an unaddressed int" do let(:linux_ip_route) do - <<-EOM -default dev eth3 scope link + <<~EOM + default dev eth3 scope link EOM end @@ -1155,8 +1155,8 @@ EOM describe "with a link level default route with a source" do let(:linux_ip_route) do - <<-EOM -default dev fwdintf scope link src 2.2.2.2 + <<~EOM + default dev fwdintf scope link src 2.2.2.2 EOM end @@ -1180,9 +1180,9 @@ EOM describe "when not having a global scope ipv6 address" do let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -default via fe80::21c:eff:fe12:3456 dev eth0.153 src fe80::2e0:81ff:fe2b:48e7 metric 1024 + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + default via fe80::21c:eff:fe12:3456 dev eth0.153 src fe80::2e0:81ff:fe2b:48e7 metric 1024 EOM end before(:each) do @@ -1202,20 +1202,20 @@ EOM describe "with no default route" do let(:linux_ip_route) do - <<-EOM -10.116.201.0/24 dev eth0 proto kernel src 10.116.201.76 -192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 -192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 -172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 -192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 + <<~EOM + 10.116.201.0/24 dev eth0 proto kernel src 10.116.201.76 + 192.168.5.0/24 dev eth0 proto kernel src 192.168.5.1 + 192.168.212.0/24 dev foo:veth0@eth0 proto kernel src 192.168.212.2 + 172.16.151.0/24 dev eth0 proto kernel src 172.16.151.100 + 192.168.0.0/24 dev eth0 proto kernel src 192.168.0.2 EOM end let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -fe80::/64 dev eth0.11 proto kernel metric 256 -1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + fe80::/64 dev eth0.11 proto kernel metric 256 + 1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::3 EOM end @@ -1240,18 +1240,18 @@ EOM describe "with openvz setup" do let(:linux_ip_route) { "default dev venet0 scope link" } let(:linux_ip_addr) do - <<-EOM -1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN - link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 - inet 127.0.0.1/8 scope host lo - inet6 ::1/128 scope host - valid_lft forever preferred_lft forever -2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN - link/void - inet 127.0.0.2/32 scope host venet0 - inet 10.116.201.76/24 brd 10.116.201.255 scope global venet0:0 - inet6 2001:44b8:4160:8f00:a00:27ff:fe13:eacd/64 scope global dynamic - valid_lft 6128sec preferred_lft 2526sec + <<~EOM + 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + inet6 ::1/128 scope host + valid_lft forever preferred_lft forever + 2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN + link/void + inet 127.0.0.2/32 scope host venet0 + inet 10.116.201.76/24 brd 10.116.201.255 scope global venet0:0 + inet6 2001:44b8:4160:8f00:a00:27ff:fe13:eacd/64 scope global dynamic + valid_lft 6128sec preferred_lft 2526sec EOM end # We don't have the corresponding ipv6 data for these tests @@ -1275,31 +1275,31 @@ EOM end it "sets correct routing information" do - expect(plugin["network"]["interfaces"]["venet0:0"]["routes"]).to eq([Mash.new( :destination => "default", :family => "inet", :scope => "link" )]) + expect(plugin["network"]["interfaces"]["venet0:0"]["routes"]).to eq([Mash.new( destination: "default", family: "inet", scope: "link" )]) end it "sets correct address information" do - expect(plugin["network"]["interfaces"]["venet0:0"]["addresses"]).to eq("10.116.201.76" => Mash.new(:family => "inet", :prefixlen => "24", :netmask => "255.255.255.0", :broadcast => "10.116.201.255", :scope => "Global")) + expect(plugin["network"]["interfaces"]["venet0:0"]["addresses"]).to eq("10.116.201.76" => Mash.new(family: "inet", prefixlen: "24", netmask: "255.255.255.0", broadcast: "10.116.201.255", scope: "Global")) end end describe "with irrelevant routes (container setups)" do let(:linux_ip_route) do - <<-EOM -10.116.201.0/26 dev eth0 proto kernel src 10.116.201.39 -10.116.201.0/26 dev if4 proto kernel src 10.116.201.45 -10.118.19.0/26 dev eth0 proto kernel src 10.118.19.39 -10.118.19.0/26 dev if5 proto kernel src 10.118.19.45 -default via 10.116.201.1 dev eth0 src 10.116.201.99 + <<~EOM + 10.116.201.0/26 dev eth0 proto kernel src 10.116.201.39 + 10.116.201.0/26 dev if4 proto kernel src 10.116.201.45 + 10.118.19.0/26 dev eth0 proto kernel src 10.118.19.39 + 10.118.19.0/26 dev if5 proto kernel src 10.118.19.45 + default via 10.116.201.1 dev eth0 src 10.116.201.99 EOM end let(:linux_ip_route_inet6) do - <<-EOM -fe80::/64 dev eth0 proto kernel metric 256 -fe80::/64 dev eth0.11 proto kernel metric 256 -1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::FFFF:2 -default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 + <<~EOM + fe80::/64 dev eth0 proto kernel metric 256 + fe80::/64 dev eth0.11 proto kernel metric 256 + 1111:2222:3333:4444::/64 dev eth0.11 metric 1024 src 1111:2222:3333:4444::FFFF:2 + default via 1111:2222:3333:4444::1 dev eth0.11 metric 1024 EOM end @@ -1313,9 +1313,9 @@ EOM end it "doesn't add bogus routes" do - expect(plugin["network"]["interfaces"]["eth0"]["routes"]).not_to include Mash.new( :destination => "10.116.201.0/26", :proto => "kernel", :family => "inet", :via => "10.116.201.39" ) - expect(plugin["network"]["interfaces"]["eth0"]["routes"]).not_to include Mash.new( :destination => "10.118.19.0/26", :proto => "kernel", :family => "inet", :via => "10.118.19.39" ) - expect(plugin["network"]["interfaces"]["eth0"]["routes"]).not_to include Mash.new( :destination => "1111:2222:3333:4444::/64", :family => "inet6", :metric => "1024" ) + expect(plugin["network"]["interfaces"]["eth0"]["routes"]).not_to include Mash.new( destination: "10.116.201.0/26", proto: "kernel", family: "inet", via: "10.116.201.39" ) + expect(plugin["network"]["interfaces"]["eth0"]["routes"]).not_to include Mash.new( destination: "10.118.19.0/26", proto: "kernel", family: "inet", via: "10.118.19.39" ) + expect(plugin["network"]["interfaces"]["eth0"]["routes"]).not_to include Mash.new( destination: "1111:2222:3333:4444::/64", family: "inet6", metric: "1024" ) end it "doesn't set ipaddress" do @@ -1330,8 +1330,8 @@ EOM # This should never happen in the real world. describe "when encountering a surprise interface" do let(:linux_ip_route) do - <<-EOM -192.168.122.0/24 dev virbr0 proto kernel src 192.168.122.1 + <<~EOM + 192.168.122.0/24 dev virbr0 proto kernel src 192.168.122.1 EOM end @@ -1344,38 +1344,38 @@ EOM describe "when running with ip version ss131122" do let(:linux_ip_link_s_d) do - <<-EOM -1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT group default - link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0 - RX: bytes packets errors dropped overrun mcast - 35224 524 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 35224 524 0 0 0 0 -2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 - link/ether 12:31:3d:02:be:a2 brd ff:ff:ff:ff:ff:ff promiscuity 0 - RX: bytes packets errors dropped overrun mcast - 1392844460 2659966 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 691785313 1919690 0 0 0 0 -3: eth0.11@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default - link/ether 00:0c:29:41:71:45 brd ff:ff:ff:ff:ff:ff promiscuity 0 - vlan protocol 802.1Q id 11 <REORDER_HDR> - RX: bytes packets errors dropped overrun mcast - 0 0 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 0 0 0 0 0 0 -4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 100 - link/none promiscuity 0 - RX: bytes packets errors dropped overrun mcast - 1392844460 2659966 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 691785313 1919690 0 0 0 0 -5: venet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 - link/void promiscuity 0 - RX: bytes packets errors dropped overrun mcast - 1392844460 2659966 0 0 0 0 - TX: bytes packets errors dropped carrier collsns - 691785313 1919690 0 0 0 0 + <<~EOM + 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT group default + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0 + RX: bytes packets errors dropped overrun mcast + 35224 524 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 35224 524 0 0 0 0 + 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 + link/ether 12:31:3d:02:be:a2 brd ff:ff:ff:ff:ff:ff promiscuity 0 + RX: bytes packets errors dropped overrun mcast + 1392844460 2659966 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 691785313 1919690 0 0 0 0 + 3: eth0.11@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default + link/ether 00:0c:29:41:71:45 brd ff:ff:ff:ff:ff:ff promiscuity 0 + vlan protocol 802.1Q id 11 <REORDER_HDR> + RX: bytes packets errors dropped overrun mcast + 0 0 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 0 0 0 0 0 0 + 4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 100 + link/none promiscuity 0 + RX: bytes packets errors dropped overrun mcast + 1392844460 2659966 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 691785313 1919690 0 0 0 0 + 5: venet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 + link/void promiscuity 0 + RX: bytes packets errors dropped overrun mcast + 1392844460 2659966 0 0 0 0 + TX: bytes packets errors dropped carrier collsns + 691785313 1919690 0 0 0 0 EOM end diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb index 88f5dacc..cc301cc1 100644 --- a/spec/unit/plugins/linux/platform_spec.rb +++ b/spec/unit/plugins/linux/platform_spec.rb @@ -181,16 +181,16 @@ describe Ohai::System, "Linux plugin platform" do let(:have_cumulus_dir) { true } let(:cumulus_release_content) do - <<-OS_RELEASE -NAME="Cumulus Linux" -VERSION_ID=3.1.2 -VERSION="Cumulus Linux 3.1.2" -PRETTY_NAME="Cumulus Linux" -ID=cumulus-linux -ID_LIKE=debian -CPE_NAME=cpe:/o:cumulusnetworks:cumulus_linux:3.1.2 -HOME_URL="http://www.cumulusnetworks.com/" -SUPPORT_URL="http://support.cumulusnetworks.com/" + <<~OS_RELEASE + NAME="Cumulus Linux" + VERSION_ID=3.1.2 + VERSION="Cumulus Linux 3.1.2" + PRETTY_NAME="Cumulus Linux" + ID=cumulus-linux + ID_LIKE=debian + CPE_NAME=cpe:/o:cumulusnetworks:cumulus_linux:3.1.2 + HOME_URL="http://www.cumulusnetworks.com/" + SUPPORT_URL="http://support.cumulusnetworks.com/" OS_RELEASE end @@ -465,17 +465,17 @@ OS_RELEASE let(:have_os_release) { true } let(:os_release_content) do - <<-OS_RELEASE -NAME="CentOS Linux" -VERSION="7 (Core)" -ID="centos" -ID_LIKE="rhel fedora" -VERSION_ID="7" -PRETTY_NAME="CentOS Linux 7 (Core)" -ANSI_COLOR="0;31" -CPE_NAME="cpe:/o:centos:centos:7" -HOME_URL="https://www.centos.org/" -BUG_REPORT_URL="https://bugs.centos.org/" + <<~OS_RELEASE + NAME="CentOS Linux" + VERSION="7 (Core)" + ID="centos" + ID_LIKE="rhel fedora" + VERSION_ID="7" + PRETTY_NAME="CentOS Linux 7 (Core)" + ANSI_COLOR="0;31" + CPE_NAME="cpe:/o:centos:centos:7" + HOME_URL="https://www.centos.org/" + BUG_REPORT_URL="https://bugs.centos.org/" OS_RELEASE end @@ -498,40 +498,40 @@ OS_RELEASE let(:have_os_release) { true } let(:os_release_content) do - <<-OS_RELEASE -NAME="CentOS Linux" -VERSION="7 (Core)" -ID="centos" -ID_LIKE="rhel fedora" -VERSION_ID="7" -PRETTY_NAME="CentOS Linux 7 (Core)" -ANSI_COLOR="0;31" -CPE_NAME="cpe:/o:centos:centos:7" -HOME_URL="https://www.centos.org/" -BUG_REPORT_URL="https://bugs.centos.org/" - -CENTOS_MANTISBT_PROJECT="CentOS-7" -CENTOS_MANTISBT_PROJECT_VERSION="7" -REDHAT_SUPPORT_PRODUCT="centos" -REDHAT_SUPPORT_PRODUCT_VERSION="7" - -CISCO_RELEASE_INFO=/etc/shared/os-release + <<~OS_RELEASE + NAME="CentOS Linux" + VERSION="7 (Core)" + ID="centos" + ID_LIKE="rhel fedora" + VERSION_ID="7" + PRETTY_NAME="CentOS Linux 7 (Core)" + ANSI_COLOR="0;31" + CPE_NAME="cpe:/o:centos:centos:7" + HOME_URL="https://www.centos.org/" + BUG_REPORT_URL="https://bugs.centos.org/" + + CENTOS_MANTISBT_PROJECT="CentOS-7" + CENTOS_MANTISBT_PROJECT_VERSION="7" + REDHAT_SUPPORT_PRODUCT="centos" + REDHAT_SUPPORT_PRODUCT_VERSION="7" + + CISCO_RELEASE_INFO=/etc/shared/os-release OS_RELEASE end let(:have_cisco_release) { true } let(:cisco_release_content) do - <<-CISCO_RELEASE -ID=nexus -ID_LIKE=wrlinux -NAME=Nexus -VERSION="7.0(3)I2(0.475E.6)" -VERSION_ID="7.0(3)I2" -PRETTY_NAME="Nexus 7.0(3)I2" -HOME_URL=http://www.cisco.com -BUILD_ID=6 -CISCO_RELEASE_INFO=/etc/os-release + <<~CISCO_RELEASE + ID=nexus + ID_LIKE=wrlinux + NAME=Nexus + VERSION="7.0(3)I2(0.475E.6)" + VERSION_ID="7.0(3)I2" + PRETTY_NAME="Nexus 7.0(3)I2" + HOME_URL=http://www.cisco.com + BUILD_ID=6 + CISCO_RELEASE_INFO=/etc/os-release CISCO_RELEASE end @@ -692,14 +692,14 @@ CISCO_RELEASE let(:have_os_release) { true } let(:os_release_content) do - <<-OS_RELEASE -VERSION="15" -VERSION_ID="15" -PRETTY_NAME="SUSE Linux Enterprise Server 15" -ID="sles" -ID_LIKE="suse" -ANSI_COLOR="0;32" -CPE_NAME="cpe:/o:suse:sles:15" + <<~OS_RELEASE + VERSION="15" + VERSION_ID="15" + PRETTY_NAME="SUSE Linux Enterprise Server 15" + ID="sles" + ID_LIKE="suse" + ANSI_COLOR="0;32" + CPE_NAME="cpe:/o:suse:sles:15" OS_RELEASE end @@ -945,17 +945,17 @@ OS_RELEASE describe "on clearlinux" do let(:have_usr_lib_os_release) { true } let(:usr_lib_os_release_content) do - <<-CLEARLINUX_RELEASE -NAME="Clear Linux Software for Intel Architecture" -VERSION=1 -ID=clear-linux-os -VERSION_ID=16140 -PRETTY_NAME="Clear Linux OS for Intel Architecture" -ANSI_COLOR="1;35" -HOME_URL="https://clearlinux.org" -SUPPORT_URL="https://clearlinux.org" -BUG_REPORT_URL="mailto:dev@lists.clearlinux.org" -PRIVACY_POLICY_URL="http://www.intel.com/privacy" + <<~CLEARLINUX_RELEASE + NAME="Clear Linux Software for Intel Architecture" + VERSION=1 + ID=clear-linux-os + VERSION_ID=16140 + PRETTY_NAME="Clear Linux OS for Intel Architecture" + ANSI_COLOR="1;35" + HOME_URL="https://clearlinux.org" + SUPPORT_URL="https://clearlinux.org" + BUG_REPORT_URL="mailto:dev@lists.clearlinux.org" + PRIVACY_POLICY_URL="http://www.intel.com/privacy" CLEARLINUX_RELEASE end diff --git a/spec/unit/plugins/linux/systemd_paths_spec.rb b/spec/unit/plugins/linux/systemd_paths_spec.rb index f196cfb3..0dcdd3cb 100644 --- a/spec/unit/plugins/linux/systemd_paths_spec.rb +++ b/spec/unit/plugins/linux/systemd_paths_spec.rb @@ -26,46 +26,46 @@ describe Ohai::System, "Linux systemd paths plugin" do end it "should populate systemd_paths if systemd-path is found" do - systemd_path_out = <<-SYSTEMD_PATH_OUT -temporary: /tmp -temporary-large: /var/tmp -system-binaries: /usr/bin -system-include: /usr/include -system-library-private: /usr/lib -system-library-arch: /usr/lib/x86_64-linux-gnu -system-shared: /usr/share -system-configuration-factory: /usr/share/factory/etc -system-state-factory: /usr/share/factory/var -system-configuration: /etc -system-runtime: /run -system-runtime-logs: /run/log -system-state-private: /var/lib -system-state-logs: /var/log -system-state-cache: /var/cache -system-state-spool: /var/spool -user-binaries: /home/foo/.local/bin -user-library-private: /home/foo/.local/lib -user-library-arch: /home/foo/.local/lib/x86_64-linux-gnu -user-shared: /home/foo/.local/share -user-configuration: /home/foo/.config -user-runtime: /run/user/1000 -user-state-cache: /home/foo/.cache -user: /home/foo -user-documents: /home/foo/Documents -user-music: /home/foo/Music -user-pictures: /home/foo/Pictures -user-videos: /home/foo/Videos -user-download: /home/foo/Downloads -user-public: /home/foo/Public -user-templates: /home/foo/Templates -user-desktop: /home/foo/Desktop -search-binaries: /home/foo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/facebook/bin:/home/foo/.rvm/bin:/home/foo/.rvm/bin -search-library-private: /home/foo/.local/lib:/usr/local/lib:/usr/lib:/lib -search-library-arch: /home/foo/.local/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu -search-shared: /home/foo/.local/share:/usr/share/gnome:/home/foo/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share -search-configuration-factory: /usr/local/share/factory/etc:/usr/share/factory/etc -search-state-factory: /usr/local/share/factory/var:/usr/share/factory/var -search-configuration: /home/foo/.config:/etc + systemd_path_out = <<~SYSTEMD_PATH_OUT + temporary: /tmp + temporary-large: /var/tmp + system-binaries: /usr/bin + system-include: /usr/include + system-library-private: /usr/lib + system-library-arch: /usr/lib/x86_64-linux-gnu + system-shared: /usr/share + system-configuration-factory: /usr/share/factory/etc + system-state-factory: /usr/share/factory/var + system-configuration: /etc + system-runtime: /run + system-runtime-logs: /run/log + system-state-private: /var/lib + system-state-logs: /var/log + system-state-cache: /var/cache + system-state-spool: /var/spool + user-binaries: /home/foo/.local/bin + user-library-private: /home/foo/.local/lib + user-library-arch: /home/foo/.local/lib/x86_64-linux-gnu + user-shared: /home/foo/.local/share + user-configuration: /home/foo/.config + user-runtime: /run/user/1000 + user-state-cache: /home/foo/.cache + user: /home/foo + user-documents: /home/foo/Documents + user-music: /home/foo/Music + user-pictures: /home/foo/Pictures + user-videos: /home/foo/Videos + user-download: /home/foo/Downloads + user-public: /home/foo/Public + user-templates: /home/foo/Templates + user-desktop: /home/foo/Desktop + search-binaries: /home/foo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/facebook/bin:/home/foo/.rvm/bin:/home/foo/.rvm/bin + search-library-private: /home/foo/.local/lib:/usr/local/lib:/usr/lib:/lib + search-library-arch: /home/foo/.local/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu + search-shared: /home/foo/.local/share:/usr/share/gnome:/home/foo/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share + search-configuration-factory: /usr/local/share/factory/etc:/usr/share/factory/etc + search-state-factory: /usr/local/share/factory/var:/usr/share/factory/var + search-configuration: /home/foo/.config:/etc SYSTEMD_PATH_OUT allow(plugin).to receive(:which).with("systemd-path").and_return("/bin/systemd-path") diff --git a/spec/unit/plugins/linux/uptime_spec.rb b/spec/unit/plugins/linux/uptime_spec.rb index bb8b5f20..028b7f0c 100644 --- a/spec/unit/plugins/linux/uptime_spec.rb +++ b/spec/unit/plugins/linux/uptime_spec.rb @@ -22,7 +22,7 @@ describe Ohai::System, "Linux plugin uptime" do before(:each) do @plugin = get_plugin("uptime") allow(@plugin).to receive(:collect_os).and_return(:linux) - @double_file = double("/proc/uptime", { :gets => "18423 989" }) + @double_file = double("/proc/uptime", { gets: "18423 989" }) allow(File).to receive(:open).with("/proc/uptime").and_return(@double_file) end diff --git a/spec/unit/plugins/linux/virtualization_spec.rb b/spec/unit/plugins/linux/virtualization_spec.rb index 9b708559..fa1eb767 100644 --- a/spec/unit/plugins/linux/virtualization_spec.rb +++ b/spec/unit/plugins/linux/virtualization_spec.rb @@ -192,14 +192,14 @@ describe Ohai::System, "Linux virtualization platform" do end it "sets virtualpc guest if dmidecode detects Microsoft Virtual Machine" do - ms_vpc_dmidecode = <<-MSVPC -System Information - Manufacturer: Microsoft Corporation - Product Name: Virtual Machine - Version: VS2005R2 - Serial Number: 1688-7189-5337-7903-2297-1012-52 - UUID: D29974A4-BE51-044C-BDC6-EFBC4B87A8E9 - Wake-up Type: Power Switch + ms_vpc_dmidecode = <<~MSVPC + System Information + Manufacturer: Microsoft Corporation + Product Name: Virtual Machine + Version: VS2005R2 + Serial Number: 1688-7189-5337-7903-2297-1012-52 + UUID: D29974A4-BE51-044C-BDC6-EFBC4B87A8E9 + Wake-up Type: Power Switch MSVPC allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, ms_vpc_dmidecode, "")) plugin.run @@ -209,14 +209,14 @@ MSVPC end it "sets hyperv guest if dmidecode detects Hyper-V or version 7.0" do - ms_hv_dmidecode = <<-MSHV -System Information - Manufacturer: Microsoft Corporation - Product Name: Virtual Machine - Version: 7.0 - Serial Number: 9242-2608-7031-8934-2088-5216-61 - UUID: C2431A2D-D69C-244F-9DE8-CD5D09E0DA39 - Wake-up Type: Power Switch + ms_hv_dmidecode = <<~MSHV + System Information + Manufacturer: Microsoft Corporation + Product Name: Virtual Machine + Version: 7.0 + Serial Number: 9242-2608-7031-8934-2088-5216-61 + UUID: C2431A2D-D69C-244F-9DE8-CD5D09E0DA39 + Wake-up Type: Power Switch MSHV allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, ms_hv_dmidecode, "")) plugin.run @@ -226,14 +226,14 @@ MSHV end it "sets virtualserver guest if dmidecode detects version 5.0" do - ms_vs_dmidecode = <<-MSVS -System Information - Manufacturer: Microsoft Corporation - Product Name: Virtual Machine - Version: 5.0 - Serial Number: 1688-7189-5337-7903-2297-1012-52 - UUID: D29974A4-BE51-044C-BDC6-EFBC4B87A8E9 - Wake-up Type: Power Switch + ms_vs_dmidecode = <<~MSVS + System Information + Manufacturer: Microsoft Corporation + Product Name: Virtual Machine + Version: 5.0 + Serial Number: 1688-7189-5337-7903-2297-1012-52 + UUID: D29974A4-BE51-044C-BDC6-EFBC4B87A8E9 + Wake-up Type: Power Switch MSVS allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, ms_vs_dmidecode, "")) plugin.run @@ -243,16 +243,16 @@ MSVS end it "sets vmware guest if dmidecode detects VMware" do - vmware_dmidecode = <<-VMWARE -System Information - Manufacturer: VMware, Inc. - Product Name: VMware Virtual Platform - Version: None - Serial Number: VMware-50 3f f7 14 42 d1 f1 da-3b 46 27 d0 29 b4 74 1d - UUID: a86cc405-e1b9-447b-ad05-6f8db39d876a - Wake-up Type: Power Switch - SKU Number: Not Specified - Family: Not Specified + vmware_dmidecode = <<~VMWARE + System Information + Manufacturer: VMware, Inc. + Product Name: VMware Virtual Platform + Version: None + Serial Number: VMware-50 3f f7 14 42 d1 f1 da-3b 46 27 d0 29 b4 74 1d + UUID: a86cc405-e1b9-447b-ad05-6f8db39d876a + Wake-up Type: Power Switch + SKU Number: Not Specified + Family: Not Specified VMWARE allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, vmware_dmidecode, "")) plugin.run @@ -262,18 +262,18 @@ VMWARE end it "sets vbox guest if dmidecode detects VirtualBox" do - vbox_dmidecode = <<-VBOX -Base Board Information - Manufacturer: Oracle Corporation - Product Name: VirtualBox - Version: 1.2 - Serial Number: 0 - Asset Tag: Not Specified - Features: - Board is a hosting board - Location In Chasis: Not Specified - Type: Motherboard - Contained Object Handles: 0 + vbox_dmidecode = <<~VBOX + Base Board Information + Manufacturer: Oracle Corporation + Product Name: VirtualBox + Version: 1.2 + Serial Number: 0 + Asset Tag: Not Specified + Features: + Board is a hosting board + Location In Chasis: Not Specified + Type: Motherboard + Contained Object Handles: 0 VBOX allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, vbox_dmidecode, "")) plugin.run @@ -283,16 +283,16 @@ VBOX end it "sets openstack guest if dmidecode detects OpenStack" do - openstack_dmidecode = <<-OPENSTACK -System Information - Manufacturer: Red Hat Inc. - Product Name: OpenStack Nova - Version: 2014.1.2-1.el6 - Serial Number: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - Wake-up Type: Power Switch - SKU Number: Not Specified - Family: Red Hat Enterprise Linux + openstack_dmidecode = <<~OPENSTACK + System Information + Manufacturer: Red Hat Inc. + Product Name: OpenStack Nova + Version: 2014.1.2-1.el6 + Serial Number: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + Wake-up Type: Power Switch + SKU Number: Not Specified + Family: Red Hat Enterprise Linux OPENSTACK allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, openstack_dmidecode, "")) plugin.run @@ -302,16 +302,16 @@ OPENSTACK end it "sets kvm guest if dmidecode contains KVM" do - kvm_dmidecode = <<-RKVM -System Information - Manufacturer: Red Hat - Product Name: KVM - Version: RHEL 7.0.0 PC (i440FX + PIIX, 1996) - Serial Number: Not Specified - UUID: 6E56CFE2-2088-4A46-906A-FC49EDC4072C - Wake-up Type: Power Switch - SKU Number: Not Specified - Family: Red Hat Enterprise Linux + kvm_dmidecode = <<~RKVM + System Information + Manufacturer: Red Hat + Product Name: KVM + Version: RHEL 7.0.0 PC (i440FX + PIIX, 1996) + Serial Number: Not Specified + UUID: 6E56CFE2-2088-4A46-906A-FC49EDC4072C + Wake-up Type: Power Switch + SKU Number: Not Specified + Family: Red Hat Enterprise Linux RKVM allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, kvm_dmidecode, "")) plugin.run @@ -321,16 +321,16 @@ RKVM end it "sets kvm guest if dmidecode detects RHEV" do - kvm_dmidecode = <<-RHEV -System Information - Manufacturer: Red Hat - Product Name: RHEV Hypervisor - Version: 6.7-20150911.0.el6ev - Serial Number: 00000000-0000-0000-0000-000000000000 - UUID: E7F1DC93-3DA1-4EC3-A6AB-F6904BA87985 - Wake-up Type: Power Switch - SKU Number: Not Specified - Family: Red Hat Enterprise Linux + kvm_dmidecode = <<~RHEV + System Information + Manufacturer: Red Hat + Product Name: RHEV Hypervisor + Version: 6.7-20150911.0.el6ev + Serial Number: 00000000-0000-0000-0000-000000000000 + UUID: E7F1DC93-3DA1-4EC3-A6AB-F6904BA87985 + Wake-up Type: Power Switch + SKU Number: Not Specified + Family: Red Hat Enterprise Linux RHEV allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, kvm_dmidecode, "")) plugin.run @@ -340,16 +340,16 @@ RHEV end it "sets bhyve guest if dmidecode detects bhyve" do - bhyve_dmidecode = <<-OUTPUT -System Information - Manufacturer: - Product Name: BHYVE - Version: 1.0 - Serial Number: None - UUID: 023B323A-E139-4B36-8BC5-CEBB2469DAAA - Wake-up Type: Power Switch - SKU Number: None - Family: + bhyve_dmidecode = <<~OUTPUT + System Information + Manufacturer: + Product Name: BHYVE + Version: 1.0 + Serial Number: None + UUID: 023B323A-E139-4B36-8BC5-CEBB2469DAAA + Wake-up Type: Power Switch + SKU Number: None + Family: OUTPUT allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, bhyve_dmidecode, "")) plugin.run @@ -359,16 +359,16 @@ OUTPUT end it "sets veertu guest if dmidecode detects Veertu" do - veertu_dmidecode = <<-VEERTU -System Information - Manufacturer: Veertu - Product Name: Veertu - Version: Not Specified - Serial Number: Not Specified - UUID: Not Settable - Wake-up Type: Power Switch - SKU Number: Not Specified - Family: Not Specified + veertu_dmidecode = <<~VEERTU + System Information + Manufacturer: Veertu + Product Name: Veertu + Version: Not Specified + Serial Number: Not Specified + UUID: Not Settable + Wake-up Type: Power Switch + SKU Number: Not Specified + Family: Not Specified VEERTU allow(plugin).to receive(:shell_out).with("dmidecode").and_return(mock_shell_out(0, veertu_dmidecode, "")) plugin.run @@ -474,9 +474,9 @@ VEERTU describe "when we are checking for parallels" do it "sets parallels guest if /proc/bus/pci/devices contains 1ab84000" do - devices = <<-DEVICES -0018 1ab84000 1f 8001 0 0 0 0 0 0 20 0 0 0 0 0 0 prl_tg -0028 1af41000 17 8201 ee000000 0 0 0 0 0 40 1000 0 0 0 0 0 virtio-pci + devices = <<~DEVICES + 0018 1ab84000 1f 8001 0 0 0 0 0 0 20 0 0 0 0 0 0 prl_tg + 0028 1af41000 17 8201 ee000000 0 0 0 0 0 40 1000 0 0 0 0 0 virtio-pci DEVICES expect(File).to receive(:exist?).with("/proc/bus/pci/devices").and_return(true) allow(File).to receive(:read).with("/proc/bus/pci/devices").and_return(devices) @@ -487,9 +487,9 @@ VEERTU end it "does not set virtualization if /proc/bus/pci/devices not contains 1ab84000" do - devices = <<-DEVICES -0030 1af41000 a 8401 ee040000 0 0 0 0 0 40 1000 0 0 0 0 0 virtio-pci -0050 10110022 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 + devices = <<~DEVICES + 0030 1af41000 a 8401 ee040000 0 0 0 0 0 40 1000 0 0 0 0 0 virtio-pci + 0050 10110022 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DEVICES expect(File).to receive(:exist?).with("/proc/bus/pci/devices").and_return(true) allow(File).to receive(:read).with("/proc/bus/pci/devices").and_return(devices) @@ -526,15 +526,15 @@ VEERTU describe "when we are checking for lxc" do it "sets lxc guest if /proc/self/cgroup exist and there are /lxc/<hexadecimal> mounts" do - self_cgroup = <<-CGROUP -8:blkio:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -7:net_cls:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -6:freezer:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -5:devices:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -4:memory:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -3:cpuacct:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -2:cpu:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -1:cpuset:/ + self_cgroup = <<~CGROUP + 8:blkio:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 7:net_cls:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 6:freezer:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 5:devices:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 4:memory:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 3:cpuacct:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 2:cpu:/lxc/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 1:cpuset:/ CGROUP expect(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) @@ -545,15 +545,15 @@ CGROUP end it "sets lxc guest if /proc/self/cgroup exist and there are /lxc/<name> mounts" do - self_cgroup = <<-CGROUP -8:blkio:/lxc/vanilla -7:net_cls:/lxc/vanilla -6:freezer:/lxc/vanilla -5:devices:/lxc/vanilla -4:memory:/lxc/vanilla -3:cpuacct:/lxc/vanilla -2:cpu:/lxc/vanilla -1:cpuset:/lxc/vanilla + self_cgroup = <<~CGROUP + 8:blkio:/lxc/vanilla + 7:net_cls:/lxc/vanilla + 6:freezer:/lxc/vanilla + 5:devices:/lxc/vanilla + 4:memory:/lxc/vanilla + 3:cpuacct:/lxc/vanilla + 2:cpu:/lxc/vanilla + 1:cpuset:/lxc/vanilla CGROUP expect(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) @@ -564,15 +564,15 @@ CGROUP end it "sets not set anything if /proc/self/cgroup exist and the cgroup is named arbitrarily, it isn't necessarily lxc." do - self_cgroup = <<-CGROUP -8:blkio:/Charlie -7:net_cls:/Charlie -6:freezer:/Charlie -5:devices:/Charlie -4:memory:/Charlie -3:cpuacct:/Charlie -2:cpu:/Charlie -1:cpuset:/Charlie + self_cgroup = <<~CGROUP + 8:blkio:/Charlie + 7:net_cls:/Charlie + 6:freezer:/Charlie + 5:devices:/Charlie + 4:memory:/Charlie + 3:cpuacct:/Charlie + 2:cpu:/Charlie + 1:cpuset:/Charlie CGROUP allow(File).to receive(:read).with("/proc/1/environ").and_return("") expect(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) @@ -583,15 +583,15 @@ CGROUP context "/proc/self/cgroup only has / mounts" do before(:each) do - self_cgroup = <<-CGROUP -8:blkio:/ -7:net_cls:/ -6:freezer:/ -5:devices:/ -4:memory:/ -3:cpuacct:/ -2:cpu:/ -1:cpuset:/ + self_cgroup = <<~CGROUP + 8:blkio:/ + 7:net_cls:/ + 6:freezer:/ + 5:devices:/ + 4:memory:/ + 3:cpuacct:/ + 2:cpu:/ + 1:cpuset:/ CGROUP expect(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) @@ -662,15 +662,15 @@ CGROUP describe "when we are checking for docker" do it "sets docker guest if /proc/self/cgroup exist and there are /docker/<hexadecimal> mounts" do - self_cgroup = <<-CGROUP -8:blkio:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -7:net_cls:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -6:freezer:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -5:devices:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -4:memory:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -3:cpuacct:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -2:cpu:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc -1:cpuset:/ + self_cgroup = <<~CGROUP + 8:blkio:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 7:net_cls:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 6:freezer:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 5:devices:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 4:memory:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 3:cpuacct:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 2:cpu:/docker/baa660ed81bc81d262ac6e19486142aeec5fce2043e2a173eb2505c6fbed89bc + 1:cpuset:/ CGROUP allow(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) @@ -681,15 +681,15 @@ CGROUP end it "sets docker guest if /proc/self/cgroup exist and there are /docker/<name> mounts" do - self_cgroup = <<-CGROUP -8:blkio:/docker/vanilla -7:net_cls:/docker/vanilla -6:freezer:/docker/vanilla -5:devices:/docker/vanilla -4:memory:/docker/vanilla -3:cpuacct:/docker/vanilla -2:cpu:/docker/vanilla -1:cpuset:/docker/vanilla + self_cgroup = <<~CGROUP + 8:blkio:/docker/vanilla + 7:net_cls:/docker/vanilla + 6:freezer:/docker/vanilla + 5:devices:/docker/vanilla + 4:memory:/docker/vanilla + 3:cpuacct:/docker/vanilla + 2:cpu:/docker/vanilla + 1:cpuset:/docker/vanilla CGROUP allow(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) @@ -700,20 +700,20 @@ CGROUP end it "sets docker guest if /proc/self/cgroup exist and there are /docker/docker-ce/<hexadecimal> mounts" do - self_cgroup = <<-CGROUP -13:name=systemd:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -12:pids:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -11:hugetlb:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -10:net_prio:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -9:perf_event:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -8:net_cls:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -7:freezer:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -6:devices:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -5:memory:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -4:blkio:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -3:cpuacct:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -2:cpu:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 -1:cpuset:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + self_cgroup = <<~CGROUP + 13:name=systemd:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 12:pids:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 11:hugetlb:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 10:net_prio:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 9:perf_event:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 8:net_cls:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 7:freezer:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 6:devices:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 5:memory:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 4:blkio:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 3:cpuacct:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 2:cpu:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 + 1:cpuset:/docker-ce/docker/b15b85d19304436488a78d06afeb108d94b20bb6898d852b65cad51bd7dc9468 CGROUP allow(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) @@ -726,15 +726,15 @@ CGROUP # Relevant at least starting docker 1.6.2, kernel 4.0.5 & systemd 224-1. # Doi not exactly know which software/version really matters here. it "should set docker guest if /proc/self/cgroup exists and there are /system.slice/docker-<hexadecimal> mounts (systemd managed cgroup)" do - self_cgroup = <<-CGROUP -8:devices:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope -7:cpuset:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope -6:blkio:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope -5:freezer:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope -4:net_cls:/ -3:memory:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope -2:cpu,cpuacct:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope -1:name=systemd:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope + self_cgroup = <<~CGROUP + 8:devices:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope + 7:cpuset:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope + 6:blkio:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope + 5:freezer:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope + 4:net_cls:/ + 3:memory:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope + 2:cpu,cpuacct:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope + 1:name=systemd:/system.slice/docker-47341c91be8d491cb3b8a475ad5b4aef6e79bf728cbb351c384e4a6c410f172f.scope CGROUP allow(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) @@ -745,15 +745,15 @@ CGROUP end it "sets not set anything if /proc/self/cgroup exist and the cgroup is named arbitrarily, it isn't necessarily lxc." do - self_cgroup = <<-CGROUP -8:blkio:/Charlie -7:net_cls:/Charlie -6:freezer:/Charlie -5:devices:/Charlie -4:memory:/Charlie -3:cpuacct:/Charlie -2:cpu:/Charlie -1:cpuset:/Charlie + self_cgroup = <<~CGROUP + 8:blkio:/Charlie + 7:net_cls:/Charlie + 6:freezer:/Charlie + 5:devices:/Charlie + 4:memory:/Charlie + 3:cpuacct:/Charlie + 2:cpu:/Charlie + 1:cpuset:/Charlie CGROUP allow(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) @@ -764,15 +764,15 @@ CGROUP context "/proc/self/cgroup only has / mounts" do before(:each) do - self_cgroup = <<-CGROUP -8:blkio:/ -7:net_cls:/ -6:freezer:/ -5:devices:/ -4:memory:/ -3:cpuacct:/ -2:cpu:/ -1:cpuset:/ + self_cgroup = <<~CGROUP + 8:blkio:/ + 7:net_cls:/ + 6:freezer:/ + 5:devices:/ + 4:memory:/ + 3:cpuacct:/ + 2:cpu:/ + 1:cpuset:/ CGROUP allow(File).to receive(:exist?).with("/proc/self/cgroup").and_return(true) allow(File).to receive(:read).with("/proc/self/cgroup").and_return(self_cgroup) diff --git a/spec/unit/plugins/mono_spec.rb b/spec/unit/plugins/mono_spec.rb index d8547017..0376e092 100644 --- a/spec/unit/plugins/mono_spec.rb +++ b/spec/unit/plugins/mono_spec.rb @@ -23,17 +23,17 @@ describe Ohai::System, "plugin mono" do before(:each) do plugin[:languages] = Mash.new - @stdout = <<-OUT -Mono JIT compiler version 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 30 13:57:48 PDT 2016) -Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com - TLS: normal - SIGSEGV: altstack - Notification: kqueue - Architecture: amd64 - Disabled: none - Misc: softdebug - LLVM: supported, not enabled. - GC: sgen + @stdout = <<~OUT + Mono JIT compiler version 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 30 13:57:48 PDT 2016) + Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com + TLS: normal + SIGSEGV: altstack + Notification: kqueue + Architecture: amd64 + Disabled: none + Misc: softdebug + LLVM: supported, not enabled. + GC: sgen OUT allow(plugin).to receive(:shell_out).with("mono -V").and_return(mock_shell_out(0, @stdout, "")) end diff --git a/spec/unit/plugins/netbsd/kernel_spec.rb b/spec/unit/plugins/netbsd/kernel_spec.rb index 0c4743da..7248a2fa 100644 --- a/spec/unit/plugins/netbsd/kernel_spec.rb +++ b/spec/unit/plugins/netbsd/kernel_spec.rb @@ -25,7 +25,7 @@ describe Ohai::System, "NetBSD kernel plugin" do allow(@plugin).to receive(:init_kernel).and_return({}) allow(@plugin).to receive(:shell_out).with("uname -i").and_return(mock_shell_out(0, "foo", "")) allow(@plugin).to receive(:shell_out).with("sysctl kern.securelevel").and_return(mock_shell_out(0, "kern.securelevel: 1\n", "")) - allow(@plugin).to receive(:shell_out).with("#{Ohai.abs_path( "/usr/bin/modstat" )}").and_return(mock_shell_out(0, " 1 7 0xc0400000 97f830 kernel", "")) + allow(@plugin).to receive(:shell_out).with((Ohai.abs_path( "/usr/bin/modstat" )).to_s).and_return(mock_shell_out(0, " 1 7 0xc0400000 97f830 kernel", "")) end it "should set the kernel_os to the kernel_name value" do diff --git a/spec/unit/plugins/network_spec.rb b/spec/unit/plugins/network_spec.rb index b5384e1f..6748b9aa 100644 --- a/spec/unit/plugins/network_spec.rb +++ b/spec/unit/plugins/network_spec.rb @@ -929,7 +929,7 @@ describe Ohai::System, "Network Plugin" do @plugin["network"]["default_gateway"] = nil @plugin["network"]["default_interface"] = nil @plugin["network"]["interfaces"].each_value do |val| - if val.has_key? "addresses" + if val.key? "addresses" val["addresses"].delete_if { |k, kv| kv["family"] == "inet" } end end @@ -1014,7 +1014,7 @@ describe Ohai::System, "Network Plugin" do @plugin["network"]["default_gateway"] = nil @plugin["network"]["default_interface"] = nil @plugin["network"]["interfaces"].each_value do |val| - if val.has_key? "addresses" + if val.key? "addresses" val["addresses"].delete_if { |k, kv| kv["family"] == "inet" } end end diff --git a/spec/unit/plugins/openstack_spec.rb b/spec/unit/plugins/openstack_spec.rb index b8533a22..0f5642a4 100644 --- a/spec/unit/plugins/openstack_spec.rb +++ b/spec/unit/plugins/openstack_spec.rb @@ -37,16 +37,16 @@ describe Ohai::System, "plugin openstack" do context "when DMI data is Openstack" do context "and the metadata service is not available" do before do - allow(plugin).to receive(:can_socket_connect?). - with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80). - and_return(false) + allow(plugin).to receive(:can_socket_connect?) + .with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80) + .and_return(false) plugin[:dmi] = dmi_data plugin.run end context "with normal openstack metadata" do let(:dmi_data) do - { :system => { :all_records => [ { :Manufacturer => "OpenStack Foundation" } ] } } + { system: { all_records: [ { Manufacturer: "OpenStack Foundation" } ] } } end it "sets openstack attribute" do @@ -59,7 +59,7 @@ describe Ohai::System, "plugin openstack" do end context "with Red Hat openstack metadata" do let(:dmi_data) do - { :system => { :manufacturer => "Red Hat", :product_name => "OpenStack Compute" } } + { system: { manufacturer: "Red Hat", product_name: "OpenStack Compute" } } end it "sets openstack attribute" do @@ -76,10 +76,10 @@ describe Ohai::System, "plugin openstack" do context "when running on dreamhost" do it "sets openstack provider attribute to dreamhost" do plugin["etc"] = { "passwd" => { "dhc-user" => {} } } - allow(plugin).to receive(:can_socket_connect?). - with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80). - and_return(false) - plugin[:dmi] = { :system => { :all_records => [ { :Manufacturer => "OpenStack Foundation" } ] } } + allow(plugin).to receive(:can_socket_connect?) + .with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80) + .and_return(false) + plugin[:dmi] = { system: { all_records: [ { Manufacturer: "OpenStack Foundation" } ] } } plugin.run expect(plugin[:openstack][:provider]).to eq("dreamhost") end @@ -88,9 +88,9 @@ describe Ohai::System, "plugin openstack" do context "when the hint is present" do context "and the metadata service is not available" do before do - allow(plugin).to receive(:can_socket_connect?). - with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80). - and_return(false) + allow(plugin).to receive(:can_socket_connect?) + .with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80) + .and_return(false) allow(plugin).to receive(:hint?).with("openstack").and_return(true) plugin.run end @@ -109,25 +109,25 @@ describe Ohai::System, "plugin openstack" do let(:metadata_version) { "2009-04-04" } let(:metadata_root) do - <<EOM -reservation-id -public-keys/ -security-groups -public-ipv4 -ami-manifest-path -instance-type -instance-id -local-ipv4 -ari-id -local-hostname -placement/ -ami-launch-index -public-hostname -hostname -ami-id -instance-action -aki-id -block-device-mapping/ + <<~EOM + reservation-id + public-keys/ + security-groups + public-ipv4 + ami-manifest-path + instance-type + instance-id + local-ipv4 + ari-id + local-hostname + placement/ + ami-launch-index + public-hostname + hostname + ami-id + instance-action + aki-id + block-device-mapping/ EOM end @@ -182,26 +182,26 @@ EOM let(:http_client) { double("Net::HTTP", { :read_timeout= => nil, :keep_alive_timeout= => nil } ) } def allow_get(url, response_body) - allow(http_client).to receive(:get). - with(url). - and_return(double("HTTP Response", :code => "200", :body => response_body)) + allow(http_client).to receive(:get) + .with(url) + .and_return(double("HTTP Response", code: "200", body: response_body)) end def allow_get_response(url, response_body) - allow(http_client).to receive(:get_response). - with(url, nil, nil). - and_return(double("HTTP Response", :code => "200", :body => response_body)) + allow(http_client).to receive(:get_response) + .with(url, nil, nil) + .and_return(double("HTTP Response", code: "200", body: response_body)) end before do allow(plugin).to receive(:hint?).with("openstack").and_return(true) - allow(plugin).to receive(:can_socket_connect?). - with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80). - and_return(true) + allow(plugin).to receive(:can_socket_connect?) + .with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR, 80) + .and_return(true) - allow(Net::HTTP).to receive(:start). - with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR). - and_return(http_client) + allow(Net::HTTP).to receive(:start) + .with(Ohai::Mixin::Ec2Metadata::EC2_METADATA_ADDR) + .and_return(http_client) allow(plugin).to receive(:best_api_version).and_return(metadata_version) diff --git a/spec/unit/plugins/os_spec.rb b/spec/unit/plugins/os_spec.rb index ea15013e..89fde46e 100644 --- a/spec/unit/plugins/os_spec.rb +++ b/spec/unit/plugins/os_spec.rb @@ -60,7 +60,7 @@ describe Ohai::System, "plugin os" do describe "on solaris" do before do - ::RbConfig::CONFIG["host_os"] = "solaris2.42" #heh + ::RbConfig::CONFIG["host_os"] = "solaris2.42" # heh end it "sets the os to solaris2" do diff --git a/spec/unit/plugins/passwd_spec.rb b/spec/unit/plugins/passwd_spec.rb index fc4451be..4d82da52 100644 --- a/spec/unit/plugins/passwd_spec.rb +++ b/spec/unit/plugins/passwd_spec.rb @@ -25,18 +25,18 @@ describe Ohai::System, "plugin etc", :unix_only do GroupEntry = Struct.new(:name, :gid, :mem) it "should include a list of all users" do - expect(Etc).to receive(:passwd).and_yield(PasswdEntry.new("root", 1, 1, "/root", "/bin/zsh", "BOFH")). - and_yield(PasswdEntry.new("www", 800, 800, "/var/www", "/bin/false", "Serving the web since 1970")) + expect(Etc).to receive(:passwd).and_yield(PasswdEntry.new("root", 1, 1, "/root", "/bin/zsh", "BOFH")) + .and_yield(PasswdEntry.new("www", 800, 800, "/var/www", "/bin/false", "Serving the web since 1970")) @plugin.run - expect(@plugin[:etc][:passwd]["root"]).to eq(Mash.new(:shell => "/bin/zsh", :gecos => "BOFH", :gid => 1, :uid => 1, :dir => "/root")) - expect(@plugin[:etc][:passwd]["www"]).to eq(Mash.new(:shell => "/bin/false", :gecos => "Serving the web since 1970", :gid => 800, :uid => 800, :dir => "/var/www")) + expect(@plugin[:etc][:passwd]["root"]).to eq(Mash.new(shell: "/bin/zsh", gecos: "BOFH", gid: 1, uid: 1, dir: "/root")) + expect(@plugin[:etc][:passwd]["www"]).to eq(Mash.new(shell: "/bin/false", gecos: "Serving the web since 1970", gid: 800, uid: 800, dir: "/var/www")) end it "should ignore duplicate users" do - expect(Etc).to receive(:passwd).and_yield(PasswdEntry.new("root", 1, 1, "/root", "/bin/zsh", "BOFH")). - and_yield(PasswdEntry.new("root", 1, 1, "/", "/bin/false", "I do not belong")) + expect(Etc).to receive(:passwd).and_yield(PasswdEntry.new("root", 1, 1, "/root", "/bin/zsh", "BOFH")) + .and_yield(PasswdEntry.new("root", 1, 1, "/", "/bin/false", "I do not belong")) @plugin.run - expect(@plugin[:etc][:passwd]["root"]).to eq(Mash.new(:shell => "/bin/zsh", :gecos => "BOFH", :gid => 1, :uid => 1, :dir => "/root")) + expect(@plugin[:etc][:passwd]["root"]).to eq(Mash.new(shell: "/bin/zsh", gecos: "BOFH", gid: 1, uid: 1, dir: "/root")) end it "should set the current user" do @@ -49,8 +49,8 @@ describe Ohai::System, "plugin etc", :unix_only do it "should set the available groups" do expect(Etc).to receive(:group).and_yield(GroupEntry.new("admin", 100, %w{root chef})).and_yield(GroupEntry.new("www", 800, %w{www deploy})) @plugin.run - expect(@plugin[:etc][:group]["admin"]).to eq(Mash.new(:gid => 100, :members => %w{root chef})) - expect(@plugin[:etc][:group]["www"]).to eq(Mash.new(:gid => 800, :members => %w{www deploy})) + expect(@plugin[:etc][:group]["admin"]).to eq(Mash.new(gid: 100, members: %w{root chef})) + expect(@plugin[:etc][:group]["www"]).to eq(Mash.new(gid: 800, members: %w{www deploy})) end if "".respond_to?(:force_encoding) diff --git a/spec/unit/plugins/php_spec.rb b/spec/unit/plugins/php_spec.rb index c8ed8423..99d416e7 100644 --- a/spec/unit/plugins/php_spec.rb +++ b/spec/unit/plugins/php_spec.rb @@ -25,10 +25,10 @@ describe Ohai::System, "plugin php" do before(:each) do plugin[:languages] = Mash.new - @stdout = <<-OUT -PHP 5.1.6 (cli) (built: Jul 16 2008 19:52:52) -Copyright (c) 1997-2006 The PHP Group -Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies + @stdout = <<~OUT + PHP 5.1.6 (cli) (built: Jul 16 2008 19:52:52) + Copyright (c) 1997-2006 The PHP Group + Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies OUT allow(plugin).to receive(:shell_out).with("php -v").and_return(mock_shell_out(0, @stdout, "")) end @@ -44,11 +44,11 @@ OUT end it "sets languages[:php][:version] on PHP 7.0" do - stdout = <<-OUT -PHP 7.0.4-7ubuntu2.1 (cli) ( NTS ) -Copyright (c) 1997-2016 The PHP Group -Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies - with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies + stdout = <<~OUT + PHP 7.0.4-7ubuntu2.1 (cli) ( NTS ) + Copyright (c) 1997-2016 The PHP Group + Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies + with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies OUT allow(plugin).to receive(:shell_out).with("php -v").and_return(mock_shell_out(0, stdout, "")) plugin.run @@ -62,10 +62,10 @@ OUT end it "parses builddate even if PHP is Suhosin patched" do - stdout = <<-OUT -PHP 5.3.27 with Suhosin-Patch (cli) (built: Aug 30 2013 04:30:30) -Copyright (c) 1997-2013 The PHP Group -Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies + stdout = <<~OUT + PHP 5.3.27 with Suhosin-Patch (cli) (built: Aug 30 2013 04:30:30) + Copyright (c) 1997-2013 The PHP Group + Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies OUT allow(plugin).to receive(:shell_out).with("php -v").and_return(mock_shell_out(0, stdout, "")) plugin.run @@ -73,10 +73,10 @@ OUT end it "does not set zend_optcache_version if not compiled with opcache" do - stdout = <<-OUT -PHP 5.1.6 (cli) (built: Jul 16 2008 19:52:52) -Copyright (c) 1997-2006 The PHP Group -Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies + stdout = <<~OUT + PHP 5.1.6 (cli) (built: Jul 16 2008 19:52:52) + Copyright (c) 1997-2006 The PHP Group + Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies OUT allow(plugin).to receive(:shell_out).with("php -v").and_return(mock_shell_out(0, stdout, "")) plugin.run @@ -84,11 +84,11 @@ OUT end it "sets zend_optcache_version if compiled with opcache" do - stdout = <<-OUT -PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10) -Copyright (c) 1997-2014 The PHP Group -Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies - with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies + stdout = <<~OUT + PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10) + Copyright (c) 1997-2014 The PHP Group + Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies + with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies OUT allow(plugin).to receive(:shell_out).with("php -v").and_return(mock_shell_out(0, stdout, "")) plugin.run diff --git a/spec/unit/plugins/powershell_spec.rb b/spec/unit/plugins/powershell_spec.rb index d18429fc..d9e48603 100644 --- a/spec/unit/plugins/powershell_spec.rb +++ b/spec/unit/plugins/powershell_spec.rb @@ -30,17 +30,17 @@ describe Ohai::System, "plugin powershell" do it "sets languages[:powershell][:version] for v4" do - v4_output = <<END + v4_output = <<~END -Name Value ----- ----- -PSVersion 4.0 -WSManStackVersion 3.0 -SerializationVersion 1.1.0.1 -CLRVersion 4.0.30319.34014 -BuildVersion 6.3.9600.16394 -PSCompatibleVersions {1.0, 2.0, 3.0, 4.0} -PSRemotingProtocolVersion 2.2 + Name Value + ---- ----- + PSVersion 4.0 + WSManStackVersion 3.0 + SerializationVersion 1.1.0.1 + CLRVersion 4.0.30319.34014 + BuildVersion 6.3.9600.16394 + PSCompatibleVersions {1.0, 2.0, 3.0, 4.0} + PSRemotingProtocolVersion 2.2 END compat_version_array = ["1.0", "2.0", "3.0", "4.0"] @@ -58,9 +58,9 @@ END end it "does not set the languages[:powershell] tree up if powershell command fails" do - error_output = <<END -'powershell.exe' is not recognized as an internal or external command, -operable program or batch file. + error_output = <<~END + 'powershell.exe' is not recognized as an internal or external command, + operable program or batch file. END allow(plugin).to receive(:shell_out).with(anything).and_return(mock_shell_out(1, error_output, "")) diff --git a/spec/unit/plugins/rackspace_spec.rb b/spec/unit/plugins/rackspace_spec.rb index 4e48c794..6c68b841 100644 --- a/spec/unit/plugins/rackspace_spec.rb +++ b/spec/unit/plugins/rackspace_spec.rb @@ -27,8 +27,8 @@ describe Ohai::System, "plugin rackspace" do plugin[:hostname] = "katie" plugin[:network] = { - :interfaces => { - :eth0 => { + interfaces: { + eth0: { "addresses" => { "1.2.3.4" => { "broadcast" => "67.23.20.255", @@ -54,7 +54,7 @@ describe Ohai::System, "plugin rackspace" do } plugin[:network][:interfaces][:eth1] = { - :addresses => { + addresses: { "fe80::4240:f5ff:feab:2836" => { "scope" => "Link", "prefixlen" => "64", @@ -73,7 +73,7 @@ describe Ohai::System, "plugin rackspace" do # In olden days we could detect rackspace by a -rscloud suffix on the kernel # This is here to make #has_rackspace_kernel? fail until we remove that check - plugin[:kernel] = { :release => "1.2.13-not-rackspace" } + plugin[:kernel] = { release: "1.2.13-not-rackspace" } # We need a generic stub here for the later stubs with arguments to work # Because, magic. @@ -131,12 +131,12 @@ describe Ohai::System, "plugin rackspace" do end it "captures region information" do - provider_data = <<-OUT -provider = "Rackspace" -service_type = "cloudServers" -server_id = "21301000" -created_at = "2012-12-06T22:08:16Z" -region = "dfw" + provider_data = <<~OUT + provider = "Rackspace" + service_type = "cloudServers" + server_id = "21301000" + created_at = "2012-12-06T22:08:16Z" + region = "dfw" OUT allow(plugin).to receive(:shell_out).with("xenstore-ls vm-data/provider_data").and_return(mock_shell_out(0, provider_data, "")) plugin.run @@ -144,14 +144,14 @@ OUT end it "logs a debug message when region info cannot be collected" do - expect(plugin). - to receive(:shell_out). - with("xenstore-ls vm-data/provider_data"). - and_raise(Ohai::Exceptions::Exec) - - expect(plugin.logger). - to receive(:trace). - with("Plugin Rackspace: Unable to find xenstore-ls, cannot capture " \ + expect(plugin) + .to receive(:shell_out) + .with("xenstore-ls vm-data/provider_data") + .and_raise(Ohai::Exceptions::Exec) + + expect(plugin.logger) + .to receive(:trace) + .with("Plugin Rackspace: Unable to find xenstore-ls, cannot capture " \ "region information for Rackspace cloud") plugin.run @@ -167,14 +167,14 @@ OUT end it "logs error if instance id cannot be found" do - expect(plugin). - to receive(:shell_out). - with("xenstore-read name"). - and_raise(Ohai::Exceptions::Exec) - - expect(plugin.logger). - to receive(:trace). - with("Plugin Rackspace: Unable to find xenstore-read, cannot capture " \ + expect(plugin) + .to receive(:shell_out) + .with("xenstore-read name") + .and_raise(Ohai::Exceptions::Exec) + + expect(plugin.logger) + .to receive(:trace) + .with("Plugin Rackspace: Unable to find xenstore-read, cannot capture " \ "instance ID information for Rackspace cloud") plugin.run @@ -260,10 +260,10 @@ OUT before(:each) do allow(plugin).to receive(:hint?).with("rackspace").and_return(false) - allow(plugin). - to receive(:shell_out). - with("xenstore-read vm-data/provider_data/provider"). - and_raise(Ohai::Exceptions::Exec) + allow(plugin) + .to receive(:shell_out) + .with("xenstore-read vm-data/provider_data/provider") + .and_raise(Ohai::Exceptions::Exec) end end @@ -271,14 +271,14 @@ OUT it "logs an error and does not collect private_networks" do allow(plugin).to receive(:hint?).with("rackspace").and_return(true) - expect(plugin). - to receive(:shell_out). - with("xenstore-ls vm-data/networking"). - and_raise(Ohai::Exceptions::Exec) + expect(plugin) + .to receive(:shell_out) + .with("xenstore-ls vm-data/networking") + .and_raise(Ohai::Exceptions::Exec) - expect(plugin.logger). - to receive(:trace). - with("Plugin Rackspace: Unable to capture custom private networking " \ + expect(plugin.logger) + .to receive(:trace) + .with("Plugin Rackspace: Unable to capture custom private networking " \ "information for Rackspace cloud") plugin.run @@ -305,7 +305,7 @@ OUT describe "has private networks" do before do plugin[:network][:interfaces][:eth2] = { - :addresses => { + addresses: { "fe80::be76:4eff:fe20:422b" => { "scope" => "Link", "prefixlen" => "64", diff --git a/spec/unit/plugins/ruby_spec.rb b/spec/unit/plugins/ruby_spec.rb index 4fa62fef..91714821 100644 --- a/spec/unit/plugins/ruby_spec.rb +++ b/spec/unit/plugins/ruby_spec.rb @@ -35,22 +35,22 @@ describe Ohai::System, "plugin ruby" do end { - :platform => RUBY_PLATFORM, - :version => RUBY_VERSION, - :release_date => RUBY_RELEASE_DATE, - :target => ::RbConfig::CONFIG["target"], - :target_cpu => ::RbConfig::CONFIG["target_cpu"], - :target_vendor => ::RbConfig::CONFIG["target_vendor"], - :target_os => ::RbConfig::CONFIG["target_os"], - :host => ::RbConfig::CONFIG["host"], - :host_cpu => ::RbConfig::CONFIG["host_cpu"], - :host_os => ::RbConfig::CONFIG["host_os"], - :host_vendor => ::RbConfig::CONFIG["host_vendor"], - :gems_dir => `#{ruby_bin} #{::RbConfig::CONFIG["bindir"]}/gem env gemdir`.chomp, - :gem_bin => [ ::Gem.default_exec_format % "gem", "gem" ].map do |bin| + platform: RUBY_PLATFORM, + version: RUBY_VERSION, + release_date: RUBY_RELEASE_DATE, + target: ::RbConfig::CONFIG["target"], + target_cpu: ::RbConfig::CONFIG["target_cpu"], + target_vendor: ::RbConfig::CONFIG["target_vendor"], + target_os: ::RbConfig::CONFIG["target_os"], + host: ::RbConfig::CONFIG["host"], + host_cpu: ::RbConfig::CONFIG["host_cpu"], + host_os: ::RbConfig::CONFIG["host_os"], + host_vendor: ::RbConfig::CONFIG["host_vendor"], + gems_dir: `#{ruby_bin} #{::RbConfig::CONFIG["bindir"]}/gem env gemdir`.chomp, + gem_bin: [ ::Gem.default_exec_format % "gem", "gem" ].map do |bin| "#{::RbConfig::CONFIG['bindir']}/#{bin}" end.find { |bin| ::File.exist? bin }, - :ruby_bin => ruby_bin, + ruby_bin: ruby_bin, }.each do |attribute, value| it "should have #{attribute} set to #{value.inspect}" do expect(@ruby_ohai_data[attribute]).to eql(value) diff --git a/spec/unit/plugins/scaleway_spec.rb b/spec/unit/plugins/scaleway_spec.rb index 1296b3d7..3cd6f3b1 100644 --- a/spec/unit/plugins/scaleway_spec.rb +++ b/spec/unit/plugins/scaleway_spec.rb @@ -49,9 +49,9 @@ describe Ohai::System, "plugin scaleway" do end it "should fetch and properly parse json metadata" do - expect(@http_client).to receive(:get). - with("/conf?format=json"). - and_return(double("Net::HTTP Response", :body => body, :code => "200")) + expect(@http_client).to receive(:get) + .with("/conf?format=json") + .and_return(double("Net::HTTP Response", body: body, code: "200")) plugin.run expect(plugin[:scaleway]).not_to be_nil @@ -60,9 +60,9 @@ describe Ohai::System, "plugin scaleway" do end it "should complete the run despite unavailable metadata" do - expect(@http_client).to receive(:get). - with("/conf?format=json"). - and_return(double("Net::HTTP Response", :body => "", :code => "404")) + expect(@http_client).to receive(:get) + .with("/conf?format=json") + .and_return(double("Net::HTTP Response", body: "", code: "404")) plugin.run expect(plugin[:scaleway]).not_to be_nil diff --git a/spec/unit/plugins/scsi_spec.rb b/spec/unit/plugins/scsi_spec.rb index 1b4b2fb8..394e0cb7 100644 --- a/spec/unit/plugins/scsi_spec.rb +++ b/spec/unit/plugins/scsi_spec.rb @@ -22,13 +22,13 @@ describe Ohai::System, "lsscsi plugin" do let(:plugin) { get_plugin("scsi") } before(:each) do allow(plugin).to receive(:collect_os).and_return(:linux) - @stdout = <<LSSCSI -[5:0:0:0] disk ATA Hitachi HUA72205 A3EA /dev/sda -[6:2:0:0] disk LSI MR9286CV-8e 3.41 /dev/sdb -[6:2:1:0] disk LSI MR9286CV-8e 3.41 /dev/sdc -[6:2:2:0] disk LSI MR9286CV-8e 3.41 /dev/sdd -[6:2:3:0] disk LSI MR9286CV-8e 3.41 /dev/sde -[6:2:4:0] disk LSI MR9286CV-8e 3.41 /dev/sdf + @stdout = <<~LSSCSI + [5:0:0:0] disk ATA Hitachi HUA72205 A3EA /dev/sda + [6:2:0:0] disk LSI MR9286CV-8e 3.41 /dev/sdb + [6:2:1:0] disk LSI MR9286CV-8e 3.41 /dev/sdc + [6:2:2:0] disk LSI MR9286CV-8e 3.41 /dev/sdd + [6:2:3:0] disk LSI MR9286CV-8e 3.41 /dev/sde + [6:2:4:0] disk LSI MR9286CV-8e 3.41 /dev/sdf LSSCSI allow(plugin).to receive(:shell_out).with("lsscsi").and_return( mock_shell_out(0, @stdout, "")) diff --git a/spec/unit/plugins/solaris2/cpu_spec.rb b/spec/unit/plugins/solaris2/cpu_spec.rb index c6991f0d..d5b9ff76 100644 --- a/spec/unit/plugins/solaris2/cpu_spec.rb +++ b/spec/unit/plugins/solaris2/cpu_spec.rb @@ -24,423 +24,423 @@ describe Ohai::System, "Solaris2.X cpu plugin" do describe "on x86 processors" do before(:each) do - kstatinfo_output = <<-END -cpu_info:0:cpu_info0:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz -cpu_info:0:cpu_info0:cache_id 1 -cpu_info:0:cpu_info0:chip_id 1 -cpu_info:0:cpu_info0:class misc -cpu_info:0:cpu_info0:clock_MHz 1933 -cpu_info:0:cpu_info0:clog_id 0 -cpu_info:0:cpu_info0:core_id 8 -cpu_info:0:cpu_info0:cpu_type i386 -cpu_info:0:cpu_info0:crtime 300.455409162 -cpu_info:0:cpu_info0:current_clock_Hz 2925945978 -cpu_info:0:cpu_info0:current_cstate 0 -cpu_info:0:cpu_info0:family 12 -cpu_info:0:cpu_info0:fpu_type i387 compatible -cpu_info:0:cpu_info0:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:0:cpu_info0:model 93 -cpu_info:0:cpu_info0:ncore_per_chip 4 -cpu_info:0:cpu_info0:ncpu_per_chip 8 -cpu_info:0:cpu_info0:pg_id 1 -cpu_info:0:cpu_info0:pkg_core_id 0 -cpu_info:0:cpu_info0:snaptime 12444687.9690404 -cpu_info:0:cpu_info0:state off-line -cpu_info:0:cpu_info0:state_begin 1427142581 -cpu_info:0:cpu_info0:stepping 9 -cpu_info:0:cpu_info0:supported_frequencies_Hz 2925945978 -cpu_info:0:cpu_info0:supported_max_cstates 1 -cpu_info:0:cpu_info0:vendor_id CrazyTown -cpu_info:1:cpu_info1:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz -cpu_info:1:cpu_info1:cache_id 0 -cpu_info:1:cpu_info1:chip_id 0 -cpu_info:1:cpu_info1:class misc -cpu_info:1:cpu_info1:clock_MHz 2926 -cpu_info:1:cpu_info1:clog_id 0 -cpu_info:1:cpu_info1:core_id 0 -cpu_info:1:cpu_info1:cpu_type i386 -cpu_info:1:cpu_info1:crtime 308.198046165 -cpu_info:1:cpu_info1:current_clock_Hz 2925945978 -cpu_info:1:cpu_info1:current_cstate 1 -cpu_info:1:cpu_info1:family 6 -cpu_info:1:cpu_info1:fpu_type i387 compatible -cpu_info:1:cpu_info1:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:1:cpu_info1:model 26 -cpu_info:1:cpu_info1:ncore_per_chip 4 -cpu_info:1:cpu_info1:ncpu_per_chip 8 -cpu_info:1:cpu_info1:pg_id 4 -cpu_info:1:cpu_info1:pkg_core_id 0 -cpu_info:1:cpu_info1:snaptime 12444687.9693359 -cpu_info:1:cpu_info1:state on-line -cpu_info:1:cpu_info1:state_begin 1427142588 -cpu_info:1:cpu_info1:stepping 5 -cpu_info:1:cpu_info1:supported_frequencies_Hz 2925945978 -cpu_info:1:cpu_info1:supported_max_cstates 1 -cpu_info:1:cpu_info1:vendor_id GenuineIntel -cpu_info:2:cpu_info2:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz -cpu_info:2:cpu_info2:cache_id 1 -cpu_info:2:cpu_info2:chip_id 1 -cpu_info:2:cpu_info2:class misc -cpu_info:2:cpu_info2:clock_MHz 1933 -cpu_info:2:cpu_info2:clog_id 2 -cpu_info:2:cpu_info2:core_id 9 -cpu_info:2:cpu_info2:cpu_type i386 -cpu_info:2:cpu_info2:crtime 308.280117986 -cpu_info:2:cpu_info2:current_clock_Hz 2925945978 -cpu_info:2:cpu_info2:current_cstate 0 -cpu_info:2:cpu_info2:family 12 -cpu_info:2:cpu_info2:fpu_type i387 compatible -cpu_info:2:cpu_info2:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:2:cpu_info2:model 93 -cpu_info:2:cpu_info2:ncore_per_chip 4 -cpu_info:2:cpu_info2:ncpu_per_chip 8 -cpu_info:2:cpu_info2:pg_id 7 -cpu_info:2:cpu_info2:pkg_core_id 1 -cpu_info:2:cpu_info2:snaptime 12444687.9695684 -cpu_info:2:cpu_info2:state off-line -cpu_info:2:cpu_info2:state_begin 1427142588 -cpu_info:2:cpu_info2:stepping 9 -cpu_info:2:cpu_info2:supported_frequencies_Hz 2925945978 -cpu_info:2:cpu_info2:supported_max_cstates 1 -cpu_info:2:cpu_info2:vendor_id CrazyTown -cpu_info:3:cpu_info3:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz -cpu_info:3:cpu_info3:cache_id 0 -cpu_info:3:cpu_info3:chip_id 0 -cpu_info:3:cpu_info3:class misc -cpu_info:3:cpu_info3:clock_MHz 2926 -cpu_info:3:cpu_info3:clog_id 2 -cpu_info:3:cpu_info3:core_id 1 -cpu_info:3:cpu_info3:cpu_type i386 -cpu_info:3:cpu_info3:crtime 308.310124315 -cpu_info:3:cpu_info3:current_clock_Hz 2925945978 -cpu_info:3:cpu_info3:current_cstate 1 -cpu_info:3:cpu_info3:family 6 -cpu_info:3:cpu_info3:fpu_type i387 compatible -cpu_info:3:cpu_info3:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:3:cpu_info3:model 26 -cpu_info:3:cpu_info3:ncore_per_chip 4 -cpu_info:3:cpu_info3:ncpu_per_chip 8 -cpu_info:3:cpu_info3:pg_id 8 -cpu_info:3:cpu_info3:pkg_core_id 1 -cpu_info:3:cpu_info3:snaptime 12444687.9698122 -cpu_info:3:cpu_info3:state on-line -cpu_info:3:cpu_info3:state_begin 1427142588 -cpu_info:3:cpu_info3:stepping 5 -cpu_info:3:cpu_info3:supported_frequencies_Hz 2925945978 -cpu_info:3:cpu_info3:supported_max_cstates 1 -cpu_info:3:cpu_info3:vendor_id GenuineIntel -cpu_info:4:cpu_info4:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz -cpu_info:4:cpu_info4:cache_id 1 -cpu_info:4:cpu_info4:chip_id 1 -cpu_info:4:cpu_info4:class misc -cpu_info:4:cpu_info4:clock_MHz 1933 -cpu_info:4:cpu_info4:clog_id 4 -cpu_info:4:cpu_info4:core_id 10 -cpu_info:4:cpu_info4:cpu_type i386 -cpu_info:4:cpu_info4:crtime 308.340112555 -cpu_info:4:cpu_info4:current_clock_Hz 2925945978 -cpu_info:4:cpu_info4:current_cstate 0 -cpu_info:4:cpu_info4:family 12 -cpu_info:4:cpu_info4:fpu_type i387 compatible -cpu_info:4:cpu_info4:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:4:cpu_info4:model 93 -cpu_info:4:cpu_info4:ncore_per_chip 4 -cpu_info:4:cpu_info4:ncpu_per_chip 8 -cpu_info:4:cpu_info4:pg_id 9 -cpu_info:4:cpu_info4:pkg_core_id 2 -cpu_info:4:cpu_info4:snaptime 12444687.9700613 -cpu_info:4:cpu_info4:state off-line -cpu_info:4:cpu_info4:state_begin 1427142588 -cpu_info:4:cpu_info4:stepping 9 -cpu_info:4:cpu_info4:supported_frequencies_Hz 2925945978 -cpu_info:4:cpu_info4:supported_max_cstates 1 -cpu_info:4:cpu_info4:vendor_id CrazyTown -cpu_info:5:cpu_info5:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz -cpu_info:5:cpu_info5:cache_id 0 -cpu_info:5:cpu_info5:chip_id 0 -cpu_info:5:cpu_info5:class misc -cpu_info:5:cpu_info5:clock_MHz 2926 -cpu_info:5:cpu_info5:clog_id 4 -cpu_info:5:cpu_info5:core_id 2 -cpu_info:5:cpu_info5:cpu_type i386 -cpu_info:5:cpu_info5:crtime 308.370191347 -cpu_info:5:cpu_info5:current_clock_Hz 2925945978 -cpu_info:5:cpu_info5:current_cstate 1 -cpu_info:5:cpu_info5:family 6 -cpu_info:5:cpu_info5:fpu_type i387 compatible -cpu_info:5:cpu_info5:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:5:cpu_info5:model 26 -cpu_info:5:cpu_info5:ncore_per_chip 4 -cpu_info:5:cpu_info5:ncpu_per_chip 8 -cpu_info:5:cpu_info5:pg_id 10 -cpu_info:5:cpu_info5:pkg_core_id 2 -cpu_info:5:cpu_info5:snaptime 12444687.9702885 -cpu_info:5:cpu_info5:state on-line -cpu_info:5:cpu_info5:state_begin 1427142589 -cpu_info:5:cpu_info5:stepping 5 -cpu_info:5:cpu_info5:supported_frequencies_Hz 2925945978 -cpu_info:5:cpu_info5:supported_max_cstates 1 -cpu_info:5:cpu_info5:vendor_id GenuineIntel -cpu_info:6:cpu_info6:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz -cpu_info:6:cpu_info6:cache_id 1 -cpu_info:6:cpu_info6:chip_id 1 -cpu_info:6:cpu_info6:class misc -cpu_info:6:cpu_info6:clock_MHz 1933 -cpu_info:6:cpu_info6:clog_id 6 -cpu_info:6:cpu_info6:core_id 11 -cpu_info:6:cpu_info6:cpu_type i386 -cpu_info:6:cpu_info6:crtime 308.400119134 -cpu_info:6:cpu_info6:current_clock_Hz 2925945978 -cpu_info:6:cpu_info6:current_cstate 1 -cpu_info:6:cpu_info6:family 12 -cpu_info:6:cpu_info6:fpu_type i387 compatible -cpu_info:6:cpu_info6:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:6:cpu_info6:model 93 -cpu_info:6:cpu_info6:ncore_per_chip 4 -cpu_info:6:cpu_info6:ncpu_per_chip 8 -cpu_info:6:cpu_info6:pg_id 11 -cpu_info:6:cpu_info6:pkg_core_id 3 -cpu_info:6:cpu_info6:snaptime 12444687.9705136 -cpu_info:6:cpu_info6:state off-line -cpu_info:6:cpu_info6:state_begin 1427142589 -cpu_info:6:cpu_info6:stepping 9 -cpu_info:6:cpu_info6:supported_frequencies_Hz 2925945978 -cpu_info:6:cpu_info6:supported_max_cstates 1 -cpu_info:6:cpu_info6:vendor_id CrazyTown -cpu_info:7:cpu_info7:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz -cpu_info:7:cpu_info7:cache_id 0 -cpu_info:7:cpu_info7:chip_id 0 -cpu_info:7:cpu_info7:class misc -cpu_info:7:cpu_info7:clock_MHz 2926 -cpu_info:7:cpu_info7:clog_id 6 -cpu_info:7:cpu_info7:core_id 3 -cpu_info:7:cpu_info7:cpu_type i386 -cpu_info:7:cpu_info7:crtime 308.430139185 -cpu_info:7:cpu_info7:current_clock_Hz 2925945978 -cpu_info:7:cpu_info7:current_cstate 1 -cpu_info:7:cpu_info7:family 6 -cpu_info:7:cpu_info7:fpu_type i387 compatible -cpu_info:7:cpu_info7:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:7:cpu_info7:model 26 -cpu_info:7:cpu_info7:ncore_per_chip 4 -cpu_info:7:cpu_info7:ncpu_per_chip 8 -cpu_info:7:cpu_info7:pg_id 12 -cpu_info:7:cpu_info7:pkg_core_id 3 -cpu_info:7:cpu_info7:snaptime 12444687.9707517 -cpu_info:7:cpu_info7:state on-line -cpu_info:7:cpu_info7:state_begin 1427142589 -cpu_info:7:cpu_info7:stepping 5 -cpu_info:7:cpu_info7:supported_frequencies_Hz 2925945978 -cpu_info:7:cpu_info7:supported_max_cstates 1 -cpu_info:7:cpu_info7:vendor_id GenuineIntel -cpu_info:8:cpu_info8:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz -cpu_info:8:cpu_info8:cache_id 1 -cpu_info:8:cpu_info8:chip_id 1 -cpu_info:8:cpu_info8:class misc -cpu_info:8:cpu_info8:clock_MHz 1933 -cpu_info:8:cpu_info8:clog_id 1 -cpu_info:8:cpu_info8:core_id 8 -cpu_info:8:cpu_info8:cpu_type i386 -cpu_info:8:cpu_info8:crtime 308.460126522 -cpu_info:8:cpu_info8:current_clock_Hz 2925945978 -cpu_info:8:cpu_info8:current_cstate 1 -cpu_info:8:cpu_info8:family 12 -cpu_info:8:cpu_info8:fpu_type i387 compatible -cpu_info:8:cpu_info8:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:8:cpu_info8:model 93 -cpu_info:8:cpu_info8:ncore_per_chip 4 -cpu_info:8:cpu_info8:ncpu_per_chip 8 -cpu_info:8:cpu_info8:pg_id 1 -cpu_info:8:cpu_info8:pkg_core_id 0 -cpu_info:8:cpu_info8:snaptime 12444687.9709846 -cpu_info:8:cpu_info8:state off-line -cpu_info:8:cpu_info8:state_begin 1427142589 -cpu_info:8:cpu_info8:stepping 9 -cpu_info:8:cpu_info8:supported_frequencies_Hz 2925945978 -cpu_info:8:cpu_info8:supported_max_cstates 1 -cpu_info:8:cpu_info8:vendor_id CrazyTown -cpu_info:9:cpu_info9:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz -cpu_info:9:cpu_info9:cache_id 0 -cpu_info:9:cpu_info9:chip_id 0 -cpu_info:9:cpu_info9:class misc -cpu_info:9:cpu_info9:clock_MHz 2926 -cpu_info:9:cpu_info9:clog_id 1 -cpu_info:9:cpu_info9:core_id 0 -cpu_info:9:cpu_info9:cpu_type i386 -cpu_info:9:cpu_info9:crtime 308.490165484 -cpu_info:9:cpu_info9:current_clock_Hz 2925945978 -cpu_info:9:cpu_info9:current_cstate 1 -cpu_info:9:cpu_info9:family 6 -cpu_info:9:cpu_info9:fpu_type i387 compatible -cpu_info:9:cpu_info9:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:9:cpu_info9:model 26 -cpu_info:9:cpu_info9:ncore_per_chip 4 -cpu_info:9:cpu_info9:ncpu_per_chip 8 -cpu_info:9:cpu_info9:pg_id 4 -cpu_info:9:cpu_info9:pkg_core_id 0 -cpu_info:9:cpu_info9:snaptime 12444687.9712051 -cpu_info:9:cpu_info9:state on-line -cpu_info:9:cpu_info9:state_begin 1427142589 -cpu_info:9:cpu_info9:stepping 5 -cpu_info:9:cpu_info9:supported_frequencies_Hz 2925945978 -cpu_info:9:cpu_info9:supported_max_cstates 1 -cpu_info:9:cpu_info9:vendor_id GenuineIntel -cpu_info:10:cpu_info10:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz -cpu_info:10:cpu_info10:cache_id 1 -cpu_info:10:cpu_info10:chip_id 1 -cpu_info:10:cpu_info10:class misc -cpu_info:10:cpu_info10:clock_MHz 1933 -cpu_info:10:cpu_info10:clog_id 3 -cpu_info:10:cpu_info10:core_id 9 -cpu_info:10:cpu_info10:cpu_type i386 -cpu_info:10:cpu_info10:crtime 308.520151852 -cpu_info:10:cpu_info10:current_clock_Hz 2925945978 -cpu_info:10:cpu_info10:current_cstate 1 -cpu_info:10:cpu_info10:family 12 -cpu_info:10:cpu_info10:fpu_type i387 compatible -cpu_info:10:cpu_info10:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:10:cpu_info10:model 93 -cpu_info:10:cpu_info10:ncore_per_chip 4 -cpu_info:10:cpu_info10:ncpu_per_chip 8 -cpu_info:10:cpu_info10:pg_id 7 -cpu_info:10:cpu_info10:pkg_core_id 1 -cpu_info:10:cpu_info10:snaptime 12444687.9714381 -cpu_info:10:cpu_info10:state off-line -cpu_info:10:cpu_info10:state_begin 1427142589 -cpu_info:10:cpu_info10:stepping 9 -cpu_info:10:cpu_info10:supported_frequencies_Hz 2925945978 -cpu_info:10:cpu_info10:supported_max_cstates 1 -cpu_info:10:cpu_info10:vendor_id CrazyTown -cpu_info:11:cpu_info11:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz -cpu_info:11:cpu_info11:cache_id 0 -cpu_info:11:cpu_info11:chip_id 0 -cpu_info:11:cpu_info11:class misc -cpu_info:11:cpu_info11:clock_MHz 2926 -cpu_info:11:cpu_info11:clog_id 3 -cpu_info:11:cpu_info11:core_id 1 -cpu_info:11:cpu_info11:cpu_type i386 -cpu_info:11:cpu_info11:crtime 308.550150882 -cpu_info:11:cpu_info11:current_clock_Hz 2925945978 -cpu_info:11:cpu_info11:current_cstate 1 -cpu_info:11:cpu_info11:family 6 -cpu_info:11:cpu_info11:fpu_type i387 compatible -cpu_info:11:cpu_info11:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:11:cpu_info11:model 26 -cpu_info:11:cpu_info11:ncore_per_chip 4 -cpu_info:11:cpu_info11:ncpu_per_chip 8 -cpu_info:11:cpu_info11:pg_id 8 -cpu_info:11:cpu_info11:pkg_core_id 1 -cpu_info:11:cpu_info11:snaptime 12444687.9716655 -cpu_info:11:cpu_info11:state on-line -cpu_info:11:cpu_info11:state_begin 1427142589 -cpu_info:11:cpu_info11:stepping 5 -cpu_info:11:cpu_info11:supported_frequencies_Hz 2925945978 -cpu_info:11:cpu_info11:supported_max_cstates 1 -cpu_info:11:cpu_info11:vendor_id GenuineIntel -cpu_info:12:cpu_info12:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz -cpu_info:12:cpu_info12:cache_id 1 -cpu_info:12:cpu_info12:chip_id 1 -cpu_info:12:cpu_info12:class misc -cpu_info:12:cpu_info12:clock_MHz 1933 -cpu_info:12:cpu_info12:clog_id 5 -cpu_info:12:cpu_info12:core_id 10 -cpu_info:12:cpu_info12:cpu_type i386 -cpu_info:12:cpu_info12:crtime 308.580146834 -cpu_info:12:cpu_info12:current_clock_Hz 2925945978 -cpu_info:12:cpu_info12:current_cstate 1 -cpu_info:12:cpu_info12:family 12 -cpu_info:12:cpu_info12:fpu_type i387 compatible -cpu_info:12:cpu_info12:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:12:cpu_info12:model 93 -cpu_info:12:cpu_info12:ncore_per_chip 4 -cpu_info:12:cpu_info12:ncpu_per_chip 8 -cpu_info:12:cpu_info12:pg_id 9 -cpu_info:12:cpu_info12:pkg_core_id 2 -cpu_info:12:cpu_info12:snaptime 12444687.9718927 -cpu_info:12:cpu_info12:state off-line -cpu_info:12:cpu_info12:state_begin 1427142589 -cpu_info:12:cpu_info12:stepping 9 -cpu_info:12:cpu_info12:supported_frequencies_Hz 2925945978 -cpu_info:12:cpu_info12:supported_max_cstates 1 -cpu_info:12:cpu_info12:vendor_id CrazyTown -cpu_info:13:cpu_info13:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz -cpu_info:13:cpu_info13:cache_id 0 -cpu_info:13:cpu_info13:chip_id 0 -cpu_info:13:cpu_info13:class misc -cpu_info:13:cpu_info13:clock_MHz 2926 -cpu_info:13:cpu_info13:clog_id 5 -cpu_info:13:cpu_info13:core_id 2 -cpu_info:13:cpu_info13:cpu_type i386 -cpu_info:13:cpu_info13:crtime 308.610149804 -cpu_info:13:cpu_info13:current_clock_Hz 2925945978 -cpu_info:13:cpu_info13:current_cstate 1 -cpu_info:13:cpu_info13:family 6 -cpu_info:13:cpu_info13:fpu_type i387 compatible -cpu_info:13:cpu_info13:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:13:cpu_info13:model 26 -cpu_info:13:cpu_info13:ncore_per_chip 4 -cpu_info:13:cpu_info13:ncpu_per_chip 8 -cpu_info:13:cpu_info13:pg_id 10 -cpu_info:13:cpu_info13:pkg_core_id 2 -cpu_info:13:cpu_info13:snaptime 12444687.9721356 -cpu_info:13:cpu_info13:state on-line -cpu_info:13:cpu_info13:state_begin 1427142589 -cpu_info:13:cpu_info13:stepping 5 -cpu_info:13:cpu_info13:supported_frequencies_Hz 2925945978 -cpu_info:13:cpu_info13:supported_max_cstates 1 -cpu_info:13:cpu_info13:vendor_id GenuineIntel -cpu_info:14:cpu_info14:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz -cpu_info:14:cpu_info14:cache_id 1 -cpu_info:14:cpu_info14:chip_id 1 -cpu_info:14:cpu_info14:class misc -cpu_info:14:cpu_info14:clock_MHz 1933 -cpu_info:14:cpu_info14:clog_id 7 -cpu_info:14:cpu_info14:core_id 11 -cpu_info:14:cpu_info14:cpu_type i386 -cpu_info:14:cpu_info14:crtime 308.640144708 -cpu_info:14:cpu_info14:current_clock_Hz 2925945978 -cpu_info:14:cpu_info14:current_cstate 1 -cpu_info:14:cpu_info14:family 12 -cpu_info:14:cpu_info14:fpu_type i387 compatible -cpu_info:14:cpu_info14:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:14:cpu_info14:model 93 -cpu_info:14:cpu_info14:ncore_per_chip 4 -cpu_info:14:cpu_info14:ncpu_per_chip 8 -cpu_info:14:cpu_info14:pg_id 11 -cpu_info:14:cpu_info14:pkg_core_id 3 -cpu_info:14:cpu_info14:snaptime 12444687.9723752 -cpu_info:14:cpu_info14:state off-line -cpu_info:14:cpu_info14:state_begin 1427142589 -cpu_info:14:cpu_info14:stepping 9 -cpu_info:14:cpu_info14:supported_frequencies_Hz 2925945978 -cpu_info:14:cpu_info14:supported_max_cstates 1 -cpu_info:14:cpu_info14:vendor_id CrazyTown -cpu_info:15:cpu_info15:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz -cpu_info:15:cpu_info15:cache_id 0 -cpu_info:15:cpu_info15:chip_id 0 -cpu_info:15:cpu_info15:class misc -cpu_info:15:cpu_info15:clock_MHz 2926 -cpu_info:15:cpu_info15:clog_id 7 -cpu_info:15:cpu_info15:core_id 3 -cpu_info:15:cpu_info15:cpu_type i386 -cpu_info:15:cpu_info15:crtime 308.670163124 -cpu_info:15:cpu_info15:current_clock_Hz 2925945978 -cpu_info:15:cpu_info15:current_cstate 1 -cpu_info:15:cpu_info15:family 6 -cpu_info:15:cpu_info15:fpu_type i387 compatible -cpu_info:15:cpu_info15:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) -cpu_info:15:cpu_info15:model 26 -cpu_info:15:cpu_info15:ncore_per_chip 4 -cpu_info:15:cpu_info15:ncpu_per_chip 8 -cpu_info:15:cpu_info15:pg_id 12 -cpu_info:15:cpu_info15:pkg_core_id 3 -cpu_info:15:cpu_info15:snaptime 12444687.9726021 -cpu_info:15:cpu_info15:state on-line -cpu_info:15:cpu_info15:state_begin 1427142589 -cpu_info:15:cpu_info15:stepping 5 -cpu_info:15:cpu_info15:supported_frequencies_Hz 2925945978 -cpu_info:15:cpu_info15:supported_max_cstates 1 -cpu_info:15:cpu_info15:vendor_id GenuineIntel + kstatinfo_output = <<~END + cpu_info:0:cpu_info0:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz + cpu_info:0:cpu_info0:cache_id 1 + cpu_info:0:cpu_info0:chip_id 1 + cpu_info:0:cpu_info0:class misc + cpu_info:0:cpu_info0:clock_MHz 1933 + cpu_info:0:cpu_info0:clog_id 0 + cpu_info:0:cpu_info0:core_id 8 + cpu_info:0:cpu_info0:cpu_type i386 + cpu_info:0:cpu_info0:crtime 300.455409162 + cpu_info:0:cpu_info0:current_clock_Hz 2925945978 + cpu_info:0:cpu_info0:current_cstate 0 + cpu_info:0:cpu_info0:family 12 + cpu_info:0:cpu_info0:fpu_type i387 compatible + cpu_info:0:cpu_info0:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:0:cpu_info0:model 93 + cpu_info:0:cpu_info0:ncore_per_chip 4 + cpu_info:0:cpu_info0:ncpu_per_chip 8 + cpu_info:0:cpu_info0:pg_id 1 + cpu_info:0:cpu_info0:pkg_core_id 0 + cpu_info:0:cpu_info0:snaptime 12444687.9690404 + cpu_info:0:cpu_info0:state off-line + cpu_info:0:cpu_info0:state_begin 1427142581 + cpu_info:0:cpu_info0:stepping 9 + cpu_info:0:cpu_info0:supported_frequencies_Hz 2925945978 + cpu_info:0:cpu_info0:supported_max_cstates 1 + cpu_info:0:cpu_info0:vendor_id CrazyTown + cpu_info:1:cpu_info1:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz + cpu_info:1:cpu_info1:cache_id 0 + cpu_info:1:cpu_info1:chip_id 0 + cpu_info:1:cpu_info1:class misc + cpu_info:1:cpu_info1:clock_MHz 2926 + cpu_info:1:cpu_info1:clog_id 0 + cpu_info:1:cpu_info1:core_id 0 + cpu_info:1:cpu_info1:cpu_type i386 + cpu_info:1:cpu_info1:crtime 308.198046165 + cpu_info:1:cpu_info1:current_clock_Hz 2925945978 + cpu_info:1:cpu_info1:current_cstate 1 + cpu_info:1:cpu_info1:family 6 + cpu_info:1:cpu_info1:fpu_type i387 compatible + cpu_info:1:cpu_info1:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:1:cpu_info1:model 26 + cpu_info:1:cpu_info1:ncore_per_chip 4 + cpu_info:1:cpu_info1:ncpu_per_chip 8 + cpu_info:1:cpu_info1:pg_id 4 + cpu_info:1:cpu_info1:pkg_core_id 0 + cpu_info:1:cpu_info1:snaptime 12444687.9693359 + cpu_info:1:cpu_info1:state on-line + cpu_info:1:cpu_info1:state_begin 1427142588 + cpu_info:1:cpu_info1:stepping 5 + cpu_info:1:cpu_info1:supported_frequencies_Hz 2925945978 + cpu_info:1:cpu_info1:supported_max_cstates 1 + cpu_info:1:cpu_info1:vendor_id GenuineIntel + cpu_info:2:cpu_info2:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz + cpu_info:2:cpu_info2:cache_id 1 + cpu_info:2:cpu_info2:chip_id 1 + cpu_info:2:cpu_info2:class misc + cpu_info:2:cpu_info2:clock_MHz 1933 + cpu_info:2:cpu_info2:clog_id 2 + cpu_info:2:cpu_info2:core_id 9 + cpu_info:2:cpu_info2:cpu_type i386 + cpu_info:2:cpu_info2:crtime 308.280117986 + cpu_info:2:cpu_info2:current_clock_Hz 2925945978 + cpu_info:2:cpu_info2:current_cstate 0 + cpu_info:2:cpu_info2:family 12 + cpu_info:2:cpu_info2:fpu_type i387 compatible + cpu_info:2:cpu_info2:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:2:cpu_info2:model 93 + cpu_info:2:cpu_info2:ncore_per_chip 4 + cpu_info:2:cpu_info2:ncpu_per_chip 8 + cpu_info:2:cpu_info2:pg_id 7 + cpu_info:2:cpu_info2:pkg_core_id 1 + cpu_info:2:cpu_info2:snaptime 12444687.9695684 + cpu_info:2:cpu_info2:state off-line + cpu_info:2:cpu_info2:state_begin 1427142588 + cpu_info:2:cpu_info2:stepping 9 + cpu_info:2:cpu_info2:supported_frequencies_Hz 2925945978 + cpu_info:2:cpu_info2:supported_max_cstates 1 + cpu_info:2:cpu_info2:vendor_id CrazyTown + cpu_info:3:cpu_info3:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz + cpu_info:3:cpu_info3:cache_id 0 + cpu_info:3:cpu_info3:chip_id 0 + cpu_info:3:cpu_info3:class misc + cpu_info:3:cpu_info3:clock_MHz 2926 + cpu_info:3:cpu_info3:clog_id 2 + cpu_info:3:cpu_info3:core_id 1 + cpu_info:3:cpu_info3:cpu_type i386 + cpu_info:3:cpu_info3:crtime 308.310124315 + cpu_info:3:cpu_info3:current_clock_Hz 2925945978 + cpu_info:3:cpu_info3:current_cstate 1 + cpu_info:3:cpu_info3:family 6 + cpu_info:3:cpu_info3:fpu_type i387 compatible + cpu_info:3:cpu_info3:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:3:cpu_info3:model 26 + cpu_info:3:cpu_info3:ncore_per_chip 4 + cpu_info:3:cpu_info3:ncpu_per_chip 8 + cpu_info:3:cpu_info3:pg_id 8 + cpu_info:3:cpu_info3:pkg_core_id 1 + cpu_info:3:cpu_info3:snaptime 12444687.9698122 + cpu_info:3:cpu_info3:state on-line + cpu_info:3:cpu_info3:state_begin 1427142588 + cpu_info:3:cpu_info3:stepping 5 + cpu_info:3:cpu_info3:supported_frequencies_Hz 2925945978 + cpu_info:3:cpu_info3:supported_max_cstates 1 + cpu_info:3:cpu_info3:vendor_id GenuineIntel + cpu_info:4:cpu_info4:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz + cpu_info:4:cpu_info4:cache_id 1 + cpu_info:4:cpu_info4:chip_id 1 + cpu_info:4:cpu_info4:class misc + cpu_info:4:cpu_info4:clock_MHz 1933 + cpu_info:4:cpu_info4:clog_id 4 + cpu_info:4:cpu_info4:core_id 10 + cpu_info:4:cpu_info4:cpu_type i386 + cpu_info:4:cpu_info4:crtime 308.340112555 + cpu_info:4:cpu_info4:current_clock_Hz 2925945978 + cpu_info:4:cpu_info4:current_cstate 0 + cpu_info:4:cpu_info4:family 12 + cpu_info:4:cpu_info4:fpu_type i387 compatible + cpu_info:4:cpu_info4:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:4:cpu_info4:model 93 + cpu_info:4:cpu_info4:ncore_per_chip 4 + cpu_info:4:cpu_info4:ncpu_per_chip 8 + cpu_info:4:cpu_info4:pg_id 9 + cpu_info:4:cpu_info4:pkg_core_id 2 + cpu_info:4:cpu_info4:snaptime 12444687.9700613 + cpu_info:4:cpu_info4:state off-line + cpu_info:4:cpu_info4:state_begin 1427142588 + cpu_info:4:cpu_info4:stepping 9 + cpu_info:4:cpu_info4:supported_frequencies_Hz 2925945978 + cpu_info:4:cpu_info4:supported_max_cstates 1 + cpu_info:4:cpu_info4:vendor_id CrazyTown + cpu_info:5:cpu_info5:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz + cpu_info:5:cpu_info5:cache_id 0 + cpu_info:5:cpu_info5:chip_id 0 + cpu_info:5:cpu_info5:class misc + cpu_info:5:cpu_info5:clock_MHz 2926 + cpu_info:5:cpu_info5:clog_id 4 + cpu_info:5:cpu_info5:core_id 2 + cpu_info:5:cpu_info5:cpu_type i386 + cpu_info:5:cpu_info5:crtime 308.370191347 + cpu_info:5:cpu_info5:current_clock_Hz 2925945978 + cpu_info:5:cpu_info5:current_cstate 1 + cpu_info:5:cpu_info5:family 6 + cpu_info:5:cpu_info5:fpu_type i387 compatible + cpu_info:5:cpu_info5:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:5:cpu_info5:model 26 + cpu_info:5:cpu_info5:ncore_per_chip 4 + cpu_info:5:cpu_info5:ncpu_per_chip 8 + cpu_info:5:cpu_info5:pg_id 10 + cpu_info:5:cpu_info5:pkg_core_id 2 + cpu_info:5:cpu_info5:snaptime 12444687.9702885 + cpu_info:5:cpu_info5:state on-line + cpu_info:5:cpu_info5:state_begin 1427142589 + cpu_info:5:cpu_info5:stepping 5 + cpu_info:5:cpu_info5:supported_frequencies_Hz 2925945978 + cpu_info:5:cpu_info5:supported_max_cstates 1 + cpu_info:5:cpu_info5:vendor_id GenuineIntel + cpu_info:6:cpu_info6:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz + cpu_info:6:cpu_info6:cache_id 1 + cpu_info:6:cpu_info6:chip_id 1 + cpu_info:6:cpu_info6:class misc + cpu_info:6:cpu_info6:clock_MHz 1933 + cpu_info:6:cpu_info6:clog_id 6 + cpu_info:6:cpu_info6:core_id 11 + cpu_info:6:cpu_info6:cpu_type i386 + cpu_info:6:cpu_info6:crtime 308.400119134 + cpu_info:6:cpu_info6:current_clock_Hz 2925945978 + cpu_info:6:cpu_info6:current_cstate 1 + cpu_info:6:cpu_info6:family 12 + cpu_info:6:cpu_info6:fpu_type i387 compatible + cpu_info:6:cpu_info6:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:6:cpu_info6:model 93 + cpu_info:6:cpu_info6:ncore_per_chip 4 + cpu_info:6:cpu_info6:ncpu_per_chip 8 + cpu_info:6:cpu_info6:pg_id 11 + cpu_info:6:cpu_info6:pkg_core_id 3 + cpu_info:6:cpu_info6:snaptime 12444687.9705136 + cpu_info:6:cpu_info6:state off-line + cpu_info:6:cpu_info6:state_begin 1427142589 + cpu_info:6:cpu_info6:stepping 9 + cpu_info:6:cpu_info6:supported_frequencies_Hz 2925945978 + cpu_info:6:cpu_info6:supported_max_cstates 1 + cpu_info:6:cpu_info6:vendor_id CrazyTown + cpu_info:7:cpu_info7:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz + cpu_info:7:cpu_info7:cache_id 0 + cpu_info:7:cpu_info7:chip_id 0 + cpu_info:7:cpu_info7:class misc + cpu_info:7:cpu_info7:clock_MHz 2926 + cpu_info:7:cpu_info7:clog_id 6 + cpu_info:7:cpu_info7:core_id 3 + cpu_info:7:cpu_info7:cpu_type i386 + cpu_info:7:cpu_info7:crtime 308.430139185 + cpu_info:7:cpu_info7:current_clock_Hz 2925945978 + cpu_info:7:cpu_info7:current_cstate 1 + cpu_info:7:cpu_info7:family 6 + cpu_info:7:cpu_info7:fpu_type i387 compatible + cpu_info:7:cpu_info7:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:7:cpu_info7:model 26 + cpu_info:7:cpu_info7:ncore_per_chip 4 + cpu_info:7:cpu_info7:ncpu_per_chip 8 + cpu_info:7:cpu_info7:pg_id 12 + cpu_info:7:cpu_info7:pkg_core_id 3 + cpu_info:7:cpu_info7:snaptime 12444687.9707517 + cpu_info:7:cpu_info7:state on-line + cpu_info:7:cpu_info7:state_begin 1427142589 + cpu_info:7:cpu_info7:stepping 5 + cpu_info:7:cpu_info7:supported_frequencies_Hz 2925945978 + cpu_info:7:cpu_info7:supported_max_cstates 1 + cpu_info:7:cpu_info7:vendor_id GenuineIntel + cpu_info:8:cpu_info8:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz + cpu_info:8:cpu_info8:cache_id 1 + cpu_info:8:cpu_info8:chip_id 1 + cpu_info:8:cpu_info8:class misc + cpu_info:8:cpu_info8:clock_MHz 1933 + cpu_info:8:cpu_info8:clog_id 1 + cpu_info:8:cpu_info8:core_id 8 + cpu_info:8:cpu_info8:cpu_type i386 + cpu_info:8:cpu_info8:crtime 308.460126522 + cpu_info:8:cpu_info8:current_clock_Hz 2925945978 + cpu_info:8:cpu_info8:current_cstate 1 + cpu_info:8:cpu_info8:family 12 + cpu_info:8:cpu_info8:fpu_type i387 compatible + cpu_info:8:cpu_info8:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:8:cpu_info8:model 93 + cpu_info:8:cpu_info8:ncore_per_chip 4 + cpu_info:8:cpu_info8:ncpu_per_chip 8 + cpu_info:8:cpu_info8:pg_id 1 + cpu_info:8:cpu_info8:pkg_core_id 0 + cpu_info:8:cpu_info8:snaptime 12444687.9709846 + cpu_info:8:cpu_info8:state off-line + cpu_info:8:cpu_info8:state_begin 1427142589 + cpu_info:8:cpu_info8:stepping 9 + cpu_info:8:cpu_info8:supported_frequencies_Hz 2925945978 + cpu_info:8:cpu_info8:supported_max_cstates 1 + cpu_info:8:cpu_info8:vendor_id CrazyTown + cpu_info:9:cpu_info9:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz + cpu_info:9:cpu_info9:cache_id 0 + cpu_info:9:cpu_info9:chip_id 0 + cpu_info:9:cpu_info9:class misc + cpu_info:9:cpu_info9:clock_MHz 2926 + cpu_info:9:cpu_info9:clog_id 1 + cpu_info:9:cpu_info9:core_id 0 + cpu_info:9:cpu_info9:cpu_type i386 + cpu_info:9:cpu_info9:crtime 308.490165484 + cpu_info:9:cpu_info9:current_clock_Hz 2925945978 + cpu_info:9:cpu_info9:current_cstate 1 + cpu_info:9:cpu_info9:family 6 + cpu_info:9:cpu_info9:fpu_type i387 compatible + cpu_info:9:cpu_info9:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:9:cpu_info9:model 26 + cpu_info:9:cpu_info9:ncore_per_chip 4 + cpu_info:9:cpu_info9:ncpu_per_chip 8 + cpu_info:9:cpu_info9:pg_id 4 + cpu_info:9:cpu_info9:pkg_core_id 0 + cpu_info:9:cpu_info9:snaptime 12444687.9712051 + cpu_info:9:cpu_info9:state on-line + cpu_info:9:cpu_info9:state_begin 1427142589 + cpu_info:9:cpu_info9:stepping 5 + cpu_info:9:cpu_info9:supported_frequencies_Hz 2925945978 + cpu_info:9:cpu_info9:supported_max_cstates 1 + cpu_info:9:cpu_info9:vendor_id GenuineIntel + cpu_info:10:cpu_info10:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz + cpu_info:10:cpu_info10:cache_id 1 + cpu_info:10:cpu_info10:chip_id 1 + cpu_info:10:cpu_info10:class misc + cpu_info:10:cpu_info10:clock_MHz 1933 + cpu_info:10:cpu_info10:clog_id 3 + cpu_info:10:cpu_info10:core_id 9 + cpu_info:10:cpu_info10:cpu_type i386 + cpu_info:10:cpu_info10:crtime 308.520151852 + cpu_info:10:cpu_info10:current_clock_Hz 2925945978 + cpu_info:10:cpu_info10:current_cstate 1 + cpu_info:10:cpu_info10:family 12 + cpu_info:10:cpu_info10:fpu_type i387 compatible + cpu_info:10:cpu_info10:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:10:cpu_info10:model 93 + cpu_info:10:cpu_info10:ncore_per_chip 4 + cpu_info:10:cpu_info10:ncpu_per_chip 8 + cpu_info:10:cpu_info10:pg_id 7 + cpu_info:10:cpu_info10:pkg_core_id 1 + cpu_info:10:cpu_info10:snaptime 12444687.9714381 + cpu_info:10:cpu_info10:state off-line + cpu_info:10:cpu_info10:state_begin 1427142589 + cpu_info:10:cpu_info10:stepping 9 + cpu_info:10:cpu_info10:supported_frequencies_Hz 2925945978 + cpu_info:10:cpu_info10:supported_max_cstates 1 + cpu_info:10:cpu_info10:vendor_id CrazyTown + cpu_info:11:cpu_info11:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz + cpu_info:11:cpu_info11:cache_id 0 + cpu_info:11:cpu_info11:chip_id 0 + cpu_info:11:cpu_info11:class misc + cpu_info:11:cpu_info11:clock_MHz 2926 + cpu_info:11:cpu_info11:clog_id 3 + cpu_info:11:cpu_info11:core_id 1 + cpu_info:11:cpu_info11:cpu_type i386 + cpu_info:11:cpu_info11:crtime 308.550150882 + cpu_info:11:cpu_info11:current_clock_Hz 2925945978 + cpu_info:11:cpu_info11:current_cstate 1 + cpu_info:11:cpu_info11:family 6 + cpu_info:11:cpu_info11:fpu_type i387 compatible + cpu_info:11:cpu_info11:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:11:cpu_info11:model 26 + cpu_info:11:cpu_info11:ncore_per_chip 4 + cpu_info:11:cpu_info11:ncpu_per_chip 8 + cpu_info:11:cpu_info11:pg_id 8 + cpu_info:11:cpu_info11:pkg_core_id 1 + cpu_info:11:cpu_info11:snaptime 12444687.9716655 + cpu_info:11:cpu_info11:state on-line + cpu_info:11:cpu_info11:state_begin 1427142589 + cpu_info:11:cpu_info11:stepping 5 + cpu_info:11:cpu_info11:supported_frequencies_Hz 2925945978 + cpu_info:11:cpu_info11:supported_max_cstates 1 + cpu_info:11:cpu_info11:vendor_id GenuineIntel + cpu_info:12:cpu_info12:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz + cpu_info:12:cpu_info12:cache_id 1 + cpu_info:12:cpu_info12:chip_id 1 + cpu_info:12:cpu_info12:class misc + cpu_info:12:cpu_info12:clock_MHz 1933 + cpu_info:12:cpu_info12:clog_id 5 + cpu_info:12:cpu_info12:core_id 10 + cpu_info:12:cpu_info12:cpu_type i386 + cpu_info:12:cpu_info12:crtime 308.580146834 + cpu_info:12:cpu_info12:current_clock_Hz 2925945978 + cpu_info:12:cpu_info12:current_cstate 1 + cpu_info:12:cpu_info12:family 12 + cpu_info:12:cpu_info12:fpu_type i387 compatible + cpu_info:12:cpu_info12:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:12:cpu_info12:model 93 + cpu_info:12:cpu_info12:ncore_per_chip 4 + cpu_info:12:cpu_info12:ncpu_per_chip 8 + cpu_info:12:cpu_info12:pg_id 9 + cpu_info:12:cpu_info12:pkg_core_id 2 + cpu_info:12:cpu_info12:snaptime 12444687.9718927 + cpu_info:12:cpu_info12:state off-line + cpu_info:12:cpu_info12:state_begin 1427142589 + cpu_info:12:cpu_info12:stepping 9 + cpu_info:12:cpu_info12:supported_frequencies_Hz 2925945978 + cpu_info:12:cpu_info12:supported_max_cstates 1 + cpu_info:12:cpu_info12:vendor_id CrazyTown + cpu_info:13:cpu_info13:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz + cpu_info:13:cpu_info13:cache_id 0 + cpu_info:13:cpu_info13:chip_id 0 + cpu_info:13:cpu_info13:class misc + cpu_info:13:cpu_info13:clock_MHz 2926 + cpu_info:13:cpu_info13:clog_id 5 + cpu_info:13:cpu_info13:core_id 2 + cpu_info:13:cpu_info13:cpu_type i386 + cpu_info:13:cpu_info13:crtime 308.610149804 + cpu_info:13:cpu_info13:current_clock_Hz 2925945978 + cpu_info:13:cpu_info13:current_cstate 1 + cpu_info:13:cpu_info13:family 6 + cpu_info:13:cpu_info13:fpu_type i387 compatible + cpu_info:13:cpu_info13:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:13:cpu_info13:model 26 + cpu_info:13:cpu_info13:ncore_per_chip 4 + cpu_info:13:cpu_info13:ncpu_per_chip 8 + cpu_info:13:cpu_info13:pg_id 10 + cpu_info:13:cpu_info13:pkg_core_id 2 + cpu_info:13:cpu_info13:snaptime 12444687.9721356 + cpu_info:13:cpu_info13:state on-line + cpu_info:13:cpu_info13:state_begin 1427142589 + cpu_info:13:cpu_info13:stepping 5 + cpu_info:13:cpu_info13:supported_frequencies_Hz 2925945978 + cpu_info:13:cpu_info13:supported_max_cstates 1 + cpu_info:13:cpu_info13:vendor_id GenuineIntel + cpu_info:14:cpu_info14:brand Crazy(r) Argon(r) CPU Y5570 @ 1.93GHz + cpu_info:14:cpu_info14:cache_id 1 + cpu_info:14:cpu_info14:chip_id 1 + cpu_info:14:cpu_info14:class misc + cpu_info:14:cpu_info14:clock_MHz 1933 + cpu_info:14:cpu_info14:clog_id 7 + cpu_info:14:cpu_info14:core_id 11 + cpu_info:14:cpu_info14:cpu_type i386 + cpu_info:14:cpu_info14:crtime 308.640144708 + cpu_info:14:cpu_info14:current_clock_Hz 2925945978 + cpu_info:14:cpu_info14:current_cstate 1 + cpu_info:14:cpu_info14:family 12 + cpu_info:14:cpu_info14:fpu_type i387 compatible + cpu_info:14:cpu_info14:implementation x86 (chipid 0x1 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:14:cpu_info14:model 93 + cpu_info:14:cpu_info14:ncore_per_chip 4 + cpu_info:14:cpu_info14:ncpu_per_chip 8 + cpu_info:14:cpu_info14:pg_id 11 + cpu_info:14:cpu_info14:pkg_core_id 3 + cpu_info:14:cpu_info14:snaptime 12444687.9723752 + cpu_info:14:cpu_info14:state off-line + cpu_info:14:cpu_info14:state_begin 1427142589 + cpu_info:14:cpu_info14:stepping 9 + cpu_info:14:cpu_info14:supported_frequencies_Hz 2925945978 + cpu_info:14:cpu_info14:supported_max_cstates 1 + cpu_info:14:cpu_info14:vendor_id CrazyTown + cpu_info:15:cpu_info15:brand Intel(r) Xeon(r) CPU X5570 @ 2.93GHz + cpu_info:15:cpu_info15:cache_id 0 + cpu_info:15:cpu_info15:chip_id 0 + cpu_info:15:cpu_info15:class misc + cpu_info:15:cpu_info15:clock_MHz 2926 + cpu_info:15:cpu_info15:clog_id 7 + cpu_info:15:cpu_info15:core_id 3 + cpu_info:15:cpu_info15:cpu_type i386 + cpu_info:15:cpu_info15:crtime 308.670163124 + cpu_info:15:cpu_info15:current_clock_Hz 2925945978 + cpu_info:15:cpu_info15:current_cstate 1 + cpu_info:15:cpu_info15:family 6 + cpu_info:15:cpu_info15:fpu_type i387 compatible + cpu_info:15:cpu_info15:implementation x86 (chipid 0x0 GenuineIntel family 6 model 26 step 5 clock 2926 MHz) + cpu_info:15:cpu_info15:model 26 + cpu_info:15:cpu_info15:ncore_per_chip 4 + cpu_info:15:cpu_info15:ncpu_per_chip 8 + cpu_info:15:cpu_info15:pg_id 12 + cpu_info:15:cpu_info15:pkg_core_id 3 + cpu_info:15:cpu_info15:snaptime 12444687.9726021 + cpu_info:15:cpu_info15:state on-line + cpu_info:15:cpu_info15:state_begin 1427142589 + cpu_info:15:cpu_info15:stepping 5 + cpu_info:15:cpu_info15:supported_frequencies_Hz 2925945978 + cpu_info:15:cpu_info15:supported_max_cstates 1 + cpu_info:15:cpu_info15:vendor_id GenuineIntel END allow(@plugin).to receive(:shell_out).with("kstat -p cpu_info").and_return(mock_shell_out(0, kstatinfo_output, "")) @plugin.run @@ -630,2183 +630,2183 @@ END describe "on sparc processors" do before(:each) do - kstatinfo_output = <<-END -cpu_info:0:cpu_info0:brand SPARC-T3 -cpu_info:0:cpu_info0:chip_id 0 -cpu_info:0:cpu_info0:class misc -cpu_info:0:cpu_info0:clock_MHz 1649 -cpu_info:0:cpu_info0:core_id 1026 -cpu_info:0:cpu_info0:cpu_fru hc:///component= -cpu_info:0:cpu_info0:cpu_type sparcv9 -cpu_info:0:cpu_info0:crtime 182.755017565 -cpu_info:0:cpu_info0:current_clock_Hz 1648762500 -cpu_info:0:cpu_info0:device_ID 0 -cpu_info:0:cpu_info0:fpu_type sparcv9 -cpu_info:0:cpu_info0:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:0:cpu_info0:pg_id 1 -cpu_info:0:cpu_info0:snaptime 9305222.45903973 -cpu_info:0:cpu_info0:state on-line -cpu_info:0:cpu_info0:state_begin 1430258900 -cpu_info:0:cpu_info0:supported_frequencies_Hz 1648762500 -cpu_info:1:cpu_info1:brand SPARC-T3 -cpu_info:1:cpu_info1:chip_id 0 -cpu_info:1:cpu_info1:class misc -cpu_info:1:cpu_info1:clock_MHz 1649 -cpu_info:1:cpu_info1:core_id 1026 -cpu_info:1:cpu_info1:cpu_fru hc:///component= -cpu_info:1:cpu_info1:cpu_type sparcv9 -cpu_info:1:cpu_info1:crtime 185.891012056 -cpu_info:1:cpu_info1:current_clock_Hz 1648762500 -cpu_info:1:cpu_info1:device_ID 1 -cpu_info:1:cpu_info1:fpu_type sparcv9 -cpu_info:1:cpu_info1:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:1:cpu_info1:pg_id 1 -cpu_info:1:cpu_info1:snaptime 9305222.46043854 -cpu_info:1:cpu_info1:state on-line -cpu_info:1:cpu_info1:state_begin 1430258903 -cpu_info:1:cpu_info1:supported_frequencies_Hz 1648762500 -cpu_info:2:cpu_info2:brand SPARC-T3 -cpu_info:2:cpu_info2:chip_id 0 -cpu_info:2:cpu_info2:class misc -cpu_info:2:cpu_info2:clock_MHz 1649 -cpu_info:2:cpu_info2:core_id 1026 -cpu_info:2:cpu_info2:cpu_fru hc:///component= -cpu_info:2:cpu_info2:cpu_type sparcv9 -cpu_info:2:cpu_info2:crtime 185.89327726 -cpu_info:2:cpu_info2:current_clock_Hz 1648762500 -cpu_info:2:cpu_info2:device_ID 2 -cpu_info:2:cpu_info2:fpu_type sparcv9 -cpu_info:2:cpu_info2:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:2:cpu_info2:pg_id 1 -cpu_info:2:cpu_info2:snaptime 9305222.46159979 -cpu_info:2:cpu_info2:state on-line -cpu_info:2:cpu_info2:state_begin 1430258903 -cpu_info:2:cpu_info2:supported_frequencies_Hz 1648762500 -cpu_info:3:cpu_info3:brand SPARC-T3 -cpu_info:3:cpu_info3:chip_id 0 -cpu_info:3:cpu_info3:class misc -cpu_info:3:cpu_info3:clock_MHz 1649 -cpu_info:3:cpu_info3:core_id 1026 -cpu_info:3:cpu_info3:cpu_fru hc:///component= -cpu_info:3:cpu_info3:cpu_type sparcv9 -cpu_info:3:cpu_info3:crtime 185.895286738 -cpu_info:3:cpu_info3:current_clock_Hz 1648762500 -cpu_info:3:cpu_info3:device_ID 3 -cpu_info:3:cpu_info3:fpu_type sparcv9 -cpu_info:3:cpu_info3:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:3:cpu_info3:pg_id 1 -cpu_info:3:cpu_info3:snaptime 9305222.46276104 -cpu_info:3:cpu_info3:state on-line -cpu_info:3:cpu_info3:state_begin 1430258903 -cpu_info:3:cpu_info3:supported_frequencies_Hz 1648762500 -cpu_info:4:cpu_info4:brand SPARC-T3 -cpu_info:4:cpu_info4:chip_id 0 -cpu_info:4:cpu_info4:class misc -cpu_info:4:cpu_info4:clock_MHz 1649 -cpu_info:4:cpu_info4:core_id 1026 -cpu_info:4:cpu_info4:cpu_fru hc:///component= -cpu_info:4:cpu_info4:cpu_type sparcv9 -cpu_info:4:cpu_info4:crtime 185.897635787 -cpu_info:4:cpu_info4:current_clock_Hz 1648762500 -cpu_info:4:cpu_info4:device_ID 4 -cpu_info:4:cpu_info4:fpu_type sparcv9 -cpu_info:4:cpu_info4:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:4:cpu_info4:pg_id 4 -cpu_info:4:cpu_info4:snaptime 9305222.46392368 -cpu_info:4:cpu_info4:state on-line -cpu_info:4:cpu_info4:state_begin 1430258903 -cpu_info:4:cpu_info4:supported_frequencies_Hz 1648762500 -cpu_info:5:cpu_info5:brand SPARC-T3 -cpu_info:5:cpu_info5:chip_id 0 -cpu_info:5:cpu_info5:class misc -cpu_info:5:cpu_info5:clock_MHz 1649 -cpu_info:5:cpu_info5:core_id 1026 -cpu_info:5:cpu_info5:cpu_fru hc:///component= -cpu_info:5:cpu_info5:cpu_type sparcv9 -cpu_info:5:cpu_info5:crtime 185.899706751 -cpu_info:5:cpu_info5:current_clock_Hz 1648762500 -cpu_info:5:cpu_info5:device_ID 5 -cpu_info:5:cpu_info5:fpu_type sparcv9 -cpu_info:5:cpu_info5:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:5:cpu_info5:pg_id 4 -cpu_info:5:cpu_info5:snaptime 9305222.4651017 -cpu_info:5:cpu_info5:state on-line -cpu_info:5:cpu_info5:state_begin 1430258903 -cpu_info:5:cpu_info5:supported_frequencies_Hz 1648762500 -cpu_info:6:cpu_info6:brand SPARC-T3 -cpu_info:6:cpu_info6:chip_id 0 -cpu_info:6:cpu_info6:class misc -cpu_info:6:cpu_info6:clock_MHz 1649 -cpu_info:6:cpu_info6:core_id 1026 -cpu_info:6:cpu_info6:cpu_fru hc:///component= -cpu_info:6:cpu_info6:cpu_type sparcv9 -cpu_info:6:cpu_info6:crtime 185.901703653 -cpu_info:6:cpu_info6:current_clock_Hz 1648762500 -cpu_info:6:cpu_info6:device_ID 6 -cpu_info:6:cpu_info6:fpu_type sparcv9 -cpu_info:6:cpu_info6:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:6:cpu_info6:pg_id 4 -cpu_info:6:cpu_info6:snaptime 9305222.46627134 -cpu_info:6:cpu_info6:state on-line -cpu_info:6:cpu_info6:state_begin 1430258903 -cpu_info:6:cpu_info6:supported_frequencies_Hz 1648762500 -cpu_info:7:cpu_info7:brand SPARC-T3 -cpu_info:7:cpu_info7:chip_id 0 -cpu_info:7:cpu_info7:class misc -cpu_info:7:cpu_info7:clock_MHz 1649 -cpu_info:7:cpu_info7:core_id 1026 -cpu_info:7:cpu_info7:cpu_fru hc:///component= -cpu_info:7:cpu_info7:cpu_type sparcv9 -cpu_info:7:cpu_info7:crtime 185.903769027 -cpu_info:7:cpu_info7:current_clock_Hz 1648762500 -cpu_info:7:cpu_info7:device_ID 7 -cpu_info:7:cpu_info7:fpu_type sparcv9 -cpu_info:7:cpu_info7:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:7:cpu_info7:pg_id 4 -cpu_info:7:cpu_info7:snaptime 9305222.46743538 -cpu_info:7:cpu_info7:state on-line -cpu_info:7:cpu_info7:state_begin 1430258903 -cpu_info:7:cpu_info7:supported_frequencies_Hz 1648762500 -cpu_info:8:cpu_info8:brand SPARC-T3 -cpu_info:8:cpu_info8:chip_id 0 -cpu_info:8:cpu_info8:class misc -cpu_info:8:cpu_info8:clock_MHz 1649 -cpu_info:8:cpu_info8:core_id 1033 -cpu_info:8:cpu_info8:cpu_fru hc:///component= -cpu_info:8:cpu_info8:cpu_type sparcv9 -cpu_info:8:cpu_info8:crtime 185.905770121 -cpu_info:8:cpu_info8:current_clock_Hz 1648762500 -cpu_info:8:cpu_info8:device_ID 8 -cpu_info:8:cpu_info8:fpu_type sparcv9 -cpu_info:8:cpu_info8:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:8:cpu_info8:pg_id 5 -cpu_info:8:cpu_info8:snaptime 9305222.46859244 -cpu_info:8:cpu_info8:state on-line -cpu_info:8:cpu_info8:state_begin 1430258903 -cpu_info:8:cpu_info8:supported_frequencies_Hz 1648762500 -cpu_info:9:cpu_info9:brand SPARC-T3 -cpu_info:9:cpu_info9:chip_id 0 -cpu_info:9:cpu_info9:class misc -cpu_info:9:cpu_info9:clock_MHz 1649 -cpu_info:9:cpu_info9:core_id 1033 -cpu_info:9:cpu_info9:cpu_fru hc:///component= -cpu_info:9:cpu_info9:cpu_type sparcv9 -cpu_info:9:cpu_info9:crtime 185.907807547 -cpu_info:9:cpu_info9:current_clock_Hz 1648762500 -cpu_info:9:cpu_info9:device_ID 9 -cpu_info:9:cpu_info9:fpu_type sparcv9 -cpu_info:9:cpu_info9:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:9:cpu_info9:pg_id 5 -cpu_info:9:cpu_info9:snaptime 9305222.46975928 -cpu_info:9:cpu_info9:state on-line -cpu_info:9:cpu_info9:state_begin 1430258903 -cpu_info:9:cpu_info9:supported_frequencies_Hz 1648762500 -cpu_info:10:cpu_info10:brand SPARC-T3 -cpu_info:10:cpu_info10:chip_id 0 -cpu_info:10:cpu_info10:class misc -cpu_info:10:cpu_info10:clock_MHz 1649 -cpu_info:10:cpu_info10:core_id 1033 -cpu_info:10:cpu_info10:cpu_fru hc:///component= -cpu_info:10:cpu_info10:cpu_type sparcv9 -cpu_info:10:cpu_info10:crtime 185.909912049 -cpu_info:10:cpu_info10:current_clock_Hz 1648762500 -cpu_info:10:cpu_info10:device_ID 10 -cpu_info:10:cpu_info10:fpu_type sparcv9 -cpu_info:10:cpu_info10:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:10:cpu_info10:pg_id 5 -cpu_info:10:cpu_info10:snaptime 9305222.47092053 -cpu_info:10:cpu_info10:state on-line -cpu_info:10:cpu_info10:state_begin 1430258903 -cpu_info:10:cpu_info10:supported_frequencies_Hz 1648762500 -cpu_info:11:cpu_info11:brand SPARC-T3 -cpu_info:11:cpu_info11:chip_id 0 -cpu_info:11:cpu_info11:class misc -cpu_info:11:cpu_info11:clock_MHz 1649 -cpu_info:11:cpu_info11:core_id 1033 -cpu_info:11:cpu_info11:cpu_fru hc:///component= -cpu_info:11:cpu_info11:cpu_type sparcv9 -cpu_info:11:cpu_info11:crtime 185.912115767 -cpu_info:11:cpu_info11:current_clock_Hz 1648762500 -cpu_info:11:cpu_info11:device_ID 11 -cpu_info:11:cpu_info11:fpu_type sparcv9 -cpu_info:11:cpu_info11:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:11:cpu_info11:pg_id 5 -cpu_info:11:cpu_info11:snaptime 9305222.47210972 -cpu_info:11:cpu_info11:state on-line -cpu_info:11:cpu_info11:state_begin 1430258903 -cpu_info:11:cpu_info11:supported_frequencies_Hz 1648762500 -cpu_info:12:cpu_info12:brand SPARC-T3 -cpu_info:12:cpu_info12:chip_id 0 -cpu_info:12:cpu_info12:class misc -cpu_info:12:cpu_info12:clock_MHz 1649 -cpu_info:12:cpu_info12:core_id 1033 -cpu_info:12:cpu_info12:cpu_fru hc:///component= -cpu_info:12:cpu_info12:cpu_type sparcv9 -cpu_info:12:cpu_info12:crtime 185.914137822 -cpu_info:12:cpu_info12:current_clock_Hz 1648762500 -cpu_info:12:cpu_info12:device_ID 12 -cpu_info:12:cpu_info12:fpu_type sparcv9 -cpu_info:12:cpu_info12:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:12:cpu_info12:pg_id 7 -cpu_info:12:cpu_info12:snaptime 9305222.47335901 -cpu_info:12:cpu_info12:state on-line -cpu_info:12:cpu_info12:state_begin 1430258903 -cpu_info:12:cpu_info12:supported_frequencies_Hz 1648762500 -cpu_info:13:cpu_info13:brand SPARC-T3 -cpu_info:13:cpu_info13:chip_id 0 -cpu_info:13:cpu_info13:class misc -cpu_info:13:cpu_info13:clock_MHz 1649 -cpu_info:13:cpu_info13:core_id 1033 -cpu_info:13:cpu_info13:cpu_fru hc:///component= -cpu_info:13:cpu_info13:cpu_type sparcv9 -cpu_info:13:cpu_info13:crtime 185.916718841 -cpu_info:13:cpu_info13:current_clock_Hz 1648762500 -cpu_info:13:cpu_info13:device_ID 13 -cpu_info:13:cpu_info13:fpu_type sparcv9 -cpu_info:13:cpu_info13:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:13:cpu_info13:pg_id 7 -cpu_info:13:cpu_info13:snaptime 9305222.47452166 -cpu_info:13:cpu_info13:state on-line -cpu_info:13:cpu_info13:state_begin 1430258903 -cpu_info:13:cpu_info13:supported_frequencies_Hz 1648762500 -cpu_info:14:cpu_info14:brand SPARC-T3 -cpu_info:14:cpu_info14:chip_id 0 -cpu_info:14:cpu_info14:class misc -cpu_info:14:cpu_info14:clock_MHz 1649 -cpu_info:14:cpu_info14:core_id 1033 -cpu_info:14:cpu_info14:cpu_fru hc:///component= -cpu_info:14:cpu_info14:cpu_type sparcv9 -cpu_info:14:cpu_info14:crtime 185.918743691 -cpu_info:14:cpu_info14:current_clock_Hz 1648762500 -cpu_info:14:cpu_info14:device_ID 14 -cpu_info:14:cpu_info14:fpu_type sparcv9 -cpu_info:14:cpu_info14:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:14:cpu_info14:pg_id 7 -cpu_info:14:cpu_info14:snaptime 9305222.4756871 -cpu_info:14:cpu_info14:state on-line -cpu_info:14:cpu_info14:state_begin 1430258903 -cpu_info:14:cpu_info14:supported_frequencies_Hz 1648762500 -cpu_info:15:cpu_info15:brand SPARC-T3 -cpu_info:15:cpu_info15:chip_id 0 -cpu_info:15:cpu_info15:class misc -cpu_info:15:cpu_info15:clock_MHz 1649 -cpu_info:15:cpu_info15:core_id 1033 -cpu_info:15:cpu_info15:cpu_fru hc:///component= -cpu_info:15:cpu_info15:cpu_type sparcv9 -cpu_info:15:cpu_info15:crtime 185.920867756 -cpu_info:15:cpu_info15:current_clock_Hz 1648762500 -cpu_info:15:cpu_info15:device_ID 15 -cpu_info:15:cpu_info15:fpu_type sparcv9 -cpu_info:15:cpu_info15:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:15:cpu_info15:pg_id 7 -cpu_info:15:cpu_info15:snaptime 9305222.47686092 -cpu_info:15:cpu_info15:state on-line -cpu_info:15:cpu_info15:state_begin 1430258903 -cpu_info:15:cpu_info15:supported_frequencies_Hz 1648762500 -cpu_info:16:cpu_info16:brand SPARC-T3 -cpu_info:16:cpu_info16:chip_id 0 -cpu_info:16:cpu_info16:class misc -cpu_info:16:cpu_info16:clock_MHz 1649 -cpu_info:16:cpu_info16:core_id 1040 -cpu_info:16:cpu_info16:cpu_fru hc:///component= -cpu_info:16:cpu_info16:cpu_type sparcv9 -cpu_info:16:cpu_info16:crtime 185.923040731 -cpu_info:16:cpu_info16:current_clock_Hz 1648762500 -cpu_info:16:cpu_info16:device_ID 16 -cpu_info:16:cpu_info16:fpu_type sparcv9 -cpu_info:16:cpu_info16:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:16:cpu_info16:pg_id 8 -cpu_info:16:cpu_info16:snaptime 9305222.47804034 -cpu_info:16:cpu_info16:state on-line -cpu_info:16:cpu_info16:state_begin 1430258903 -cpu_info:16:cpu_info16:supported_frequencies_Hz 1648762500 -cpu_info:17:cpu_info17:brand SPARC-T3 -cpu_info:17:cpu_info17:chip_id 0 -cpu_info:17:cpu_info17:class misc -cpu_info:17:cpu_info17:clock_MHz 1649 -cpu_info:17:cpu_info17:core_id 1040 -cpu_info:17:cpu_info17:cpu_fru hc:///component= -cpu_info:17:cpu_info17:cpu_type sparcv9 -cpu_info:17:cpu_info17:crtime 185.925129862 -cpu_info:17:cpu_info17:current_clock_Hz 1648762500 -cpu_info:17:cpu_info17:device_ID 17 -cpu_info:17:cpu_info17:fpu_type sparcv9 -cpu_info:17:cpu_info17:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:17:cpu_info17:pg_id 8 -cpu_info:17:cpu_info17:snaptime 9305222.4791974 -cpu_info:17:cpu_info17:state on-line -cpu_info:17:cpu_info17:state_begin 1430258903 -cpu_info:17:cpu_info17:supported_frequencies_Hz 1648762500 -cpu_info:18:cpu_info18:brand SPARC-T3 -cpu_info:18:cpu_info18:chip_id 0 -cpu_info:18:cpu_info18:class misc -cpu_info:18:cpu_info18:clock_MHz 1649 -cpu_info:18:cpu_info18:core_id 1040 -cpu_info:18:cpu_info18:cpu_fru hc:///component= -cpu_info:18:cpu_info18:cpu_type sparcv9 -cpu_info:18:cpu_info18:crtime 185.927358733 -cpu_info:18:cpu_info18:current_clock_Hz 1648762500 -cpu_info:18:cpu_info18:device_ID 18 -cpu_info:18:cpu_info18:fpu_type sparcv9 -cpu_info:18:cpu_info18:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:18:cpu_info18:pg_id 8 -cpu_info:18:cpu_info18:snaptime 9305222.48035585 -cpu_info:18:cpu_info18:state on-line -cpu_info:18:cpu_info18:state_begin 1430258903 -cpu_info:18:cpu_info18:supported_frequencies_Hz 1648762500 -cpu_info:19:cpu_info19:brand SPARC-T3 -cpu_info:19:cpu_info19:chip_id 0 -cpu_info:19:cpu_info19:class misc -cpu_info:19:cpu_info19:clock_MHz 1649 -cpu_info:19:cpu_info19:core_id 1040 -cpu_info:19:cpu_info19:cpu_fru hc:///component= -cpu_info:19:cpu_info19:cpu_type sparcv9 -cpu_info:19:cpu_info19:crtime 185.929506555 -cpu_info:19:cpu_info19:current_clock_Hz 1648762500 -cpu_info:19:cpu_info19:device_ID 19 -cpu_info:19:cpu_info19:fpu_type sparcv9 -cpu_info:19:cpu_info19:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:19:cpu_info19:pg_id 8 -cpu_info:19:cpu_info19:snaptime 9305222.4815143 -cpu_info:19:cpu_info19:state on-line -cpu_info:19:cpu_info19:state_begin 1430258903 -cpu_info:19:cpu_info19:supported_frequencies_Hz 1648762500 -cpu_info:20:cpu_info20:brand SPARC-T3 -cpu_info:20:cpu_info20:chip_id 0 -cpu_info:20:cpu_info20:class misc -cpu_info:20:cpu_info20:clock_MHz 1649 -cpu_info:20:cpu_info20:core_id 1040 -cpu_info:20:cpu_info20:cpu_fru hc:///component= -cpu_info:20:cpu_info20:cpu_type sparcv9 -cpu_info:20:cpu_info20:crtime 185.931632019 -cpu_info:20:cpu_info20:current_clock_Hz 1648762500 -cpu_info:20:cpu_info20:device_ID 20 -cpu_info:20:cpu_info20:fpu_type sparcv9 -cpu_info:20:cpu_info20:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:20:cpu_info20:pg_id 10 -cpu_info:20:cpu_info20:snaptime 9305222.48268953 -cpu_info:20:cpu_info20:state on-line -cpu_info:20:cpu_info20:state_begin 1430258903 -cpu_info:20:cpu_info20:supported_frequencies_Hz 1648762500 -cpu_info:21:cpu_info21:brand SPARC-T3 -cpu_info:21:cpu_info21:chip_id 0 -cpu_info:21:cpu_info21:class misc -cpu_info:21:cpu_info21:clock_MHz 1649 -cpu_info:21:cpu_info21:core_id 1040 -cpu_info:21:cpu_info21:cpu_fru hc:///component= -cpu_info:21:cpu_info21:cpu_type sparcv9 -cpu_info:21:cpu_info21:crtime 185.933775649 -cpu_info:21:cpu_info21:current_clock_Hz 1648762500 -cpu_info:21:cpu_info21:device_ID 21 -cpu_info:21:cpu_info21:fpu_type sparcv9 -cpu_info:21:cpu_info21:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:21:cpu_info21:pg_id 10 -cpu_info:21:cpu_info21:snaptime 9305222.48385497 -cpu_info:21:cpu_info21:state on-line -cpu_info:21:cpu_info21:state_begin 1430258903 -cpu_info:21:cpu_info21:supported_frequencies_Hz 1648762500 -cpu_info:22:cpu_info22:brand SPARC-T3 -cpu_info:22:cpu_info22:chip_id 0 -cpu_info:22:cpu_info22:class misc -cpu_info:22:cpu_info22:clock_MHz 1649 -cpu_info:22:cpu_info22:core_id 1040 -cpu_info:22:cpu_info22:cpu_fru hc:///component= -cpu_info:22:cpu_info22:cpu_type sparcv9 -cpu_info:22:cpu_info22:crtime 185.935894125 -cpu_info:22:cpu_info22:current_clock_Hz 1648762500 -cpu_info:22:cpu_info22:device_ID 22 -cpu_info:22:cpu_info22:fpu_type sparcv9 -cpu_info:22:cpu_info22:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:22:cpu_info22:pg_id 10 -cpu_info:22:cpu_info22:snaptime 9305222.48501202 -cpu_info:22:cpu_info22:state on-line -cpu_info:22:cpu_info22:state_begin 1430258903 -cpu_info:22:cpu_info22:supported_frequencies_Hz 1648762500 -cpu_info:23:cpu_info23:brand SPARC-T3 -cpu_info:23:cpu_info23:chip_id 0 -cpu_info:23:cpu_info23:class misc -cpu_info:23:cpu_info23:clock_MHz 1649 -cpu_info:23:cpu_info23:core_id 1040 -cpu_info:23:cpu_info23:cpu_fru hc:///component= -cpu_info:23:cpu_info23:cpu_type sparcv9 -cpu_info:23:cpu_info23:crtime 185.938371736 -cpu_info:23:cpu_info23:current_clock_Hz 1648762500 -cpu_info:23:cpu_info23:device_ID 23 -cpu_info:23:cpu_info23:fpu_type sparcv9 -cpu_info:23:cpu_info23:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:23:cpu_info23:pg_id 10 -cpu_info:23:cpu_info23:snaptime 9305222.4862152 -cpu_info:23:cpu_info23:state on-line -cpu_info:23:cpu_info23:state_begin 1430258903 -cpu_info:23:cpu_info23:supported_frequencies_Hz 1648762500 -cpu_info:24:cpu_info24:brand SPARC-T3 -cpu_info:24:cpu_info24:chip_id 0 -cpu_info:24:cpu_info24:class misc -cpu_info:24:cpu_info24:clock_MHz 1649 -cpu_info:24:cpu_info24:core_id 1047 -cpu_info:24:cpu_info24:cpu_fru hc:///component= -cpu_info:24:cpu_info24:cpu_type sparcv9 -cpu_info:24:cpu_info24:crtime 185.94063135 -cpu_info:24:cpu_info24:current_clock_Hz 1648762500 -cpu_info:24:cpu_info24:device_ID 24 -cpu_info:24:cpu_info24:fpu_type sparcv9 -cpu_info:24:cpu_info24:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:24:cpu_info24:pg_id 11 -cpu_info:24:cpu_info24:snaptime 9305222.48737505 -cpu_info:24:cpu_info24:state on-line -cpu_info:24:cpu_info24:state_begin 1430258903 -cpu_info:24:cpu_info24:supported_frequencies_Hz 1648762500 -cpu_info:25:cpu_info25:brand SPARC-T3 -cpu_info:25:cpu_info25:chip_id 0 -cpu_info:25:cpu_info25:class misc -cpu_info:25:cpu_info25:clock_MHz 1649 -cpu_info:25:cpu_info25:core_id 1047 -cpu_info:25:cpu_info25:cpu_fru hc:///component= -cpu_info:25:cpu_info25:cpu_type sparcv9 -cpu_info:25:cpu_info25:crtime 185.942830876 -cpu_info:25:cpu_info25:current_clock_Hz 1648762500 -cpu_info:25:cpu_info25:device_ID 25 -cpu_info:25:cpu_info25:fpu_type sparcv9 -cpu_info:25:cpu_info25:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:25:cpu_info25:pg_id 11 -cpu_info:25:cpu_info25:snaptime 9305222.48852791 -cpu_info:25:cpu_info25:state on-line -cpu_info:25:cpu_info25:state_begin 1430258903 -cpu_info:25:cpu_info25:supported_frequencies_Hz 1648762500 -cpu_info:26:cpu_info26:brand SPARC-T3 -cpu_info:26:cpu_info26:chip_id 0 -cpu_info:26:cpu_info26:class misc -cpu_info:26:cpu_info26:clock_MHz 1649 -cpu_info:26:cpu_info26:core_id 1047 -cpu_info:26:cpu_info26:cpu_fru hc:///component= -cpu_info:26:cpu_info26:cpu_type sparcv9 -cpu_info:26:cpu_info26:crtime 185.945192502 -cpu_info:26:cpu_info26:current_clock_Hz 1648762500 -cpu_info:26:cpu_info26:device_ID 26 -cpu_info:26:cpu_info26:fpu_type sparcv9 -cpu_info:26:cpu_info26:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:26:cpu_info26:pg_id 11 -cpu_info:26:cpu_info26:snaptime 9305222.48970872 -cpu_info:26:cpu_info26:state on-line -cpu_info:26:cpu_info26:state_begin 1430258903 -cpu_info:26:cpu_info26:supported_frequencies_Hz 1648762500 -cpu_info:27:cpu_info27:brand SPARC-T3 -cpu_info:27:cpu_info27:chip_id 0 -cpu_info:27:cpu_info27:class misc -cpu_info:27:cpu_info27:clock_MHz 1649 -cpu_info:27:cpu_info27:core_id 1047 -cpu_info:27:cpu_info27:cpu_fru hc:///component= -cpu_info:27:cpu_info27:cpu_type sparcv9 -cpu_info:27:cpu_info27:crtime 185.947281633 -cpu_info:27:cpu_info27:current_clock_Hz 1648762500 -cpu_info:27:cpu_info27:device_ID 27 -cpu_info:27:cpu_info27:fpu_type sparcv9 -cpu_info:27:cpu_info27:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:27:cpu_info27:pg_id 11 -cpu_info:27:cpu_info27:snaptime 9305222.49087556 -cpu_info:27:cpu_info27:state on-line -cpu_info:27:cpu_info27:state_begin 1430258903 -cpu_info:27:cpu_info27:supported_frequencies_Hz 1648762500 -cpu_info:28:cpu_info28:brand SPARC-T3 -cpu_info:28:cpu_info28:chip_id 0 -cpu_info:28:cpu_info28:class misc -cpu_info:28:cpu_info28:clock_MHz 1649 -cpu_info:28:cpu_info28:core_id 1047 -cpu_info:28:cpu_info28:cpu_fru hc:///component= -cpu_info:28:cpu_info28:cpu_type sparcv9 -cpu_info:28:cpu_info28:crtime 185.949373558 -cpu_info:28:cpu_info28:current_clock_Hz 1648762500 -cpu_info:28:cpu_info28:device_ID 28 -cpu_info:28:cpu_info28:fpu_type sparcv9 -cpu_info:28:cpu_info28:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:28:cpu_info28:pg_id 13 -cpu_info:28:cpu_info28:snaptime 9305222.49203402 -cpu_info:28:cpu_info28:state on-line -cpu_info:28:cpu_info28:state_begin 1430258903 -cpu_info:28:cpu_info28:supported_frequencies_Hz 1648762500 -cpu_info:29:cpu_info29:brand SPARC-T3 -cpu_info:29:cpu_info29:chip_id 0 -cpu_info:29:cpu_info29:class misc -cpu_info:29:cpu_info29:clock_MHz 1649 -cpu_info:29:cpu_info29:core_id 1047 -cpu_info:29:cpu_info29:cpu_fru hc:///component= -cpu_info:29:cpu_info29:cpu_type sparcv9 -cpu_info:29:cpu_info29:crtime 185.951693261 -cpu_info:29:cpu_info29:current_clock_Hz 1648762500 -cpu_info:29:cpu_info29:device_ID 29 -cpu_info:29:cpu_info29:fpu_type sparcv9 -cpu_info:29:cpu_info29:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:29:cpu_info29:pg_id 13 -cpu_info:29:cpu_info29:snaptime 9305222.49319247 -cpu_info:29:cpu_info29:state on-line -cpu_info:29:cpu_info29:state_begin 1430258903 -cpu_info:29:cpu_info29:supported_frequencies_Hz 1648762500 -cpu_info:30:cpu_info30:brand SPARC-T3 -cpu_info:30:cpu_info30:chip_id 0 -cpu_info:30:cpu_info30:class misc -cpu_info:30:cpu_info30:clock_MHz 1649 -cpu_info:30:cpu_info30:core_id 1047 -cpu_info:30:cpu_info30:cpu_fru hc:///component= -cpu_info:30:cpu_info30:cpu_type sparcv9 -cpu_info:30:cpu_info30:crtime 185.956749097 -cpu_info:30:cpu_info30:current_clock_Hz 1648762500 -cpu_info:30:cpu_info30:device_ID 30 -cpu_info:30:cpu_info30:fpu_type sparcv9 -cpu_info:30:cpu_info30:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:30:cpu_info30:pg_id 13 -cpu_info:30:cpu_info30:snaptime 9305222.49447669 -cpu_info:30:cpu_info30:state on-line -cpu_info:30:cpu_info30:state_begin 1430258903 -cpu_info:30:cpu_info30:supported_frequencies_Hz 1648762500 -cpu_info:31:cpu_info31:brand SPARC-T3 -cpu_info:31:cpu_info31:chip_id 0 -cpu_info:31:cpu_info31:class misc -cpu_info:31:cpu_info31:clock_MHz 1649 -cpu_info:31:cpu_info31:core_id 1047 -cpu_info:31:cpu_info31:cpu_fru hc:///component= -cpu_info:31:cpu_info31:cpu_type sparcv9 -cpu_info:31:cpu_info31:crtime 185.958863381 -cpu_info:31:cpu_info31:current_clock_Hz 1648762500 -cpu_info:31:cpu_info31:device_ID 31 -cpu_info:31:cpu_info31:fpu_type sparcv9 -cpu_info:31:cpu_info31:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:31:cpu_info31:pg_id 13 -cpu_info:31:cpu_info31:snaptime 9305222.49563934 -cpu_info:31:cpu_info31:state on-line -cpu_info:31:cpu_info31:state_begin 1430258903 -cpu_info:31:cpu_info31:supported_frequencies_Hz 1648762500 -cpu_info:32:cpu_info32:brand SPARC-T3 -cpu_info:32:cpu_info32:chip_id 0 -cpu_info:32:cpu_info32:class misc -cpu_info:32:cpu_info32:clock_MHz 1649 -cpu_info:32:cpu_info32:core_id 1054 -cpu_info:32:cpu_info32:cpu_fru hc:///component= -cpu_info:32:cpu_info32:cpu_type sparcv9 -cpu_info:32:cpu_info32:crtime 185.961092252 -cpu_info:32:cpu_info32:current_clock_Hz 1648762500 -cpu_info:32:cpu_info32:device_ID 32 -cpu_info:32:cpu_info32:fpu_type sparcv9 -cpu_info:32:cpu_info32:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:32:cpu_info32:pg_id 14 -cpu_info:32:cpu_info32:snaptime 9305222.4967978 -cpu_info:32:cpu_info32:state on-line -cpu_info:32:cpu_info32:state_begin 1430258903 -cpu_info:32:cpu_info32:supported_frequencies_Hz 1648762500 -cpu_info:33:cpu_info33:brand SPARC-T3 -cpu_info:33:cpu_info33:chip_id 0 -cpu_info:33:cpu_info33:class misc -cpu_info:33:cpu_info33:clock_MHz 1649 -cpu_info:33:cpu_info33:core_id 1054 -cpu_info:33:cpu_info33:cpu_fru hc:///component= -cpu_info:33:cpu_info33:cpu_type sparcv9 -cpu_info:33:cpu_info33:crtime 185.96330156 -cpu_info:33:cpu_info33:current_clock_Hz 1648762500 -cpu_info:33:cpu_info33:device_ID 33 -cpu_info:33:cpu_info33:fpu_type sparcv9 -cpu_info:33:cpu_info33:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:33:cpu_info33:pg_id 14 -cpu_info:33:cpu_info33:snaptime 9305222.49796044 -cpu_info:33:cpu_info33:state on-line -cpu_info:33:cpu_info33:state_begin 1430258903 -cpu_info:33:cpu_info33:supported_frequencies_Hz 1648762500 -cpu_info:34:cpu_info34:brand SPARC-T3 -cpu_info:34:cpu_info34:chip_id 0 -cpu_info:34:cpu_info34:class misc -cpu_info:34:cpu_info34:clock_MHz 1649 -cpu_info:34:cpu_info34:core_id 1054 -cpu_info:34:cpu_info34:cpu_fru hc:///component= -cpu_info:34:cpu_info34:cpu_type sparcv9 -cpu_info:34:cpu_info34:crtime 185.965719082 -cpu_info:34:cpu_info34:current_clock_Hz 1648762500 -cpu_info:34:cpu_info34:device_ID 34 -cpu_info:34:cpu_info34:fpu_type sparcv9 -cpu_info:34:cpu_info34:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:34:cpu_info34:pg_id 14 -cpu_info:34:cpu_info34:snaptime 9305222.49915942 -cpu_info:34:cpu_info34:state on-line -cpu_info:34:cpu_info34:state_begin 1430258903 -cpu_info:34:cpu_info34:supported_frequencies_Hz 1648762500 -cpu_info:35:cpu_info35:brand SPARC-T3 -cpu_info:35:cpu_info35:chip_id 0 -cpu_info:35:cpu_info35:class misc -cpu_info:35:cpu_info35:clock_MHz 1649 -cpu_info:35:cpu_info35:core_id 1054 -cpu_info:35:cpu_info35:cpu_fru hc:///component= -cpu_info:35:cpu_info35:cpu_type sparcv9 -cpu_info:35:cpu_info35:crtime 185.967967518 -cpu_info:35:cpu_info35:current_clock_Hz 1648762500 -cpu_info:35:cpu_info35:device_ID 35 -cpu_info:35:cpu_info35:fpu_type sparcv9 -cpu_info:35:cpu_info35:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:35:cpu_info35:pg_id 14 -cpu_info:35:cpu_info35:snaptime 9305222.50033744 -cpu_info:35:cpu_info35:state on-line -cpu_info:35:cpu_info35:state_begin 1430258903 -cpu_info:35:cpu_info35:supported_frequencies_Hz 1648762500 -cpu_info:36:cpu_info36:brand SPARC-T3 -cpu_info:36:cpu_info36:chip_id 0 -cpu_info:36:cpu_info36:class misc -cpu_info:36:cpu_info36:clock_MHz 1649 -cpu_info:36:cpu_info36:core_id 1054 -cpu_info:36:cpu_info36:cpu_fru hc:///component= -cpu_info:36:cpu_info36:cpu_type sparcv9 -cpu_info:36:cpu_info36:crtime 185.970185211 -cpu_info:36:cpu_info36:current_clock_Hz 1648762500 -cpu_info:36:cpu_info36:device_ID 36 -cpu_info:36:cpu_info36:fpu_type sparcv9 -cpu_info:36:cpu_info36:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:36:cpu_info36:pg_id 16 -cpu_info:36:cpu_info36:snaptime 9305222.5014931 -cpu_info:36:cpu_info36:state on-line -cpu_info:36:cpu_info36:state_begin 1430258903 -cpu_info:36:cpu_info36:supported_frequencies_Hz 1648762500 -cpu_info:37:cpu_info37:brand SPARC-T3 -cpu_info:37:cpu_info37:chip_id 0 -cpu_info:37:cpu_info37:class misc -cpu_info:37:cpu_info37:clock_MHz 1649 -cpu_info:37:cpu_info37:core_id 1054 -cpu_info:37:cpu_info37:cpu_fru hc:///component= -cpu_info:37:cpu_info37:cpu_type sparcv9 -cpu_info:37:cpu_info37:crtime 185.972471376 -cpu_info:37:cpu_info37:current_clock_Hz 1648762500 -cpu_info:37:cpu_info37:device_ID 37 -cpu_info:37:cpu_info37:fpu_type sparcv9 -cpu_info:37:cpu_info37:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:37:cpu_info37:pg_id 16 -cpu_info:37:cpu_info37:snaptime 9305222.50265574 -cpu_info:37:cpu_info37:state on-line -cpu_info:37:cpu_info37:state_begin 1430258903 -cpu_info:37:cpu_info37:supported_frequencies_Hz 1648762500 -cpu_info:38:cpu_info38:brand SPARC-T3 -cpu_info:38:cpu_info38:chip_id 0 -cpu_info:38:cpu_info38:class misc -cpu_info:38:cpu_info38:clock_MHz 1649 -cpu_info:38:cpu_info38:core_id 1054 -cpu_info:38:cpu_info38:cpu_fru hc:///component= -cpu_info:38:cpu_info38:cpu_type sparcv9 -cpu_info:38:cpu_info38:crtime 185.974700248 -cpu_info:38:cpu_info38:current_clock_Hz 1648762500 -cpu_info:38:cpu_info38:device_ID 38 -cpu_info:38:cpu_info38:fpu_type sparcv9 -cpu_info:38:cpu_info38:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:38:cpu_info38:pg_id 16 -cpu_info:38:cpu_info38:snaptime 9305222.50383516 -cpu_info:38:cpu_info38:state on-line -cpu_info:38:cpu_info38:state_begin 1430258903 -cpu_info:38:cpu_info38:supported_frequencies_Hz 1648762500 -cpu_info:39:cpu_info39:brand SPARC-T3 -cpu_info:39:cpu_info39:chip_id 0 -cpu_info:39:cpu_info39:class misc -cpu_info:39:cpu_info39:clock_MHz 1649 -cpu_info:39:cpu_info39:core_id 1054 -cpu_info:39:cpu_info39:cpu_fru hc:///component= -cpu_info:39:cpu_info39:cpu_type sparcv9 -cpu_info:39:cpu_info39:crtime 185.976951478 -cpu_info:39:cpu_info39:current_clock_Hz 1648762500 -cpu_info:39:cpu_info39:device_ID 39 -cpu_info:39:cpu_info39:fpu_type sparcv9 -cpu_info:39:cpu_info39:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:39:cpu_info39:pg_id 16 -cpu_info:39:cpu_info39:snaptime 9305222.50499082 -cpu_info:39:cpu_info39:state on-line -cpu_info:39:cpu_info39:state_begin 1430258903 -cpu_info:39:cpu_info39:supported_frequencies_Hz 1648762500 -cpu_info:40:cpu_info40:brand SPARC-T3 -cpu_info:40:cpu_info40:chip_id 0 -cpu_info:40:cpu_info40:class misc -cpu_info:40:cpu_info40:clock_MHz 1649 -cpu_info:40:cpu_info40:core_id 1061 -cpu_info:40:cpu_info40:cpu_fru hc:///component= -cpu_info:40:cpu_info40:cpu_type sparcv9 -cpu_info:40:cpu_info40:crtime 185.979307514 -cpu_info:40:cpu_info40:current_clock_Hz 1648762500 -cpu_info:40:cpu_info40:device_ID 40 -cpu_info:40:cpu_info40:fpu_type sparcv9 -cpu_info:40:cpu_info40:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:40:cpu_info40:pg_id 17 -cpu_info:40:cpu_info40:snaptime 9305222.50614788 -cpu_info:40:cpu_info40:state on-line -cpu_info:40:cpu_info40:state_begin 1430258903 -cpu_info:40:cpu_info40:supported_frequencies_Hz 1648762500 -cpu_info:41:cpu_info41:brand SPARC-T3 -cpu_info:41:cpu_info41:chip_id 0 -cpu_info:41:cpu_info41:class misc -cpu_info:41:cpu_info41:clock_MHz 1649 -cpu_info:41:cpu_info41:core_id 1061 -cpu_info:41:cpu_info41:cpu_fru hc:///component= -cpu_info:41:cpu_info41:cpu_type sparcv9 -cpu_info:41:cpu_info41:crtime 185.981589487 -cpu_info:41:cpu_info41:current_clock_Hz 1648762500 -cpu_info:41:cpu_info41:device_ID 41 -cpu_info:41:cpu_info41:fpu_type sparcv9 -cpu_info:41:cpu_info41:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:41:cpu_info41:pg_id 17 -cpu_info:41:cpu_info41:snaptime 9305222.50731052 -cpu_info:41:cpu_info41:state on-line -cpu_info:41:cpu_info41:state_begin 1430258903 -cpu_info:41:cpu_info41:supported_frequencies_Hz 1648762500 -cpu_info:42:cpu_info42:brand SPARC-T3 -cpu_info:42:cpu_info42:chip_id 0 -cpu_info:42:cpu_info42:class misc -cpu_info:42:cpu_info42:clock_MHz 1649 -cpu_info:42:cpu_info42:core_id 1061 -cpu_info:42:cpu_info42:cpu_fru hc:///component= -cpu_info:42:cpu_info42:cpu_type sparcv9 -cpu_info:42:cpu_info42:crtime 185.983932946 -cpu_info:42:cpu_info42:current_clock_Hz 1648762500 -cpu_info:42:cpu_info42:device_ID 42 -cpu_info:42:cpu_info42:fpu_type sparcv9 -cpu_info:42:cpu_info42:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:42:cpu_info42:pg_id 17 -cpu_info:42:cpu_info42:snaptime 9305222.50847177 -cpu_info:42:cpu_info42:state on-line -cpu_info:42:cpu_info42:state_begin 1430258903 -cpu_info:42:cpu_info42:supported_frequencies_Hz 1648762500 -cpu_info:43:cpu_info43:brand SPARC-T3 -cpu_info:43:cpu_info43:chip_id 0 -cpu_info:43:cpu_info43:class misc -cpu_info:43:cpu_info43:clock_MHz 1649 -cpu_info:43:cpu_info43:core_id 1061 -cpu_info:43:cpu_info43:cpu_fru hc:///component= -cpu_info:43:cpu_info43:cpu_type sparcv9 -cpu_info:43:cpu_info43:crtime 185.986174395 -cpu_info:43:cpu_info43:current_clock_Hz 1648762500 -cpu_info:43:cpu_info43:device_ID 43 -cpu_info:43:cpu_info43:fpu_type sparcv9 -cpu_info:43:cpu_info43:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:43:cpu_info43:pg_id 17 -cpu_info:43:cpu_info43:snaptime 9305222.50965119 -cpu_info:43:cpu_info43:state on-line -cpu_info:43:cpu_info43:state_begin 1430258903 -cpu_info:43:cpu_info43:supported_frequencies_Hz 1648762500 -cpu_info:44:cpu_info44:brand SPARC-T3 -cpu_info:44:cpu_info44:chip_id 0 -cpu_info:44:cpu_info44:class misc -cpu_info:44:cpu_info44:clock_MHz 1649 -cpu_info:44:cpu_info44:core_id 1061 -cpu_info:44:cpu_info44:cpu_fru hc:///component= -cpu_info:44:cpu_info44:cpu_type sparcv9 -cpu_info:44:cpu_info44:crtime 185.988461958 -cpu_info:44:cpu_info44:current_clock_Hz 1648762500 -cpu_info:44:cpu_info44:device_ID 44 -cpu_info:44:cpu_info44:fpu_type sparcv9 -cpu_info:44:cpu_info44:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:44:cpu_info44:pg_id 19 -cpu_info:44:cpu_info44:snaptime 9305222.51080685 -cpu_info:44:cpu_info44:state on-line -cpu_info:44:cpu_info44:state_begin 1430258903 -cpu_info:44:cpu_info44:supported_frequencies_Hz 1648762500 -cpu_info:45:cpu_info45:brand SPARC-T3 -cpu_info:45:cpu_info45:chip_id 0 -cpu_info:45:cpu_info45:class misc -cpu_info:45:cpu_info45:clock_MHz 1649 -cpu_info:45:cpu_info45:core_id 1061 -cpu_info:45:cpu_info45:cpu_fru hc:///component= -cpu_info:45:cpu_info45:cpu_type sparcv9 -cpu_info:45:cpu_info45:crtime 185.990886467 -cpu_info:45:cpu_info45:current_clock_Hz 1648762500 -cpu_info:45:cpu_info45:device_ID 45 -cpu_info:45:cpu_info45:fpu_type sparcv9 -cpu_info:45:cpu_info45:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:45:cpu_info45:pg_id 19 -cpu_info:45:cpu_info45:snaptime 9305222.5119667 -cpu_info:45:cpu_info45:state on-line -cpu_info:45:cpu_info45:state_begin 1430258903 -cpu_info:45:cpu_info45:supported_frequencies_Hz 1648762500 -cpu_info:46:cpu_info46:brand SPARC-T3 -cpu_info:46:cpu_info46:chip_id 0 -cpu_info:46:cpu_info46:class misc -cpu_info:46:cpu_info46:clock_MHz 1649 -cpu_info:46:cpu_info46:core_id 1061 -cpu_info:46:cpu_info46:cpu_fru hc:///component= -cpu_info:46:cpu_info46:cpu_type sparcv9 -cpu_info:46:cpu_info46:crtime 185.993407398 -cpu_info:46:cpu_info46:current_clock_Hz 1648762500 -cpu_info:46:cpu_info46:device_ID 46 -cpu_info:46:cpu_info46:fpu_type sparcv9 -cpu_info:46:cpu_info46:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:46:cpu_info46:pg_id 19 -cpu_info:46:cpu_info46:snaptime 9305222.51316568 -cpu_info:46:cpu_info46:state on-line -cpu_info:46:cpu_info46:state_begin 1430258903 -cpu_info:46:cpu_info46:supported_frequencies_Hz 1648762500 -cpu_info:47:cpu_info47:brand SPARC-T3 -cpu_info:47:cpu_info47:chip_id 0 -cpu_info:47:cpu_info47:class misc -cpu_info:47:cpu_info47:clock_MHz 1649 -cpu_info:47:cpu_info47:core_id 1061 -cpu_info:47:cpu_info47:cpu_fru hc:///component= -cpu_info:47:cpu_info47:cpu_type sparcv9 -cpu_info:47:cpu_info47:crtime 185.995799767 -cpu_info:47:cpu_info47:current_clock_Hz 1648762500 -cpu_info:47:cpu_info47:device_ID 47 -cpu_info:47:cpu_info47:fpu_type sparcv9 -cpu_info:47:cpu_info47:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:47:cpu_info47:pg_id 19 -cpu_info:47:cpu_info47:snaptime 9305222.51431994 -cpu_info:47:cpu_info47:state on-line -cpu_info:47:cpu_info47:state_begin 1430258903 -cpu_info:47:cpu_info47:supported_frequencies_Hz 1648762500 -cpu_info:48:cpu_info48:brand SPARC-T3 -cpu_info:48:cpu_info48:chip_id 0 -cpu_info:48:cpu_info48:class misc -cpu_info:48:cpu_info48:clock_MHz 1649 -cpu_info:48:cpu_info48:core_id 1068 -cpu_info:48:cpu_info48:cpu_fru hc:///component= -cpu_info:48:cpu_info48:cpu_type sparcv9 -cpu_info:48:cpu_info48:crtime 185.998159995 -cpu_info:48:cpu_info48:current_clock_Hz 1648762500 -cpu_info:48:cpu_info48:device_ID 48 -cpu_info:48:cpu_info48:fpu_type sparcv9 -cpu_info:48:cpu_info48:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:48:cpu_info48:pg_id 20 -cpu_info:48:cpu_info48:snaptime 9305222.51549656 -cpu_info:48:cpu_info48:state on-line -cpu_info:48:cpu_info48:state_begin 1430258903 -cpu_info:48:cpu_info48:supported_frequencies_Hz 1648762500 -cpu_info:49:cpu_info49:brand SPARC-T3 -cpu_info:49:cpu_info49:chip_id 0 -cpu_info:49:cpu_info49:class misc -cpu_info:49:cpu_info49:clock_MHz 1649 -cpu_info:49:cpu_info49:core_id 1068 -cpu_info:49:cpu_info49:cpu_fru hc:///component= -cpu_info:49:cpu_info49:cpu_type sparcv9 -cpu_info:49:cpu_info49:crtime 186.000578915 -cpu_info:49:cpu_info49:current_clock_Hz 1648762500 -cpu_info:49:cpu_info49:device_ID 49 -cpu_info:49:cpu_info49:fpu_type sparcv9 -cpu_info:49:cpu_info49:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:49:cpu_info49:pg_id 20 -cpu_info:49:cpu_info49:snaptime 9305222.51664943 -cpu_info:49:cpu_info49:state on-line -cpu_info:49:cpu_info49:state_begin 1430258903 -cpu_info:49:cpu_info49:supported_frequencies_Hz 1648762500 -cpu_info:50:cpu_info50:brand SPARC-T3 -cpu_info:50:cpu_info50:chip_id 0 -cpu_info:50:cpu_info50:class misc -cpu_info:50:cpu_info50:clock_MHz 1649 -cpu_info:50:cpu_info50:core_id 1068 -cpu_info:50:cpu_info50:cpu_fru hc:///component= -cpu_info:50:cpu_info50:cpu_type sparcv9 -cpu_info:50:cpu_info50:crtime 186.002997835 -cpu_info:50:cpu_info50:current_clock_Hz 1648762500 -cpu_info:50:cpu_info50:device_ID 50 -cpu_info:50:cpu_info50:fpu_type sparcv9 -cpu_info:50:cpu_info50:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:50:cpu_info50:pg_id 20 -cpu_info:50:cpu_info50:snaptime 9305222.51780229 -cpu_info:50:cpu_info50:state on-line -cpu_info:50:cpu_info50:state_begin 1430258903 -cpu_info:50:cpu_info50:supported_frequencies_Hz 1648762500 -cpu_info:51:cpu_info51:brand SPARC-T3 -cpu_info:51:cpu_info51:chip_id 0 -cpu_info:51:cpu_info51:class misc -cpu_info:51:cpu_info51:clock_MHz 1649 -cpu_info:51:cpu_info51:core_id 1068 -cpu_info:51:cpu_info51:cpu_fru hc:///component= -cpu_info:51:cpu_info51:cpu_type sparcv9 -cpu_info:51:cpu_info51:crtime 186.005381819 -cpu_info:51:cpu_info51:current_clock_Hz 1648762500 -cpu_info:51:cpu_info51:device_ID 51 -cpu_info:51:cpu_info51:fpu_type sparcv9 -cpu_info:51:cpu_info51:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:51:cpu_info51:pg_id 20 -cpu_info:51:cpu_info51:snaptime 9305222.51896214 -cpu_info:51:cpu_info51:state on-line -cpu_info:51:cpu_info51:state_begin 1430258903 -cpu_info:51:cpu_info51:supported_frequencies_Hz 1648762500 -cpu_info:52:cpu_info52:brand SPARC-T3 -cpu_info:52:cpu_info52:chip_id 0 -cpu_info:52:cpu_info52:class misc -cpu_info:52:cpu_info52:clock_MHz 1649 -cpu_info:52:cpu_info52:core_id 1068 -cpu_info:52:cpu_info52:cpu_fru hc:///component= -cpu_info:52:cpu_info52:cpu_type sparcv9 -cpu_info:52:cpu_info52:crtime 186.007718292 -cpu_info:52:cpu_info52:current_clock_Hz 1648762500 -cpu_info:52:cpu_info52:device_ID 52 -cpu_info:52:cpu_info52:fpu_type sparcv9 -cpu_info:52:cpu_info52:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:52:cpu_info52:pg_id 22 -cpu_info:52:cpu_info52:snaptime 9305222.5201206 -cpu_info:52:cpu_info52:state on-line -cpu_info:52:cpu_info52:state_begin 1430258903 -cpu_info:52:cpu_info52:supported_frequencies_Hz 1648762500 -cpu_info:53:cpu_info53:brand SPARC-T3 -cpu_info:53:cpu_info53:chip_id 0 -cpu_info:53:cpu_info53:class misc -cpu_info:53:cpu_info53:clock_MHz 1649 -cpu_info:53:cpu_info53:core_id 1068 -cpu_info:53:cpu_info53:cpu_fru hc:///component= -cpu_info:53:cpu_info53:cpu_type sparcv9 -cpu_info:53:cpu_info53:crtime 186.010135814 -cpu_info:53:cpu_info53:current_clock_Hz 1648762500 -cpu_info:53:cpu_info53:device_ID 53 -cpu_info:53:cpu_info53:fpu_type sparcv9 -cpu_info:53:cpu_info53:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:53:cpu_info53:pg_id 22 -cpu_info:53:cpu_info53:snaptime 9305222.52128464 -cpu_info:53:cpu_info53:state on-line -cpu_info:53:cpu_info53:state_begin 1430258903 -cpu_info:53:cpu_info53:supported_frequencies_Hz 1648762500 -cpu_info:54:cpu_info54:brand SPARC-T3 -cpu_info:54:cpu_info54:chip_id 0 -cpu_info:54:cpu_info54:class misc -cpu_info:54:cpu_info54:clock_MHz 1649 -cpu_info:54:cpu_info54:core_id 1068 -cpu_info:54:cpu_info54:cpu_fru hc:///component= -cpu_info:54:cpu_info54:cpu_type sparcv9 -cpu_info:54:cpu_info54:crtime 186.012468094 -cpu_info:54:cpu_info54:current_clock_Hz 1648762500 -cpu_info:54:cpu_info54:device_ID 54 -cpu_info:54:cpu_info54:fpu_type sparcv9 -cpu_info:54:cpu_info54:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:54:cpu_info54:pg_id 22 -cpu_info:54:cpu_info54:snaptime 9305222.52246266 -cpu_info:54:cpu_info54:state on-line -cpu_info:54:cpu_info54:state_begin 1430258903 -cpu_info:54:cpu_info54:supported_frequencies_Hz 1648762500 -cpu_info:55:cpu_info55:brand SPARC-T3 -cpu_info:55:cpu_info55:chip_id 0 -cpu_info:55:cpu_info55:class misc -cpu_info:55:cpu_info55:clock_MHz 1649 -cpu_info:55:cpu_info55:core_id 1068 -cpu_info:55:cpu_info55:cpu_fru hc:///component= -cpu_info:55:cpu_info55:cpu_type sparcv9 -cpu_info:55:cpu_info55:crtime 186.015075664 -cpu_info:55:cpu_info55:current_clock_Hz 1648762500 -cpu_info:55:cpu_info55:device_ID 55 -cpu_info:55:cpu_info55:fpu_type sparcv9 -cpu_info:55:cpu_info55:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:55:cpu_info55:pg_id 22 -cpu_info:55:cpu_info55:snaptime 9305222.52361692 -cpu_info:55:cpu_info55:state on-line -cpu_info:55:cpu_info55:state_begin 1430258903 -cpu_info:55:cpu_info55:supported_frequencies_Hz 1648762500 -cpu_info:56:cpu_info56:brand SPARC-T3 -cpu_info:56:cpu_info56:chip_id 0 -cpu_info:56:cpu_info56:class misc -cpu_info:56:cpu_info56:clock_MHz 1649 -cpu_info:56:cpu_info56:core_id 1075 -cpu_info:56:cpu_info56:cpu_fru hc:///component= -cpu_info:56:cpu_info56:cpu_type sparcv9 -cpu_info:56:cpu_info56:crtime 186.01747502 -cpu_info:56:cpu_info56:current_clock_Hz 1648762500 -cpu_info:56:cpu_info56:device_ID 56 -cpu_info:56:cpu_info56:fpu_type sparcv9 -cpu_info:56:cpu_info56:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:56:cpu_info56:pg_id 23 -cpu_info:56:cpu_info56:snaptime 9305222.52477957 -cpu_info:56:cpu_info56:state on-line -cpu_info:56:cpu_info56:state_begin 1430258903 -cpu_info:56:cpu_info56:supported_frequencies_Hz 1648762500 -cpu_info:57:cpu_info57:brand SPARC-T3 -cpu_info:57:cpu_info57:chip_id 0 -cpu_info:57:cpu_info57:class misc -cpu_info:57:cpu_info57:clock_MHz 1649 -cpu_info:57:cpu_info57:core_id 1075 -cpu_info:57:cpu_info57:cpu_fru hc:///component= -cpu_info:57:cpu_info57:cpu_type sparcv9 -cpu_info:57:cpu_info57:crtime 186.019972195 -cpu_info:57:cpu_info57:current_clock_Hz 1648762500 -cpu_info:57:cpu_info57:device_ID 57 -cpu_info:57:cpu_info57:fpu_type sparcv9 -cpu_info:57:cpu_info57:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:57:cpu_info57:pg_id 23 -cpu_info:57:cpu_info57:snaptime 9305222.52599671 -cpu_info:57:cpu_info57:state on-line -cpu_info:57:cpu_info57:state_begin 1430258903 -cpu_info:57:cpu_info57:supported_frequencies_Hz 1648762500 -cpu_info:58:cpu_info58:brand SPARC-T3 -cpu_info:58:cpu_info58:chip_id 0 -cpu_info:58:cpu_info58:class misc -cpu_info:58:cpu_info58:clock_MHz 1649 -cpu_info:58:cpu_info58:core_id 1075 -cpu_info:58:cpu_info58:cpu_fru hc:///component= -cpu_info:58:cpu_info58:cpu_type sparcv9 -cpu_info:58:cpu_info58:crtime 186.022502907 -cpu_info:58:cpu_info58:current_clock_Hz 1648762500 -cpu_info:58:cpu_info58:device_ID 58 -cpu_info:58:cpu_info58:fpu_type sparcv9 -cpu_info:58:cpu_info58:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:58:cpu_info58:pg_id 23 -cpu_info:58:cpu_info58:snaptime 9305222.52714958 -cpu_info:58:cpu_info58:state on-line -cpu_info:58:cpu_info58:state_begin 1430258903 -cpu_info:58:cpu_info58:supported_frequencies_Hz 1648762500 -cpu_info:59:cpu_info59:brand SPARC-T3 -cpu_info:59:cpu_info59:chip_id 0 -cpu_info:59:cpu_info59:class misc -cpu_info:59:cpu_info59:clock_MHz 1649 -cpu_info:59:cpu_info59:core_id 1075 -cpu_info:59:cpu_info59:cpu_fru hc:///component= -cpu_info:59:cpu_info59:cpu_type sparcv9 -cpu_info:59:cpu_info59:crtime 186.024843572 -cpu_info:59:cpu_info59:current_clock_Hz 1648762500 -cpu_info:59:cpu_info59:device_ID 59 -cpu_info:59:cpu_info59:fpu_type sparcv9 -cpu_info:59:cpu_info59:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:59:cpu_info59:pg_id 23 -cpu_info:59:cpu_info59:snaptime 9305222.52831362 -cpu_info:59:cpu_info59:state on-line -cpu_info:59:cpu_info59:state_begin 1430258903 -cpu_info:59:cpu_info59:supported_frequencies_Hz 1648762500 -cpu_info:60:cpu_info60:brand SPARC-T3 -cpu_info:60:cpu_info60:chip_id 0 -cpu_info:60:cpu_info60:class misc -cpu_info:60:cpu_info60:clock_MHz 1649 -cpu_info:60:cpu_info60:core_id 1075 -cpu_info:60:cpu_info60:cpu_fru hc:///component= -cpu_info:60:cpu_info60:cpu_type sparcv9 -cpu_info:60:cpu_info60:crtime 186.027181442 -cpu_info:60:cpu_info60:current_clock_Hz 1648762500 -cpu_info:60:cpu_info60:device_ID 60 -cpu_info:60:cpu_info60:fpu_type sparcv9 -cpu_info:60:cpu_info60:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:60:cpu_info60:pg_id 25 -cpu_info:60:cpu_info60:snaptime 9305222.52947487 -cpu_info:60:cpu_info60:state on-line -cpu_info:60:cpu_info60:state_begin 1430258903 -cpu_info:60:cpu_info60:supported_frequencies_Hz 1648762500 -cpu_info:61:cpu_info61:brand SPARC-T3 -cpu_info:61:cpu_info61:chip_id 0 -cpu_info:61:cpu_info61:class misc -cpu_info:61:cpu_info61:clock_MHz 1649 -cpu_info:61:cpu_info61:core_id 1075 -cpu_info:61:cpu_info61:cpu_fru hc:///component= -cpu_info:61:cpu_info61:cpu_type sparcv9 -cpu_info:61:cpu_info61:crtime 186.029607348 -cpu_info:61:cpu_info61:current_clock_Hz 1648762500 -cpu_info:61:cpu_info61:device_ID 61 -cpu_info:61:cpu_info61:fpu_type sparcv9 -cpu_info:61:cpu_info61:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:61:cpu_info61:pg_id 25 -cpu_info:61:cpu_info61:snaptime 9305222.53065289 -cpu_info:61:cpu_info61:state on-line -cpu_info:61:cpu_info61:state_begin 1430258903 -cpu_info:61:cpu_info61:supported_frequencies_Hz 1648762500 -cpu_info:62:cpu_info62:brand SPARC-T3 -cpu_info:62:cpu_info62:chip_id 0 -cpu_info:62:cpu_info62:class misc -cpu_info:62:cpu_info62:clock_MHz 1649 -cpu_info:62:cpu_info62:core_id 1075 -cpu_info:62:cpu_info62:cpu_fru hc:///component= -cpu_info:62:cpu_info62:cpu_type sparcv9 -cpu_info:62:cpu_info62:crtime 186.032326712 -cpu_info:62:cpu_info62:current_clock_Hz 1648762500 -cpu_info:62:cpu_info62:device_ID 62 -cpu_info:62:cpu_info62:fpu_type sparcv9 -cpu_info:62:cpu_info62:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:62:cpu_info62:pg_id 25 -cpu_info:62:cpu_info62:snaptime 9305222.53182811 -cpu_info:62:cpu_info62:state on-line -cpu_info:62:cpu_info62:state_begin 1430258903 -cpu_info:62:cpu_info62:supported_frequencies_Hz 1648762500 -cpu_info:63:cpu_info63:brand SPARC-T3 -cpu_info:63:cpu_info63:chip_id 0 -cpu_info:63:cpu_info63:class misc -cpu_info:63:cpu_info63:clock_MHz 1649 -cpu_info:63:cpu_info63:core_id 1075 -cpu_info:63:cpu_info63:cpu_fru hc:///component= -cpu_info:63:cpu_info63:cpu_type sparcv9 -cpu_info:63:cpu_info63:crtime 186.034794541 -cpu_info:63:cpu_info63:current_clock_Hz 1648762500 -cpu_info:63:cpu_info63:device_ID 63 -cpu_info:63:cpu_info63:fpu_type sparcv9 -cpu_info:63:cpu_info63:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:63:cpu_info63:pg_id 25 -cpu_info:63:cpu_info63:snaptime 9305222.53301871 -cpu_info:63:cpu_info63:state on-line -cpu_info:63:cpu_info63:state_begin 1430258903 -cpu_info:63:cpu_info63:supported_frequencies_Hz 1648762500 -cpu_info:64:cpu_info64:brand SPARC-T3 -cpu_info:64:cpu_info64:chip_id 0 -cpu_info:64:cpu_info64:class misc -cpu_info:64:cpu_info64:clock_MHz 1649 -cpu_info:64:cpu_info64:core_id 1082 -cpu_info:64:cpu_info64:cpu_fru hc:///component= -cpu_info:64:cpu_info64:cpu_type sparcv9 -cpu_info:64:cpu_info64:crtime 186.037253985 -cpu_info:64:cpu_info64:current_clock_Hz 1648762500 -cpu_info:64:cpu_info64:device_ID 64 -cpu_info:64:cpu_info64:fpu_type sparcv9 -cpu_info:64:cpu_info64:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:64:cpu_info64:pg_id 26 -cpu_info:64:cpu_info64:snaptime 9305222.53418415 -cpu_info:64:cpu_info64:state on-line -cpu_info:64:cpu_info64:state_begin 1430258903 -cpu_info:64:cpu_info64:supported_frequencies_Hz 1648762500 -cpu_info:65:cpu_info65:brand SPARC-T3 -cpu_info:65:cpu_info65:chip_id 0 -cpu_info:65:cpu_info65:class misc -cpu_info:65:cpu_info65:clock_MHz 1649 -cpu_info:65:cpu_info65:core_id 1082 -cpu_info:65:cpu_info65:cpu_fru hc:///component= -cpu_info:65:cpu_info65:cpu_type sparcv9 -cpu_info:65:cpu_info65:crtime 186.039909068 -cpu_info:65:cpu_info65:current_clock_Hz 1648762500 -cpu_info:65:cpu_info65:device_ID 65 -cpu_info:65:cpu_info65:fpu_type sparcv9 -cpu_info:65:cpu_info65:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:65:cpu_info65:pg_id 26 -cpu_info:65:cpu_info65:snaptime 9305222.53533841 -cpu_info:65:cpu_info65:state on-line -cpu_info:65:cpu_info65:state_begin 1430258903 -cpu_info:65:cpu_info65:supported_frequencies_Hz 1648762500 -cpu_info:66:cpu_info66:brand SPARC-T3 -cpu_info:66:cpu_info66:chip_id 0 -cpu_info:66:cpu_info66:class misc -cpu_info:66:cpu_info66:clock_MHz 1649 -cpu_info:66:cpu_info66:core_id 1082 -cpu_info:66:cpu_info66:cpu_fru hc:///component= -cpu_info:66:cpu_info66:cpu_type sparcv9 -cpu_info:66:cpu_info66:crtime 186.042333577 -cpu_info:66:cpu_info66:current_clock_Hz 1648762500 -cpu_info:66:cpu_info66:device_ID 66 -cpu_info:66:cpu_info66:fpu_type sparcv9 -cpu_info:66:cpu_info66:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:66:cpu_info66:pg_id 26 -cpu_info:66:cpu_info66:snaptime 9305222.53649127 -cpu_info:66:cpu_info66:state on-line -cpu_info:66:cpu_info66:state_begin 1430258903 -cpu_info:66:cpu_info66:supported_frequencies_Hz 1648762500 -cpu_info:67:cpu_info67:brand SPARC-T3 -cpu_info:67:cpu_info67:chip_id 0 -cpu_info:67:cpu_info67:class misc -cpu_info:67:cpu_info67:clock_MHz 1649 -cpu_info:67:cpu_info67:core_id 1082 -cpu_info:67:cpu_info67:cpu_fru hc:///component= -cpu_info:67:cpu_info67:cpu_type sparcv9 -cpu_info:67:cpu_info67:crtime 186.044874071 -cpu_info:67:cpu_info67:current_clock_Hz 1648762500 -cpu_info:67:cpu_info67:device_ID 67 -cpu_info:67:cpu_info67:fpu_type sparcv9 -cpu_info:67:cpu_info67:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:67:cpu_info67:pg_id 26 -cpu_info:67:cpu_info67:snaptime 9305222.53778388 -cpu_info:67:cpu_info67:state on-line -cpu_info:67:cpu_info67:state_begin 1430258903 -cpu_info:67:cpu_info67:supported_frequencies_Hz 1648762500 -cpu_info:68:cpu_info68:brand SPARC-T3 -cpu_info:68:cpu_info68:chip_id 0 -cpu_info:68:cpu_info68:class misc -cpu_info:68:cpu_info68:clock_MHz 1649 -cpu_info:68:cpu_info68:core_id 1082 -cpu_info:68:cpu_info68:cpu_fru hc:///component= -cpu_info:68:cpu_info68:cpu_type sparcv9 -cpu_info:68:cpu_info68:crtime 186.047410374 -cpu_info:68:cpu_info68:current_clock_Hz 1648762500 -cpu_info:68:cpu_info68:device_ID 68 -cpu_info:68:cpu_info68:fpu_type sparcv9 -cpu_info:68:cpu_info68:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:68:cpu_info68:pg_id 28 -cpu_info:68:cpu_info68:snaptime 9305222.53897727 -cpu_info:68:cpu_info68:state on-line -cpu_info:68:cpu_info68:state_begin 1430258903 -cpu_info:68:cpu_info68:supported_frequencies_Hz 1648762500 -cpu_info:69:cpu_info69:brand SPARC-T3 -cpu_info:69:cpu_info69:chip_id 0 -cpu_info:69:cpu_info69:class misc -cpu_info:69:cpu_info69:clock_MHz 1649 -cpu_info:69:cpu_info69:core_id 1082 -cpu_info:69:cpu_info69:cpu_fru hc:///component= -cpu_info:69:cpu_info69:cpu_type sparcv9 -cpu_info:69:cpu_info69:crtime 186.049833485 -cpu_info:69:cpu_info69:current_clock_Hz 1648762500 -cpu_info:69:cpu_info69:device_ID 69 -cpu_info:69:cpu_info69:fpu_type sparcv9 -cpu_info:69:cpu_info69:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:69:cpu_info69:pg_id 28 -cpu_info:69:cpu_info69:snaptime 9305222.54013852 -cpu_info:69:cpu_info69:state on-line -cpu_info:69:cpu_info69:state_begin 1430258903 -cpu_info:69:cpu_info69:supported_frequencies_Hz 1648762500 -cpu_info:70:cpu_info70:brand SPARC-T3 -cpu_info:70:cpu_info70:chip_id 0 -cpu_info:70:cpu_info70:class misc -cpu_info:70:cpu_info70:clock_MHz 1649 -cpu_info:70:cpu_info70:core_id 1082 -cpu_info:70:cpu_info70:cpu_fru hc:///component= -cpu_info:70:cpu_info70:cpu_type sparcv9 -cpu_info:70:cpu_info70:crtime 186.052309698 -cpu_info:70:cpu_info70:current_clock_Hz 1648762500 -cpu_info:70:cpu_info70:device_ID 70 -cpu_info:70:cpu_info70:fpu_type sparcv9 -cpu_info:70:cpu_info70:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:70:cpu_info70:pg_id 28 -cpu_info:70:cpu_info70:snaptime 9305222.54131234 -cpu_info:70:cpu_info70:state on-line -cpu_info:70:cpu_info70:state_begin 1430258903 -cpu_info:70:cpu_info70:supported_frequencies_Hz 1648762500 -cpu_info:71:cpu_info71:brand SPARC-T3 -cpu_info:71:cpu_info71:chip_id 0 -cpu_info:71:cpu_info71:class misc -cpu_info:71:cpu_info71:clock_MHz 1649 -cpu_info:71:cpu_info71:core_id 1082 -cpu_info:71:cpu_info71:cpu_fru hc:///component= -cpu_info:71:cpu_info71:cpu_type sparcv9 -cpu_info:71:cpu_info71:crtime 186.054795694 -cpu_info:71:cpu_info71:current_clock_Hz 1648762500 -cpu_info:71:cpu_info71:device_ID 71 -cpu_info:71:cpu_info71:fpu_type sparcv9 -cpu_info:71:cpu_info71:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:71:cpu_info71:pg_id 28 -cpu_info:71:cpu_info71:snaptime 9305222.54247779 -cpu_info:71:cpu_info71:state on-line -cpu_info:71:cpu_info71:state_begin 1430258903 -cpu_info:71:cpu_info71:supported_frequencies_Hz 1648762500 -cpu_info:72:cpu_info72:brand SPARC-T3 -cpu_info:72:cpu_info72:chip_id 0 -cpu_info:72:cpu_info72:class misc -cpu_info:72:cpu_info72:clock_MHz 1649 -cpu_info:72:cpu_info72:core_id 1089 -cpu_info:72:cpu_info72:cpu_fru hc:///component= -cpu_info:72:cpu_info72:cpu_type sparcv9 -cpu_info:72:cpu_info72:crtime 186.059253437 -cpu_info:72:cpu_info72:current_clock_Hz 1648762500 -cpu_info:72:cpu_info72:device_ID 72 -cpu_info:72:cpu_info72:fpu_type sparcv9 -cpu_info:72:cpu_info72:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:72:cpu_info72:pg_id 29 -cpu_info:72:cpu_info72:snaptime 9305222.54363624 -cpu_info:72:cpu_info72:state on-line -cpu_info:72:cpu_info72:state_begin 1430258903 -cpu_info:72:cpu_info72:supported_frequencies_Hz 1648762500 -cpu_info:73:cpu_info73:brand SPARC-T3 -cpu_info:73:cpu_info73:chip_id 0 -cpu_info:73:cpu_info73:class misc -cpu_info:73:cpu_info73:clock_MHz 1649 -cpu_info:73:cpu_info73:core_id 1089 -cpu_info:73:cpu_info73:cpu_fru hc:///component= -cpu_info:73:cpu_info73:cpu_type sparcv9 -cpu_info:73:cpu_info73:crtime 186.062956578 -cpu_info:73:cpu_info73:current_clock_Hz 1648762500 -cpu_info:73:cpu_info73:device_ID 73 -cpu_info:73:cpu_info73:fpu_type sparcv9 -cpu_info:73:cpu_info73:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:73:cpu_info73:pg_id 29 -cpu_info:73:cpu_info73:snaptime 9305222.54479609 -cpu_info:73:cpu_info73:state on-line -cpu_info:73:cpu_info73:state_begin 1430258903 -cpu_info:73:cpu_info73:supported_frequencies_Hz 1648762500 -cpu_info:74:cpu_info74:brand SPARC-T3 -cpu_info:74:cpu_info74:chip_id 0 -cpu_info:74:cpu_info74:class misc -cpu_info:74:cpu_info74:clock_MHz 1649 -cpu_info:74:cpu_info74:core_id 1089 -cpu_info:74:cpu_info74:cpu_fru hc:///component= -cpu_info:74:cpu_info74:cpu_type sparcv9 -cpu_info:74:cpu_info74:crtime 186.066589848 -cpu_info:74:cpu_info74:current_clock_Hz 1648762500 -cpu_info:74:cpu_info74:device_ID 74 -cpu_info:74:cpu_info74:fpu_type sparcv9 -cpu_info:74:cpu_info74:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:74:cpu_info74:pg_id 29 -cpu_info:74:cpu_info74:snaptime 9305222.54595315 -cpu_info:74:cpu_info74:state on-line -cpu_info:74:cpu_info74:state_begin 1430258903 -cpu_info:74:cpu_info74:supported_frequencies_Hz 1648762500 -cpu_info:75:cpu_info75:brand SPARC-T3 -cpu_info:75:cpu_info75:chip_id 0 -cpu_info:75:cpu_info75:class misc -cpu_info:75:cpu_info75:clock_MHz 1649 -cpu_info:75:cpu_info75:core_id 1089 -cpu_info:75:cpu_info75:cpu_fru hc:///component= -cpu_info:75:cpu_info75:cpu_type sparcv9 -cpu_info:75:cpu_info75:crtime 186.070164428 -cpu_info:75:cpu_info75:current_clock_Hz 1648762500 -cpu_info:75:cpu_info75:device_ID 75 -cpu_info:75:cpu_info75:fpu_type sparcv9 -cpu_info:75:cpu_info75:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:75:cpu_info75:pg_id 29 -cpu_info:75:cpu_info75:snaptime 9305222.54710601 -cpu_info:75:cpu_info75:state on-line -cpu_info:75:cpu_info75:state_begin 1430258903 -cpu_info:75:cpu_info75:supported_frequencies_Hz 1648762500 -cpu_info:76:cpu_info76:brand SPARC-T3 -cpu_info:76:cpu_info76:chip_id 0 -cpu_info:76:cpu_info76:class misc -cpu_info:76:cpu_info76:clock_MHz 1649 -cpu_info:76:cpu_info76:core_id 1089 -cpu_info:76:cpu_info76:cpu_fru hc:///component= -cpu_info:76:cpu_info76:cpu_type sparcv9 -cpu_info:76:cpu_info76:crtime 186.074604005 -cpu_info:76:cpu_info76:current_clock_Hz 1648762500 -cpu_info:76:cpu_info76:device_ID 76 -cpu_info:76:cpu_info76:fpu_type sparcv9 -cpu_info:76:cpu_info76:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:76:cpu_info76:pg_id 31 -cpu_info:76:cpu_info76:snaptime 9305222.54828683 -cpu_info:76:cpu_info76:state on-line -cpu_info:76:cpu_info76:state_begin 1430258903 -cpu_info:76:cpu_info76:supported_frequencies_Hz 1648762500 -cpu_info:77:cpu_info77:brand SPARC-T3 -cpu_info:77:cpu_info77:chip_id 0 -cpu_info:77:cpu_info77:class misc -cpu_info:77:cpu_info77:clock_MHz 1649 -cpu_info:77:cpu_info77:core_id 1089 -cpu_info:77:cpu_info77:cpu_fru hc:///component= -cpu_info:77:cpu_info77:cpu_type sparcv9 -cpu_info:77:cpu_info77:crtime 186.078156225 -cpu_info:77:cpu_info77:current_clock_Hz 1648762500 -cpu_info:77:cpu_info77:device_ID 77 -cpu_info:77:cpu_info77:fpu_type sparcv9 -cpu_info:77:cpu_info77:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:77:cpu_info77:pg_id 31 -cpu_info:77:cpu_info77:snaptime 9305222.54944528 -cpu_info:77:cpu_info77:state on-line -cpu_info:77:cpu_info77:state_begin 1430258903 -cpu_info:77:cpu_info77:supported_frequencies_Hz 1648762500 -cpu_info:78:cpu_info78:brand SPARC-T3 -cpu_info:78:cpu_info78:chip_id 0 -cpu_info:78:cpu_info78:class misc -cpu_info:78:cpu_info78:clock_MHz 1649 -cpu_info:78:cpu_info78:core_id 1089 -cpu_info:78:cpu_info78:cpu_fru hc:///component= -cpu_info:78:cpu_info78:cpu_type sparcv9 -cpu_info:78:cpu_info78:crtime 186.081686087 -cpu_info:78:cpu_info78:current_clock_Hz 1648762500 -cpu_info:78:cpu_info78:device_ID 78 -cpu_info:78:cpu_info78:fpu_type sparcv9 -cpu_info:78:cpu_info78:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:78:cpu_info78:pg_id 31 -cpu_info:78:cpu_info78:snaptime 9305222.55061491 -cpu_info:78:cpu_info78:state on-line -cpu_info:78:cpu_info78:state_begin 1430258903 -cpu_info:78:cpu_info78:supported_frequencies_Hz 1648762500 -cpu_info:79:cpu_info79:brand SPARC-T3 -cpu_info:79:cpu_info79:chip_id 0 -cpu_info:79:cpu_info79:class misc -cpu_info:79:cpu_info79:clock_MHz 1649 -cpu_info:79:cpu_info79:core_id 1089 -cpu_info:79:cpu_info79:cpu_fru hc:///component= -cpu_info:79:cpu_info79:cpu_type sparcv9 -cpu_info:79:cpu_info79:crtime 186.08618715 -cpu_info:79:cpu_info79:current_clock_Hz 1648762500 -cpu_info:79:cpu_info79:device_ID 79 -cpu_info:79:cpu_info79:fpu_type sparcv9 -cpu_info:79:cpu_info79:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:79:cpu_info79:pg_id 31 -cpu_info:79:cpu_info79:snaptime 9305222.55181809 -cpu_info:79:cpu_info79:state on-line -cpu_info:79:cpu_info79:state_begin 1430258903 -cpu_info:79:cpu_info79:supported_frequencies_Hz 1648762500 -cpu_info:80:cpu_info80:brand SPARC-T3 -cpu_info:80:cpu_info80:chip_id 0 -cpu_info:80:cpu_info80:class misc -cpu_info:80:cpu_info80:clock_MHz 1649 -cpu_info:80:cpu_info80:core_id 1096 -cpu_info:80:cpu_info80:cpu_fru hc:///component= -cpu_info:80:cpu_info80:cpu_type sparcv9 -cpu_info:80:cpu_info80:crtime 186.089729589 -cpu_info:80:cpu_info80:current_clock_Hz 1648762500 -cpu_info:80:cpu_info80:device_ID 80 -cpu_info:80:cpu_info80:fpu_type sparcv9 -cpu_info:80:cpu_info80:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:80:cpu_info80:pg_id 32 -cpu_info:80:cpu_info80:snaptime 9305222.5529989 -cpu_info:80:cpu_info80:state on-line -cpu_info:80:cpu_info80:state_begin 1430258903 -cpu_info:80:cpu_info80:supported_frequencies_Hz 1648762500 -cpu_info:81:cpu_info81:brand SPARC-T3 -cpu_info:81:cpu_info81:chip_id 0 -cpu_info:81:cpu_info81:class misc -cpu_info:81:cpu_info81:clock_MHz 1649 -cpu_info:81:cpu_info81:core_id 1096 -cpu_info:81:cpu_info81:cpu_fru hc:///component= -cpu_info:81:cpu_info81:cpu_type sparcv9 -cpu_info:81:cpu_info81:crtime 186.093385218 -cpu_info:81:cpu_info81:current_clock_Hz 1648762500 -cpu_info:81:cpu_info81:device_ID 81 -cpu_info:81:cpu_info81:fpu_type sparcv9 -cpu_info:81:cpu_info81:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:81:cpu_info81:pg_id 32 -cpu_info:81:cpu_info81:snaptime 9305222.55415735 -cpu_info:81:cpu_info81:state on-line -cpu_info:81:cpu_info81:state_begin 1430258903 -cpu_info:81:cpu_info81:supported_frequencies_Hz 1648762500 -cpu_info:82:cpu_info82:brand SPARC-T3 -cpu_info:82:cpu_info82:chip_id 0 -cpu_info:82:cpu_info82:class misc -cpu_info:82:cpu_info82:clock_MHz 1649 -cpu_info:82:cpu_info82:core_id 1096 -cpu_info:82:cpu_info82:cpu_fru hc:///component= -cpu_info:82:cpu_info82:cpu_type sparcv9 -cpu_info:82:cpu_info82:crtime 186.096857787 -cpu_info:82:cpu_info82:current_clock_Hz 1648762500 -cpu_info:82:cpu_info82:device_ID 82 -cpu_info:82:cpu_info82:fpu_type sparcv9 -cpu_info:82:cpu_info82:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:82:cpu_info82:pg_id 32 -cpu_info:82:cpu_info82:snaptime 9305222.55531301 -cpu_info:82:cpu_info82:state on-line -cpu_info:82:cpu_info82:state_begin 1430258903 -cpu_info:82:cpu_info82:supported_frequencies_Hz 1648762500 -cpu_info:83:cpu_info83:brand SPARC-T3 -cpu_info:83:cpu_info83:chip_id 0 -cpu_info:83:cpu_info83:class misc -cpu_info:83:cpu_info83:clock_MHz 1649 -cpu_info:83:cpu_info83:core_id 1096 -cpu_info:83:cpu_info83:cpu_fru hc:///component= -cpu_info:83:cpu_info83:cpu_type sparcv9 -cpu_info:83:cpu_info83:crtime 186.10044075 -cpu_info:83:cpu_info83:current_clock_Hz 1648762500 -cpu_info:83:cpu_info83:device_ID 83 -cpu_info:83:cpu_info83:fpu_type sparcv9 -cpu_info:83:cpu_info83:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:83:cpu_info83:pg_id 32 -cpu_info:83:cpu_info83:snaptime 9305222.55646867 -cpu_info:83:cpu_info83:state on-line -cpu_info:83:cpu_info83:state_begin 1430258903 -cpu_info:83:cpu_info83:supported_frequencies_Hz 1648762500 -cpu_info:84:cpu_info84:brand SPARC-T3 -cpu_info:84:cpu_info84:chip_id 0 -cpu_info:84:cpu_info84:class misc -cpu_info:84:cpu_info84:clock_MHz 1649 -cpu_info:84:cpu_info84:core_id 1096 -cpu_info:84:cpu_info84:cpu_fru hc:///component= -cpu_info:84:cpu_info84:cpu_type sparcv9 -cpu_info:84:cpu_info84:crtime 186.103991574 -cpu_info:84:cpu_info84:current_clock_Hz 1648762500 -cpu_info:84:cpu_info84:device_ID 84 -cpu_info:84:cpu_info84:fpu_type sparcv9 -cpu_info:84:cpu_info84:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:84:cpu_info84:pg_id 34 -cpu_info:84:cpu_info84:snaptime 9305222.55762992 -cpu_info:84:cpu_info84:state on-line -cpu_info:84:cpu_info84:state_begin 1430258903 -cpu_info:84:cpu_info84:supported_frequencies_Hz 1648762500 -cpu_info:85:cpu_info85:brand SPARC-T3 -cpu_info:85:cpu_info85:chip_id 0 -cpu_info:85:cpu_info85:class misc -cpu_info:85:cpu_info85:clock_MHz 1649 -cpu_info:85:cpu_info85:core_id 1096 -cpu_info:85:cpu_info85:cpu_fru hc:///component= -cpu_info:85:cpu_info85:cpu_type sparcv9 -cpu_info:85:cpu_info85:crtime 186.107497679 -cpu_info:85:cpu_info85:current_clock_Hz 1648762500 -cpu_info:85:cpu_info85:device_ID 85 -cpu_info:85:cpu_info85:fpu_type sparcv9 -cpu_info:85:cpu_info85:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:85:cpu_info85:pg_id 34 -cpu_info:85:cpu_info85:snaptime 9305222.55880235 -cpu_info:85:cpu_info85:state on-line -cpu_info:85:cpu_info85:state_begin 1430258903 -cpu_info:85:cpu_info85:supported_frequencies_Hz 1648762500 -cpu_info:86:cpu_info86:brand SPARC-T3 -cpu_info:86:cpu_info86:chip_id 0 -cpu_info:86:cpu_info86:class misc -cpu_info:86:cpu_info86:clock_MHz 1649 -cpu_info:86:cpu_info86:core_id 1096 -cpu_info:86:cpu_info86:cpu_fru hc:///component= -cpu_info:86:cpu_info86:cpu_type sparcv9 -cpu_info:86:cpu_info86:crtime 186.112561899 -cpu_info:86:cpu_info86:current_clock_Hz 1648762500 -cpu_info:86:cpu_info86:device_ID 86 -cpu_info:86:cpu_info86:fpu_type sparcv9 -cpu_info:86:cpu_info86:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:86:cpu_info86:pg_id 34 -cpu_info:86:cpu_info86:snaptime 9305222.55995382 -cpu_info:86:cpu_info86:state on-line -cpu_info:86:cpu_info86:state_begin 1430258903 -cpu_info:86:cpu_info86:supported_frequencies_Hz 1648762500 -cpu_info:87:cpu_info87:brand SPARC-T3 -cpu_info:87:cpu_info87:chip_id 0 -cpu_info:87:cpu_info87:class misc -cpu_info:87:cpu_info87:clock_MHz 1649 -cpu_info:87:cpu_info87:core_id 1096 -cpu_info:87:cpu_info87:cpu_fru hc:///component= -cpu_info:87:cpu_info87:cpu_type sparcv9 -cpu_info:87:cpu_info87:crtime 186.116544523 -cpu_info:87:cpu_info87:current_clock_Hz 1648762500 -cpu_info:87:cpu_info87:device_ID 87 -cpu_info:87:cpu_info87:fpu_type sparcv9 -cpu_info:87:cpu_info87:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:87:cpu_info87:pg_id 34 -cpu_info:87:cpu_info87:snaptime 9305222.56116537 -cpu_info:87:cpu_info87:state on-line -cpu_info:87:cpu_info87:state_begin 1430258903 -cpu_info:87:cpu_info87:supported_frequencies_Hz 1648762500 -cpu_info:88:cpu_info88:brand SPARC-T3 -cpu_info:88:cpu_info88:chip_id 0 -cpu_info:88:cpu_info88:class misc -cpu_info:88:cpu_info88:clock_MHz 1649 -cpu_info:88:cpu_info88:core_id 1103 -cpu_info:88:cpu_info88:cpu_fru hc:///component= -cpu_info:88:cpu_info88:cpu_type sparcv9 -cpu_info:88:cpu_info88:crtime 186.120367841 -cpu_info:88:cpu_info88:current_clock_Hz 1648762500 -cpu_info:88:cpu_info88:device_ID 88 -cpu_info:88:cpu_info88:fpu_type sparcv9 -cpu_info:88:cpu_info88:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:88:cpu_info88:pg_id 35 -cpu_info:88:cpu_info88:snaptime 9305222.56231964 -cpu_info:88:cpu_info88:state on-line -cpu_info:88:cpu_info88:state_begin 1430258903 -cpu_info:88:cpu_info88:supported_frequencies_Hz 1648762500 -cpu_info:89:cpu_info89:brand SPARC-T3 -cpu_info:89:cpu_info89:chip_id 0 -cpu_info:89:cpu_info89:class misc -cpu_info:89:cpu_info89:clock_MHz 1649 -cpu_info:89:cpu_info89:core_id 1103 -cpu_info:89:cpu_info89:cpu_fru hc:///component= -cpu_info:89:cpu_info89:cpu_type sparcv9 -cpu_info:89:cpu_info89:crtime 186.124051418 -cpu_info:89:cpu_info89:current_clock_Hz 1648762500 -cpu_info:89:cpu_info89:device_ID 89 -cpu_info:89:cpu_info89:fpu_type sparcv9 -cpu_info:89:cpu_info89:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:89:cpu_info89:pg_id 35 -cpu_info:89:cpu_info89:snaptime 9305222.56348368 -cpu_info:89:cpu_info89:state on-line -cpu_info:89:cpu_info89:state_begin 1430258903 -cpu_info:89:cpu_info89:supported_frequencies_Hz 1648762500 -cpu_info:90:cpu_info90:brand SPARC-T3 -cpu_info:90:cpu_info90:chip_id 0 -cpu_info:90:cpu_info90:class misc -cpu_info:90:cpu_info90:clock_MHz 1649 -cpu_info:90:cpu_info90:core_id 1103 -cpu_info:90:cpu_info90:cpu_fru hc:///component= -cpu_info:90:cpu_info90:cpu_type sparcv9 -cpu_info:90:cpu_info90:crtime 186.127595254 -cpu_info:90:cpu_info90:current_clock_Hz 1648762500 -cpu_info:90:cpu_info90:device_ID 90 -cpu_info:90:cpu_info90:fpu_type sparcv9 -cpu_info:90:cpu_info90:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:90:cpu_info90:pg_id 35 -cpu_info:90:cpu_info90:snaptime 9305222.56470222 -cpu_info:90:cpu_info90:state on-line -cpu_info:90:cpu_info90:state_begin 1430258903 -cpu_info:90:cpu_info90:supported_frequencies_Hz 1648762500 -cpu_info:91:cpu_info91:brand SPARC-T3 -cpu_info:91:cpu_info91:chip_id 0 -cpu_info:91:cpu_info91:class misc -cpu_info:91:cpu_info91:clock_MHz 1649 -cpu_info:91:cpu_info91:core_id 1103 -cpu_info:91:cpu_info91:cpu_fru hc:///component= -cpu_info:91:cpu_info91:cpu_type sparcv9 -cpu_info:91:cpu_info91:crtime 186.131172628 -cpu_info:91:cpu_info91:current_clock_Hz 1648762500 -cpu_info:91:cpu_info91:device_ID 91 -cpu_info:91:cpu_info91:fpu_type sparcv9 -cpu_info:91:cpu_info91:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:91:cpu_info91:pg_id 35 -cpu_info:91:cpu_info91:snaptime 9305222.56585928 -cpu_info:91:cpu_info91:state on-line -cpu_info:91:cpu_info91:state_begin 1430258903 -cpu_info:91:cpu_info91:supported_frequencies_Hz 1648762500 -cpu_info:92:cpu_info92:brand SPARC-T3 -cpu_info:92:cpu_info92:chip_id 0 -cpu_info:92:cpu_info92:class misc -cpu_info:92:cpu_info92:clock_MHz 1649 -cpu_info:92:cpu_info92:core_id 1103 -cpu_info:92:cpu_info92:cpu_fru hc:///component= -cpu_info:92:cpu_info92:cpu_type sparcv9 -cpu_info:92:cpu_info92:crtime 186.135181802 -cpu_info:92:cpu_info92:current_clock_Hz 1648762500 -cpu_info:92:cpu_info92:device_ID 92 -cpu_info:92:cpu_info92:fpu_type sparcv9 -cpu_info:92:cpu_info92:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:92:cpu_info92:pg_id 37 -cpu_info:92:cpu_info92:snaptime 9305222.56701773 -cpu_info:92:cpu_info92:state on-line -cpu_info:92:cpu_info92:state_begin 1430258903 -cpu_info:92:cpu_info92:supported_frequencies_Hz 1648762500 -cpu_info:93:cpu_info93:brand SPARC-T3 -cpu_info:93:cpu_info93:chip_id 0 -cpu_info:93:cpu_info93:class misc -cpu_info:93:cpu_info93:clock_MHz 1649 -cpu_info:93:cpu_info93:core_id 1103 -cpu_info:93:cpu_info93:cpu_fru hc:///component= -cpu_info:93:cpu_info93:cpu_type sparcv9 -cpu_info:93:cpu_info93:crtime 186.146467299 -cpu_info:93:cpu_info93:current_clock_Hz 1648762500 -cpu_info:93:cpu_info93:device_ID 93 -cpu_info:93:cpu_info93:fpu_type sparcv9 -cpu_info:93:cpu_info93:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:93:cpu_info93:pg_id 37 -cpu_info:93:cpu_info93:snaptime 9305222.568172 -cpu_info:93:cpu_info93:state on-line -cpu_info:93:cpu_info93:state_begin 1430258903 -cpu_info:93:cpu_info93:supported_frequencies_Hz 1648762500 -cpu_info:94:cpu_info94:brand SPARC-T3 -cpu_info:94:cpu_info94:chip_id 0 -cpu_info:94:cpu_info94:class misc -cpu_info:94:cpu_info94:clock_MHz 1649 -cpu_info:94:cpu_info94:core_id 1103 -cpu_info:94:cpu_info94:cpu_fru hc:///component= -cpu_info:94:cpu_info94:cpu_type sparcv9 -cpu_info:94:cpu_info94:crtime 186.150243105 -cpu_info:94:cpu_info94:current_clock_Hz 1648762500 -cpu_info:94:cpu_info94:device_ID 94 -cpu_info:94:cpu_info94:fpu_type sparcv9 -cpu_info:94:cpu_info94:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:94:cpu_info94:pg_id 37 -cpu_info:94:cpu_info94:snaptime 9305222.56933883 -cpu_info:94:cpu_info94:state on-line -cpu_info:94:cpu_info94:state_begin 1430258903 -cpu_info:94:cpu_info94:supported_frequencies_Hz 1648762500 -cpu_info:95:cpu_info95:brand SPARC-T3 -cpu_info:95:cpu_info95:chip_id 0 -cpu_info:95:cpu_info95:class misc -cpu_info:95:cpu_info95:clock_MHz 1649 -cpu_info:95:cpu_info95:core_id 1103 -cpu_info:95:cpu_info95:cpu_fru hc:///component= -cpu_info:95:cpu_info95:cpu_type sparcv9 -cpu_info:95:cpu_info95:crtime 186.154034283 -cpu_info:95:cpu_info95:current_clock_Hz 1648762500 -cpu_info:95:cpu_info95:device_ID 95 -cpu_info:95:cpu_info95:fpu_type sparcv9 -cpu_info:95:cpu_info95:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:95:cpu_info95:pg_id 37 -cpu_info:95:cpu_info95:snaptime 9305222.5705462 -cpu_info:95:cpu_info95:state on-line -cpu_info:95:cpu_info95:state_begin 1430258903 -cpu_info:95:cpu_info95:supported_frequencies_Hz 1648762500 -cpu_info:96:cpu_info96:brand SPARC-T3 -cpu_info:96:cpu_info96:chip_id 0 -cpu_info:96:cpu_info96:class misc -cpu_info:96:cpu_info96:clock_MHz 1649 -cpu_info:96:cpu_info96:core_id 1110 -cpu_info:96:cpu_info96:cpu_fru hc:///component= -cpu_info:96:cpu_info96:cpu_type sparcv9 -cpu_info:96:cpu_info96:crtime 186.157794718 -cpu_info:96:cpu_info96:current_clock_Hz 1648762500 -cpu_info:96:cpu_info96:device_ID 96 -cpu_info:96:cpu_info96:fpu_type sparcv9 -cpu_info:96:cpu_info96:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:96:cpu_info96:pg_id 38 -cpu_info:96:cpu_info96:snaptime 9305222.57170186 -cpu_info:96:cpu_info96:state on-line -cpu_info:96:cpu_info96:state_begin 1430258903 -cpu_info:96:cpu_info96:supported_frequencies_Hz 1648762500 -cpu_info:97:cpu_info97:brand SPARC-T3 -cpu_info:97:cpu_info97:chip_id 0 -cpu_info:97:cpu_info97:class misc -cpu_info:97:cpu_info97:clock_MHz 1649 -cpu_info:97:cpu_info97:core_id 1110 -cpu_info:97:cpu_info97:cpu_fru hc:///component= -cpu_info:97:cpu_info97:cpu_type sparcv9 -cpu_info:97:cpu_info97:crtime 186.162034466 -cpu_info:97:cpu_info97:current_clock_Hz 1648762500 -cpu_info:97:cpu_info97:device_ID 97 -cpu_info:97:cpu_info97:fpu_type sparcv9 -cpu_info:97:cpu_info97:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:97:cpu_info97:pg_id 38 -cpu_info:97:cpu_info97:snaptime 9305222.57285752 -cpu_info:97:cpu_info97:state on-line -cpu_info:97:cpu_info97:state_begin 1430258903 -cpu_info:97:cpu_info97:supported_frequencies_Hz 1648762500 -cpu_info:98:cpu_info98:brand SPARC-T3 -cpu_info:98:cpu_info98:chip_id 0 -cpu_info:98:cpu_info98:class misc -cpu_info:98:cpu_info98:clock_MHz 1649 -cpu_info:98:cpu_info98:core_id 1110 -cpu_info:98:cpu_info98:cpu_fru hc:///component= -cpu_info:98:cpu_info98:cpu_type sparcv9 -cpu_info:98:cpu_info98:crtime 186.165764158 -cpu_info:98:cpu_info98:current_clock_Hz 1648762500 -cpu_info:98:cpu_info98:device_ID 98 -cpu_info:98:cpu_info98:fpu_type sparcv9 -cpu_info:98:cpu_info98:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:98:cpu_info98:pg_id 38 -cpu_info:98:cpu_info98:snaptime 9305222.57402436 -cpu_info:98:cpu_info98:state on-line -cpu_info:98:cpu_info98:state_begin 1430258903 -cpu_info:98:cpu_info98:supported_frequencies_Hz 1648762500 -cpu_info:99:cpu_info99:brand SPARC-T3 -cpu_info:99:cpu_info99:chip_id 0 -cpu_info:99:cpu_info99:class misc -cpu_info:99:cpu_info99:clock_MHz 1649 -cpu_info:99:cpu_info99:core_id 1110 -cpu_info:99:cpu_info99:cpu_fru hc:///component= -cpu_info:99:cpu_info99:cpu_type sparcv9 -cpu_info:99:cpu_info99:crtime 186.169446338 -cpu_info:99:cpu_info99:current_clock_Hz 1648762500 -cpu_info:99:cpu_info99:device_ID 99 -cpu_info:99:cpu_info99:fpu_type sparcv9 -cpu_info:99:cpu_info99:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:99:cpu_info99:pg_id 38 -cpu_info:99:cpu_info99:snaptime 9305222.5751856 -cpu_info:99:cpu_info99:state on-line -cpu_info:99:cpu_info99:state_begin 1430258903 -cpu_info:99:cpu_info99:supported_frequencies_Hz 1648762500 -cpu_info:100:cpu_info100:brand SPARC-T3 -cpu_info:100:cpu_info100:chip_id 0 -cpu_info:100:cpu_info100:class misc -cpu_info:100:cpu_info100:clock_MHz 1649 -cpu_info:100:cpu_info100:core_id 1110 -cpu_info:100:cpu_info100:cpu_fru hc:///component= -cpu_info:100:cpu_info100:cpu_type sparcv9 -cpu_info:100:cpu_info100:crtime 186.17328363 -cpu_info:100:cpu_info100:current_clock_Hz 1648762500 -cpu_info:100:cpu_info100:device_ID 100 -cpu_info:100:cpu_info100:fpu_type sparcv9 -cpu_info:100:cpu_info100:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:100:cpu_info100:pg_id 40 -cpu_info:100:cpu_info100:snaptime 9305222.57636642 -cpu_info:100:cpu_info100:state on-line -cpu_info:100:cpu_info100:state_begin 1430258903 -cpu_info:100:cpu_info100:supported_frequencies_Hz 1648762500 -cpu_info:101:cpu_info101:brand SPARC-T3 -cpu_info:101:cpu_info101:chip_id 0 -cpu_info:101:cpu_info101:class misc -cpu_info:101:cpu_info101:clock_MHz 1649 -cpu_info:101:cpu_info101:core_id 1110 -cpu_info:101:cpu_info101:cpu_fru hc:///component= -cpu_info:101:cpu_info101:cpu_type sparcv9 -cpu_info:101:cpu_info101:crtime 186.17700913 -cpu_info:101:cpu_info101:current_clock_Hz 1648762500 -cpu_info:101:cpu_info101:device_ID 101 -cpu_info:101:cpu_info101:fpu_type sparcv9 -cpu_info:101:cpu_info101:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:101:cpu_info101:pg_id 40 -cpu_info:101:cpu_info101:snaptime 9305222.57756819 -cpu_info:101:cpu_info101:state on-line -cpu_info:101:cpu_info101:state_begin 1430258903 -cpu_info:101:cpu_info101:supported_frequencies_Hz 1648762500 -cpu_info:102:cpu_info102:brand SPARC-T3 -cpu_info:102:cpu_info102:chip_id 0 -cpu_info:102:cpu_info102:class misc -cpu_info:102:cpu_info102:clock_MHz 1649 -cpu_info:102:cpu_info102:core_id 1110 -cpu_info:102:cpu_info102:cpu_fru hc:///component= -cpu_info:102:cpu_info102:cpu_type sparcv9 -cpu_info:102:cpu_info102:crtime 186.181111931 -cpu_info:102:cpu_info102:current_clock_Hz 1648762500 -cpu_info:102:cpu_info102:device_ID 102 -cpu_info:102:cpu_info102:fpu_type sparcv9 -cpu_info:102:cpu_info102:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:102:cpu_info102:pg_id 40 -cpu_info:102:cpu_info102:snaptime 9305222.57872385 -cpu_info:102:cpu_info102:state on-line -cpu_info:102:cpu_info102:state_begin 1430258903 -cpu_info:102:cpu_info102:supported_frequencies_Hz 1648762500 -cpu_info:103:cpu_info103:brand SPARC-T3 -cpu_info:103:cpu_info103:chip_id 0 -cpu_info:103:cpu_info103:class misc -cpu_info:103:cpu_info103:clock_MHz 1649 -cpu_info:103:cpu_info103:core_id 1110 -cpu_info:103:cpu_info103:cpu_fru hc:///component= -cpu_info:103:cpu_info103:cpu_type sparcv9 -cpu_info:103:cpu_info103:crtime 186.184992543 -cpu_info:103:cpu_info103:current_clock_Hz 1648762500 -cpu_info:103:cpu_info103:device_ID 103 -cpu_info:103:cpu_info103:fpu_type sparcv9 -cpu_info:103:cpu_info103:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:103:cpu_info103:pg_id 40 -cpu_info:103:cpu_info103:snaptime 9305222.57987811 -cpu_info:103:cpu_info103:state on-line -cpu_info:103:cpu_info103:state_begin 1430258903 -cpu_info:103:cpu_info103:supported_frequencies_Hz 1648762500 -cpu_info:104:cpu_info104:brand SPARC-T3 -cpu_info:104:cpu_info104:chip_id 0 -cpu_info:104:cpu_info104:class misc -cpu_info:104:cpu_info104:clock_MHz 1649 -cpu_info:104:cpu_info104:core_id 1117 -cpu_info:104:cpu_info104:cpu_fru hc:///component= -cpu_info:104:cpu_info104:cpu_type sparcv9 -cpu_info:104:cpu_info104:crtime 186.188854989 -cpu_info:104:cpu_info104:current_clock_Hz 1648762500 -cpu_info:104:cpu_info104:device_ID 104 -cpu_info:104:cpu_info104:fpu_type sparcv9 -cpu_info:104:cpu_info104:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:104:cpu_info104:pg_id 41 -cpu_info:104:cpu_info104:snaptime 9305222.58126295 -cpu_info:104:cpu_info104:state on-line -cpu_info:104:cpu_info104:state_begin 1430258903 -cpu_info:104:cpu_info104:supported_frequencies_Hz 1648762500 -cpu_info:105:cpu_info105:brand SPARC-T3 -cpu_info:105:cpu_info105:chip_id 0 -cpu_info:105:cpu_info105:class misc -cpu_info:105:cpu_info105:clock_MHz 1649 -cpu_info:105:cpu_info105:core_id 1117 -cpu_info:105:cpu_info105:cpu_fru hc:///component= -cpu_info:105:cpu_info105:cpu_type sparcv9 -cpu_info:105:cpu_info105:crtime 186.192766344 -cpu_info:105:cpu_info105:current_clock_Hz 1648762500 -cpu_info:105:cpu_info105:device_ID 105 -cpu_info:105:cpu_info105:fpu_type sparcv9 -cpu_info:105:cpu_info105:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:105:cpu_info105:pg_id 41 -cpu_info:105:cpu_info105:snaptime 9305222.5824228 -cpu_info:105:cpu_info105:state on-line -cpu_info:105:cpu_info105:state_begin 1430258903 -cpu_info:105:cpu_info105:supported_frequencies_Hz 1648762500 -cpu_info:106:cpu_info106:brand SPARC-T3 -cpu_info:106:cpu_info106:chip_id 0 -cpu_info:106:cpu_info106:class misc -cpu_info:106:cpu_info106:clock_MHz 1649 -cpu_info:106:cpu_info106:core_id 1117 -cpu_info:106:cpu_info106:cpu_fru hc:///component= -cpu_info:106:cpu_info106:cpu_type sparcv9 -cpu_info:106:cpu_info106:crtime 186.197053603 -cpu_info:106:cpu_info106:current_clock_Hz 1648762500 -cpu_info:106:cpu_info106:device_ID 106 -cpu_info:106:cpu_info106:fpu_type sparcv9 -cpu_info:106:cpu_info106:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:106:cpu_info106:pg_id 41 -cpu_info:106:cpu_info106:snaptime 9305222.58358125 -cpu_info:106:cpu_info106:state on-line -cpu_info:106:cpu_info106:state_begin 1430258903 -cpu_info:106:cpu_info106:supported_frequencies_Hz 1648762500 -cpu_info:107:cpu_info107:brand SPARC-T3 -cpu_info:107:cpu_info107:chip_id 0 -cpu_info:107:cpu_info107:class misc -cpu_info:107:cpu_info107:clock_MHz 1649 -cpu_info:107:cpu_info107:core_id 1117 -cpu_info:107:cpu_info107:cpu_fru hc:///component= -cpu_info:107:cpu_info107:cpu_type sparcv9 -cpu_info:107:cpu_info107:crtime 186.200927229 -cpu_info:107:cpu_info107:current_clock_Hz 1648762500 -cpu_info:107:cpu_info107:device_ID 107 -cpu_info:107:cpu_info107:fpu_type sparcv9 -cpu_info:107:cpu_info107:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:107:cpu_info107:pg_id 41 -cpu_info:107:cpu_info107:snaptime 9305222.5847467 -cpu_info:107:cpu_info107:state on-line -cpu_info:107:cpu_info107:state_begin 1430258903 -cpu_info:107:cpu_info107:supported_frequencies_Hz 1648762500 -cpu_info:108:cpu_info108:brand SPARC-T3 -cpu_info:108:cpu_info108:chip_id 0 -cpu_info:108:cpu_info108:class misc -cpu_info:108:cpu_info108:clock_MHz 1649 -cpu_info:108:cpu_info108:core_id 1117 -cpu_info:108:cpu_info108:cpu_fru hc:///component= -cpu_info:108:cpu_info108:cpu_type sparcv9 -cpu_info:108:cpu_info108:crtime 186.204772906 -cpu_info:108:cpu_info108:current_clock_Hz 1648762500 -cpu_info:108:cpu_info108:device_ID 108 -cpu_info:108:cpu_info108:fpu_type sparcv9 -cpu_info:108:cpu_info108:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:108:cpu_info108:pg_id 43 -cpu_info:108:cpu_info108:snaptime 9305222.58591214 -cpu_info:108:cpu_info108:state on-line -cpu_info:108:cpu_info108:state_begin 1430258903 -cpu_info:108:cpu_info108:supported_frequencies_Hz 1648762500 -cpu_info:109:cpu_info109:brand SPARC-T3 -cpu_info:109:cpu_info109:chip_id 0 -cpu_info:109:cpu_info109:class misc -cpu_info:109:cpu_info109:clock_MHz 1649 -cpu_info:109:cpu_info109:core_id 1117 -cpu_info:109:cpu_info109:cpu_fru hc:///component= -cpu_info:109:cpu_info109:cpu_type sparcv9 -cpu_info:109:cpu_info109:crtime 186.208800246 -cpu_info:109:cpu_info109:current_clock_Hz 1648762500 -cpu_info:109:cpu_info109:device_ID 109 -cpu_info:109:cpu_info109:fpu_type sparcv9 -cpu_info:109:cpu_info109:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:109:cpu_info109:pg_id 43 -cpu_info:109:cpu_info109:snaptime 9305222.58709854 -cpu_info:109:cpu_info109:state on-line -cpu_info:109:cpu_info109:state_begin 1430258903 -cpu_info:109:cpu_info109:supported_frequencies_Hz 1648762500 -cpu_info:110:cpu_info110:brand SPARC-T3 -cpu_info:110:cpu_info110:chip_id 0 -cpu_info:110:cpu_info110:class misc -cpu_info:110:cpu_info110:clock_MHz 1649 -cpu_info:110:cpu_info110:core_id 1117 -cpu_info:110:cpu_info110:cpu_fru hc:///component= -cpu_info:110:cpu_info110:cpu_type sparcv9 -cpu_info:110:cpu_info110:crtime 186.21284715 -cpu_info:110:cpu_info110:current_clock_Hz 1648762500 -cpu_info:110:cpu_info110:device_ID 110 -cpu_info:110:cpu_info110:fpu_type sparcv9 -cpu_info:110:cpu_info110:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:110:cpu_info110:pg_id 43 -cpu_info:110:cpu_info110:snaptime 9305222.5882556 -cpu_info:110:cpu_info110:state on-line -cpu_info:110:cpu_info110:state_begin 1430258903 -cpu_info:110:cpu_info110:supported_frequencies_Hz 1648762500 -cpu_info:111:cpu_info111:brand SPARC-T3 -cpu_info:111:cpu_info111:chip_id 0 -cpu_info:111:cpu_info111:class misc -cpu_info:111:cpu_info111:clock_MHz 1649 -cpu_info:111:cpu_info111:core_id 1117 -cpu_info:111:cpu_info111:cpu_fru hc:///component= -cpu_info:111:cpu_info111:cpu_type sparcv9 -cpu_info:111:cpu_info111:crtime 186.216681648 -cpu_info:111:cpu_info111:current_clock_Hz 1648762500 -cpu_info:111:cpu_info111:device_ID 111 -cpu_info:111:cpu_info111:fpu_type sparcv9 -cpu_info:111:cpu_info111:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:111:cpu_info111:pg_id 43 -cpu_info:111:cpu_info111:snaptime 9305222.58941964 -cpu_info:111:cpu_info111:state on-line -cpu_info:111:cpu_info111:state_begin 1430258903 -cpu_info:111:cpu_info111:supported_frequencies_Hz 1648762500 -cpu_info:112:cpu_info112:brand SPARC-T3 -cpu_info:112:cpu_info112:chip_id 0 -cpu_info:112:cpu_info112:class misc -cpu_info:112:cpu_info112:clock_MHz 1649 -cpu_info:112:cpu_info112:core_id 1124 -cpu_info:112:cpu_info112:cpu_fru hc:///component= -cpu_info:112:cpu_info112:cpu_type sparcv9 -cpu_info:112:cpu_info112:crtime 186.220644707 -cpu_info:112:cpu_info112:current_clock_Hz 1648762500 -cpu_info:112:cpu_info112:device_ID 112 -cpu_info:112:cpu_info112:fpu_type sparcv9 -cpu_info:112:cpu_info112:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:112:cpu_info112:pg_id 44 -cpu_info:112:cpu_info112:snaptime 9305222.59064377 -cpu_info:112:cpu_info112:state on-line -cpu_info:112:cpu_info112:state_begin 1430258903 -cpu_info:112:cpu_info112:supported_frequencies_Hz 1648762500 -cpu_info:113:cpu_info113:brand SPARC-T3 -cpu_info:113:cpu_info113:chip_id 0 -cpu_info:113:cpu_info113:class misc -cpu_info:113:cpu_info113:clock_MHz 1649 -cpu_info:113:cpu_info113:core_id 1124 -cpu_info:113:cpu_info113:cpu_fru hc:///component= -cpu_info:113:cpu_info113:cpu_type sparcv9 -cpu_info:113:cpu_info113:crtime 186.224940351 -cpu_info:113:cpu_info113:current_clock_Hz 1648762500 -cpu_info:113:cpu_info113:device_ID 113 -cpu_info:113:cpu_info113:fpu_type sparcv9 -cpu_info:113:cpu_info113:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:113:cpu_info113:pg_id 44 -cpu_info:113:cpu_info113:snaptime 9305222.591819 -cpu_info:113:cpu_info113:state on-line -cpu_info:113:cpu_info113:state_begin 1430258903 -cpu_info:113:cpu_info113:supported_frequencies_Hz 1648762500 -cpu_info:114:cpu_info114:brand SPARC-T3 -cpu_info:114:cpu_info114:chip_id 0 -cpu_info:114:cpu_info114:class misc -cpu_info:114:cpu_info114:clock_MHz 1649 -cpu_info:114:cpu_info114:core_id 1124 -cpu_info:114:cpu_info114:cpu_fru hc:///component= -cpu_info:114:cpu_info114:cpu_type sparcv9 -cpu_info:114:cpu_info114:crtime 186.228844719 -cpu_info:114:cpu_info114:current_clock_Hz 1648762500 -cpu_info:114:cpu_info114:device_ID 114 -cpu_info:114:cpu_info114:fpu_type sparcv9 -cpu_info:114:cpu_info114:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:114:cpu_info114:pg_id 44 -cpu_info:114:cpu_info114:snaptime 9305222.59298444 -cpu_info:114:cpu_info114:state on-line -cpu_info:114:cpu_info114:state_begin 1430258903 -cpu_info:114:cpu_info114:supported_frequencies_Hz 1648762500 -cpu_info:115:cpu_info115:brand SPARC-T3 -cpu_info:115:cpu_info115:chip_id 0 -cpu_info:115:cpu_info115:class misc -cpu_info:115:cpu_info115:clock_MHz 1649 -cpu_info:115:cpu_info115:core_id 1124 -cpu_info:115:cpu_info115:cpu_fru hc:///component= -cpu_info:115:cpu_info115:cpu_type sparcv9 -cpu_info:115:cpu_info115:crtime 186.232733716 -cpu_info:115:cpu_info115:current_clock_Hz 1648762500 -cpu_info:115:cpu_info115:device_ID 115 -cpu_info:115:cpu_info115:fpu_type sparcv9 -cpu_info:115:cpu_info115:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:115:cpu_info115:pg_id 44 -cpu_info:115:cpu_info115:snaptime 9305222.5941387 -cpu_info:115:cpu_info115:state on-line -cpu_info:115:cpu_info115:state_begin 1430258903 -cpu_info:115:cpu_info115:supported_frequencies_Hz 1648762500 -cpu_info:116:cpu_info116:brand SPARC-T3 -cpu_info:116:cpu_info116:chip_id 0 -cpu_info:116:cpu_info116:class misc -cpu_info:116:cpu_info116:clock_MHz 1649 -cpu_info:116:cpu_info116:core_id 1124 -cpu_info:116:cpu_info116:cpu_fru hc:///component= -cpu_info:116:cpu_info116:cpu_type sparcv9 -cpu_info:116:cpu_info116:crtime 186.236670225 -cpu_info:116:cpu_info116:current_clock_Hz 1648762500 -cpu_info:116:cpu_info116:device_ID 116 -cpu_info:116:cpu_info116:fpu_type sparcv9 -cpu_info:116:cpu_info116:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:116:cpu_info116:pg_id 46 -cpu_info:116:cpu_info116:snaptime 9305222.59529995 -cpu_info:116:cpu_info116:state on-line -cpu_info:116:cpu_info116:state_begin 1430258903 -cpu_info:116:cpu_info116:supported_frequencies_Hz 1648762500 -cpu_info:117:cpu_info117:brand SPARC-T3 -cpu_info:117:cpu_info117:chip_id 0 -cpu_info:117:cpu_info117:class misc -cpu_info:117:cpu_info117:clock_MHz 1649 -cpu_info:117:cpu_info117:core_id 1124 -cpu_info:117:cpu_info117:cpu_fru hc:///component= -cpu_info:117:cpu_info117:cpu_type sparcv9 -cpu_info:117:cpu_info117:crtime 186.240778616 -cpu_info:117:cpu_info117:current_clock_Hz 1648762500 -cpu_info:117:cpu_info117:device_ID 117 -cpu_info:117:cpu_info117:fpu_type sparcv9 -cpu_info:117:cpu_info117:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:117:cpu_info117:pg_id 46 -cpu_info:117:cpu_info117:snaptime 9305222.59648495 -cpu_info:117:cpu_info117:state on-line -cpu_info:117:cpu_info117:state_begin 1430258903 -cpu_info:117:cpu_info117:supported_frequencies_Hz 1648762500 -cpu_info:118:cpu_info118:brand SPARC-T3 -cpu_info:118:cpu_info118:chip_id 0 -cpu_info:118:cpu_info118:class misc -cpu_info:118:cpu_info118:clock_MHz 1649 -cpu_info:118:cpu_info118:core_id 1124 -cpu_info:118:cpu_info118:cpu_fru hc:///component= -cpu_info:118:cpu_info118:cpu_type sparcv9 -cpu_info:118:cpu_info118:crtime 186.244717919 -cpu_info:118:cpu_info118:current_clock_Hz 1648762500 -cpu_info:118:cpu_info118:device_ID 118 -cpu_info:118:cpu_info118:fpu_type sparcv9 -cpu_info:118:cpu_info118:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:118:cpu_info118:pg_id 46 -cpu_info:118:cpu_info118:snaptime 9305222.5976476 -cpu_info:118:cpu_info118:state on-line -cpu_info:118:cpu_info118:state_begin 1430258903 -cpu_info:118:cpu_info118:supported_frequencies_Hz 1648762500 -cpu_info:119:cpu_info119:brand SPARC-T3 -cpu_info:119:cpu_info119:chip_id 0 -cpu_info:119:cpu_info119:class misc -cpu_info:119:cpu_info119:clock_MHz 1649 -cpu_info:119:cpu_info119:core_id 1124 -cpu_info:119:cpu_info119:cpu_fru hc:///component= -cpu_info:119:cpu_info119:cpu_type sparcv9 -cpu_info:119:cpu_info119:crtime 186.248661415 -cpu_info:119:cpu_info119:current_clock_Hz 1648762500 -cpu_info:119:cpu_info119:device_ID 119 -cpu_info:119:cpu_info119:fpu_type sparcv9 -cpu_info:119:cpu_info119:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:119:cpu_info119:pg_id 46 -cpu_info:119:cpu_info119:snaptime 9305222.59881723 -cpu_info:119:cpu_info119:state on-line -cpu_info:119:cpu_info119:state_begin 1430258903 -cpu_info:119:cpu_info119:supported_frequencies_Hz 1648762500 -cpu_info:120:cpu_info120:brand SPARC-T3 -cpu_info:120:cpu_info120:chip_id 0 -cpu_info:120:cpu_info120:class misc -cpu_info:120:cpu_info120:clock_MHz 1649 -cpu_info:120:cpu_info120:core_id 1131 -cpu_info:120:cpu_info120:cpu_fru hc:///component= -cpu_info:120:cpu_info120:cpu_type sparcv9 -cpu_info:120:cpu_info120:crtime 186.252660808 -cpu_info:120:cpu_info120:current_clock_Hz 1648762500 -cpu_info:120:cpu_info120:device_ID 120 -cpu_info:120:cpu_info120:fpu_type sparcv9 -cpu_info:120:cpu_info120:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:120:cpu_info120:pg_id 47 -cpu_info:120:cpu_info120:snaptime 9305222.59998826 -cpu_info:120:cpu_info120:state on-line -cpu_info:120:cpu_info120:state_begin 1430258903 -cpu_info:120:cpu_info120:supported_frequencies_Hz 1648762500 -cpu_info:121:cpu_info121:brand SPARC-T3 -cpu_info:121:cpu_info121:chip_id 0 -cpu_info:121:cpu_info121:class misc -cpu_info:121:cpu_info121:clock_MHz 1649 -cpu_info:121:cpu_info121:core_id 1131 -cpu_info:121:cpu_info121:cpu_fru hc:///component= -cpu_info:121:cpu_info121:cpu_type sparcv9 -cpu_info:121:cpu_info121:crtime 186.257104577 -cpu_info:121:cpu_info121:current_clock_Hz 1648762500 -cpu_info:121:cpu_info121:device_ID 121 -cpu_info:121:cpu_info121:fpu_type sparcv9 -cpu_info:121:cpu_info121:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:121:cpu_info121:pg_id 47 -cpu_info:121:cpu_info121:snaptime 9305222.60114672 -cpu_info:121:cpu_info121:state on-line -cpu_info:121:cpu_info121:state_begin 1430258903 -cpu_info:121:cpu_info121:supported_frequencies_Hz 1648762500 -cpu_info:122:cpu_info122:brand SPARC-T3 -cpu_info:122:cpu_info122:chip_id 0 -cpu_info:122:cpu_info122:class misc -cpu_info:122:cpu_info122:clock_MHz 1649 -cpu_info:122:cpu_info122:core_id 1131 -cpu_info:122:cpu_info122:cpu_fru hc:///component= -cpu_info:122:cpu_info122:cpu_type sparcv9 -cpu_info:122:cpu_info122:crtime 186.260994971 -cpu_info:122:cpu_info122:current_clock_Hz 1648762500 -cpu_info:122:cpu_info122:device_ID 122 -cpu_info:122:cpu_info122:fpu_type sparcv9 -cpu_info:122:cpu_info122:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:122:cpu_info122:pg_id 47 -cpu_info:122:cpu_info122:snaptime 9305222.60230238 -cpu_info:122:cpu_info122:state on-line -cpu_info:122:cpu_info122:state_begin 1430258903 -cpu_info:122:cpu_info122:supported_frequencies_Hz 1648762500 -cpu_info:123:cpu_info123:brand SPARC-T3 -cpu_info:123:cpu_info123:chip_id 0 -cpu_info:123:cpu_info123:class misc -cpu_info:123:cpu_info123:clock_MHz 1649 -cpu_info:123:cpu_info123:core_id 1131 -cpu_info:123:cpu_info123:cpu_fru hc:///component= -cpu_info:123:cpu_info123:cpu_type sparcv9 -cpu_info:123:cpu_info123:crtime 186.264900737 -cpu_info:123:cpu_info123:current_clock_Hz 1648762500 -cpu_info:123:cpu_info123:device_ID 123 -cpu_info:123:cpu_info123:fpu_type sparcv9 -cpu_info:123:cpu_info123:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:123:cpu_info123:pg_id 47 -cpu_info:123:cpu_info123:snaptime 9305222.60351952 -cpu_info:123:cpu_info123:state on-line -cpu_info:123:cpu_info123:state_begin 1430258903 -cpu_info:123:cpu_info123:supported_frequencies_Hz 1648762500 -cpu_info:124:cpu_info124:brand SPARC-T4 -cpu_info:124:cpu_info124:chip_id 0 -cpu_info:124:cpu_info124:class misc -cpu_info:124:cpu_info124:clock_MHz 1649 -cpu_info:124:cpu_info124:core_id 1131 -cpu_info:124:cpu_info124:cpu_fru hc:///component= -cpu_info:124:cpu_info124:cpu_type sparcv9 -cpu_info:124:cpu_info124:crtime 186.268767375 -cpu_info:124:cpu_info124:current_clock_Hz 1648762500 -cpu_info:124:cpu_info124:device_ID 124 -cpu_info:124:cpu_info124:fpu_type sparcv9 -cpu_info:124:cpu_info124:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:124:cpu_info124:pg_id 49 -cpu_info:124:cpu_info124:snaptime 9305222.60468497 -cpu_info:124:cpu_info124:state off-line -cpu_info:124:cpu_info124:state_begin 1430258903 -cpu_info:124:cpu_info124:supported_frequencies_Hz 1648762500 -cpu_info:125:cpu_info125:brand SPARC-T4 -cpu_info:125:cpu_info125:chip_id 0 -cpu_info:125:cpu_info125:class misc -cpu_info:125:cpu_info125:clock_MHz 1649 -cpu_info:125:cpu_info125:core_id 1131 -cpu_info:125:cpu_info125:cpu_fru hc:///component= -cpu_info:125:cpu_info125:cpu_type sparcv9 -cpu_info:125:cpu_info125:crtime 186.272702486 -cpu_info:125:cpu_info125:current_clock_Hz 1648762500 -cpu_info:125:cpu_info125:device_ID 125 -cpu_info:125:cpu_info125:fpu_type sparcv9 -cpu_info:125:cpu_info125:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:125:cpu_info125:pg_id 49 -cpu_info:125:cpu_info125:snaptime 9305222.60585879 -cpu_info:125:cpu_info125:state off-line -cpu_info:125:cpu_info125:state_begin 1430258903 -cpu_info:125:cpu_info125:supported_frequencies_Hz 1648762500 -cpu_info:126:cpu_info126:brand SPARC-T4 -cpu_info:126:cpu_info126:chip_id 0 -cpu_info:126:cpu_info126:class misc -cpu_info:126:cpu_info126:clock_MHz 1649 -cpu_info:126:cpu_info126:core_id 1131 -cpu_info:126:cpu_info126:cpu_fru hc:///component= -cpu_info:126:cpu_info126:cpu_type sparcv9 -cpu_info:126:cpu_info126:crtime 186.27663061 -cpu_info:126:cpu_info126:current_clock_Hz 1648762500 -cpu_info:126:cpu_info126:device_ID 126 -cpu_info:126:cpu_info126:fpu_type sparcv9 -cpu_info:126:cpu_info126:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:126:cpu_info126:pg_id 49 -cpu_info:126:cpu_info126:snaptime 9305222.60703821 -cpu_info:126:cpu_info126:state off-line -cpu_info:126:cpu_info126:state_begin 1430258903 -cpu_info:126:cpu_info126:supported_frequencies_Hz 1648762500 -cpu_info:127:cpu_info127:brand SPARC-T4 -cpu_info:127:cpu_info127:chip_id 0 -cpu_info:127:cpu_info127:class misc -cpu_info:127:cpu_info127:clock_MHz 1649 -cpu_info:127:cpu_info127:core_id 1131 -cpu_info:127:cpu_info127:cpu_fru hc:///component= -cpu_info:127:cpu_info127:cpu_type sparcv9 -cpu_info:127:cpu_info127:crtime 186.281711599 -cpu_info:127:cpu_info127:current_clock_Hz 1648762500 -cpu_info:127:cpu_info127:device_ID 127 -cpu_info:127:cpu_info127:fpu_type sparcv9 -cpu_info:127:cpu_info127:implementation SPARC-T3 (chipid 0, clock 1649 MHz) -cpu_info:127:cpu_info127:pg_id 49 -cpu_info:127:cpu_info127:snaptime 9305222.60819247 -cpu_info:127:cpu_info127:state off-line -cpu_info:127:cpu_info127:state_begin 1430258903 -cpu_info:127:cpu_info127:supported_frequencies_Hz 1648762500 + kstatinfo_output = <<~END + cpu_info:0:cpu_info0:brand SPARC-T3 + cpu_info:0:cpu_info0:chip_id 0 + cpu_info:0:cpu_info0:class misc + cpu_info:0:cpu_info0:clock_MHz 1649 + cpu_info:0:cpu_info0:core_id 1026 + cpu_info:0:cpu_info0:cpu_fru hc:///component= + cpu_info:0:cpu_info0:cpu_type sparcv9 + cpu_info:0:cpu_info0:crtime 182.755017565 + cpu_info:0:cpu_info0:current_clock_Hz 1648762500 + cpu_info:0:cpu_info0:device_ID 0 + cpu_info:0:cpu_info0:fpu_type sparcv9 + cpu_info:0:cpu_info0:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:0:cpu_info0:pg_id 1 + cpu_info:0:cpu_info0:snaptime 9305222.45903973 + cpu_info:0:cpu_info0:state on-line + cpu_info:0:cpu_info0:state_begin 1430258900 + cpu_info:0:cpu_info0:supported_frequencies_Hz 1648762500 + cpu_info:1:cpu_info1:brand SPARC-T3 + cpu_info:1:cpu_info1:chip_id 0 + cpu_info:1:cpu_info1:class misc + cpu_info:1:cpu_info1:clock_MHz 1649 + cpu_info:1:cpu_info1:core_id 1026 + cpu_info:1:cpu_info1:cpu_fru hc:///component= + cpu_info:1:cpu_info1:cpu_type sparcv9 + cpu_info:1:cpu_info1:crtime 185.891012056 + cpu_info:1:cpu_info1:current_clock_Hz 1648762500 + cpu_info:1:cpu_info1:device_ID 1 + cpu_info:1:cpu_info1:fpu_type sparcv9 + cpu_info:1:cpu_info1:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:1:cpu_info1:pg_id 1 + cpu_info:1:cpu_info1:snaptime 9305222.46043854 + cpu_info:1:cpu_info1:state on-line + cpu_info:1:cpu_info1:state_begin 1430258903 + cpu_info:1:cpu_info1:supported_frequencies_Hz 1648762500 + cpu_info:2:cpu_info2:brand SPARC-T3 + cpu_info:2:cpu_info2:chip_id 0 + cpu_info:2:cpu_info2:class misc + cpu_info:2:cpu_info2:clock_MHz 1649 + cpu_info:2:cpu_info2:core_id 1026 + cpu_info:2:cpu_info2:cpu_fru hc:///component= + cpu_info:2:cpu_info2:cpu_type sparcv9 + cpu_info:2:cpu_info2:crtime 185.89327726 + cpu_info:2:cpu_info2:current_clock_Hz 1648762500 + cpu_info:2:cpu_info2:device_ID 2 + cpu_info:2:cpu_info2:fpu_type sparcv9 + cpu_info:2:cpu_info2:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:2:cpu_info2:pg_id 1 + cpu_info:2:cpu_info2:snaptime 9305222.46159979 + cpu_info:2:cpu_info2:state on-line + cpu_info:2:cpu_info2:state_begin 1430258903 + cpu_info:2:cpu_info2:supported_frequencies_Hz 1648762500 + cpu_info:3:cpu_info3:brand SPARC-T3 + cpu_info:3:cpu_info3:chip_id 0 + cpu_info:3:cpu_info3:class misc + cpu_info:3:cpu_info3:clock_MHz 1649 + cpu_info:3:cpu_info3:core_id 1026 + cpu_info:3:cpu_info3:cpu_fru hc:///component= + cpu_info:3:cpu_info3:cpu_type sparcv9 + cpu_info:3:cpu_info3:crtime 185.895286738 + cpu_info:3:cpu_info3:current_clock_Hz 1648762500 + cpu_info:3:cpu_info3:device_ID 3 + cpu_info:3:cpu_info3:fpu_type sparcv9 + cpu_info:3:cpu_info3:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:3:cpu_info3:pg_id 1 + cpu_info:3:cpu_info3:snaptime 9305222.46276104 + cpu_info:3:cpu_info3:state on-line + cpu_info:3:cpu_info3:state_begin 1430258903 + cpu_info:3:cpu_info3:supported_frequencies_Hz 1648762500 + cpu_info:4:cpu_info4:brand SPARC-T3 + cpu_info:4:cpu_info4:chip_id 0 + cpu_info:4:cpu_info4:class misc + cpu_info:4:cpu_info4:clock_MHz 1649 + cpu_info:4:cpu_info4:core_id 1026 + cpu_info:4:cpu_info4:cpu_fru hc:///component= + cpu_info:4:cpu_info4:cpu_type sparcv9 + cpu_info:4:cpu_info4:crtime 185.897635787 + cpu_info:4:cpu_info4:current_clock_Hz 1648762500 + cpu_info:4:cpu_info4:device_ID 4 + cpu_info:4:cpu_info4:fpu_type sparcv9 + cpu_info:4:cpu_info4:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:4:cpu_info4:pg_id 4 + cpu_info:4:cpu_info4:snaptime 9305222.46392368 + cpu_info:4:cpu_info4:state on-line + cpu_info:4:cpu_info4:state_begin 1430258903 + cpu_info:4:cpu_info4:supported_frequencies_Hz 1648762500 + cpu_info:5:cpu_info5:brand SPARC-T3 + cpu_info:5:cpu_info5:chip_id 0 + cpu_info:5:cpu_info5:class misc + cpu_info:5:cpu_info5:clock_MHz 1649 + cpu_info:5:cpu_info5:core_id 1026 + cpu_info:5:cpu_info5:cpu_fru hc:///component= + cpu_info:5:cpu_info5:cpu_type sparcv9 + cpu_info:5:cpu_info5:crtime 185.899706751 + cpu_info:5:cpu_info5:current_clock_Hz 1648762500 + cpu_info:5:cpu_info5:device_ID 5 + cpu_info:5:cpu_info5:fpu_type sparcv9 + cpu_info:5:cpu_info5:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:5:cpu_info5:pg_id 4 + cpu_info:5:cpu_info5:snaptime 9305222.4651017 + cpu_info:5:cpu_info5:state on-line + cpu_info:5:cpu_info5:state_begin 1430258903 + cpu_info:5:cpu_info5:supported_frequencies_Hz 1648762500 + cpu_info:6:cpu_info6:brand SPARC-T3 + cpu_info:6:cpu_info6:chip_id 0 + cpu_info:6:cpu_info6:class misc + cpu_info:6:cpu_info6:clock_MHz 1649 + cpu_info:6:cpu_info6:core_id 1026 + cpu_info:6:cpu_info6:cpu_fru hc:///component= + cpu_info:6:cpu_info6:cpu_type sparcv9 + cpu_info:6:cpu_info6:crtime 185.901703653 + cpu_info:6:cpu_info6:current_clock_Hz 1648762500 + cpu_info:6:cpu_info6:device_ID 6 + cpu_info:6:cpu_info6:fpu_type sparcv9 + cpu_info:6:cpu_info6:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:6:cpu_info6:pg_id 4 + cpu_info:6:cpu_info6:snaptime 9305222.46627134 + cpu_info:6:cpu_info6:state on-line + cpu_info:6:cpu_info6:state_begin 1430258903 + cpu_info:6:cpu_info6:supported_frequencies_Hz 1648762500 + cpu_info:7:cpu_info7:brand SPARC-T3 + cpu_info:7:cpu_info7:chip_id 0 + cpu_info:7:cpu_info7:class misc + cpu_info:7:cpu_info7:clock_MHz 1649 + cpu_info:7:cpu_info7:core_id 1026 + cpu_info:7:cpu_info7:cpu_fru hc:///component= + cpu_info:7:cpu_info7:cpu_type sparcv9 + cpu_info:7:cpu_info7:crtime 185.903769027 + cpu_info:7:cpu_info7:current_clock_Hz 1648762500 + cpu_info:7:cpu_info7:device_ID 7 + cpu_info:7:cpu_info7:fpu_type sparcv9 + cpu_info:7:cpu_info7:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:7:cpu_info7:pg_id 4 + cpu_info:7:cpu_info7:snaptime 9305222.46743538 + cpu_info:7:cpu_info7:state on-line + cpu_info:7:cpu_info7:state_begin 1430258903 + cpu_info:7:cpu_info7:supported_frequencies_Hz 1648762500 + cpu_info:8:cpu_info8:brand SPARC-T3 + cpu_info:8:cpu_info8:chip_id 0 + cpu_info:8:cpu_info8:class misc + cpu_info:8:cpu_info8:clock_MHz 1649 + cpu_info:8:cpu_info8:core_id 1033 + cpu_info:8:cpu_info8:cpu_fru hc:///component= + cpu_info:8:cpu_info8:cpu_type sparcv9 + cpu_info:8:cpu_info8:crtime 185.905770121 + cpu_info:8:cpu_info8:current_clock_Hz 1648762500 + cpu_info:8:cpu_info8:device_ID 8 + cpu_info:8:cpu_info8:fpu_type sparcv9 + cpu_info:8:cpu_info8:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:8:cpu_info8:pg_id 5 + cpu_info:8:cpu_info8:snaptime 9305222.46859244 + cpu_info:8:cpu_info8:state on-line + cpu_info:8:cpu_info8:state_begin 1430258903 + cpu_info:8:cpu_info8:supported_frequencies_Hz 1648762500 + cpu_info:9:cpu_info9:brand SPARC-T3 + cpu_info:9:cpu_info9:chip_id 0 + cpu_info:9:cpu_info9:class misc + cpu_info:9:cpu_info9:clock_MHz 1649 + cpu_info:9:cpu_info9:core_id 1033 + cpu_info:9:cpu_info9:cpu_fru hc:///component= + cpu_info:9:cpu_info9:cpu_type sparcv9 + cpu_info:9:cpu_info9:crtime 185.907807547 + cpu_info:9:cpu_info9:current_clock_Hz 1648762500 + cpu_info:9:cpu_info9:device_ID 9 + cpu_info:9:cpu_info9:fpu_type sparcv9 + cpu_info:9:cpu_info9:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:9:cpu_info9:pg_id 5 + cpu_info:9:cpu_info9:snaptime 9305222.46975928 + cpu_info:9:cpu_info9:state on-line + cpu_info:9:cpu_info9:state_begin 1430258903 + cpu_info:9:cpu_info9:supported_frequencies_Hz 1648762500 + cpu_info:10:cpu_info10:brand SPARC-T3 + cpu_info:10:cpu_info10:chip_id 0 + cpu_info:10:cpu_info10:class misc + cpu_info:10:cpu_info10:clock_MHz 1649 + cpu_info:10:cpu_info10:core_id 1033 + cpu_info:10:cpu_info10:cpu_fru hc:///component= + cpu_info:10:cpu_info10:cpu_type sparcv9 + cpu_info:10:cpu_info10:crtime 185.909912049 + cpu_info:10:cpu_info10:current_clock_Hz 1648762500 + cpu_info:10:cpu_info10:device_ID 10 + cpu_info:10:cpu_info10:fpu_type sparcv9 + cpu_info:10:cpu_info10:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:10:cpu_info10:pg_id 5 + cpu_info:10:cpu_info10:snaptime 9305222.47092053 + cpu_info:10:cpu_info10:state on-line + cpu_info:10:cpu_info10:state_begin 1430258903 + cpu_info:10:cpu_info10:supported_frequencies_Hz 1648762500 + cpu_info:11:cpu_info11:brand SPARC-T3 + cpu_info:11:cpu_info11:chip_id 0 + cpu_info:11:cpu_info11:class misc + cpu_info:11:cpu_info11:clock_MHz 1649 + cpu_info:11:cpu_info11:core_id 1033 + cpu_info:11:cpu_info11:cpu_fru hc:///component= + cpu_info:11:cpu_info11:cpu_type sparcv9 + cpu_info:11:cpu_info11:crtime 185.912115767 + cpu_info:11:cpu_info11:current_clock_Hz 1648762500 + cpu_info:11:cpu_info11:device_ID 11 + cpu_info:11:cpu_info11:fpu_type sparcv9 + cpu_info:11:cpu_info11:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:11:cpu_info11:pg_id 5 + cpu_info:11:cpu_info11:snaptime 9305222.47210972 + cpu_info:11:cpu_info11:state on-line + cpu_info:11:cpu_info11:state_begin 1430258903 + cpu_info:11:cpu_info11:supported_frequencies_Hz 1648762500 + cpu_info:12:cpu_info12:brand SPARC-T3 + cpu_info:12:cpu_info12:chip_id 0 + cpu_info:12:cpu_info12:class misc + cpu_info:12:cpu_info12:clock_MHz 1649 + cpu_info:12:cpu_info12:core_id 1033 + cpu_info:12:cpu_info12:cpu_fru hc:///component= + cpu_info:12:cpu_info12:cpu_type sparcv9 + cpu_info:12:cpu_info12:crtime 185.914137822 + cpu_info:12:cpu_info12:current_clock_Hz 1648762500 + cpu_info:12:cpu_info12:device_ID 12 + cpu_info:12:cpu_info12:fpu_type sparcv9 + cpu_info:12:cpu_info12:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:12:cpu_info12:pg_id 7 + cpu_info:12:cpu_info12:snaptime 9305222.47335901 + cpu_info:12:cpu_info12:state on-line + cpu_info:12:cpu_info12:state_begin 1430258903 + cpu_info:12:cpu_info12:supported_frequencies_Hz 1648762500 + cpu_info:13:cpu_info13:brand SPARC-T3 + cpu_info:13:cpu_info13:chip_id 0 + cpu_info:13:cpu_info13:class misc + cpu_info:13:cpu_info13:clock_MHz 1649 + cpu_info:13:cpu_info13:core_id 1033 + cpu_info:13:cpu_info13:cpu_fru hc:///component= + cpu_info:13:cpu_info13:cpu_type sparcv9 + cpu_info:13:cpu_info13:crtime 185.916718841 + cpu_info:13:cpu_info13:current_clock_Hz 1648762500 + cpu_info:13:cpu_info13:device_ID 13 + cpu_info:13:cpu_info13:fpu_type sparcv9 + cpu_info:13:cpu_info13:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:13:cpu_info13:pg_id 7 + cpu_info:13:cpu_info13:snaptime 9305222.47452166 + cpu_info:13:cpu_info13:state on-line + cpu_info:13:cpu_info13:state_begin 1430258903 + cpu_info:13:cpu_info13:supported_frequencies_Hz 1648762500 + cpu_info:14:cpu_info14:brand SPARC-T3 + cpu_info:14:cpu_info14:chip_id 0 + cpu_info:14:cpu_info14:class misc + cpu_info:14:cpu_info14:clock_MHz 1649 + cpu_info:14:cpu_info14:core_id 1033 + cpu_info:14:cpu_info14:cpu_fru hc:///component= + cpu_info:14:cpu_info14:cpu_type sparcv9 + cpu_info:14:cpu_info14:crtime 185.918743691 + cpu_info:14:cpu_info14:current_clock_Hz 1648762500 + cpu_info:14:cpu_info14:device_ID 14 + cpu_info:14:cpu_info14:fpu_type sparcv9 + cpu_info:14:cpu_info14:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:14:cpu_info14:pg_id 7 + cpu_info:14:cpu_info14:snaptime 9305222.4756871 + cpu_info:14:cpu_info14:state on-line + cpu_info:14:cpu_info14:state_begin 1430258903 + cpu_info:14:cpu_info14:supported_frequencies_Hz 1648762500 + cpu_info:15:cpu_info15:brand SPARC-T3 + cpu_info:15:cpu_info15:chip_id 0 + cpu_info:15:cpu_info15:class misc + cpu_info:15:cpu_info15:clock_MHz 1649 + cpu_info:15:cpu_info15:core_id 1033 + cpu_info:15:cpu_info15:cpu_fru hc:///component= + cpu_info:15:cpu_info15:cpu_type sparcv9 + cpu_info:15:cpu_info15:crtime 185.920867756 + cpu_info:15:cpu_info15:current_clock_Hz 1648762500 + cpu_info:15:cpu_info15:device_ID 15 + cpu_info:15:cpu_info15:fpu_type sparcv9 + cpu_info:15:cpu_info15:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:15:cpu_info15:pg_id 7 + cpu_info:15:cpu_info15:snaptime 9305222.47686092 + cpu_info:15:cpu_info15:state on-line + cpu_info:15:cpu_info15:state_begin 1430258903 + cpu_info:15:cpu_info15:supported_frequencies_Hz 1648762500 + cpu_info:16:cpu_info16:brand SPARC-T3 + cpu_info:16:cpu_info16:chip_id 0 + cpu_info:16:cpu_info16:class misc + cpu_info:16:cpu_info16:clock_MHz 1649 + cpu_info:16:cpu_info16:core_id 1040 + cpu_info:16:cpu_info16:cpu_fru hc:///component= + cpu_info:16:cpu_info16:cpu_type sparcv9 + cpu_info:16:cpu_info16:crtime 185.923040731 + cpu_info:16:cpu_info16:current_clock_Hz 1648762500 + cpu_info:16:cpu_info16:device_ID 16 + cpu_info:16:cpu_info16:fpu_type sparcv9 + cpu_info:16:cpu_info16:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:16:cpu_info16:pg_id 8 + cpu_info:16:cpu_info16:snaptime 9305222.47804034 + cpu_info:16:cpu_info16:state on-line + cpu_info:16:cpu_info16:state_begin 1430258903 + cpu_info:16:cpu_info16:supported_frequencies_Hz 1648762500 + cpu_info:17:cpu_info17:brand SPARC-T3 + cpu_info:17:cpu_info17:chip_id 0 + cpu_info:17:cpu_info17:class misc + cpu_info:17:cpu_info17:clock_MHz 1649 + cpu_info:17:cpu_info17:core_id 1040 + cpu_info:17:cpu_info17:cpu_fru hc:///component= + cpu_info:17:cpu_info17:cpu_type sparcv9 + cpu_info:17:cpu_info17:crtime 185.925129862 + cpu_info:17:cpu_info17:current_clock_Hz 1648762500 + cpu_info:17:cpu_info17:device_ID 17 + cpu_info:17:cpu_info17:fpu_type sparcv9 + cpu_info:17:cpu_info17:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:17:cpu_info17:pg_id 8 + cpu_info:17:cpu_info17:snaptime 9305222.4791974 + cpu_info:17:cpu_info17:state on-line + cpu_info:17:cpu_info17:state_begin 1430258903 + cpu_info:17:cpu_info17:supported_frequencies_Hz 1648762500 + cpu_info:18:cpu_info18:brand SPARC-T3 + cpu_info:18:cpu_info18:chip_id 0 + cpu_info:18:cpu_info18:class misc + cpu_info:18:cpu_info18:clock_MHz 1649 + cpu_info:18:cpu_info18:core_id 1040 + cpu_info:18:cpu_info18:cpu_fru hc:///component= + cpu_info:18:cpu_info18:cpu_type sparcv9 + cpu_info:18:cpu_info18:crtime 185.927358733 + cpu_info:18:cpu_info18:current_clock_Hz 1648762500 + cpu_info:18:cpu_info18:device_ID 18 + cpu_info:18:cpu_info18:fpu_type sparcv9 + cpu_info:18:cpu_info18:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:18:cpu_info18:pg_id 8 + cpu_info:18:cpu_info18:snaptime 9305222.48035585 + cpu_info:18:cpu_info18:state on-line + cpu_info:18:cpu_info18:state_begin 1430258903 + cpu_info:18:cpu_info18:supported_frequencies_Hz 1648762500 + cpu_info:19:cpu_info19:brand SPARC-T3 + cpu_info:19:cpu_info19:chip_id 0 + cpu_info:19:cpu_info19:class misc + cpu_info:19:cpu_info19:clock_MHz 1649 + cpu_info:19:cpu_info19:core_id 1040 + cpu_info:19:cpu_info19:cpu_fru hc:///component= + cpu_info:19:cpu_info19:cpu_type sparcv9 + cpu_info:19:cpu_info19:crtime 185.929506555 + cpu_info:19:cpu_info19:current_clock_Hz 1648762500 + cpu_info:19:cpu_info19:device_ID 19 + cpu_info:19:cpu_info19:fpu_type sparcv9 + cpu_info:19:cpu_info19:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:19:cpu_info19:pg_id 8 + cpu_info:19:cpu_info19:snaptime 9305222.4815143 + cpu_info:19:cpu_info19:state on-line + cpu_info:19:cpu_info19:state_begin 1430258903 + cpu_info:19:cpu_info19:supported_frequencies_Hz 1648762500 + cpu_info:20:cpu_info20:brand SPARC-T3 + cpu_info:20:cpu_info20:chip_id 0 + cpu_info:20:cpu_info20:class misc + cpu_info:20:cpu_info20:clock_MHz 1649 + cpu_info:20:cpu_info20:core_id 1040 + cpu_info:20:cpu_info20:cpu_fru hc:///component= + cpu_info:20:cpu_info20:cpu_type sparcv9 + cpu_info:20:cpu_info20:crtime 185.931632019 + cpu_info:20:cpu_info20:current_clock_Hz 1648762500 + cpu_info:20:cpu_info20:device_ID 20 + cpu_info:20:cpu_info20:fpu_type sparcv9 + cpu_info:20:cpu_info20:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:20:cpu_info20:pg_id 10 + cpu_info:20:cpu_info20:snaptime 9305222.48268953 + cpu_info:20:cpu_info20:state on-line + cpu_info:20:cpu_info20:state_begin 1430258903 + cpu_info:20:cpu_info20:supported_frequencies_Hz 1648762500 + cpu_info:21:cpu_info21:brand SPARC-T3 + cpu_info:21:cpu_info21:chip_id 0 + cpu_info:21:cpu_info21:class misc + cpu_info:21:cpu_info21:clock_MHz 1649 + cpu_info:21:cpu_info21:core_id 1040 + cpu_info:21:cpu_info21:cpu_fru hc:///component= + cpu_info:21:cpu_info21:cpu_type sparcv9 + cpu_info:21:cpu_info21:crtime 185.933775649 + cpu_info:21:cpu_info21:current_clock_Hz 1648762500 + cpu_info:21:cpu_info21:device_ID 21 + cpu_info:21:cpu_info21:fpu_type sparcv9 + cpu_info:21:cpu_info21:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:21:cpu_info21:pg_id 10 + cpu_info:21:cpu_info21:snaptime 9305222.48385497 + cpu_info:21:cpu_info21:state on-line + cpu_info:21:cpu_info21:state_begin 1430258903 + cpu_info:21:cpu_info21:supported_frequencies_Hz 1648762500 + cpu_info:22:cpu_info22:brand SPARC-T3 + cpu_info:22:cpu_info22:chip_id 0 + cpu_info:22:cpu_info22:class misc + cpu_info:22:cpu_info22:clock_MHz 1649 + cpu_info:22:cpu_info22:core_id 1040 + cpu_info:22:cpu_info22:cpu_fru hc:///component= + cpu_info:22:cpu_info22:cpu_type sparcv9 + cpu_info:22:cpu_info22:crtime 185.935894125 + cpu_info:22:cpu_info22:current_clock_Hz 1648762500 + cpu_info:22:cpu_info22:device_ID 22 + cpu_info:22:cpu_info22:fpu_type sparcv9 + cpu_info:22:cpu_info22:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:22:cpu_info22:pg_id 10 + cpu_info:22:cpu_info22:snaptime 9305222.48501202 + cpu_info:22:cpu_info22:state on-line + cpu_info:22:cpu_info22:state_begin 1430258903 + cpu_info:22:cpu_info22:supported_frequencies_Hz 1648762500 + cpu_info:23:cpu_info23:brand SPARC-T3 + cpu_info:23:cpu_info23:chip_id 0 + cpu_info:23:cpu_info23:class misc + cpu_info:23:cpu_info23:clock_MHz 1649 + cpu_info:23:cpu_info23:core_id 1040 + cpu_info:23:cpu_info23:cpu_fru hc:///component= + cpu_info:23:cpu_info23:cpu_type sparcv9 + cpu_info:23:cpu_info23:crtime 185.938371736 + cpu_info:23:cpu_info23:current_clock_Hz 1648762500 + cpu_info:23:cpu_info23:device_ID 23 + cpu_info:23:cpu_info23:fpu_type sparcv9 + cpu_info:23:cpu_info23:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:23:cpu_info23:pg_id 10 + cpu_info:23:cpu_info23:snaptime 9305222.4862152 + cpu_info:23:cpu_info23:state on-line + cpu_info:23:cpu_info23:state_begin 1430258903 + cpu_info:23:cpu_info23:supported_frequencies_Hz 1648762500 + cpu_info:24:cpu_info24:brand SPARC-T3 + cpu_info:24:cpu_info24:chip_id 0 + cpu_info:24:cpu_info24:class misc + cpu_info:24:cpu_info24:clock_MHz 1649 + cpu_info:24:cpu_info24:core_id 1047 + cpu_info:24:cpu_info24:cpu_fru hc:///component= + cpu_info:24:cpu_info24:cpu_type sparcv9 + cpu_info:24:cpu_info24:crtime 185.94063135 + cpu_info:24:cpu_info24:current_clock_Hz 1648762500 + cpu_info:24:cpu_info24:device_ID 24 + cpu_info:24:cpu_info24:fpu_type sparcv9 + cpu_info:24:cpu_info24:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:24:cpu_info24:pg_id 11 + cpu_info:24:cpu_info24:snaptime 9305222.48737505 + cpu_info:24:cpu_info24:state on-line + cpu_info:24:cpu_info24:state_begin 1430258903 + cpu_info:24:cpu_info24:supported_frequencies_Hz 1648762500 + cpu_info:25:cpu_info25:brand SPARC-T3 + cpu_info:25:cpu_info25:chip_id 0 + cpu_info:25:cpu_info25:class misc + cpu_info:25:cpu_info25:clock_MHz 1649 + cpu_info:25:cpu_info25:core_id 1047 + cpu_info:25:cpu_info25:cpu_fru hc:///component= + cpu_info:25:cpu_info25:cpu_type sparcv9 + cpu_info:25:cpu_info25:crtime 185.942830876 + cpu_info:25:cpu_info25:current_clock_Hz 1648762500 + cpu_info:25:cpu_info25:device_ID 25 + cpu_info:25:cpu_info25:fpu_type sparcv9 + cpu_info:25:cpu_info25:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:25:cpu_info25:pg_id 11 + cpu_info:25:cpu_info25:snaptime 9305222.48852791 + cpu_info:25:cpu_info25:state on-line + cpu_info:25:cpu_info25:state_begin 1430258903 + cpu_info:25:cpu_info25:supported_frequencies_Hz 1648762500 + cpu_info:26:cpu_info26:brand SPARC-T3 + cpu_info:26:cpu_info26:chip_id 0 + cpu_info:26:cpu_info26:class misc + cpu_info:26:cpu_info26:clock_MHz 1649 + cpu_info:26:cpu_info26:core_id 1047 + cpu_info:26:cpu_info26:cpu_fru hc:///component= + cpu_info:26:cpu_info26:cpu_type sparcv9 + cpu_info:26:cpu_info26:crtime 185.945192502 + cpu_info:26:cpu_info26:current_clock_Hz 1648762500 + cpu_info:26:cpu_info26:device_ID 26 + cpu_info:26:cpu_info26:fpu_type sparcv9 + cpu_info:26:cpu_info26:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:26:cpu_info26:pg_id 11 + cpu_info:26:cpu_info26:snaptime 9305222.48970872 + cpu_info:26:cpu_info26:state on-line + cpu_info:26:cpu_info26:state_begin 1430258903 + cpu_info:26:cpu_info26:supported_frequencies_Hz 1648762500 + cpu_info:27:cpu_info27:brand SPARC-T3 + cpu_info:27:cpu_info27:chip_id 0 + cpu_info:27:cpu_info27:class misc + cpu_info:27:cpu_info27:clock_MHz 1649 + cpu_info:27:cpu_info27:core_id 1047 + cpu_info:27:cpu_info27:cpu_fru hc:///component= + cpu_info:27:cpu_info27:cpu_type sparcv9 + cpu_info:27:cpu_info27:crtime 185.947281633 + cpu_info:27:cpu_info27:current_clock_Hz 1648762500 + cpu_info:27:cpu_info27:device_ID 27 + cpu_info:27:cpu_info27:fpu_type sparcv9 + cpu_info:27:cpu_info27:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:27:cpu_info27:pg_id 11 + cpu_info:27:cpu_info27:snaptime 9305222.49087556 + cpu_info:27:cpu_info27:state on-line + cpu_info:27:cpu_info27:state_begin 1430258903 + cpu_info:27:cpu_info27:supported_frequencies_Hz 1648762500 + cpu_info:28:cpu_info28:brand SPARC-T3 + cpu_info:28:cpu_info28:chip_id 0 + cpu_info:28:cpu_info28:class misc + cpu_info:28:cpu_info28:clock_MHz 1649 + cpu_info:28:cpu_info28:core_id 1047 + cpu_info:28:cpu_info28:cpu_fru hc:///component= + cpu_info:28:cpu_info28:cpu_type sparcv9 + cpu_info:28:cpu_info28:crtime 185.949373558 + cpu_info:28:cpu_info28:current_clock_Hz 1648762500 + cpu_info:28:cpu_info28:device_ID 28 + cpu_info:28:cpu_info28:fpu_type sparcv9 + cpu_info:28:cpu_info28:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:28:cpu_info28:pg_id 13 + cpu_info:28:cpu_info28:snaptime 9305222.49203402 + cpu_info:28:cpu_info28:state on-line + cpu_info:28:cpu_info28:state_begin 1430258903 + cpu_info:28:cpu_info28:supported_frequencies_Hz 1648762500 + cpu_info:29:cpu_info29:brand SPARC-T3 + cpu_info:29:cpu_info29:chip_id 0 + cpu_info:29:cpu_info29:class misc + cpu_info:29:cpu_info29:clock_MHz 1649 + cpu_info:29:cpu_info29:core_id 1047 + cpu_info:29:cpu_info29:cpu_fru hc:///component= + cpu_info:29:cpu_info29:cpu_type sparcv9 + cpu_info:29:cpu_info29:crtime 185.951693261 + cpu_info:29:cpu_info29:current_clock_Hz 1648762500 + cpu_info:29:cpu_info29:device_ID 29 + cpu_info:29:cpu_info29:fpu_type sparcv9 + cpu_info:29:cpu_info29:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:29:cpu_info29:pg_id 13 + cpu_info:29:cpu_info29:snaptime 9305222.49319247 + cpu_info:29:cpu_info29:state on-line + cpu_info:29:cpu_info29:state_begin 1430258903 + cpu_info:29:cpu_info29:supported_frequencies_Hz 1648762500 + cpu_info:30:cpu_info30:brand SPARC-T3 + cpu_info:30:cpu_info30:chip_id 0 + cpu_info:30:cpu_info30:class misc + cpu_info:30:cpu_info30:clock_MHz 1649 + cpu_info:30:cpu_info30:core_id 1047 + cpu_info:30:cpu_info30:cpu_fru hc:///component= + cpu_info:30:cpu_info30:cpu_type sparcv9 + cpu_info:30:cpu_info30:crtime 185.956749097 + cpu_info:30:cpu_info30:current_clock_Hz 1648762500 + cpu_info:30:cpu_info30:device_ID 30 + cpu_info:30:cpu_info30:fpu_type sparcv9 + cpu_info:30:cpu_info30:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:30:cpu_info30:pg_id 13 + cpu_info:30:cpu_info30:snaptime 9305222.49447669 + cpu_info:30:cpu_info30:state on-line + cpu_info:30:cpu_info30:state_begin 1430258903 + cpu_info:30:cpu_info30:supported_frequencies_Hz 1648762500 + cpu_info:31:cpu_info31:brand SPARC-T3 + cpu_info:31:cpu_info31:chip_id 0 + cpu_info:31:cpu_info31:class misc + cpu_info:31:cpu_info31:clock_MHz 1649 + cpu_info:31:cpu_info31:core_id 1047 + cpu_info:31:cpu_info31:cpu_fru hc:///component= + cpu_info:31:cpu_info31:cpu_type sparcv9 + cpu_info:31:cpu_info31:crtime 185.958863381 + cpu_info:31:cpu_info31:current_clock_Hz 1648762500 + cpu_info:31:cpu_info31:device_ID 31 + cpu_info:31:cpu_info31:fpu_type sparcv9 + cpu_info:31:cpu_info31:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:31:cpu_info31:pg_id 13 + cpu_info:31:cpu_info31:snaptime 9305222.49563934 + cpu_info:31:cpu_info31:state on-line + cpu_info:31:cpu_info31:state_begin 1430258903 + cpu_info:31:cpu_info31:supported_frequencies_Hz 1648762500 + cpu_info:32:cpu_info32:brand SPARC-T3 + cpu_info:32:cpu_info32:chip_id 0 + cpu_info:32:cpu_info32:class misc + cpu_info:32:cpu_info32:clock_MHz 1649 + cpu_info:32:cpu_info32:core_id 1054 + cpu_info:32:cpu_info32:cpu_fru hc:///component= + cpu_info:32:cpu_info32:cpu_type sparcv9 + cpu_info:32:cpu_info32:crtime 185.961092252 + cpu_info:32:cpu_info32:current_clock_Hz 1648762500 + cpu_info:32:cpu_info32:device_ID 32 + cpu_info:32:cpu_info32:fpu_type sparcv9 + cpu_info:32:cpu_info32:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:32:cpu_info32:pg_id 14 + cpu_info:32:cpu_info32:snaptime 9305222.4967978 + cpu_info:32:cpu_info32:state on-line + cpu_info:32:cpu_info32:state_begin 1430258903 + cpu_info:32:cpu_info32:supported_frequencies_Hz 1648762500 + cpu_info:33:cpu_info33:brand SPARC-T3 + cpu_info:33:cpu_info33:chip_id 0 + cpu_info:33:cpu_info33:class misc + cpu_info:33:cpu_info33:clock_MHz 1649 + cpu_info:33:cpu_info33:core_id 1054 + cpu_info:33:cpu_info33:cpu_fru hc:///component= + cpu_info:33:cpu_info33:cpu_type sparcv9 + cpu_info:33:cpu_info33:crtime 185.96330156 + cpu_info:33:cpu_info33:current_clock_Hz 1648762500 + cpu_info:33:cpu_info33:device_ID 33 + cpu_info:33:cpu_info33:fpu_type sparcv9 + cpu_info:33:cpu_info33:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:33:cpu_info33:pg_id 14 + cpu_info:33:cpu_info33:snaptime 9305222.49796044 + cpu_info:33:cpu_info33:state on-line + cpu_info:33:cpu_info33:state_begin 1430258903 + cpu_info:33:cpu_info33:supported_frequencies_Hz 1648762500 + cpu_info:34:cpu_info34:brand SPARC-T3 + cpu_info:34:cpu_info34:chip_id 0 + cpu_info:34:cpu_info34:class misc + cpu_info:34:cpu_info34:clock_MHz 1649 + cpu_info:34:cpu_info34:core_id 1054 + cpu_info:34:cpu_info34:cpu_fru hc:///component= + cpu_info:34:cpu_info34:cpu_type sparcv9 + cpu_info:34:cpu_info34:crtime 185.965719082 + cpu_info:34:cpu_info34:current_clock_Hz 1648762500 + cpu_info:34:cpu_info34:device_ID 34 + cpu_info:34:cpu_info34:fpu_type sparcv9 + cpu_info:34:cpu_info34:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:34:cpu_info34:pg_id 14 + cpu_info:34:cpu_info34:snaptime 9305222.49915942 + cpu_info:34:cpu_info34:state on-line + cpu_info:34:cpu_info34:state_begin 1430258903 + cpu_info:34:cpu_info34:supported_frequencies_Hz 1648762500 + cpu_info:35:cpu_info35:brand SPARC-T3 + cpu_info:35:cpu_info35:chip_id 0 + cpu_info:35:cpu_info35:class misc + cpu_info:35:cpu_info35:clock_MHz 1649 + cpu_info:35:cpu_info35:core_id 1054 + cpu_info:35:cpu_info35:cpu_fru hc:///component= + cpu_info:35:cpu_info35:cpu_type sparcv9 + cpu_info:35:cpu_info35:crtime 185.967967518 + cpu_info:35:cpu_info35:current_clock_Hz 1648762500 + cpu_info:35:cpu_info35:device_ID 35 + cpu_info:35:cpu_info35:fpu_type sparcv9 + cpu_info:35:cpu_info35:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:35:cpu_info35:pg_id 14 + cpu_info:35:cpu_info35:snaptime 9305222.50033744 + cpu_info:35:cpu_info35:state on-line + cpu_info:35:cpu_info35:state_begin 1430258903 + cpu_info:35:cpu_info35:supported_frequencies_Hz 1648762500 + cpu_info:36:cpu_info36:brand SPARC-T3 + cpu_info:36:cpu_info36:chip_id 0 + cpu_info:36:cpu_info36:class misc + cpu_info:36:cpu_info36:clock_MHz 1649 + cpu_info:36:cpu_info36:core_id 1054 + cpu_info:36:cpu_info36:cpu_fru hc:///component= + cpu_info:36:cpu_info36:cpu_type sparcv9 + cpu_info:36:cpu_info36:crtime 185.970185211 + cpu_info:36:cpu_info36:current_clock_Hz 1648762500 + cpu_info:36:cpu_info36:device_ID 36 + cpu_info:36:cpu_info36:fpu_type sparcv9 + cpu_info:36:cpu_info36:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:36:cpu_info36:pg_id 16 + cpu_info:36:cpu_info36:snaptime 9305222.5014931 + cpu_info:36:cpu_info36:state on-line + cpu_info:36:cpu_info36:state_begin 1430258903 + cpu_info:36:cpu_info36:supported_frequencies_Hz 1648762500 + cpu_info:37:cpu_info37:brand SPARC-T3 + cpu_info:37:cpu_info37:chip_id 0 + cpu_info:37:cpu_info37:class misc + cpu_info:37:cpu_info37:clock_MHz 1649 + cpu_info:37:cpu_info37:core_id 1054 + cpu_info:37:cpu_info37:cpu_fru hc:///component= + cpu_info:37:cpu_info37:cpu_type sparcv9 + cpu_info:37:cpu_info37:crtime 185.972471376 + cpu_info:37:cpu_info37:current_clock_Hz 1648762500 + cpu_info:37:cpu_info37:device_ID 37 + cpu_info:37:cpu_info37:fpu_type sparcv9 + cpu_info:37:cpu_info37:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:37:cpu_info37:pg_id 16 + cpu_info:37:cpu_info37:snaptime 9305222.50265574 + cpu_info:37:cpu_info37:state on-line + cpu_info:37:cpu_info37:state_begin 1430258903 + cpu_info:37:cpu_info37:supported_frequencies_Hz 1648762500 + cpu_info:38:cpu_info38:brand SPARC-T3 + cpu_info:38:cpu_info38:chip_id 0 + cpu_info:38:cpu_info38:class misc + cpu_info:38:cpu_info38:clock_MHz 1649 + cpu_info:38:cpu_info38:core_id 1054 + cpu_info:38:cpu_info38:cpu_fru hc:///component= + cpu_info:38:cpu_info38:cpu_type sparcv9 + cpu_info:38:cpu_info38:crtime 185.974700248 + cpu_info:38:cpu_info38:current_clock_Hz 1648762500 + cpu_info:38:cpu_info38:device_ID 38 + cpu_info:38:cpu_info38:fpu_type sparcv9 + cpu_info:38:cpu_info38:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:38:cpu_info38:pg_id 16 + cpu_info:38:cpu_info38:snaptime 9305222.50383516 + cpu_info:38:cpu_info38:state on-line + cpu_info:38:cpu_info38:state_begin 1430258903 + cpu_info:38:cpu_info38:supported_frequencies_Hz 1648762500 + cpu_info:39:cpu_info39:brand SPARC-T3 + cpu_info:39:cpu_info39:chip_id 0 + cpu_info:39:cpu_info39:class misc + cpu_info:39:cpu_info39:clock_MHz 1649 + cpu_info:39:cpu_info39:core_id 1054 + cpu_info:39:cpu_info39:cpu_fru hc:///component= + cpu_info:39:cpu_info39:cpu_type sparcv9 + cpu_info:39:cpu_info39:crtime 185.976951478 + cpu_info:39:cpu_info39:current_clock_Hz 1648762500 + cpu_info:39:cpu_info39:device_ID 39 + cpu_info:39:cpu_info39:fpu_type sparcv9 + cpu_info:39:cpu_info39:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:39:cpu_info39:pg_id 16 + cpu_info:39:cpu_info39:snaptime 9305222.50499082 + cpu_info:39:cpu_info39:state on-line + cpu_info:39:cpu_info39:state_begin 1430258903 + cpu_info:39:cpu_info39:supported_frequencies_Hz 1648762500 + cpu_info:40:cpu_info40:brand SPARC-T3 + cpu_info:40:cpu_info40:chip_id 0 + cpu_info:40:cpu_info40:class misc + cpu_info:40:cpu_info40:clock_MHz 1649 + cpu_info:40:cpu_info40:core_id 1061 + cpu_info:40:cpu_info40:cpu_fru hc:///component= + cpu_info:40:cpu_info40:cpu_type sparcv9 + cpu_info:40:cpu_info40:crtime 185.979307514 + cpu_info:40:cpu_info40:current_clock_Hz 1648762500 + cpu_info:40:cpu_info40:device_ID 40 + cpu_info:40:cpu_info40:fpu_type sparcv9 + cpu_info:40:cpu_info40:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:40:cpu_info40:pg_id 17 + cpu_info:40:cpu_info40:snaptime 9305222.50614788 + cpu_info:40:cpu_info40:state on-line + cpu_info:40:cpu_info40:state_begin 1430258903 + cpu_info:40:cpu_info40:supported_frequencies_Hz 1648762500 + cpu_info:41:cpu_info41:brand SPARC-T3 + cpu_info:41:cpu_info41:chip_id 0 + cpu_info:41:cpu_info41:class misc + cpu_info:41:cpu_info41:clock_MHz 1649 + cpu_info:41:cpu_info41:core_id 1061 + cpu_info:41:cpu_info41:cpu_fru hc:///component= + cpu_info:41:cpu_info41:cpu_type sparcv9 + cpu_info:41:cpu_info41:crtime 185.981589487 + cpu_info:41:cpu_info41:current_clock_Hz 1648762500 + cpu_info:41:cpu_info41:device_ID 41 + cpu_info:41:cpu_info41:fpu_type sparcv9 + cpu_info:41:cpu_info41:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:41:cpu_info41:pg_id 17 + cpu_info:41:cpu_info41:snaptime 9305222.50731052 + cpu_info:41:cpu_info41:state on-line + cpu_info:41:cpu_info41:state_begin 1430258903 + cpu_info:41:cpu_info41:supported_frequencies_Hz 1648762500 + cpu_info:42:cpu_info42:brand SPARC-T3 + cpu_info:42:cpu_info42:chip_id 0 + cpu_info:42:cpu_info42:class misc + cpu_info:42:cpu_info42:clock_MHz 1649 + cpu_info:42:cpu_info42:core_id 1061 + cpu_info:42:cpu_info42:cpu_fru hc:///component= + cpu_info:42:cpu_info42:cpu_type sparcv9 + cpu_info:42:cpu_info42:crtime 185.983932946 + cpu_info:42:cpu_info42:current_clock_Hz 1648762500 + cpu_info:42:cpu_info42:device_ID 42 + cpu_info:42:cpu_info42:fpu_type sparcv9 + cpu_info:42:cpu_info42:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:42:cpu_info42:pg_id 17 + cpu_info:42:cpu_info42:snaptime 9305222.50847177 + cpu_info:42:cpu_info42:state on-line + cpu_info:42:cpu_info42:state_begin 1430258903 + cpu_info:42:cpu_info42:supported_frequencies_Hz 1648762500 + cpu_info:43:cpu_info43:brand SPARC-T3 + cpu_info:43:cpu_info43:chip_id 0 + cpu_info:43:cpu_info43:class misc + cpu_info:43:cpu_info43:clock_MHz 1649 + cpu_info:43:cpu_info43:core_id 1061 + cpu_info:43:cpu_info43:cpu_fru hc:///component= + cpu_info:43:cpu_info43:cpu_type sparcv9 + cpu_info:43:cpu_info43:crtime 185.986174395 + cpu_info:43:cpu_info43:current_clock_Hz 1648762500 + cpu_info:43:cpu_info43:device_ID 43 + cpu_info:43:cpu_info43:fpu_type sparcv9 + cpu_info:43:cpu_info43:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:43:cpu_info43:pg_id 17 + cpu_info:43:cpu_info43:snaptime 9305222.50965119 + cpu_info:43:cpu_info43:state on-line + cpu_info:43:cpu_info43:state_begin 1430258903 + cpu_info:43:cpu_info43:supported_frequencies_Hz 1648762500 + cpu_info:44:cpu_info44:brand SPARC-T3 + cpu_info:44:cpu_info44:chip_id 0 + cpu_info:44:cpu_info44:class misc + cpu_info:44:cpu_info44:clock_MHz 1649 + cpu_info:44:cpu_info44:core_id 1061 + cpu_info:44:cpu_info44:cpu_fru hc:///component= + cpu_info:44:cpu_info44:cpu_type sparcv9 + cpu_info:44:cpu_info44:crtime 185.988461958 + cpu_info:44:cpu_info44:current_clock_Hz 1648762500 + cpu_info:44:cpu_info44:device_ID 44 + cpu_info:44:cpu_info44:fpu_type sparcv9 + cpu_info:44:cpu_info44:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:44:cpu_info44:pg_id 19 + cpu_info:44:cpu_info44:snaptime 9305222.51080685 + cpu_info:44:cpu_info44:state on-line + cpu_info:44:cpu_info44:state_begin 1430258903 + cpu_info:44:cpu_info44:supported_frequencies_Hz 1648762500 + cpu_info:45:cpu_info45:brand SPARC-T3 + cpu_info:45:cpu_info45:chip_id 0 + cpu_info:45:cpu_info45:class misc + cpu_info:45:cpu_info45:clock_MHz 1649 + cpu_info:45:cpu_info45:core_id 1061 + cpu_info:45:cpu_info45:cpu_fru hc:///component= + cpu_info:45:cpu_info45:cpu_type sparcv9 + cpu_info:45:cpu_info45:crtime 185.990886467 + cpu_info:45:cpu_info45:current_clock_Hz 1648762500 + cpu_info:45:cpu_info45:device_ID 45 + cpu_info:45:cpu_info45:fpu_type sparcv9 + cpu_info:45:cpu_info45:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:45:cpu_info45:pg_id 19 + cpu_info:45:cpu_info45:snaptime 9305222.5119667 + cpu_info:45:cpu_info45:state on-line + cpu_info:45:cpu_info45:state_begin 1430258903 + cpu_info:45:cpu_info45:supported_frequencies_Hz 1648762500 + cpu_info:46:cpu_info46:brand SPARC-T3 + cpu_info:46:cpu_info46:chip_id 0 + cpu_info:46:cpu_info46:class misc + cpu_info:46:cpu_info46:clock_MHz 1649 + cpu_info:46:cpu_info46:core_id 1061 + cpu_info:46:cpu_info46:cpu_fru hc:///component= + cpu_info:46:cpu_info46:cpu_type sparcv9 + cpu_info:46:cpu_info46:crtime 185.993407398 + cpu_info:46:cpu_info46:current_clock_Hz 1648762500 + cpu_info:46:cpu_info46:device_ID 46 + cpu_info:46:cpu_info46:fpu_type sparcv9 + cpu_info:46:cpu_info46:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:46:cpu_info46:pg_id 19 + cpu_info:46:cpu_info46:snaptime 9305222.51316568 + cpu_info:46:cpu_info46:state on-line + cpu_info:46:cpu_info46:state_begin 1430258903 + cpu_info:46:cpu_info46:supported_frequencies_Hz 1648762500 + cpu_info:47:cpu_info47:brand SPARC-T3 + cpu_info:47:cpu_info47:chip_id 0 + cpu_info:47:cpu_info47:class misc + cpu_info:47:cpu_info47:clock_MHz 1649 + cpu_info:47:cpu_info47:core_id 1061 + cpu_info:47:cpu_info47:cpu_fru hc:///component= + cpu_info:47:cpu_info47:cpu_type sparcv9 + cpu_info:47:cpu_info47:crtime 185.995799767 + cpu_info:47:cpu_info47:current_clock_Hz 1648762500 + cpu_info:47:cpu_info47:device_ID 47 + cpu_info:47:cpu_info47:fpu_type sparcv9 + cpu_info:47:cpu_info47:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:47:cpu_info47:pg_id 19 + cpu_info:47:cpu_info47:snaptime 9305222.51431994 + cpu_info:47:cpu_info47:state on-line + cpu_info:47:cpu_info47:state_begin 1430258903 + cpu_info:47:cpu_info47:supported_frequencies_Hz 1648762500 + cpu_info:48:cpu_info48:brand SPARC-T3 + cpu_info:48:cpu_info48:chip_id 0 + cpu_info:48:cpu_info48:class misc + cpu_info:48:cpu_info48:clock_MHz 1649 + cpu_info:48:cpu_info48:core_id 1068 + cpu_info:48:cpu_info48:cpu_fru hc:///component= + cpu_info:48:cpu_info48:cpu_type sparcv9 + cpu_info:48:cpu_info48:crtime 185.998159995 + cpu_info:48:cpu_info48:current_clock_Hz 1648762500 + cpu_info:48:cpu_info48:device_ID 48 + cpu_info:48:cpu_info48:fpu_type sparcv9 + cpu_info:48:cpu_info48:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:48:cpu_info48:pg_id 20 + cpu_info:48:cpu_info48:snaptime 9305222.51549656 + cpu_info:48:cpu_info48:state on-line + cpu_info:48:cpu_info48:state_begin 1430258903 + cpu_info:48:cpu_info48:supported_frequencies_Hz 1648762500 + cpu_info:49:cpu_info49:brand SPARC-T3 + cpu_info:49:cpu_info49:chip_id 0 + cpu_info:49:cpu_info49:class misc + cpu_info:49:cpu_info49:clock_MHz 1649 + cpu_info:49:cpu_info49:core_id 1068 + cpu_info:49:cpu_info49:cpu_fru hc:///component= + cpu_info:49:cpu_info49:cpu_type sparcv9 + cpu_info:49:cpu_info49:crtime 186.000578915 + cpu_info:49:cpu_info49:current_clock_Hz 1648762500 + cpu_info:49:cpu_info49:device_ID 49 + cpu_info:49:cpu_info49:fpu_type sparcv9 + cpu_info:49:cpu_info49:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:49:cpu_info49:pg_id 20 + cpu_info:49:cpu_info49:snaptime 9305222.51664943 + cpu_info:49:cpu_info49:state on-line + cpu_info:49:cpu_info49:state_begin 1430258903 + cpu_info:49:cpu_info49:supported_frequencies_Hz 1648762500 + cpu_info:50:cpu_info50:brand SPARC-T3 + cpu_info:50:cpu_info50:chip_id 0 + cpu_info:50:cpu_info50:class misc + cpu_info:50:cpu_info50:clock_MHz 1649 + cpu_info:50:cpu_info50:core_id 1068 + cpu_info:50:cpu_info50:cpu_fru hc:///component= + cpu_info:50:cpu_info50:cpu_type sparcv9 + cpu_info:50:cpu_info50:crtime 186.002997835 + cpu_info:50:cpu_info50:current_clock_Hz 1648762500 + cpu_info:50:cpu_info50:device_ID 50 + cpu_info:50:cpu_info50:fpu_type sparcv9 + cpu_info:50:cpu_info50:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:50:cpu_info50:pg_id 20 + cpu_info:50:cpu_info50:snaptime 9305222.51780229 + cpu_info:50:cpu_info50:state on-line + cpu_info:50:cpu_info50:state_begin 1430258903 + cpu_info:50:cpu_info50:supported_frequencies_Hz 1648762500 + cpu_info:51:cpu_info51:brand SPARC-T3 + cpu_info:51:cpu_info51:chip_id 0 + cpu_info:51:cpu_info51:class misc + cpu_info:51:cpu_info51:clock_MHz 1649 + cpu_info:51:cpu_info51:core_id 1068 + cpu_info:51:cpu_info51:cpu_fru hc:///component= + cpu_info:51:cpu_info51:cpu_type sparcv9 + cpu_info:51:cpu_info51:crtime 186.005381819 + cpu_info:51:cpu_info51:current_clock_Hz 1648762500 + cpu_info:51:cpu_info51:device_ID 51 + cpu_info:51:cpu_info51:fpu_type sparcv9 + cpu_info:51:cpu_info51:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:51:cpu_info51:pg_id 20 + cpu_info:51:cpu_info51:snaptime 9305222.51896214 + cpu_info:51:cpu_info51:state on-line + cpu_info:51:cpu_info51:state_begin 1430258903 + cpu_info:51:cpu_info51:supported_frequencies_Hz 1648762500 + cpu_info:52:cpu_info52:brand SPARC-T3 + cpu_info:52:cpu_info52:chip_id 0 + cpu_info:52:cpu_info52:class misc + cpu_info:52:cpu_info52:clock_MHz 1649 + cpu_info:52:cpu_info52:core_id 1068 + cpu_info:52:cpu_info52:cpu_fru hc:///component= + cpu_info:52:cpu_info52:cpu_type sparcv9 + cpu_info:52:cpu_info52:crtime 186.007718292 + cpu_info:52:cpu_info52:current_clock_Hz 1648762500 + cpu_info:52:cpu_info52:device_ID 52 + cpu_info:52:cpu_info52:fpu_type sparcv9 + cpu_info:52:cpu_info52:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:52:cpu_info52:pg_id 22 + cpu_info:52:cpu_info52:snaptime 9305222.5201206 + cpu_info:52:cpu_info52:state on-line + cpu_info:52:cpu_info52:state_begin 1430258903 + cpu_info:52:cpu_info52:supported_frequencies_Hz 1648762500 + cpu_info:53:cpu_info53:brand SPARC-T3 + cpu_info:53:cpu_info53:chip_id 0 + cpu_info:53:cpu_info53:class misc + cpu_info:53:cpu_info53:clock_MHz 1649 + cpu_info:53:cpu_info53:core_id 1068 + cpu_info:53:cpu_info53:cpu_fru hc:///component= + cpu_info:53:cpu_info53:cpu_type sparcv9 + cpu_info:53:cpu_info53:crtime 186.010135814 + cpu_info:53:cpu_info53:current_clock_Hz 1648762500 + cpu_info:53:cpu_info53:device_ID 53 + cpu_info:53:cpu_info53:fpu_type sparcv9 + cpu_info:53:cpu_info53:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:53:cpu_info53:pg_id 22 + cpu_info:53:cpu_info53:snaptime 9305222.52128464 + cpu_info:53:cpu_info53:state on-line + cpu_info:53:cpu_info53:state_begin 1430258903 + cpu_info:53:cpu_info53:supported_frequencies_Hz 1648762500 + cpu_info:54:cpu_info54:brand SPARC-T3 + cpu_info:54:cpu_info54:chip_id 0 + cpu_info:54:cpu_info54:class misc + cpu_info:54:cpu_info54:clock_MHz 1649 + cpu_info:54:cpu_info54:core_id 1068 + cpu_info:54:cpu_info54:cpu_fru hc:///component= + cpu_info:54:cpu_info54:cpu_type sparcv9 + cpu_info:54:cpu_info54:crtime 186.012468094 + cpu_info:54:cpu_info54:current_clock_Hz 1648762500 + cpu_info:54:cpu_info54:device_ID 54 + cpu_info:54:cpu_info54:fpu_type sparcv9 + cpu_info:54:cpu_info54:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:54:cpu_info54:pg_id 22 + cpu_info:54:cpu_info54:snaptime 9305222.52246266 + cpu_info:54:cpu_info54:state on-line + cpu_info:54:cpu_info54:state_begin 1430258903 + cpu_info:54:cpu_info54:supported_frequencies_Hz 1648762500 + cpu_info:55:cpu_info55:brand SPARC-T3 + cpu_info:55:cpu_info55:chip_id 0 + cpu_info:55:cpu_info55:class misc + cpu_info:55:cpu_info55:clock_MHz 1649 + cpu_info:55:cpu_info55:core_id 1068 + cpu_info:55:cpu_info55:cpu_fru hc:///component= + cpu_info:55:cpu_info55:cpu_type sparcv9 + cpu_info:55:cpu_info55:crtime 186.015075664 + cpu_info:55:cpu_info55:current_clock_Hz 1648762500 + cpu_info:55:cpu_info55:device_ID 55 + cpu_info:55:cpu_info55:fpu_type sparcv9 + cpu_info:55:cpu_info55:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:55:cpu_info55:pg_id 22 + cpu_info:55:cpu_info55:snaptime 9305222.52361692 + cpu_info:55:cpu_info55:state on-line + cpu_info:55:cpu_info55:state_begin 1430258903 + cpu_info:55:cpu_info55:supported_frequencies_Hz 1648762500 + cpu_info:56:cpu_info56:brand SPARC-T3 + cpu_info:56:cpu_info56:chip_id 0 + cpu_info:56:cpu_info56:class misc + cpu_info:56:cpu_info56:clock_MHz 1649 + cpu_info:56:cpu_info56:core_id 1075 + cpu_info:56:cpu_info56:cpu_fru hc:///component= + cpu_info:56:cpu_info56:cpu_type sparcv9 + cpu_info:56:cpu_info56:crtime 186.01747502 + cpu_info:56:cpu_info56:current_clock_Hz 1648762500 + cpu_info:56:cpu_info56:device_ID 56 + cpu_info:56:cpu_info56:fpu_type sparcv9 + cpu_info:56:cpu_info56:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:56:cpu_info56:pg_id 23 + cpu_info:56:cpu_info56:snaptime 9305222.52477957 + cpu_info:56:cpu_info56:state on-line + cpu_info:56:cpu_info56:state_begin 1430258903 + cpu_info:56:cpu_info56:supported_frequencies_Hz 1648762500 + cpu_info:57:cpu_info57:brand SPARC-T3 + cpu_info:57:cpu_info57:chip_id 0 + cpu_info:57:cpu_info57:class misc + cpu_info:57:cpu_info57:clock_MHz 1649 + cpu_info:57:cpu_info57:core_id 1075 + cpu_info:57:cpu_info57:cpu_fru hc:///component= + cpu_info:57:cpu_info57:cpu_type sparcv9 + cpu_info:57:cpu_info57:crtime 186.019972195 + cpu_info:57:cpu_info57:current_clock_Hz 1648762500 + cpu_info:57:cpu_info57:device_ID 57 + cpu_info:57:cpu_info57:fpu_type sparcv9 + cpu_info:57:cpu_info57:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:57:cpu_info57:pg_id 23 + cpu_info:57:cpu_info57:snaptime 9305222.52599671 + cpu_info:57:cpu_info57:state on-line + cpu_info:57:cpu_info57:state_begin 1430258903 + cpu_info:57:cpu_info57:supported_frequencies_Hz 1648762500 + cpu_info:58:cpu_info58:brand SPARC-T3 + cpu_info:58:cpu_info58:chip_id 0 + cpu_info:58:cpu_info58:class misc + cpu_info:58:cpu_info58:clock_MHz 1649 + cpu_info:58:cpu_info58:core_id 1075 + cpu_info:58:cpu_info58:cpu_fru hc:///component= + cpu_info:58:cpu_info58:cpu_type sparcv9 + cpu_info:58:cpu_info58:crtime 186.022502907 + cpu_info:58:cpu_info58:current_clock_Hz 1648762500 + cpu_info:58:cpu_info58:device_ID 58 + cpu_info:58:cpu_info58:fpu_type sparcv9 + cpu_info:58:cpu_info58:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:58:cpu_info58:pg_id 23 + cpu_info:58:cpu_info58:snaptime 9305222.52714958 + cpu_info:58:cpu_info58:state on-line + cpu_info:58:cpu_info58:state_begin 1430258903 + cpu_info:58:cpu_info58:supported_frequencies_Hz 1648762500 + cpu_info:59:cpu_info59:brand SPARC-T3 + cpu_info:59:cpu_info59:chip_id 0 + cpu_info:59:cpu_info59:class misc + cpu_info:59:cpu_info59:clock_MHz 1649 + cpu_info:59:cpu_info59:core_id 1075 + cpu_info:59:cpu_info59:cpu_fru hc:///component= + cpu_info:59:cpu_info59:cpu_type sparcv9 + cpu_info:59:cpu_info59:crtime 186.024843572 + cpu_info:59:cpu_info59:current_clock_Hz 1648762500 + cpu_info:59:cpu_info59:device_ID 59 + cpu_info:59:cpu_info59:fpu_type sparcv9 + cpu_info:59:cpu_info59:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:59:cpu_info59:pg_id 23 + cpu_info:59:cpu_info59:snaptime 9305222.52831362 + cpu_info:59:cpu_info59:state on-line + cpu_info:59:cpu_info59:state_begin 1430258903 + cpu_info:59:cpu_info59:supported_frequencies_Hz 1648762500 + cpu_info:60:cpu_info60:brand SPARC-T3 + cpu_info:60:cpu_info60:chip_id 0 + cpu_info:60:cpu_info60:class misc + cpu_info:60:cpu_info60:clock_MHz 1649 + cpu_info:60:cpu_info60:core_id 1075 + cpu_info:60:cpu_info60:cpu_fru hc:///component= + cpu_info:60:cpu_info60:cpu_type sparcv9 + cpu_info:60:cpu_info60:crtime 186.027181442 + cpu_info:60:cpu_info60:current_clock_Hz 1648762500 + cpu_info:60:cpu_info60:device_ID 60 + cpu_info:60:cpu_info60:fpu_type sparcv9 + cpu_info:60:cpu_info60:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:60:cpu_info60:pg_id 25 + cpu_info:60:cpu_info60:snaptime 9305222.52947487 + cpu_info:60:cpu_info60:state on-line + cpu_info:60:cpu_info60:state_begin 1430258903 + cpu_info:60:cpu_info60:supported_frequencies_Hz 1648762500 + cpu_info:61:cpu_info61:brand SPARC-T3 + cpu_info:61:cpu_info61:chip_id 0 + cpu_info:61:cpu_info61:class misc + cpu_info:61:cpu_info61:clock_MHz 1649 + cpu_info:61:cpu_info61:core_id 1075 + cpu_info:61:cpu_info61:cpu_fru hc:///component= + cpu_info:61:cpu_info61:cpu_type sparcv9 + cpu_info:61:cpu_info61:crtime 186.029607348 + cpu_info:61:cpu_info61:current_clock_Hz 1648762500 + cpu_info:61:cpu_info61:device_ID 61 + cpu_info:61:cpu_info61:fpu_type sparcv9 + cpu_info:61:cpu_info61:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:61:cpu_info61:pg_id 25 + cpu_info:61:cpu_info61:snaptime 9305222.53065289 + cpu_info:61:cpu_info61:state on-line + cpu_info:61:cpu_info61:state_begin 1430258903 + cpu_info:61:cpu_info61:supported_frequencies_Hz 1648762500 + cpu_info:62:cpu_info62:brand SPARC-T3 + cpu_info:62:cpu_info62:chip_id 0 + cpu_info:62:cpu_info62:class misc + cpu_info:62:cpu_info62:clock_MHz 1649 + cpu_info:62:cpu_info62:core_id 1075 + cpu_info:62:cpu_info62:cpu_fru hc:///component= + cpu_info:62:cpu_info62:cpu_type sparcv9 + cpu_info:62:cpu_info62:crtime 186.032326712 + cpu_info:62:cpu_info62:current_clock_Hz 1648762500 + cpu_info:62:cpu_info62:device_ID 62 + cpu_info:62:cpu_info62:fpu_type sparcv9 + cpu_info:62:cpu_info62:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:62:cpu_info62:pg_id 25 + cpu_info:62:cpu_info62:snaptime 9305222.53182811 + cpu_info:62:cpu_info62:state on-line + cpu_info:62:cpu_info62:state_begin 1430258903 + cpu_info:62:cpu_info62:supported_frequencies_Hz 1648762500 + cpu_info:63:cpu_info63:brand SPARC-T3 + cpu_info:63:cpu_info63:chip_id 0 + cpu_info:63:cpu_info63:class misc + cpu_info:63:cpu_info63:clock_MHz 1649 + cpu_info:63:cpu_info63:core_id 1075 + cpu_info:63:cpu_info63:cpu_fru hc:///component= + cpu_info:63:cpu_info63:cpu_type sparcv9 + cpu_info:63:cpu_info63:crtime 186.034794541 + cpu_info:63:cpu_info63:current_clock_Hz 1648762500 + cpu_info:63:cpu_info63:device_ID 63 + cpu_info:63:cpu_info63:fpu_type sparcv9 + cpu_info:63:cpu_info63:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:63:cpu_info63:pg_id 25 + cpu_info:63:cpu_info63:snaptime 9305222.53301871 + cpu_info:63:cpu_info63:state on-line + cpu_info:63:cpu_info63:state_begin 1430258903 + cpu_info:63:cpu_info63:supported_frequencies_Hz 1648762500 + cpu_info:64:cpu_info64:brand SPARC-T3 + cpu_info:64:cpu_info64:chip_id 0 + cpu_info:64:cpu_info64:class misc + cpu_info:64:cpu_info64:clock_MHz 1649 + cpu_info:64:cpu_info64:core_id 1082 + cpu_info:64:cpu_info64:cpu_fru hc:///component= + cpu_info:64:cpu_info64:cpu_type sparcv9 + cpu_info:64:cpu_info64:crtime 186.037253985 + cpu_info:64:cpu_info64:current_clock_Hz 1648762500 + cpu_info:64:cpu_info64:device_ID 64 + cpu_info:64:cpu_info64:fpu_type sparcv9 + cpu_info:64:cpu_info64:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:64:cpu_info64:pg_id 26 + cpu_info:64:cpu_info64:snaptime 9305222.53418415 + cpu_info:64:cpu_info64:state on-line + cpu_info:64:cpu_info64:state_begin 1430258903 + cpu_info:64:cpu_info64:supported_frequencies_Hz 1648762500 + cpu_info:65:cpu_info65:brand SPARC-T3 + cpu_info:65:cpu_info65:chip_id 0 + cpu_info:65:cpu_info65:class misc + cpu_info:65:cpu_info65:clock_MHz 1649 + cpu_info:65:cpu_info65:core_id 1082 + cpu_info:65:cpu_info65:cpu_fru hc:///component= + cpu_info:65:cpu_info65:cpu_type sparcv9 + cpu_info:65:cpu_info65:crtime 186.039909068 + cpu_info:65:cpu_info65:current_clock_Hz 1648762500 + cpu_info:65:cpu_info65:device_ID 65 + cpu_info:65:cpu_info65:fpu_type sparcv9 + cpu_info:65:cpu_info65:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:65:cpu_info65:pg_id 26 + cpu_info:65:cpu_info65:snaptime 9305222.53533841 + cpu_info:65:cpu_info65:state on-line + cpu_info:65:cpu_info65:state_begin 1430258903 + cpu_info:65:cpu_info65:supported_frequencies_Hz 1648762500 + cpu_info:66:cpu_info66:brand SPARC-T3 + cpu_info:66:cpu_info66:chip_id 0 + cpu_info:66:cpu_info66:class misc + cpu_info:66:cpu_info66:clock_MHz 1649 + cpu_info:66:cpu_info66:core_id 1082 + cpu_info:66:cpu_info66:cpu_fru hc:///component= + cpu_info:66:cpu_info66:cpu_type sparcv9 + cpu_info:66:cpu_info66:crtime 186.042333577 + cpu_info:66:cpu_info66:current_clock_Hz 1648762500 + cpu_info:66:cpu_info66:device_ID 66 + cpu_info:66:cpu_info66:fpu_type sparcv9 + cpu_info:66:cpu_info66:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:66:cpu_info66:pg_id 26 + cpu_info:66:cpu_info66:snaptime 9305222.53649127 + cpu_info:66:cpu_info66:state on-line + cpu_info:66:cpu_info66:state_begin 1430258903 + cpu_info:66:cpu_info66:supported_frequencies_Hz 1648762500 + cpu_info:67:cpu_info67:brand SPARC-T3 + cpu_info:67:cpu_info67:chip_id 0 + cpu_info:67:cpu_info67:class misc + cpu_info:67:cpu_info67:clock_MHz 1649 + cpu_info:67:cpu_info67:core_id 1082 + cpu_info:67:cpu_info67:cpu_fru hc:///component= + cpu_info:67:cpu_info67:cpu_type sparcv9 + cpu_info:67:cpu_info67:crtime 186.044874071 + cpu_info:67:cpu_info67:current_clock_Hz 1648762500 + cpu_info:67:cpu_info67:device_ID 67 + cpu_info:67:cpu_info67:fpu_type sparcv9 + cpu_info:67:cpu_info67:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:67:cpu_info67:pg_id 26 + cpu_info:67:cpu_info67:snaptime 9305222.53778388 + cpu_info:67:cpu_info67:state on-line + cpu_info:67:cpu_info67:state_begin 1430258903 + cpu_info:67:cpu_info67:supported_frequencies_Hz 1648762500 + cpu_info:68:cpu_info68:brand SPARC-T3 + cpu_info:68:cpu_info68:chip_id 0 + cpu_info:68:cpu_info68:class misc + cpu_info:68:cpu_info68:clock_MHz 1649 + cpu_info:68:cpu_info68:core_id 1082 + cpu_info:68:cpu_info68:cpu_fru hc:///component= + cpu_info:68:cpu_info68:cpu_type sparcv9 + cpu_info:68:cpu_info68:crtime 186.047410374 + cpu_info:68:cpu_info68:current_clock_Hz 1648762500 + cpu_info:68:cpu_info68:device_ID 68 + cpu_info:68:cpu_info68:fpu_type sparcv9 + cpu_info:68:cpu_info68:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:68:cpu_info68:pg_id 28 + cpu_info:68:cpu_info68:snaptime 9305222.53897727 + cpu_info:68:cpu_info68:state on-line + cpu_info:68:cpu_info68:state_begin 1430258903 + cpu_info:68:cpu_info68:supported_frequencies_Hz 1648762500 + cpu_info:69:cpu_info69:brand SPARC-T3 + cpu_info:69:cpu_info69:chip_id 0 + cpu_info:69:cpu_info69:class misc + cpu_info:69:cpu_info69:clock_MHz 1649 + cpu_info:69:cpu_info69:core_id 1082 + cpu_info:69:cpu_info69:cpu_fru hc:///component= + cpu_info:69:cpu_info69:cpu_type sparcv9 + cpu_info:69:cpu_info69:crtime 186.049833485 + cpu_info:69:cpu_info69:current_clock_Hz 1648762500 + cpu_info:69:cpu_info69:device_ID 69 + cpu_info:69:cpu_info69:fpu_type sparcv9 + cpu_info:69:cpu_info69:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:69:cpu_info69:pg_id 28 + cpu_info:69:cpu_info69:snaptime 9305222.54013852 + cpu_info:69:cpu_info69:state on-line + cpu_info:69:cpu_info69:state_begin 1430258903 + cpu_info:69:cpu_info69:supported_frequencies_Hz 1648762500 + cpu_info:70:cpu_info70:brand SPARC-T3 + cpu_info:70:cpu_info70:chip_id 0 + cpu_info:70:cpu_info70:class misc + cpu_info:70:cpu_info70:clock_MHz 1649 + cpu_info:70:cpu_info70:core_id 1082 + cpu_info:70:cpu_info70:cpu_fru hc:///component= + cpu_info:70:cpu_info70:cpu_type sparcv9 + cpu_info:70:cpu_info70:crtime 186.052309698 + cpu_info:70:cpu_info70:current_clock_Hz 1648762500 + cpu_info:70:cpu_info70:device_ID 70 + cpu_info:70:cpu_info70:fpu_type sparcv9 + cpu_info:70:cpu_info70:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:70:cpu_info70:pg_id 28 + cpu_info:70:cpu_info70:snaptime 9305222.54131234 + cpu_info:70:cpu_info70:state on-line + cpu_info:70:cpu_info70:state_begin 1430258903 + cpu_info:70:cpu_info70:supported_frequencies_Hz 1648762500 + cpu_info:71:cpu_info71:brand SPARC-T3 + cpu_info:71:cpu_info71:chip_id 0 + cpu_info:71:cpu_info71:class misc + cpu_info:71:cpu_info71:clock_MHz 1649 + cpu_info:71:cpu_info71:core_id 1082 + cpu_info:71:cpu_info71:cpu_fru hc:///component= + cpu_info:71:cpu_info71:cpu_type sparcv9 + cpu_info:71:cpu_info71:crtime 186.054795694 + cpu_info:71:cpu_info71:current_clock_Hz 1648762500 + cpu_info:71:cpu_info71:device_ID 71 + cpu_info:71:cpu_info71:fpu_type sparcv9 + cpu_info:71:cpu_info71:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:71:cpu_info71:pg_id 28 + cpu_info:71:cpu_info71:snaptime 9305222.54247779 + cpu_info:71:cpu_info71:state on-line + cpu_info:71:cpu_info71:state_begin 1430258903 + cpu_info:71:cpu_info71:supported_frequencies_Hz 1648762500 + cpu_info:72:cpu_info72:brand SPARC-T3 + cpu_info:72:cpu_info72:chip_id 0 + cpu_info:72:cpu_info72:class misc + cpu_info:72:cpu_info72:clock_MHz 1649 + cpu_info:72:cpu_info72:core_id 1089 + cpu_info:72:cpu_info72:cpu_fru hc:///component= + cpu_info:72:cpu_info72:cpu_type sparcv9 + cpu_info:72:cpu_info72:crtime 186.059253437 + cpu_info:72:cpu_info72:current_clock_Hz 1648762500 + cpu_info:72:cpu_info72:device_ID 72 + cpu_info:72:cpu_info72:fpu_type sparcv9 + cpu_info:72:cpu_info72:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:72:cpu_info72:pg_id 29 + cpu_info:72:cpu_info72:snaptime 9305222.54363624 + cpu_info:72:cpu_info72:state on-line + cpu_info:72:cpu_info72:state_begin 1430258903 + cpu_info:72:cpu_info72:supported_frequencies_Hz 1648762500 + cpu_info:73:cpu_info73:brand SPARC-T3 + cpu_info:73:cpu_info73:chip_id 0 + cpu_info:73:cpu_info73:class misc + cpu_info:73:cpu_info73:clock_MHz 1649 + cpu_info:73:cpu_info73:core_id 1089 + cpu_info:73:cpu_info73:cpu_fru hc:///component= + cpu_info:73:cpu_info73:cpu_type sparcv9 + cpu_info:73:cpu_info73:crtime 186.062956578 + cpu_info:73:cpu_info73:current_clock_Hz 1648762500 + cpu_info:73:cpu_info73:device_ID 73 + cpu_info:73:cpu_info73:fpu_type sparcv9 + cpu_info:73:cpu_info73:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:73:cpu_info73:pg_id 29 + cpu_info:73:cpu_info73:snaptime 9305222.54479609 + cpu_info:73:cpu_info73:state on-line + cpu_info:73:cpu_info73:state_begin 1430258903 + cpu_info:73:cpu_info73:supported_frequencies_Hz 1648762500 + cpu_info:74:cpu_info74:brand SPARC-T3 + cpu_info:74:cpu_info74:chip_id 0 + cpu_info:74:cpu_info74:class misc + cpu_info:74:cpu_info74:clock_MHz 1649 + cpu_info:74:cpu_info74:core_id 1089 + cpu_info:74:cpu_info74:cpu_fru hc:///component= + cpu_info:74:cpu_info74:cpu_type sparcv9 + cpu_info:74:cpu_info74:crtime 186.066589848 + cpu_info:74:cpu_info74:current_clock_Hz 1648762500 + cpu_info:74:cpu_info74:device_ID 74 + cpu_info:74:cpu_info74:fpu_type sparcv9 + cpu_info:74:cpu_info74:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:74:cpu_info74:pg_id 29 + cpu_info:74:cpu_info74:snaptime 9305222.54595315 + cpu_info:74:cpu_info74:state on-line + cpu_info:74:cpu_info74:state_begin 1430258903 + cpu_info:74:cpu_info74:supported_frequencies_Hz 1648762500 + cpu_info:75:cpu_info75:brand SPARC-T3 + cpu_info:75:cpu_info75:chip_id 0 + cpu_info:75:cpu_info75:class misc + cpu_info:75:cpu_info75:clock_MHz 1649 + cpu_info:75:cpu_info75:core_id 1089 + cpu_info:75:cpu_info75:cpu_fru hc:///component= + cpu_info:75:cpu_info75:cpu_type sparcv9 + cpu_info:75:cpu_info75:crtime 186.070164428 + cpu_info:75:cpu_info75:current_clock_Hz 1648762500 + cpu_info:75:cpu_info75:device_ID 75 + cpu_info:75:cpu_info75:fpu_type sparcv9 + cpu_info:75:cpu_info75:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:75:cpu_info75:pg_id 29 + cpu_info:75:cpu_info75:snaptime 9305222.54710601 + cpu_info:75:cpu_info75:state on-line + cpu_info:75:cpu_info75:state_begin 1430258903 + cpu_info:75:cpu_info75:supported_frequencies_Hz 1648762500 + cpu_info:76:cpu_info76:brand SPARC-T3 + cpu_info:76:cpu_info76:chip_id 0 + cpu_info:76:cpu_info76:class misc + cpu_info:76:cpu_info76:clock_MHz 1649 + cpu_info:76:cpu_info76:core_id 1089 + cpu_info:76:cpu_info76:cpu_fru hc:///component= + cpu_info:76:cpu_info76:cpu_type sparcv9 + cpu_info:76:cpu_info76:crtime 186.074604005 + cpu_info:76:cpu_info76:current_clock_Hz 1648762500 + cpu_info:76:cpu_info76:device_ID 76 + cpu_info:76:cpu_info76:fpu_type sparcv9 + cpu_info:76:cpu_info76:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:76:cpu_info76:pg_id 31 + cpu_info:76:cpu_info76:snaptime 9305222.54828683 + cpu_info:76:cpu_info76:state on-line + cpu_info:76:cpu_info76:state_begin 1430258903 + cpu_info:76:cpu_info76:supported_frequencies_Hz 1648762500 + cpu_info:77:cpu_info77:brand SPARC-T3 + cpu_info:77:cpu_info77:chip_id 0 + cpu_info:77:cpu_info77:class misc + cpu_info:77:cpu_info77:clock_MHz 1649 + cpu_info:77:cpu_info77:core_id 1089 + cpu_info:77:cpu_info77:cpu_fru hc:///component= + cpu_info:77:cpu_info77:cpu_type sparcv9 + cpu_info:77:cpu_info77:crtime 186.078156225 + cpu_info:77:cpu_info77:current_clock_Hz 1648762500 + cpu_info:77:cpu_info77:device_ID 77 + cpu_info:77:cpu_info77:fpu_type sparcv9 + cpu_info:77:cpu_info77:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:77:cpu_info77:pg_id 31 + cpu_info:77:cpu_info77:snaptime 9305222.54944528 + cpu_info:77:cpu_info77:state on-line + cpu_info:77:cpu_info77:state_begin 1430258903 + cpu_info:77:cpu_info77:supported_frequencies_Hz 1648762500 + cpu_info:78:cpu_info78:brand SPARC-T3 + cpu_info:78:cpu_info78:chip_id 0 + cpu_info:78:cpu_info78:class misc + cpu_info:78:cpu_info78:clock_MHz 1649 + cpu_info:78:cpu_info78:core_id 1089 + cpu_info:78:cpu_info78:cpu_fru hc:///component= + cpu_info:78:cpu_info78:cpu_type sparcv9 + cpu_info:78:cpu_info78:crtime 186.081686087 + cpu_info:78:cpu_info78:current_clock_Hz 1648762500 + cpu_info:78:cpu_info78:device_ID 78 + cpu_info:78:cpu_info78:fpu_type sparcv9 + cpu_info:78:cpu_info78:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:78:cpu_info78:pg_id 31 + cpu_info:78:cpu_info78:snaptime 9305222.55061491 + cpu_info:78:cpu_info78:state on-line + cpu_info:78:cpu_info78:state_begin 1430258903 + cpu_info:78:cpu_info78:supported_frequencies_Hz 1648762500 + cpu_info:79:cpu_info79:brand SPARC-T3 + cpu_info:79:cpu_info79:chip_id 0 + cpu_info:79:cpu_info79:class misc + cpu_info:79:cpu_info79:clock_MHz 1649 + cpu_info:79:cpu_info79:core_id 1089 + cpu_info:79:cpu_info79:cpu_fru hc:///component= + cpu_info:79:cpu_info79:cpu_type sparcv9 + cpu_info:79:cpu_info79:crtime 186.08618715 + cpu_info:79:cpu_info79:current_clock_Hz 1648762500 + cpu_info:79:cpu_info79:device_ID 79 + cpu_info:79:cpu_info79:fpu_type sparcv9 + cpu_info:79:cpu_info79:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:79:cpu_info79:pg_id 31 + cpu_info:79:cpu_info79:snaptime 9305222.55181809 + cpu_info:79:cpu_info79:state on-line + cpu_info:79:cpu_info79:state_begin 1430258903 + cpu_info:79:cpu_info79:supported_frequencies_Hz 1648762500 + cpu_info:80:cpu_info80:brand SPARC-T3 + cpu_info:80:cpu_info80:chip_id 0 + cpu_info:80:cpu_info80:class misc + cpu_info:80:cpu_info80:clock_MHz 1649 + cpu_info:80:cpu_info80:core_id 1096 + cpu_info:80:cpu_info80:cpu_fru hc:///component= + cpu_info:80:cpu_info80:cpu_type sparcv9 + cpu_info:80:cpu_info80:crtime 186.089729589 + cpu_info:80:cpu_info80:current_clock_Hz 1648762500 + cpu_info:80:cpu_info80:device_ID 80 + cpu_info:80:cpu_info80:fpu_type sparcv9 + cpu_info:80:cpu_info80:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:80:cpu_info80:pg_id 32 + cpu_info:80:cpu_info80:snaptime 9305222.5529989 + cpu_info:80:cpu_info80:state on-line + cpu_info:80:cpu_info80:state_begin 1430258903 + cpu_info:80:cpu_info80:supported_frequencies_Hz 1648762500 + cpu_info:81:cpu_info81:brand SPARC-T3 + cpu_info:81:cpu_info81:chip_id 0 + cpu_info:81:cpu_info81:class misc + cpu_info:81:cpu_info81:clock_MHz 1649 + cpu_info:81:cpu_info81:core_id 1096 + cpu_info:81:cpu_info81:cpu_fru hc:///component= + cpu_info:81:cpu_info81:cpu_type sparcv9 + cpu_info:81:cpu_info81:crtime 186.093385218 + cpu_info:81:cpu_info81:current_clock_Hz 1648762500 + cpu_info:81:cpu_info81:device_ID 81 + cpu_info:81:cpu_info81:fpu_type sparcv9 + cpu_info:81:cpu_info81:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:81:cpu_info81:pg_id 32 + cpu_info:81:cpu_info81:snaptime 9305222.55415735 + cpu_info:81:cpu_info81:state on-line + cpu_info:81:cpu_info81:state_begin 1430258903 + cpu_info:81:cpu_info81:supported_frequencies_Hz 1648762500 + cpu_info:82:cpu_info82:brand SPARC-T3 + cpu_info:82:cpu_info82:chip_id 0 + cpu_info:82:cpu_info82:class misc + cpu_info:82:cpu_info82:clock_MHz 1649 + cpu_info:82:cpu_info82:core_id 1096 + cpu_info:82:cpu_info82:cpu_fru hc:///component= + cpu_info:82:cpu_info82:cpu_type sparcv9 + cpu_info:82:cpu_info82:crtime 186.096857787 + cpu_info:82:cpu_info82:current_clock_Hz 1648762500 + cpu_info:82:cpu_info82:device_ID 82 + cpu_info:82:cpu_info82:fpu_type sparcv9 + cpu_info:82:cpu_info82:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:82:cpu_info82:pg_id 32 + cpu_info:82:cpu_info82:snaptime 9305222.55531301 + cpu_info:82:cpu_info82:state on-line + cpu_info:82:cpu_info82:state_begin 1430258903 + cpu_info:82:cpu_info82:supported_frequencies_Hz 1648762500 + cpu_info:83:cpu_info83:brand SPARC-T3 + cpu_info:83:cpu_info83:chip_id 0 + cpu_info:83:cpu_info83:class misc + cpu_info:83:cpu_info83:clock_MHz 1649 + cpu_info:83:cpu_info83:core_id 1096 + cpu_info:83:cpu_info83:cpu_fru hc:///component= + cpu_info:83:cpu_info83:cpu_type sparcv9 + cpu_info:83:cpu_info83:crtime 186.10044075 + cpu_info:83:cpu_info83:current_clock_Hz 1648762500 + cpu_info:83:cpu_info83:device_ID 83 + cpu_info:83:cpu_info83:fpu_type sparcv9 + cpu_info:83:cpu_info83:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:83:cpu_info83:pg_id 32 + cpu_info:83:cpu_info83:snaptime 9305222.55646867 + cpu_info:83:cpu_info83:state on-line + cpu_info:83:cpu_info83:state_begin 1430258903 + cpu_info:83:cpu_info83:supported_frequencies_Hz 1648762500 + cpu_info:84:cpu_info84:brand SPARC-T3 + cpu_info:84:cpu_info84:chip_id 0 + cpu_info:84:cpu_info84:class misc + cpu_info:84:cpu_info84:clock_MHz 1649 + cpu_info:84:cpu_info84:core_id 1096 + cpu_info:84:cpu_info84:cpu_fru hc:///component= + cpu_info:84:cpu_info84:cpu_type sparcv9 + cpu_info:84:cpu_info84:crtime 186.103991574 + cpu_info:84:cpu_info84:current_clock_Hz 1648762500 + cpu_info:84:cpu_info84:device_ID 84 + cpu_info:84:cpu_info84:fpu_type sparcv9 + cpu_info:84:cpu_info84:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:84:cpu_info84:pg_id 34 + cpu_info:84:cpu_info84:snaptime 9305222.55762992 + cpu_info:84:cpu_info84:state on-line + cpu_info:84:cpu_info84:state_begin 1430258903 + cpu_info:84:cpu_info84:supported_frequencies_Hz 1648762500 + cpu_info:85:cpu_info85:brand SPARC-T3 + cpu_info:85:cpu_info85:chip_id 0 + cpu_info:85:cpu_info85:class misc + cpu_info:85:cpu_info85:clock_MHz 1649 + cpu_info:85:cpu_info85:core_id 1096 + cpu_info:85:cpu_info85:cpu_fru hc:///component= + cpu_info:85:cpu_info85:cpu_type sparcv9 + cpu_info:85:cpu_info85:crtime 186.107497679 + cpu_info:85:cpu_info85:current_clock_Hz 1648762500 + cpu_info:85:cpu_info85:device_ID 85 + cpu_info:85:cpu_info85:fpu_type sparcv9 + cpu_info:85:cpu_info85:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:85:cpu_info85:pg_id 34 + cpu_info:85:cpu_info85:snaptime 9305222.55880235 + cpu_info:85:cpu_info85:state on-line + cpu_info:85:cpu_info85:state_begin 1430258903 + cpu_info:85:cpu_info85:supported_frequencies_Hz 1648762500 + cpu_info:86:cpu_info86:brand SPARC-T3 + cpu_info:86:cpu_info86:chip_id 0 + cpu_info:86:cpu_info86:class misc + cpu_info:86:cpu_info86:clock_MHz 1649 + cpu_info:86:cpu_info86:core_id 1096 + cpu_info:86:cpu_info86:cpu_fru hc:///component= + cpu_info:86:cpu_info86:cpu_type sparcv9 + cpu_info:86:cpu_info86:crtime 186.112561899 + cpu_info:86:cpu_info86:current_clock_Hz 1648762500 + cpu_info:86:cpu_info86:device_ID 86 + cpu_info:86:cpu_info86:fpu_type sparcv9 + cpu_info:86:cpu_info86:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:86:cpu_info86:pg_id 34 + cpu_info:86:cpu_info86:snaptime 9305222.55995382 + cpu_info:86:cpu_info86:state on-line + cpu_info:86:cpu_info86:state_begin 1430258903 + cpu_info:86:cpu_info86:supported_frequencies_Hz 1648762500 + cpu_info:87:cpu_info87:brand SPARC-T3 + cpu_info:87:cpu_info87:chip_id 0 + cpu_info:87:cpu_info87:class misc + cpu_info:87:cpu_info87:clock_MHz 1649 + cpu_info:87:cpu_info87:core_id 1096 + cpu_info:87:cpu_info87:cpu_fru hc:///component= + cpu_info:87:cpu_info87:cpu_type sparcv9 + cpu_info:87:cpu_info87:crtime 186.116544523 + cpu_info:87:cpu_info87:current_clock_Hz 1648762500 + cpu_info:87:cpu_info87:device_ID 87 + cpu_info:87:cpu_info87:fpu_type sparcv9 + cpu_info:87:cpu_info87:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:87:cpu_info87:pg_id 34 + cpu_info:87:cpu_info87:snaptime 9305222.56116537 + cpu_info:87:cpu_info87:state on-line + cpu_info:87:cpu_info87:state_begin 1430258903 + cpu_info:87:cpu_info87:supported_frequencies_Hz 1648762500 + cpu_info:88:cpu_info88:brand SPARC-T3 + cpu_info:88:cpu_info88:chip_id 0 + cpu_info:88:cpu_info88:class misc + cpu_info:88:cpu_info88:clock_MHz 1649 + cpu_info:88:cpu_info88:core_id 1103 + cpu_info:88:cpu_info88:cpu_fru hc:///component= + cpu_info:88:cpu_info88:cpu_type sparcv9 + cpu_info:88:cpu_info88:crtime 186.120367841 + cpu_info:88:cpu_info88:current_clock_Hz 1648762500 + cpu_info:88:cpu_info88:device_ID 88 + cpu_info:88:cpu_info88:fpu_type sparcv9 + cpu_info:88:cpu_info88:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:88:cpu_info88:pg_id 35 + cpu_info:88:cpu_info88:snaptime 9305222.56231964 + cpu_info:88:cpu_info88:state on-line + cpu_info:88:cpu_info88:state_begin 1430258903 + cpu_info:88:cpu_info88:supported_frequencies_Hz 1648762500 + cpu_info:89:cpu_info89:brand SPARC-T3 + cpu_info:89:cpu_info89:chip_id 0 + cpu_info:89:cpu_info89:class misc + cpu_info:89:cpu_info89:clock_MHz 1649 + cpu_info:89:cpu_info89:core_id 1103 + cpu_info:89:cpu_info89:cpu_fru hc:///component= + cpu_info:89:cpu_info89:cpu_type sparcv9 + cpu_info:89:cpu_info89:crtime 186.124051418 + cpu_info:89:cpu_info89:current_clock_Hz 1648762500 + cpu_info:89:cpu_info89:device_ID 89 + cpu_info:89:cpu_info89:fpu_type sparcv9 + cpu_info:89:cpu_info89:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:89:cpu_info89:pg_id 35 + cpu_info:89:cpu_info89:snaptime 9305222.56348368 + cpu_info:89:cpu_info89:state on-line + cpu_info:89:cpu_info89:state_begin 1430258903 + cpu_info:89:cpu_info89:supported_frequencies_Hz 1648762500 + cpu_info:90:cpu_info90:brand SPARC-T3 + cpu_info:90:cpu_info90:chip_id 0 + cpu_info:90:cpu_info90:class misc + cpu_info:90:cpu_info90:clock_MHz 1649 + cpu_info:90:cpu_info90:core_id 1103 + cpu_info:90:cpu_info90:cpu_fru hc:///component= + cpu_info:90:cpu_info90:cpu_type sparcv9 + cpu_info:90:cpu_info90:crtime 186.127595254 + cpu_info:90:cpu_info90:current_clock_Hz 1648762500 + cpu_info:90:cpu_info90:device_ID 90 + cpu_info:90:cpu_info90:fpu_type sparcv9 + cpu_info:90:cpu_info90:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:90:cpu_info90:pg_id 35 + cpu_info:90:cpu_info90:snaptime 9305222.56470222 + cpu_info:90:cpu_info90:state on-line + cpu_info:90:cpu_info90:state_begin 1430258903 + cpu_info:90:cpu_info90:supported_frequencies_Hz 1648762500 + cpu_info:91:cpu_info91:brand SPARC-T3 + cpu_info:91:cpu_info91:chip_id 0 + cpu_info:91:cpu_info91:class misc + cpu_info:91:cpu_info91:clock_MHz 1649 + cpu_info:91:cpu_info91:core_id 1103 + cpu_info:91:cpu_info91:cpu_fru hc:///component= + cpu_info:91:cpu_info91:cpu_type sparcv9 + cpu_info:91:cpu_info91:crtime 186.131172628 + cpu_info:91:cpu_info91:current_clock_Hz 1648762500 + cpu_info:91:cpu_info91:device_ID 91 + cpu_info:91:cpu_info91:fpu_type sparcv9 + cpu_info:91:cpu_info91:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:91:cpu_info91:pg_id 35 + cpu_info:91:cpu_info91:snaptime 9305222.56585928 + cpu_info:91:cpu_info91:state on-line + cpu_info:91:cpu_info91:state_begin 1430258903 + cpu_info:91:cpu_info91:supported_frequencies_Hz 1648762500 + cpu_info:92:cpu_info92:brand SPARC-T3 + cpu_info:92:cpu_info92:chip_id 0 + cpu_info:92:cpu_info92:class misc + cpu_info:92:cpu_info92:clock_MHz 1649 + cpu_info:92:cpu_info92:core_id 1103 + cpu_info:92:cpu_info92:cpu_fru hc:///component= + cpu_info:92:cpu_info92:cpu_type sparcv9 + cpu_info:92:cpu_info92:crtime 186.135181802 + cpu_info:92:cpu_info92:current_clock_Hz 1648762500 + cpu_info:92:cpu_info92:device_ID 92 + cpu_info:92:cpu_info92:fpu_type sparcv9 + cpu_info:92:cpu_info92:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:92:cpu_info92:pg_id 37 + cpu_info:92:cpu_info92:snaptime 9305222.56701773 + cpu_info:92:cpu_info92:state on-line + cpu_info:92:cpu_info92:state_begin 1430258903 + cpu_info:92:cpu_info92:supported_frequencies_Hz 1648762500 + cpu_info:93:cpu_info93:brand SPARC-T3 + cpu_info:93:cpu_info93:chip_id 0 + cpu_info:93:cpu_info93:class misc + cpu_info:93:cpu_info93:clock_MHz 1649 + cpu_info:93:cpu_info93:core_id 1103 + cpu_info:93:cpu_info93:cpu_fru hc:///component= + cpu_info:93:cpu_info93:cpu_type sparcv9 + cpu_info:93:cpu_info93:crtime 186.146467299 + cpu_info:93:cpu_info93:current_clock_Hz 1648762500 + cpu_info:93:cpu_info93:device_ID 93 + cpu_info:93:cpu_info93:fpu_type sparcv9 + cpu_info:93:cpu_info93:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:93:cpu_info93:pg_id 37 + cpu_info:93:cpu_info93:snaptime 9305222.568172 + cpu_info:93:cpu_info93:state on-line + cpu_info:93:cpu_info93:state_begin 1430258903 + cpu_info:93:cpu_info93:supported_frequencies_Hz 1648762500 + cpu_info:94:cpu_info94:brand SPARC-T3 + cpu_info:94:cpu_info94:chip_id 0 + cpu_info:94:cpu_info94:class misc + cpu_info:94:cpu_info94:clock_MHz 1649 + cpu_info:94:cpu_info94:core_id 1103 + cpu_info:94:cpu_info94:cpu_fru hc:///component= + cpu_info:94:cpu_info94:cpu_type sparcv9 + cpu_info:94:cpu_info94:crtime 186.150243105 + cpu_info:94:cpu_info94:current_clock_Hz 1648762500 + cpu_info:94:cpu_info94:device_ID 94 + cpu_info:94:cpu_info94:fpu_type sparcv9 + cpu_info:94:cpu_info94:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:94:cpu_info94:pg_id 37 + cpu_info:94:cpu_info94:snaptime 9305222.56933883 + cpu_info:94:cpu_info94:state on-line + cpu_info:94:cpu_info94:state_begin 1430258903 + cpu_info:94:cpu_info94:supported_frequencies_Hz 1648762500 + cpu_info:95:cpu_info95:brand SPARC-T3 + cpu_info:95:cpu_info95:chip_id 0 + cpu_info:95:cpu_info95:class misc + cpu_info:95:cpu_info95:clock_MHz 1649 + cpu_info:95:cpu_info95:core_id 1103 + cpu_info:95:cpu_info95:cpu_fru hc:///component= + cpu_info:95:cpu_info95:cpu_type sparcv9 + cpu_info:95:cpu_info95:crtime 186.154034283 + cpu_info:95:cpu_info95:current_clock_Hz 1648762500 + cpu_info:95:cpu_info95:device_ID 95 + cpu_info:95:cpu_info95:fpu_type sparcv9 + cpu_info:95:cpu_info95:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:95:cpu_info95:pg_id 37 + cpu_info:95:cpu_info95:snaptime 9305222.5705462 + cpu_info:95:cpu_info95:state on-line + cpu_info:95:cpu_info95:state_begin 1430258903 + cpu_info:95:cpu_info95:supported_frequencies_Hz 1648762500 + cpu_info:96:cpu_info96:brand SPARC-T3 + cpu_info:96:cpu_info96:chip_id 0 + cpu_info:96:cpu_info96:class misc + cpu_info:96:cpu_info96:clock_MHz 1649 + cpu_info:96:cpu_info96:core_id 1110 + cpu_info:96:cpu_info96:cpu_fru hc:///component= + cpu_info:96:cpu_info96:cpu_type sparcv9 + cpu_info:96:cpu_info96:crtime 186.157794718 + cpu_info:96:cpu_info96:current_clock_Hz 1648762500 + cpu_info:96:cpu_info96:device_ID 96 + cpu_info:96:cpu_info96:fpu_type sparcv9 + cpu_info:96:cpu_info96:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:96:cpu_info96:pg_id 38 + cpu_info:96:cpu_info96:snaptime 9305222.57170186 + cpu_info:96:cpu_info96:state on-line + cpu_info:96:cpu_info96:state_begin 1430258903 + cpu_info:96:cpu_info96:supported_frequencies_Hz 1648762500 + cpu_info:97:cpu_info97:brand SPARC-T3 + cpu_info:97:cpu_info97:chip_id 0 + cpu_info:97:cpu_info97:class misc + cpu_info:97:cpu_info97:clock_MHz 1649 + cpu_info:97:cpu_info97:core_id 1110 + cpu_info:97:cpu_info97:cpu_fru hc:///component= + cpu_info:97:cpu_info97:cpu_type sparcv9 + cpu_info:97:cpu_info97:crtime 186.162034466 + cpu_info:97:cpu_info97:current_clock_Hz 1648762500 + cpu_info:97:cpu_info97:device_ID 97 + cpu_info:97:cpu_info97:fpu_type sparcv9 + cpu_info:97:cpu_info97:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:97:cpu_info97:pg_id 38 + cpu_info:97:cpu_info97:snaptime 9305222.57285752 + cpu_info:97:cpu_info97:state on-line + cpu_info:97:cpu_info97:state_begin 1430258903 + cpu_info:97:cpu_info97:supported_frequencies_Hz 1648762500 + cpu_info:98:cpu_info98:brand SPARC-T3 + cpu_info:98:cpu_info98:chip_id 0 + cpu_info:98:cpu_info98:class misc + cpu_info:98:cpu_info98:clock_MHz 1649 + cpu_info:98:cpu_info98:core_id 1110 + cpu_info:98:cpu_info98:cpu_fru hc:///component= + cpu_info:98:cpu_info98:cpu_type sparcv9 + cpu_info:98:cpu_info98:crtime 186.165764158 + cpu_info:98:cpu_info98:current_clock_Hz 1648762500 + cpu_info:98:cpu_info98:device_ID 98 + cpu_info:98:cpu_info98:fpu_type sparcv9 + cpu_info:98:cpu_info98:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:98:cpu_info98:pg_id 38 + cpu_info:98:cpu_info98:snaptime 9305222.57402436 + cpu_info:98:cpu_info98:state on-line + cpu_info:98:cpu_info98:state_begin 1430258903 + cpu_info:98:cpu_info98:supported_frequencies_Hz 1648762500 + cpu_info:99:cpu_info99:brand SPARC-T3 + cpu_info:99:cpu_info99:chip_id 0 + cpu_info:99:cpu_info99:class misc + cpu_info:99:cpu_info99:clock_MHz 1649 + cpu_info:99:cpu_info99:core_id 1110 + cpu_info:99:cpu_info99:cpu_fru hc:///component= + cpu_info:99:cpu_info99:cpu_type sparcv9 + cpu_info:99:cpu_info99:crtime 186.169446338 + cpu_info:99:cpu_info99:current_clock_Hz 1648762500 + cpu_info:99:cpu_info99:device_ID 99 + cpu_info:99:cpu_info99:fpu_type sparcv9 + cpu_info:99:cpu_info99:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:99:cpu_info99:pg_id 38 + cpu_info:99:cpu_info99:snaptime 9305222.5751856 + cpu_info:99:cpu_info99:state on-line + cpu_info:99:cpu_info99:state_begin 1430258903 + cpu_info:99:cpu_info99:supported_frequencies_Hz 1648762500 + cpu_info:100:cpu_info100:brand SPARC-T3 + cpu_info:100:cpu_info100:chip_id 0 + cpu_info:100:cpu_info100:class misc + cpu_info:100:cpu_info100:clock_MHz 1649 + cpu_info:100:cpu_info100:core_id 1110 + cpu_info:100:cpu_info100:cpu_fru hc:///component= + cpu_info:100:cpu_info100:cpu_type sparcv9 + cpu_info:100:cpu_info100:crtime 186.17328363 + cpu_info:100:cpu_info100:current_clock_Hz 1648762500 + cpu_info:100:cpu_info100:device_ID 100 + cpu_info:100:cpu_info100:fpu_type sparcv9 + cpu_info:100:cpu_info100:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:100:cpu_info100:pg_id 40 + cpu_info:100:cpu_info100:snaptime 9305222.57636642 + cpu_info:100:cpu_info100:state on-line + cpu_info:100:cpu_info100:state_begin 1430258903 + cpu_info:100:cpu_info100:supported_frequencies_Hz 1648762500 + cpu_info:101:cpu_info101:brand SPARC-T3 + cpu_info:101:cpu_info101:chip_id 0 + cpu_info:101:cpu_info101:class misc + cpu_info:101:cpu_info101:clock_MHz 1649 + cpu_info:101:cpu_info101:core_id 1110 + cpu_info:101:cpu_info101:cpu_fru hc:///component= + cpu_info:101:cpu_info101:cpu_type sparcv9 + cpu_info:101:cpu_info101:crtime 186.17700913 + cpu_info:101:cpu_info101:current_clock_Hz 1648762500 + cpu_info:101:cpu_info101:device_ID 101 + cpu_info:101:cpu_info101:fpu_type sparcv9 + cpu_info:101:cpu_info101:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:101:cpu_info101:pg_id 40 + cpu_info:101:cpu_info101:snaptime 9305222.57756819 + cpu_info:101:cpu_info101:state on-line + cpu_info:101:cpu_info101:state_begin 1430258903 + cpu_info:101:cpu_info101:supported_frequencies_Hz 1648762500 + cpu_info:102:cpu_info102:brand SPARC-T3 + cpu_info:102:cpu_info102:chip_id 0 + cpu_info:102:cpu_info102:class misc + cpu_info:102:cpu_info102:clock_MHz 1649 + cpu_info:102:cpu_info102:core_id 1110 + cpu_info:102:cpu_info102:cpu_fru hc:///component= + cpu_info:102:cpu_info102:cpu_type sparcv9 + cpu_info:102:cpu_info102:crtime 186.181111931 + cpu_info:102:cpu_info102:current_clock_Hz 1648762500 + cpu_info:102:cpu_info102:device_ID 102 + cpu_info:102:cpu_info102:fpu_type sparcv9 + cpu_info:102:cpu_info102:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:102:cpu_info102:pg_id 40 + cpu_info:102:cpu_info102:snaptime 9305222.57872385 + cpu_info:102:cpu_info102:state on-line + cpu_info:102:cpu_info102:state_begin 1430258903 + cpu_info:102:cpu_info102:supported_frequencies_Hz 1648762500 + cpu_info:103:cpu_info103:brand SPARC-T3 + cpu_info:103:cpu_info103:chip_id 0 + cpu_info:103:cpu_info103:class misc + cpu_info:103:cpu_info103:clock_MHz 1649 + cpu_info:103:cpu_info103:core_id 1110 + cpu_info:103:cpu_info103:cpu_fru hc:///component= + cpu_info:103:cpu_info103:cpu_type sparcv9 + cpu_info:103:cpu_info103:crtime 186.184992543 + cpu_info:103:cpu_info103:current_clock_Hz 1648762500 + cpu_info:103:cpu_info103:device_ID 103 + cpu_info:103:cpu_info103:fpu_type sparcv9 + cpu_info:103:cpu_info103:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:103:cpu_info103:pg_id 40 + cpu_info:103:cpu_info103:snaptime 9305222.57987811 + cpu_info:103:cpu_info103:state on-line + cpu_info:103:cpu_info103:state_begin 1430258903 + cpu_info:103:cpu_info103:supported_frequencies_Hz 1648762500 + cpu_info:104:cpu_info104:brand SPARC-T3 + cpu_info:104:cpu_info104:chip_id 0 + cpu_info:104:cpu_info104:class misc + cpu_info:104:cpu_info104:clock_MHz 1649 + cpu_info:104:cpu_info104:core_id 1117 + cpu_info:104:cpu_info104:cpu_fru hc:///component= + cpu_info:104:cpu_info104:cpu_type sparcv9 + cpu_info:104:cpu_info104:crtime 186.188854989 + cpu_info:104:cpu_info104:current_clock_Hz 1648762500 + cpu_info:104:cpu_info104:device_ID 104 + cpu_info:104:cpu_info104:fpu_type sparcv9 + cpu_info:104:cpu_info104:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:104:cpu_info104:pg_id 41 + cpu_info:104:cpu_info104:snaptime 9305222.58126295 + cpu_info:104:cpu_info104:state on-line + cpu_info:104:cpu_info104:state_begin 1430258903 + cpu_info:104:cpu_info104:supported_frequencies_Hz 1648762500 + cpu_info:105:cpu_info105:brand SPARC-T3 + cpu_info:105:cpu_info105:chip_id 0 + cpu_info:105:cpu_info105:class misc + cpu_info:105:cpu_info105:clock_MHz 1649 + cpu_info:105:cpu_info105:core_id 1117 + cpu_info:105:cpu_info105:cpu_fru hc:///component= + cpu_info:105:cpu_info105:cpu_type sparcv9 + cpu_info:105:cpu_info105:crtime 186.192766344 + cpu_info:105:cpu_info105:current_clock_Hz 1648762500 + cpu_info:105:cpu_info105:device_ID 105 + cpu_info:105:cpu_info105:fpu_type sparcv9 + cpu_info:105:cpu_info105:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:105:cpu_info105:pg_id 41 + cpu_info:105:cpu_info105:snaptime 9305222.5824228 + cpu_info:105:cpu_info105:state on-line + cpu_info:105:cpu_info105:state_begin 1430258903 + cpu_info:105:cpu_info105:supported_frequencies_Hz 1648762500 + cpu_info:106:cpu_info106:brand SPARC-T3 + cpu_info:106:cpu_info106:chip_id 0 + cpu_info:106:cpu_info106:class misc + cpu_info:106:cpu_info106:clock_MHz 1649 + cpu_info:106:cpu_info106:core_id 1117 + cpu_info:106:cpu_info106:cpu_fru hc:///component= + cpu_info:106:cpu_info106:cpu_type sparcv9 + cpu_info:106:cpu_info106:crtime 186.197053603 + cpu_info:106:cpu_info106:current_clock_Hz 1648762500 + cpu_info:106:cpu_info106:device_ID 106 + cpu_info:106:cpu_info106:fpu_type sparcv9 + cpu_info:106:cpu_info106:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:106:cpu_info106:pg_id 41 + cpu_info:106:cpu_info106:snaptime 9305222.58358125 + cpu_info:106:cpu_info106:state on-line + cpu_info:106:cpu_info106:state_begin 1430258903 + cpu_info:106:cpu_info106:supported_frequencies_Hz 1648762500 + cpu_info:107:cpu_info107:brand SPARC-T3 + cpu_info:107:cpu_info107:chip_id 0 + cpu_info:107:cpu_info107:class misc + cpu_info:107:cpu_info107:clock_MHz 1649 + cpu_info:107:cpu_info107:core_id 1117 + cpu_info:107:cpu_info107:cpu_fru hc:///component= + cpu_info:107:cpu_info107:cpu_type sparcv9 + cpu_info:107:cpu_info107:crtime 186.200927229 + cpu_info:107:cpu_info107:current_clock_Hz 1648762500 + cpu_info:107:cpu_info107:device_ID 107 + cpu_info:107:cpu_info107:fpu_type sparcv9 + cpu_info:107:cpu_info107:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:107:cpu_info107:pg_id 41 + cpu_info:107:cpu_info107:snaptime 9305222.5847467 + cpu_info:107:cpu_info107:state on-line + cpu_info:107:cpu_info107:state_begin 1430258903 + cpu_info:107:cpu_info107:supported_frequencies_Hz 1648762500 + cpu_info:108:cpu_info108:brand SPARC-T3 + cpu_info:108:cpu_info108:chip_id 0 + cpu_info:108:cpu_info108:class misc + cpu_info:108:cpu_info108:clock_MHz 1649 + cpu_info:108:cpu_info108:core_id 1117 + cpu_info:108:cpu_info108:cpu_fru hc:///component= + cpu_info:108:cpu_info108:cpu_type sparcv9 + cpu_info:108:cpu_info108:crtime 186.204772906 + cpu_info:108:cpu_info108:current_clock_Hz 1648762500 + cpu_info:108:cpu_info108:device_ID 108 + cpu_info:108:cpu_info108:fpu_type sparcv9 + cpu_info:108:cpu_info108:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:108:cpu_info108:pg_id 43 + cpu_info:108:cpu_info108:snaptime 9305222.58591214 + cpu_info:108:cpu_info108:state on-line + cpu_info:108:cpu_info108:state_begin 1430258903 + cpu_info:108:cpu_info108:supported_frequencies_Hz 1648762500 + cpu_info:109:cpu_info109:brand SPARC-T3 + cpu_info:109:cpu_info109:chip_id 0 + cpu_info:109:cpu_info109:class misc + cpu_info:109:cpu_info109:clock_MHz 1649 + cpu_info:109:cpu_info109:core_id 1117 + cpu_info:109:cpu_info109:cpu_fru hc:///component= + cpu_info:109:cpu_info109:cpu_type sparcv9 + cpu_info:109:cpu_info109:crtime 186.208800246 + cpu_info:109:cpu_info109:current_clock_Hz 1648762500 + cpu_info:109:cpu_info109:device_ID 109 + cpu_info:109:cpu_info109:fpu_type sparcv9 + cpu_info:109:cpu_info109:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:109:cpu_info109:pg_id 43 + cpu_info:109:cpu_info109:snaptime 9305222.58709854 + cpu_info:109:cpu_info109:state on-line + cpu_info:109:cpu_info109:state_begin 1430258903 + cpu_info:109:cpu_info109:supported_frequencies_Hz 1648762500 + cpu_info:110:cpu_info110:brand SPARC-T3 + cpu_info:110:cpu_info110:chip_id 0 + cpu_info:110:cpu_info110:class misc + cpu_info:110:cpu_info110:clock_MHz 1649 + cpu_info:110:cpu_info110:core_id 1117 + cpu_info:110:cpu_info110:cpu_fru hc:///component= + cpu_info:110:cpu_info110:cpu_type sparcv9 + cpu_info:110:cpu_info110:crtime 186.21284715 + cpu_info:110:cpu_info110:current_clock_Hz 1648762500 + cpu_info:110:cpu_info110:device_ID 110 + cpu_info:110:cpu_info110:fpu_type sparcv9 + cpu_info:110:cpu_info110:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:110:cpu_info110:pg_id 43 + cpu_info:110:cpu_info110:snaptime 9305222.5882556 + cpu_info:110:cpu_info110:state on-line + cpu_info:110:cpu_info110:state_begin 1430258903 + cpu_info:110:cpu_info110:supported_frequencies_Hz 1648762500 + cpu_info:111:cpu_info111:brand SPARC-T3 + cpu_info:111:cpu_info111:chip_id 0 + cpu_info:111:cpu_info111:class misc + cpu_info:111:cpu_info111:clock_MHz 1649 + cpu_info:111:cpu_info111:core_id 1117 + cpu_info:111:cpu_info111:cpu_fru hc:///component= + cpu_info:111:cpu_info111:cpu_type sparcv9 + cpu_info:111:cpu_info111:crtime 186.216681648 + cpu_info:111:cpu_info111:current_clock_Hz 1648762500 + cpu_info:111:cpu_info111:device_ID 111 + cpu_info:111:cpu_info111:fpu_type sparcv9 + cpu_info:111:cpu_info111:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:111:cpu_info111:pg_id 43 + cpu_info:111:cpu_info111:snaptime 9305222.58941964 + cpu_info:111:cpu_info111:state on-line + cpu_info:111:cpu_info111:state_begin 1430258903 + cpu_info:111:cpu_info111:supported_frequencies_Hz 1648762500 + cpu_info:112:cpu_info112:brand SPARC-T3 + cpu_info:112:cpu_info112:chip_id 0 + cpu_info:112:cpu_info112:class misc + cpu_info:112:cpu_info112:clock_MHz 1649 + cpu_info:112:cpu_info112:core_id 1124 + cpu_info:112:cpu_info112:cpu_fru hc:///component= + cpu_info:112:cpu_info112:cpu_type sparcv9 + cpu_info:112:cpu_info112:crtime 186.220644707 + cpu_info:112:cpu_info112:current_clock_Hz 1648762500 + cpu_info:112:cpu_info112:device_ID 112 + cpu_info:112:cpu_info112:fpu_type sparcv9 + cpu_info:112:cpu_info112:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:112:cpu_info112:pg_id 44 + cpu_info:112:cpu_info112:snaptime 9305222.59064377 + cpu_info:112:cpu_info112:state on-line + cpu_info:112:cpu_info112:state_begin 1430258903 + cpu_info:112:cpu_info112:supported_frequencies_Hz 1648762500 + cpu_info:113:cpu_info113:brand SPARC-T3 + cpu_info:113:cpu_info113:chip_id 0 + cpu_info:113:cpu_info113:class misc + cpu_info:113:cpu_info113:clock_MHz 1649 + cpu_info:113:cpu_info113:core_id 1124 + cpu_info:113:cpu_info113:cpu_fru hc:///component= + cpu_info:113:cpu_info113:cpu_type sparcv9 + cpu_info:113:cpu_info113:crtime 186.224940351 + cpu_info:113:cpu_info113:current_clock_Hz 1648762500 + cpu_info:113:cpu_info113:device_ID 113 + cpu_info:113:cpu_info113:fpu_type sparcv9 + cpu_info:113:cpu_info113:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:113:cpu_info113:pg_id 44 + cpu_info:113:cpu_info113:snaptime 9305222.591819 + cpu_info:113:cpu_info113:state on-line + cpu_info:113:cpu_info113:state_begin 1430258903 + cpu_info:113:cpu_info113:supported_frequencies_Hz 1648762500 + cpu_info:114:cpu_info114:brand SPARC-T3 + cpu_info:114:cpu_info114:chip_id 0 + cpu_info:114:cpu_info114:class misc + cpu_info:114:cpu_info114:clock_MHz 1649 + cpu_info:114:cpu_info114:core_id 1124 + cpu_info:114:cpu_info114:cpu_fru hc:///component= + cpu_info:114:cpu_info114:cpu_type sparcv9 + cpu_info:114:cpu_info114:crtime 186.228844719 + cpu_info:114:cpu_info114:current_clock_Hz 1648762500 + cpu_info:114:cpu_info114:device_ID 114 + cpu_info:114:cpu_info114:fpu_type sparcv9 + cpu_info:114:cpu_info114:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:114:cpu_info114:pg_id 44 + cpu_info:114:cpu_info114:snaptime 9305222.59298444 + cpu_info:114:cpu_info114:state on-line + cpu_info:114:cpu_info114:state_begin 1430258903 + cpu_info:114:cpu_info114:supported_frequencies_Hz 1648762500 + cpu_info:115:cpu_info115:brand SPARC-T3 + cpu_info:115:cpu_info115:chip_id 0 + cpu_info:115:cpu_info115:class misc + cpu_info:115:cpu_info115:clock_MHz 1649 + cpu_info:115:cpu_info115:core_id 1124 + cpu_info:115:cpu_info115:cpu_fru hc:///component= + cpu_info:115:cpu_info115:cpu_type sparcv9 + cpu_info:115:cpu_info115:crtime 186.232733716 + cpu_info:115:cpu_info115:current_clock_Hz 1648762500 + cpu_info:115:cpu_info115:device_ID 115 + cpu_info:115:cpu_info115:fpu_type sparcv9 + cpu_info:115:cpu_info115:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:115:cpu_info115:pg_id 44 + cpu_info:115:cpu_info115:snaptime 9305222.5941387 + cpu_info:115:cpu_info115:state on-line + cpu_info:115:cpu_info115:state_begin 1430258903 + cpu_info:115:cpu_info115:supported_frequencies_Hz 1648762500 + cpu_info:116:cpu_info116:brand SPARC-T3 + cpu_info:116:cpu_info116:chip_id 0 + cpu_info:116:cpu_info116:class misc + cpu_info:116:cpu_info116:clock_MHz 1649 + cpu_info:116:cpu_info116:core_id 1124 + cpu_info:116:cpu_info116:cpu_fru hc:///component= + cpu_info:116:cpu_info116:cpu_type sparcv9 + cpu_info:116:cpu_info116:crtime 186.236670225 + cpu_info:116:cpu_info116:current_clock_Hz 1648762500 + cpu_info:116:cpu_info116:device_ID 116 + cpu_info:116:cpu_info116:fpu_type sparcv9 + cpu_info:116:cpu_info116:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:116:cpu_info116:pg_id 46 + cpu_info:116:cpu_info116:snaptime 9305222.59529995 + cpu_info:116:cpu_info116:state on-line + cpu_info:116:cpu_info116:state_begin 1430258903 + cpu_info:116:cpu_info116:supported_frequencies_Hz 1648762500 + cpu_info:117:cpu_info117:brand SPARC-T3 + cpu_info:117:cpu_info117:chip_id 0 + cpu_info:117:cpu_info117:class misc + cpu_info:117:cpu_info117:clock_MHz 1649 + cpu_info:117:cpu_info117:core_id 1124 + cpu_info:117:cpu_info117:cpu_fru hc:///component= + cpu_info:117:cpu_info117:cpu_type sparcv9 + cpu_info:117:cpu_info117:crtime 186.240778616 + cpu_info:117:cpu_info117:current_clock_Hz 1648762500 + cpu_info:117:cpu_info117:device_ID 117 + cpu_info:117:cpu_info117:fpu_type sparcv9 + cpu_info:117:cpu_info117:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:117:cpu_info117:pg_id 46 + cpu_info:117:cpu_info117:snaptime 9305222.59648495 + cpu_info:117:cpu_info117:state on-line + cpu_info:117:cpu_info117:state_begin 1430258903 + cpu_info:117:cpu_info117:supported_frequencies_Hz 1648762500 + cpu_info:118:cpu_info118:brand SPARC-T3 + cpu_info:118:cpu_info118:chip_id 0 + cpu_info:118:cpu_info118:class misc + cpu_info:118:cpu_info118:clock_MHz 1649 + cpu_info:118:cpu_info118:core_id 1124 + cpu_info:118:cpu_info118:cpu_fru hc:///component= + cpu_info:118:cpu_info118:cpu_type sparcv9 + cpu_info:118:cpu_info118:crtime 186.244717919 + cpu_info:118:cpu_info118:current_clock_Hz 1648762500 + cpu_info:118:cpu_info118:device_ID 118 + cpu_info:118:cpu_info118:fpu_type sparcv9 + cpu_info:118:cpu_info118:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:118:cpu_info118:pg_id 46 + cpu_info:118:cpu_info118:snaptime 9305222.5976476 + cpu_info:118:cpu_info118:state on-line + cpu_info:118:cpu_info118:state_begin 1430258903 + cpu_info:118:cpu_info118:supported_frequencies_Hz 1648762500 + cpu_info:119:cpu_info119:brand SPARC-T3 + cpu_info:119:cpu_info119:chip_id 0 + cpu_info:119:cpu_info119:class misc + cpu_info:119:cpu_info119:clock_MHz 1649 + cpu_info:119:cpu_info119:core_id 1124 + cpu_info:119:cpu_info119:cpu_fru hc:///component= + cpu_info:119:cpu_info119:cpu_type sparcv9 + cpu_info:119:cpu_info119:crtime 186.248661415 + cpu_info:119:cpu_info119:current_clock_Hz 1648762500 + cpu_info:119:cpu_info119:device_ID 119 + cpu_info:119:cpu_info119:fpu_type sparcv9 + cpu_info:119:cpu_info119:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:119:cpu_info119:pg_id 46 + cpu_info:119:cpu_info119:snaptime 9305222.59881723 + cpu_info:119:cpu_info119:state on-line + cpu_info:119:cpu_info119:state_begin 1430258903 + cpu_info:119:cpu_info119:supported_frequencies_Hz 1648762500 + cpu_info:120:cpu_info120:brand SPARC-T3 + cpu_info:120:cpu_info120:chip_id 0 + cpu_info:120:cpu_info120:class misc + cpu_info:120:cpu_info120:clock_MHz 1649 + cpu_info:120:cpu_info120:core_id 1131 + cpu_info:120:cpu_info120:cpu_fru hc:///component= + cpu_info:120:cpu_info120:cpu_type sparcv9 + cpu_info:120:cpu_info120:crtime 186.252660808 + cpu_info:120:cpu_info120:current_clock_Hz 1648762500 + cpu_info:120:cpu_info120:device_ID 120 + cpu_info:120:cpu_info120:fpu_type sparcv9 + cpu_info:120:cpu_info120:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:120:cpu_info120:pg_id 47 + cpu_info:120:cpu_info120:snaptime 9305222.59998826 + cpu_info:120:cpu_info120:state on-line + cpu_info:120:cpu_info120:state_begin 1430258903 + cpu_info:120:cpu_info120:supported_frequencies_Hz 1648762500 + cpu_info:121:cpu_info121:brand SPARC-T3 + cpu_info:121:cpu_info121:chip_id 0 + cpu_info:121:cpu_info121:class misc + cpu_info:121:cpu_info121:clock_MHz 1649 + cpu_info:121:cpu_info121:core_id 1131 + cpu_info:121:cpu_info121:cpu_fru hc:///component= + cpu_info:121:cpu_info121:cpu_type sparcv9 + cpu_info:121:cpu_info121:crtime 186.257104577 + cpu_info:121:cpu_info121:current_clock_Hz 1648762500 + cpu_info:121:cpu_info121:device_ID 121 + cpu_info:121:cpu_info121:fpu_type sparcv9 + cpu_info:121:cpu_info121:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:121:cpu_info121:pg_id 47 + cpu_info:121:cpu_info121:snaptime 9305222.60114672 + cpu_info:121:cpu_info121:state on-line + cpu_info:121:cpu_info121:state_begin 1430258903 + cpu_info:121:cpu_info121:supported_frequencies_Hz 1648762500 + cpu_info:122:cpu_info122:brand SPARC-T3 + cpu_info:122:cpu_info122:chip_id 0 + cpu_info:122:cpu_info122:class misc + cpu_info:122:cpu_info122:clock_MHz 1649 + cpu_info:122:cpu_info122:core_id 1131 + cpu_info:122:cpu_info122:cpu_fru hc:///component= + cpu_info:122:cpu_info122:cpu_type sparcv9 + cpu_info:122:cpu_info122:crtime 186.260994971 + cpu_info:122:cpu_info122:current_clock_Hz 1648762500 + cpu_info:122:cpu_info122:device_ID 122 + cpu_info:122:cpu_info122:fpu_type sparcv9 + cpu_info:122:cpu_info122:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:122:cpu_info122:pg_id 47 + cpu_info:122:cpu_info122:snaptime 9305222.60230238 + cpu_info:122:cpu_info122:state on-line + cpu_info:122:cpu_info122:state_begin 1430258903 + cpu_info:122:cpu_info122:supported_frequencies_Hz 1648762500 + cpu_info:123:cpu_info123:brand SPARC-T3 + cpu_info:123:cpu_info123:chip_id 0 + cpu_info:123:cpu_info123:class misc + cpu_info:123:cpu_info123:clock_MHz 1649 + cpu_info:123:cpu_info123:core_id 1131 + cpu_info:123:cpu_info123:cpu_fru hc:///component= + cpu_info:123:cpu_info123:cpu_type sparcv9 + cpu_info:123:cpu_info123:crtime 186.264900737 + cpu_info:123:cpu_info123:current_clock_Hz 1648762500 + cpu_info:123:cpu_info123:device_ID 123 + cpu_info:123:cpu_info123:fpu_type sparcv9 + cpu_info:123:cpu_info123:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:123:cpu_info123:pg_id 47 + cpu_info:123:cpu_info123:snaptime 9305222.60351952 + cpu_info:123:cpu_info123:state on-line + cpu_info:123:cpu_info123:state_begin 1430258903 + cpu_info:123:cpu_info123:supported_frequencies_Hz 1648762500 + cpu_info:124:cpu_info124:brand SPARC-T4 + cpu_info:124:cpu_info124:chip_id 0 + cpu_info:124:cpu_info124:class misc + cpu_info:124:cpu_info124:clock_MHz 1649 + cpu_info:124:cpu_info124:core_id 1131 + cpu_info:124:cpu_info124:cpu_fru hc:///component= + cpu_info:124:cpu_info124:cpu_type sparcv9 + cpu_info:124:cpu_info124:crtime 186.268767375 + cpu_info:124:cpu_info124:current_clock_Hz 1648762500 + cpu_info:124:cpu_info124:device_ID 124 + cpu_info:124:cpu_info124:fpu_type sparcv9 + cpu_info:124:cpu_info124:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:124:cpu_info124:pg_id 49 + cpu_info:124:cpu_info124:snaptime 9305222.60468497 + cpu_info:124:cpu_info124:state off-line + cpu_info:124:cpu_info124:state_begin 1430258903 + cpu_info:124:cpu_info124:supported_frequencies_Hz 1648762500 + cpu_info:125:cpu_info125:brand SPARC-T4 + cpu_info:125:cpu_info125:chip_id 0 + cpu_info:125:cpu_info125:class misc + cpu_info:125:cpu_info125:clock_MHz 1649 + cpu_info:125:cpu_info125:core_id 1131 + cpu_info:125:cpu_info125:cpu_fru hc:///component= + cpu_info:125:cpu_info125:cpu_type sparcv9 + cpu_info:125:cpu_info125:crtime 186.272702486 + cpu_info:125:cpu_info125:current_clock_Hz 1648762500 + cpu_info:125:cpu_info125:device_ID 125 + cpu_info:125:cpu_info125:fpu_type sparcv9 + cpu_info:125:cpu_info125:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:125:cpu_info125:pg_id 49 + cpu_info:125:cpu_info125:snaptime 9305222.60585879 + cpu_info:125:cpu_info125:state off-line + cpu_info:125:cpu_info125:state_begin 1430258903 + cpu_info:125:cpu_info125:supported_frequencies_Hz 1648762500 + cpu_info:126:cpu_info126:brand SPARC-T4 + cpu_info:126:cpu_info126:chip_id 0 + cpu_info:126:cpu_info126:class misc + cpu_info:126:cpu_info126:clock_MHz 1649 + cpu_info:126:cpu_info126:core_id 1131 + cpu_info:126:cpu_info126:cpu_fru hc:///component= + cpu_info:126:cpu_info126:cpu_type sparcv9 + cpu_info:126:cpu_info126:crtime 186.27663061 + cpu_info:126:cpu_info126:current_clock_Hz 1648762500 + cpu_info:126:cpu_info126:device_ID 126 + cpu_info:126:cpu_info126:fpu_type sparcv9 + cpu_info:126:cpu_info126:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:126:cpu_info126:pg_id 49 + cpu_info:126:cpu_info126:snaptime 9305222.60703821 + cpu_info:126:cpu_info126:state off-line + cpu_info:126:cpu_info126:state_begin 1430258903 + cpu_info:126:cpu_info126:supported_frequencies_Hz 1648762500 + cpu_info:127:cpu_info127:brand SPARC-T4 + cpu_info:127:cpu_info127:chip_id 0 + cpu_info:127:cpu_info127:class misc + cpu_info:127:cpu_info127:clock_MHz 1649 + cpu_info:127:cpu_info127:core_id 1131 + cpu_info:127:cpu_info127:cpu_fru hc:///component= + cpu_info:127:cpu_info127:cpu_type sparcv9 + cpu_info:127:cpu_info127:crtime 186.281711599 + cpu_info:127:cpu_info127:current_clock_Hz 1648762500 + cpu_info:127:cpu_info127:device_ID 127 + cpu_info:127:cpu_info127:fpu_type sparcv9 + cpu_info:127:cpu_info127:implementation SPARC-T3 (chipid 0, clock 1649 MHz) + cpu_info:127:cpu_info127:pg_id 49 + cpu_info:127:cpu_info127:snaptime 9305222.60819247 + cpu_info:127:cpu_info127:state off-line + cpu_info:127:cpu_info127:state_begin 1430258903 + cpu_info:127:cpu_info127:supported_frequencies_Hz 1648762500 END allow(@plugin).to receive(:shell_out).with("kstat -p cpu_info").and_return(mock_shell_out(0, kstatinfo_output, "")) @plugin.run diff --git a/spec/unit/plugins/solaris2/dmi_spec.rb b/spec/unit/plugins/solaris2/dmi_spec.rb index 5ab477c9..b4bfdfab 100644 --- a/spec/unit/plugins/solaris2/dmi_spec.rb +++ b/spec/unit/plugins/solaris2/dmi_spec.rb @@ -18,97 +18,97 @@ require_relative "../../../spec_helper.rb" -SOLARIS_DMI_OUT = <<-EOS -ID SIZE TYPE -0 64 SMB_TYPE_BIOS (type 0) (BIOS information) - - Vendor: American Megatrends Inc. - Version String: 4701 - Release Date: 08/26/2014 - Address Segment: 0xf000 - ROM Size: 8388608 bytes - Image Size: 65536 bytes - Characteristics: 0x53f8b9c80 - SMB_BIOSFL_PCI (PCI is supported) - SMB_BIOSFL_APM (APM is supported) - SMB_BIOSFL_FLASH (BIOS is Flash Upgradeable) - SMB_BIOSFL_SHADOW (BIOS shadowing is allowed) - SMB_BIOSFL_CDBOOT (Boot from CD is supported) - SMB_BIOSFL_SELBOOT (Selectable Boot supported) - SMB_BIOSFL_ROMSOCK (BIOS ROM is socketed) - SMB_BIOSFL_EDD (EDD Spec is supported) - SMB_BIOSFL_525_12M (int 0x13 5.25" 1.2M floppy) - SMB_BIOSFL_35_720K (int 0x13 3.5" 720K floppy) - SMB_BIOSFL_35_288M (int 0x13 3.5" 2.88M floppy) - SMB_BIOSFL_I5_PRINT (int 0x5 print screen svcs) - SMB_BIOSFL_I9_KBD (int 0x9 8042 keyboard svcs) - SMB_BIOSFL_I14_SER (int 0x14 serial svcs) - SMB_BIOSFL_I17_PRINTER (int 0x17 printer svcs) - 0x100000000 - 0x400000000 - Characteristics Extension Byte 1: 0x3 - SMB_BIOSXB1_ACPI (ACPI is supported) - SMB_BIOSXB1_USBL (USB legacy is supported) - Characteristics Extension Byte 2: 0xd - SMB_BIOSXB2_BBOOT (BIOS Boot Specification supported) - SMB_BIOSXB2_ETCDIST (Enable Targeted Content Distrib.) - SMB_BIOSXB2_UEFI (UEFI Specification supported) - Version Number: 0.0 - Embedded Ctlr Firmware Version Number: 0.0 - -ID SIZE TYPE -1 129 SMB_TYPE_SYSTEM (type 1) (system information) - - Manufacturer: System manufacturer - Product: System Product Name - Version: System Version - Serial Number: System Serial Number - - UUID: 20b1001e-8c00-0072-5566-10c37b474fc1 - Wake-Up Event: 0x6 (power switch) - SKU Number: SKU - Family: To be filled by O.E.M. - -ID SIZE TYPE -2 116 SMB_TYPE_BASEBOARD (type 2) (base board) - - Manufacturer: ASUSTeK COMPUTER INC. - Product: P9X79 WS - Version: Rev 1.xx - Serial Number: 140525831000250 - Asset Tag: To be filled by O.E.M. - Location Tag: To be filled by O.E.M. - - Chassis: 3 - Flags: 0x9 - SMB_BBFL_MOTHERBOARD (board is a motherboard) - SMB_BBFL_REPLACABLE (board is field-replacable) - Board Type: 0xa (motherboard) - -ID SIZE TYPE -46 38 SMB_TYPE_OBDEVS (type 10) (on-board devices) - - Onboard Ethernet - Onboard Audio - -ID SIZE TYPE -3 106 SMB_TYPE_CHASSIS (type 3) (system enclosure or chassis) - - Manufacturer: Chassis Manufacture - Version: Chassis Version - Serial Number: Chassis Serial Number - Asset Tag: PCS - - OEM Data: 0x0 - SKU number: ^E - Lock Present: N - Chassis Type: 0x3 (desktop) - Boot-Up State: 0x3 (safe) - Power Supply State: 0x3 (safe) - Thermal State: 0x3 (safe) - Chassis Height: 0u - Power Cords: 1 - Element Records: 0 +SOLARIS_DMI_OUT = <<~EOS.freeze + ID SIZE TYPE + 0 64 SMB_TYPE_BIOS (type 0) (BIOS information) + + Vendor: American Megatrends Inc. + Version String: 4701 + Release Date: 08/26/2014 + Address Segment: 0xf000 + ROM Size: 8388608 bytes + Image Size: 65536 bytes + Characteristics: 0x53f8b9c80 + SMB_BIOSFL_PCI (PCI is supported) + SMB_BIOSFL_APM (APM is supported) + SMB_BIOSFL_FLASH (BIOS is Flash Upgradeable) + SMB_BIOSFL_SHADOW (BIOS shadowing is allowed) + SMB_BIOSFL_CDBOOT (Boot from CD is supported) + SMB_BIOSFL_SELBOOT (Selectable Boot supported) + SMB_BIOSFL_ROMSOCK (BIOS ROM is socketed) + SMB_BIOSFL_EDD (EDD Spec is supported) + SMB_BIOSFL_525_12M (int 0x13 5.25" 1.2M floppy) + SMB_BIOSFL_35_720K (int 0x13 3.5" 720K floppy) + SMB_BIOSFL_35_288M (int 0x13 3.5" 2.88M floppy) + SMB_BIOSFL_I5_PRINT (int 0x5 print screen svcs) + SMB_BIOSFL_I9_KBD (int 0x9 8042 keyboard svcs) + SMB_BIOSFL_I14_SER (int 0x14 serial svcs) + SMB_BIOSFL_I17_PRINTER (int 0x17 printer svcs) + 0x100000000 + 0x400000000 + Characteristics Extension Byte 1: 0x3 + SMB_BIOSXB1_ACPI (ACPI is supported) + SMB_BIOSXB1_USBL (USB legacy is supported) + Characteristics Extension Byte 2: 0xd + SMB_BIOSXB2_BBOOT (BIOS Boot Specification supported) + SMB_BIOSXB2_ETCDIST (Enable Targeted Content Distrib.) + SMB_BIOSXB2_UEFI (UEFI Specification supported) + Version Number: 0.0 + Embedded Ctlr Firmware Version Number: 0.0 + + ID SIZE TYPE + 1 129 SMB_TYPE_SYSTEM (type 1) (system information) + + Manufacturer: System manufacturer + Product: System Product Name + Version: System Version + Serial Number: System Serial Number + + UUID: 20b1001e-8c00-0072-5566-10c37b474fc1 + Wake-Up Event: 0x6 (power switch) + SKU Number: SKU + Family: To be filled by O.E.M. + + ID SIZE TYPE + 2 116 SMB_TYPE_BASEBOARD (type 2) (base board) + + Manufacturer: ASUSTeK COMPUTER INC. + Product: P9X79 WS + Version: Rev 1.xx + Serial Number: 140525831000250 + Asset Tag: To be filled by O.E.M. + Location Tag: To be filled by O.E.M. + + Chassis: 3 + Flags: 0x9 + SMB_BBFL_MOTHERBOARD (board is a motherboard) + SMB_BBFL_REPLACABLE (board is field-replacable) + Board Type: 0xa (motherboard) + + ID SIZE TYPE + 46 38 SMB_TYPE_OBDEVS (type 10) (on-board devices) + + Onboard Ethernet + Onboard Audio + + ID SIZE TYPE + 3 106 SMB_TYPE_CHASSIS (type 3) (system enclosure or chassis) + + Manufacturer: Chassis Manufacture + Version: Chassis Version + Serial Number: Chassis Serial Number + Asset Tag: PCS + + OEM Data: 0x0 + SKU number: ^E + Lock Present: N + Chassis Type: 0x3 (desktop) + Boot-Up State: 0x3 (safe) + Power Supply State: 0x3 (safe) + Thermal State: 0x3 (safe) + Chassis Height: 0u + Power Cords: 1 + Element Records: 0 EOS describe Ohai::System, "Solaris2.X DMI plugin" do diff --git a/spec/unit/plugins/solaris2/filesystem.rb b/spec/unit/plugins/solaris2/filesystem.rb index 97a3b222..af228a80 100644 --- a/spec/unit/plugins/solaris2/filesystem.rb +++ b/spec/unit/plugins/solaris2/filesystem.rb @@ -41,9 +41,9 @@ describe Ohai::System, "Solaris2.X filesystem plugin" do context "when 'zfs get' properties are not configured" do it "collects all filesystem properties" do - expect(plugin).to receive(:shell_out). - with("zfs get -p -H all"). - and_return(mock_shell_out(0, "", "")) + expect(plugin).to receive(:shell_out) + .with("zfs get -p -H all") + .and_return(mock_shell_out(0, "", "")) plugin.run end end @@ -52,16 +52,16 @@ describe Ohai::System, "Solaris2.X filesystem plugin" do shared_examples_for "configured zfs properties" do let(:plugin_config) do { - :filesystem => { - :zfs_properties => zfs_properties, + filesystem: { + zfs_properties: zfs_properties, }, } end it "collects configured filesystem properties" do - expect(plugin).to receive(:shell_out). - with("zfs get -p -H #{expected_cmd}"). - and_return(mock_shell_out(0, "", "")) + expect(plugin).to receive(:shell_out) + .with("zfs get -p -H #{expected_cmd}") + .and_return(mock_shell_out(0, "", "")) plugin.run end end diff --git a/spec/unit/plugins/solaris2/kernel_spec.rb b/spec/unit/plugins/solaris2/kernel_spec.rb index 98be16cd..4f7d0135 100644 --- a/spec/unit/plugins/solaris2/kernel_spec.rb +++ b/spec/unit/plugins/solaris2/kernel_spec.rb @@ -22,7 +22,7 @@ describe Ohai::System, "Solaris2.X kernel plugin" do # NOTE: Solaris will report the same module loaded multiple times # with the same ID, Loadaddr, etc. and only the info column different # ignoring it, and removing the data from this fixture. - MODINFO = <<-TOOMUCH + MODINFO = <<-TOOMUCH.freeze Id Loadaddr Size Info Rev Module Name 6 1180000 4623 1 1 specfs (filesystem for specfs) 8 1185df0 38c4 1 1 TS (time sharing sched class) diff --git a/spec/unit/plugins/solaris2/network_spec.rb b/spec/unit/plugins/solaris2/network_spec.rb index 43570741..465c1a4e 100644 --- a/spec/unit/plugins/solaris2/network_spec.rb +++ b/spec/unit/plugins/solaris2/network_spec.rb @@ -1,6 +1,6 @@ # # Author:: Daniel DeLeo <dan@chef.io> -# Copyright:: Copyright (c) 2010-2016 Chef Software, Inc. +# Copyright:: Copyright (c) 2010-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,103 +21,102 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "Solaris2.X network plugin" do before do - @solaris_arp_rn = <<-ARP_RN -Net to Media Table: IPv4 -Device IP Address Mask Flags Phys Addr ------- -------------------- --------------- ----- --------------- -rtls0 172.31.4.1 255.255.255.255 00:14:69:81:0b:c0 -rtls0 172.31.4.44 255.255.255.255 00:0c:29:c4:9a:11 -rtls0 172.31.5.16 255.255.255.255 de:ad:be:ef:3b:ba -rtls0 172.31.4.16 255.255.255.255 d8:d3:85:65:39:40 -rtls0 172.31.4.12 255.255.255.255 d8:d3:85:bb:43:b0 -rtls0 172.31.4.115 255.255.255.255 52:54:00:0d:b7:5b -rtls0 172.31.4.126 255.255.255.255 52:54:00:2d:93:0c -rtls0 172.31.4.125 255.255.255.255 02:08:20:2e:29:8d -rtls0 172.31.4.121 255.255.255.255 52:54:00:25:8a:3f -rtls0 172.31.4.103 255.255.255.255 SP 52:54:00:7f:22:e7 -rtls0 172.31.4.102 255.255.255.255 02:08:20:88:38:18 -rtls0 172.31.4.106 255.255.255.255 02:08:20:6d:cc:aa -rtls0 172.31.4.83 255.255.255.255 02:08:20:05:8e:75 -rtls0 172.31.4.82 255.255.255.255 52:54:00:2d:93:0c -rtls0 172.31.4.81 255.255.255.255 02:08:20:37:80:87 -rtls0 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00 + @solaris_arp_rn = <<~ARP_RN + Net to Media Table: IPv4 + Device IP Address Mask Flags Phys Addr + ------ -------------------- --------------- ----- --------------- + rtls0 172.31.4.1 255.255.255.255 00:14:69:81:0b:c0 + rtls0 172.31.4.44 255.255.255.255 00:0c:29:c4:9a:11 + rtls0 172.31.5.16 255.255.255.255 de:ad:be:ef:3b:ba + rtls0 172.31.4.16 255.255.255.255 d8:d3:85:65:39:40 + rtls0 172.31.4.12 255.255.255.255 d8:d3:85:bb:43:b0 + rtls0 172.31.4.115 255.255.255.255 52:54:00:0d:b7:5b + rtls0 172.31.4.126 255.255.255.255 52:54:00:2d:93:0c + rtls0 172.31.4.125 255.255.255.255 02:08:20:2e:29:8d + rtls0 172.31.4.121 255.255.255.255 52:54:00:25:8a:3f + rtls0 172.31.4.103 255.255.255.255 SP 52:54:00:7f:22:e7 + rtls0 172.31.4.102 255.255.255.255 02:08:20:88:38:18 + rtls0 172.31.4.106 255.255.255.255 02:08:20:6d:cc:aa + rtls0 172.31.4.83 255.255.255.255 02:08:20:05:8e:75 + rtls0 172.31.4.82 255.255.255.255 52:54:00:2d:93:0c + rtls0 172.31.4.81 255.255.255.255 02:08:20:37:80:87 + rtls0 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00 ARP_RN - @solaris_ifconfig = <<-ENDIFCONFIG -lo0:3: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 - inet 127.0.0.1 netmask ff000000 -e1000g0:3: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3 - inet 72.2.115.28 netmask ffffff80 broadcast 72.2.115.127 -e1000g2:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 4 - inet 10.2.115.28 netmask ffffff80 broadcast 10.2.115.127 - inet6 2001:0db8:3c4d:55:a00:20ff:fe8e:f3ad/64 -net0: flags=40201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS,L3PROTECT> mtu 1500 index 2 - inet 37.153.96.148 netmask fffffe00 broadcast 37.153.97.255 - ether 90:b8:d0:16:9b:97 -net1:1: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 2 - inet 10.16.125.36 netmask fffffe00 broadcast 10.16.125.255 - ether 90:b8:d0:16:9b:97 -ip.tun0: flags=2200851<UP,POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu 1480 index 3 - inet tunnel src 109.146.85.57 tunnel dst 109.146.85.212 - tunnel security settings --> use 'ipsecconf -ln -i ip.tun1' - tunnel hop limit 60 - inet6 fe80::6d92:5539/10 --> fe80::6d92:55d4 -ip.tun0:1: flags=2200851<UP,POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu 1480 index 3 - inet6 2::45/128 --> 2::46 -lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 - inet 127.0.0.1 netmask ff000000 -eri0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 \ -index 2 - inet 172.17.128.208 netmask ffffff00 broadcast 172.17.128.255 -ip6.tun0: flags=10008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4> mtu 1460 index 3 - inet6 tunnel src fe80::1 tunnel dst fe80::2 - tunnel security settings --> use 'ipsecconf -ln -i ip.tun1' - tunnel hop limit 60 tunnel encapsulation limit 4 - inet 10.0.0.208 --> 10.0.0.210 netmask ff000000 -qfe1: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 3 - usesrc vni0 - inet6 fe80::203:baff:fe17:4be0/10 - ether 0:3:ba:17:4b:e0 -vni0: flags=2002210041<UP,RUNNING,NOXMIT,NONUD,IPv6,VIRTUAL> mtu 1460 index 5 - srcof qfe1 - inet6 fe80::203:baff:fe17:4444/128 + @solaris_ifconfig = <<~ENDIFCONFIG + lo0:3: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 + inet 127.0.0.1 netmask ff000000 + e1000g0:3: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3 + inet 72.2.115.28 netmask ffffff80 broadcast 72.2.115.127 + e1000g2:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 4 + inet 10.2.115.28 netmask ffffff80 broadcast 10.2.115.127 + inet6 2001:0db8:3c4d:55:a00:20ff:fe8e:f3ad/64 + net0: flags=40201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS,L3PROTECT> mtu 1500 index 2 + inet 37.153.96.148 netmask fffffe00 broadcast 37.153.97.255 + ether 90:b8:d0:16:9b:97 + net1:1: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 2 + inet 10.16.125.36 netmask fffffe00 broadcast 10.16.125.255 + ether 90:b8:d0:16:9b:97 + ip.tun0: flags=2200851<UP,POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu 1480 index 3 + inet tunnel src 109.146.85.57 tunnel dst 109.146.85.212 + tunnel security settings --> use 'ipsecconf -ln -i ip.tun1' + tunnel hop limit 60 + inet6 fe80::6d92:5539/10 --> fe80::6d92:55d4 + ip.tun0:1: flags=2200851<UP,POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu 1480 index 3 + inet6 2::45/128 --> 2::46 + lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 + inet 127.0.0.1 netmask ff000000 + eri0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2 + inet 172.17.128.208 netmask ffffff00 broadcast 172.17.128.255 + ip6.tun0: flags=10008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4> mtu 1460 index 3 + inet6 tunnel src fe80::1 tunnel dst fe80::2 + tunnel security settings --> use 'ipsecconf -ln -i ip.tun1' + tunnel hop limit 60 tunnel encapsulation limit 4 + inet 10.0.0.208 --> 10.0.0.210 netmask ff000000 + qfe1: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 3 + usesrc vni0 + inet6 fe80::203:baff:fe17:4be0/10 + ether 0:3:ba:17:4b:e0 + vni0: flags=2002210041<UP,RUNNING,NOXMIT,NONUD,IPv6,VIRTUAL> mtu 1460 index 5 + srcof qfe1 + inet6 fe80::203:baff:fe17:4444/128 ENDIFCONFIG - @solaris_netstat_rn = <<-NETSTAT_RN -Routing Table: IPv4 - Destination Gateway Flags Ref Use Interface --------------------- -------------------- ----- ----- ---------- --------- -default 10.13.37.1 UG 1 0 e1000g0 -10.13.37.0 10.13.37.157 U 1 2 e1000g0 -127.0.0.1 127.0.0.1 UH 1 35 lo0 - -Routing Table: IPv6 - Destination/Mask Gateway Flags Ref Use If ---------------------------- --------------------------- ----- --- ------- ----- -fe80::/10 fe80::250:56ff:fe13:3757 U 1 0 e1000g0 -::1 ::1 UH 1 0 lo0 + @solaris_netstat_rn = <<~NETSTAT_RN + Routing Table: IPv4 + Destination Gateway Flags Ref Use Interface + -------------------- -------------------- ----- ----- ---------- --------- + default 10.13.37.1 UG 1 0 e1000g0 + 10.13.37.0 10.13.37.157 U 1 2 e1000g0 + 127.0.0.1 127.0.0.1 UH 1 35 lo0 + + Routing Table: IPv6 + Destination/Mask Gateway Flags Ref Use If + --------------------------- --------------------------- ----- --- ------- ----- + fe80::/10 fe80::250:56ff:fe13:3757 U 1 0 e1000g0 + ::1 ::1 UH 1 0 lo0 NETSTAT_RN - @solaris_route_get = <<-ROUTE_GET - route to: default -destination: default - mask: default - gateway: 10.13.37.1 - interface: e1000g0 index 3 - flags: <UP,GATEWAY,DONE,STATIC> - recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu expire - 0 0 0 0 0 0 1500 0 + @solaris_route_get = <<~ROUTE_GET + route to: default + destination: default + mask: default + gateway: 10.13.37.1 + interface: e1000g0 index 3 + flags: <UP,GATEWAY,DONE,STATIC> + recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu expire + 0 0 0 0 0 0 1500 0 ROUTE_GET - @solaris11_route_get = <<-ROUTE_GET - route to: default -destination: default - mask: default - gateway: 10.13.37.1 - interface: net1 index 2 - flags: <UP,GATEWAY,DONE,STATIC> - recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu expire - 0 0 0 0 0 0 1500 0 + @solaris11_route_get = <<~ROUTE_GET + route to: default + destination: default + mask: default + gateway: 10.13.37.1 + interface: net1 index 2 + flags: <UP,GATEWAY,DONE,STATIC> + recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu expire + 0 0 0 0 0 0 1500 0 ROUTE_GET @ifconfig_lines = @solaris_ifconfig.split("\n") @@ -133,7 +132,7 @@ ROUTE_GET describe "gathering IP layer address info" do before do - @stdout = double("Pipe, stdout, cmd=`route get default`", :read => @solaris_route_get) + @stdout = double("Pipe, stdout, cmd=`route get default`", read: @solaris_route_get) allow(@plugin).to receive(:shell_out).with("route -v -n get default").and_return(mock_shell_out(0, @solaris_route_get, "")) allow(@plugin).to receive(:shell_out).with("ifconfig -a").and_return(mock_shell_out(0, @solaris_ifconfig, "")) @plugin.run @@ -162,7 +161,7 @@ ROUTE_GET describe "gathering solaris 11 zone IP layer address info" do before do - @stdout = double("Pipe, stdout, cmd=`route get default`", :read => @solaris11_route_get) + @stdout = double("Pipe, stdout, cmd=`route get default`", read: @solaris11_route_get) allow(@plugin).to receive(:shell_out).with("route -v -n get default").and_return(mock_shell_out(0, @solaris11_route_get, "")) allow(@plugin).to receive(:shell_out).with("ifconfig -a").and_return(mock_shell_out(0, @solaris_ifconfig, "")) @plugin.run @@ -181,7 +180,7 @@ ROUTE_GET describe "setting the node's default IP address attribute" do before do - @stdout = double("Pipe, stdout, cmd=`route get default`", :read => @solaris_route_get) + @stdout = double("Pipe, stdout, cmd=`route get default`", read: @solaris_route_get) allow(@plugin).to receive(:shell_out).with("route -v -n get default").and_return(mock_shell_out(0, @solaris_route_get, "")) @plugin.run end diff --git a/spec/unit/plugins/solaris2/platform_spec.rb b/spec/unit/plugins/solaris2/platform_spec.rb index 13b4120c..4803a5f0 100644 --- a/spec/unit/plugins/solaris2/platform_spec.rb +++ b/spec/unit/plugins/solaris2/platform_spec.rb @@ -27,18 +27,18 @@ describe Ohai::System, "Solaris plugin platform" do describe "on SmartOS" do before(:each) do - @uname_x = <<-UNAME_X -System = SunOS -Node = node.example.com -Release = 5.11 -KernelID = joyent_20120130T201844Z -Machine = i86pc -BusType = <unknown> -Serial = <unknown> -Users = <unknown> -OEM# = 0 -Origin# = 1 -NumCPU = 16 + @uname_x = <<~UNAME_X + System = SunOS + Node = node.example.com + Release = 5.11 + KernelID = joyent_20120130T201844Z + Machine = i86pc + BusType = <unknown> + Serial = <unknown> + Users = <unknown> + OEM# = 0 + Origin# = 1 + NumCPU = 16 UNAME_X allow(File).to receive(:exist?).with("/sbin/uname").and_return(true) @@ -67,18 +67,18 @@ UNAME_X describe "on Solaris 11" do before(:each) do - @uname_x = <<-UNAME_X -System = SunOS -Node = node.example.com -Release = 5.11 -KernelID = 11.1 -Machine = i86pc -BusType = <unknown> -Serial = <unknown> -Users = <unknown> -OEM# = 0 -Origin# = 1 -NumCPU = 1 + @uname_x = <<~UNAME_X + System = SunOS + Node = node.example.com + Release = 5.11 + KernelID = 11.1 + Machine = i86pc + BusType = <unknown> + Serial = <unknown> + Users = <unknown> + OEM# = 0 + Origin# = 1 + NumCPU = 1 UNAME_X allow(File).to receive(:exist?).with("/sbin/uname").and_return(true) diff --git a/spec/unit/plugins/solaris2/virtualization_spec.rb b/spec/unit/plugins/solaris2/virtualization_spec.rb index 35e7a535..d52a52e6 100644 --- a/spec/unit/plugins/solaris2/virtualization_spec.rb +++ b/spec/unit/plugins/solaris2/virtualization_spec.rb @@ -20,10 +20,10 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "Solaris virtualization platform" do before(:each) do - @psrinfo_pv = <<-PSRINFO_PV -The physical processor has 1 virtual processor (0) - x86 (GenuineIntel family 6 model 2 step 3 clock 2667 MHz) - Intel Pentium(r) Pro + @psrinfo_pv = <<~PSRINFO_PV + The physical processor has 1 virtual processor (0) + x86 (GenuineIntel family 6 model 2 step 3 clock 2667 MHz) + Intel Pentium(r) Pro PSRINFO_PV @plugin = get_plugin("solaris2/virtualization") @@ -73,17 +73,17 @@ PSRINFO_PV end it "should set virtualpc guest if smbios detects Microsoft Virtual Machine" do - ms_vpc_smbios = <<-MSVPC -ID SIZE TYPE -1 72 SMB_TYPE_SYSTEM (system information) + ms_vpc_smbios = <<~MSVPC + ID SIZE TYPE + 1 72 SMB_TYPE_SYSTEM (system information) - Manufacturer: Microsoft Corporation - Product: Virtual Machine - Version: VS2005R2 - Serial Number: 1688-7189-5337-7903-2297-1012-52 + Manufacturer: Microsoft Corporation + Product: Virtual Machine + Version: VS2005R2 + Serial Number: 1688-7189-5337-7903-2297-1012-52 - UUID: D29974A4-BE51-044C-BDC6-EFBC4B87A8E9 - Wake-Up Event: 0x6 (power switch) + UUID: D29974A4-BE51-044C-BDC6-EFBC4B87A8E9 + Wake-Up Event: 0x6 (power switch) MSVPC allow(@plugin).to receive(:shell_out).with("/usr/sbin/smbios").and_return(mock_shell_out(0, ms_vpc_smbios, "")) @plugin.run @@ -92,17 +92,17 @@ MSVPC end it "should set vmware guest if smbios detects VMware Virtual Platform" do - vmware_smbios = <<-VMWARE -ID SIZE TYPE -1 72 SMB_TYPE_SYSTEM (system information) + vmware_smbios = <<~VMWARE + ID SIZE TYPE + 1 72 SMB_TYPE_SYSTEM (system information) - Manufacturer: VMware, Inc. - Product: VMware Virtual Platform - Version: None - Serial Number: VMware-50 3f f7 14 42 d1 f1 da-3b 46 27 d0 29 b4 74 1d + Manufacturer: VMware, Inc. + Product: VMware Virtual Platform + Version: None + Serial Number: VMware-50 3f f7 14 42 d1 f1 da-3b 46 27 d0 29 b4 74 1d - UUID: a86cc405-e1b9-447b-ad05-6f8db39d876a - Wake-Up Event: 0x6 (power switch) + UUID: a86cc405-e1b9-447b-ad05-6f8db39d876a + Wake-Up Event: 0x6 (power switch) VMWARE allow(@plugin).to receive(:shell_out).with("/usr/sbin/smbios").and_return(mock_shell_out(0, vmware_smbios, "")) @plugin.run diff --git a/spec/unit/plugins/ssh_host_keys_spec.rb b/spec/unit/plugins/ssh_host_keys_spec.rb index b2ddb663..53b1cd4f 100644 --- a/spec/unit/plugins/ssh_host_keys_spec.rb +++ b/spec/unit/plugins/ssh_host_keys_spec.rb @@ -75,12 +75,12 @@ describe Ohai::System, "ssh_host_key plugin" do context "when an sshd_config exists" do let :sshd_config_file do - <<EOS -# HostKeys for protocol version 2 -HostKey /etc/ssh/ssh_host_rsa_key -HostKey /etc/ssh/ssh_host_dsa_key -HostKey /etc/ssh/ssh_host_ecdsa_key -HostKey /etc/ssh/ssh_host_ed25519_key + <<~EOS + # HostKeys for protocol version 2 + HostKey /etc/ssh/ssh_host_rsa_key + HostKey /etc/ssh/ssh_host_dsa_key + HostKey /etc/ssh/ssh_host_ecdsa_key + HostKey /etc/ssh/ssh_host_ed25519_key EOS end it_behaves_like "loads keys" @@ -88,12 +88,12 @@ EOS context "when an sshd_config exists with commented entries" do let :sshd_config_file do - <<EOS -# HostKeys for protocol version 2 -#HostKey /etc/ssh/ssh_host_rsa_key -#HostKey /etc/ssh/ssh_host_dsa_key -#HostKey /etc/ssh/ssh_host_ecdsa_key -#HostKey /etc/ssh/ssh_host_ed25519_key + <<~EOS + # HostKeys for protocol version 2 + #HostKey /etc/ssh/ssh_host_rsa_key + #HostKey /etc/ssh/ssh_host_dsa_key + #HostKey /etc/ssh/ssh_host_ecdsa_key + #HostKey /etc/ssh/ssh_host_ed25519_key EOS end it_behaves_like "loads keys" diff --git a/spec/unit/plugins/sysconf_spec.rb b/spec/unit/plugins/sysconf_spec.rb index ad67c893..ae6eca96 100644 --- a/spec/unit/plugins/sysconf_spec.rb +++ b/spec/unit/plugins/sysconf_spec.rb @@ -22,327 +22,327 @@ describe Ohai::System, "sysconf plugin", :unix_only do let(:plugin) { get_plugin("sysconf") } it "should populate sysconf if getconf is found" do - getconf_out = <<-GETCONF_OUT -LINK_MAX 65000 -_POSIX_LINK_MAX 65000 -MAX_CANON 255 -_POSIX_MAX_CANON 255 -MAX_INPUT 255 -_POSIX_MAX_INPUT 255 -NAME_MAX 255 -_POSIX_NAME_MAX 255 -PATH_MAX 4096 -_POSIX_PATH_MAX 4096 -PIPE_BUF 4096 -_POSIX_PIPE_BUF 4096 -SOCK_MAXBUF -_POSIX_ASYNC_IO -_POSIX_CHOWN_RESTRICTED 1 -_POSIX_NO_TRUNC 1 -_POSIX_PRIO_IO -_POSIX_SYNC_IO -_POSIX_VDISABLE 0 -ARG_MAX 2097152 -ATEXIT_MAX 2147483647 -CHAR_BIT 8 -CHAR_MAX 127 -CHAR_MIN -128 -CHILD_MAX 63672 -CLK_TCK 100 -INT_MAX 2147483647 -INT_MIN -2147483648 -IOV_MAX 1024 -LOGNAME_MAX 256 -LONG_BIT 64 -MB_LEN_MAX 16 -NGROUPS_MAX 65536 -NL_ARGMAX 4096 -NL_LANGMAX 2048 -NL_MSGMAX 2147483647 -NL_NMAX 2147483647 -NL_SETMAX 2147483647 -NL_TEXTMAX 2147483647 -NSS_BUFLEN_GROUP 1024 -NSS_BUFLEN_PASSWD 1024 -NZERO 20 -OPEN_MAX 1024 -PAGESIZE 4096 -PAGE_SIZE 4096 -PASS_MAX 8192 -PTHREAD_DESTRUCTOR_ITERATIONS 4 -PTHREAD_KEYS_MAX 1024 -PTHREAD_STACK_MIN 16384 -PTHREAD_THREADS_MAX -SCHAR_MAX 127 -SCHAR_MIN -128 -SHRT_MAX 32767 -SHRT_MIN -32768 -SSIZE_MAX 32767 -TTY_NAME_MAX 32 -TZNAME_MAX 6 -UCHAR_MAX 255 -UINT_MAX 4294967295 -UIO_MAXIOV 1024 -ULONG_MAX 18446744073709551615 -USHRT_MAX 65535 -WORD_BIT 32 -_AVPHYS_PAGES 2101393 -_NPROCESSORS_CONF 8 -_NPROCESSORS_ONLN 8 -_PHYS_PAGES 4096040 -_POSIX_ARG_MAX 2097152 -_POSIX_ASYNCHRONOUS_IO 200809 -_POSIX_CHILD_MAX 63672 -_POSIX_FSYNC 200809 -_POSIX_JOB_CONTROL 1 -_POSIX_MAPPED_FILES 200809 -_POSIX_MEMLOCK 200809 -_POSIX_MEMLOCK_RANGE 200809 -_POSIX_MEMORY_PROTECTION 200809 -_POSIX_MESSAGE_PASSING 200809 -_POSIX_NGROUPS_MAX 65536 -_POSIX_OPEN_MAX 1024 -_POSIX_PII -_POSIX_PII_INTERNET -_POSIX_PII_INTERNET_DGRAM -_POSIX_PII_INTERNET_STREAM -_POSIX_PII_OSI -_POSIX_PII_OSI_CLTS -_POSIX_PII_OSI_COTS -_POSIX_PII_OSI_M -_POSIX_PII_SOCKET -_POSIX_PII_XTI -_POSIX_POLL -_POSIX_PRIORITIZED_IO 200809 -_POSIX_PRIORITY_SCHEDULING 200809 -_POSIX_REALTIME_SIGNALS 200809 -_POSIX_SAVED_IDS 1 -_POSIX_SELECT -_POSIX_SEMAPHORES 200809 -_POSIX_SHARED_MEMORY_OBJECTS 200809 -_POSIX_SSIZE_MAX 32767 -_POSIX_STREAM_MAX 16 -_POSIX_SYNCHRONIZED_IO 200809 -_POSIX_THREADS 200809 -_POSIX_THREAD_ATTR_STACKADDR 200809 -_POSIX_THREAD_ATTR_STACKSIZE 200809 -_POSIX_THREAD_PRIORITY_SCHEDULING 200809 -_POSIX_THREAD_PRIO_INHERIT 200809 -_POSIX_THREAD_PRIO_PROTECT 200809 -_POSIX_THREAD_ROBUST_PRIO_INHERIT -_POSIX_THREAD_ROBUST_PRIO_PROTECT -_POSIX_THREAD_PROCESS_SHARED 200809 -_POSIX_THREAD_SAFE_FUNCTIONS 200809 -_POSIX_TIMERS 200809 -TIMER_MAX -_POSIX_TZNAME_MAX 6 -_POSIX_VERSION 200809 -_T_IOV_MAX -_XOPEN_CRYPT 1 -_XOPEN_ENH_I18N 1 -_XOPEN_LEGACY 1 -_XOPEN_REALTIME 1 -_XOPEN_REALTIME_THREADS 1 -_XOPEN_SHM 1 -_XOPEN_UNIX 1 -_XOPEN_VERSION 700 -_XOPEN_XCU_VERSION 4 -_XOPEN_XPG2 1 -_XOPEN_XPG3 1 -_XOPEN_XPG4 1 -BC_BASE_MAX 99 -BC_DIM_MAX 2048 -BC_SCALE_MAX 99 -BC_STRING_MAX 1000 -CHARCLASS_NAME_MAX 2048 -COLL_WEIGHTS_MAX 255 -EQUIV_CLASS_MAX -EXPR_NEST_MAX 32 -LINE_MAX 2048 -POSIX2_BC_BASE_MAX 99 -POSIX2_BC_DIM_MAX 2048 -POSIX2_BC_SCALE_MAX 99 -POSIX2_BC_STRING_MAX 1000 -POSIX2_CHAR_TERM 200809 -POSIX2_COLL_WEIGHTS_MAX 255 -POSIX2_C_BIND 200809 -POSIX2_C_DEV 200809 -POSIX2_C_VERSION 200809 -POSIX2_EXPR_NEST_MAX 32 -POSIX2_FORT_DEV -POSIX2_FORT_RUN -_POSIX2_LINE_MAX 2048 -POSIX2_LINE_MAX 2048 -POSIX2_LOCALEDEF 200809 -POSIX2_RE_DUP_MAX 32767 -POSIX2_SW_DEV 200809 -POSIX2_UPE -POSIX2_VERSION 200809 -RE_DUP_MAX 32767 -PATH /bin:/usr/bin -CS_PATH /bin:/usr/bin -LFS_CFLAGS -LFS_LDFLAGS -LFS_LIBS -LFS_LINTFLAGS -LFS64_CFLAGS -D_LARGEFILE64_SOURCE -LFS64_LDFLAGS -LFS64_LIBS -LFS64_LINTFLAGS -D_LARGEFILE64_SOURCE -_XBS5_WIDTH_RESTRICTED_ENVS XBS5_LP64_OFF64 -XBS5_WIDTH_RESTRICTED_ENVS XBS5_LP64_OFF64 -_XBS5_ILP32_OFF32 -XBS5_ILP32_OFF32_CFLAGS -XBS5_ILP32_OFF32_LDFLAGS -XBS5_ILP32_OFF32_LIBS -XBS5_ILP32_OFF32_LINTFLAGS -_XBS5_ILP32_OFFBIG -XBS5_ILP32_OFFBIG_CFLAGS -XBS5_ILP32_OFFBIG_LDFLAGS -XBS5_ILP32_OFFBIG_LIBS -XBS5_ILP32_OFFBIG_LINTFLAGS -_XBS5_LP64_OFF64 1 -XBS5_LP64_OFF64_CFLAGS -m64 -XBS5_LP64_OFF64_LDFLAGS -m64 -XBS5_LP64_OFF64_LIBS -XBS5_LP64_OFF64_LINTFLAGS -_XBS5_LPBIG_OFFBIG -XBS5_LPBIG_OFFBIG_CFLAGS -XBS5_LPBIG_OFFBIG_LDFLAGS -XBS5_LPBIG_OFFBIG_LIBS -XBS5_LPBIG_OFFBIG_LINTFLAGS -_POSIX_V6_ILP32_OFF32 -POSIX_V6_ILP32_OFF32_CFLAGS -POSIX_V6_ILP32_OFF32_LDFLAGS -POSIX_V6_ILP32_OFF32_LIBS -POSIX_V6_ILP32_OFF32_LINTFLAGS -_POSIX_V6_WIDTH_RESTRICTED_ENVS POSIX_V6_LP64_OFF64 -POSIX_V6_WIDTH_RESTRICTED_ENVS POSIX_V6_LP64_OFF64 -_POSIX_V6_ILP32_OFFBIG -POSIX_V6_ILP32_OFFBIG_CFLAGS -POSIX_V6_ILP32_OFFBIG_LDFLAGS -POSIX_V6_ILP32_OFFBIG_LIBS -POSIX_V6_ILP32_OFFBIG_LINTFLAGS -_POSIX_V6_LP64_OFF64 1 -POSIX_V6_LP64_OFF64_CFLAGS -m64 -POSIX_V6_LP64_OFF64_LDFLAGS -m64 -POSIX_V6_LP64_OFF64_LIBS -POSIX_V6_LP64_OFF64_LINTFLAGS -_POSIX_V6_LPBIG_OFFBIG -POSIX_V6_LPBIG_OFFBIG_CFLAGS -POSIX_V6_LPBIG_OFFBIG_LDFLAGS -POSIX_V6_LPBIG_OFFBIG_LIBS -POSIX_V6_LPBIG_OFFBIG_LINTFLAGS -_POSIX_V7_ILP32_OFF32 -POSIX_V7_ILP32_OFF32_CFLAGS -POSIX_V7_ILP32_OFF32_LDFLAGS -POSIX_V7_ILP32_OFF32_LIBS -POSIX_V7_ILP32_OFF32_LINTFLAGS -_POSIX_V7_WIDTH_RESTRICTED_ENVS POSIX_V7_LP64_OFF64 -POSIX_V7_WIDTH_RESTRICTED_ENVS POSIX_V7_LP64_OFF64 -_POSIX_V7_ILP32_OFFBIG -POSIX_V7_ILP32_OFFBIG_CFLAGS -POSIX_V7_ILP32_OFFBIG_LDFLAGS -POSIX_V7_ILP32_OFFBIG_LIBS -POSIX_V7_ILP32_OFFBIG_LINTFLAGS -_POSIX_V7_LP64_OFF64 1 -POSIX_V7_LP64_OFF64_CFLAGS -m64 -POSIX_V7_LP64_OFF64_LDFLAGS -m64 -POSIX_V7_LP64_OFF64_LIBS -POSIX_V7_LP64_OFF64_LINTFLAGS -_POSIX_V7_LPBIG_OFFBIG -POSIX_V7_LPBIG_OFFBIG_CFLAGS -POSIX_V7_LPBIG_OFFBIG_LDFLAGS -POSIX_V7_LPBIG_OFFBIG_LIBS -POSIX_V7_LPBIG_OFFBIG_LINTFLAGS -_POSIX_ADVISORY_INFO 200809 -_POSIX_BARRIERS 200809 -_POSIX_BASE -_POSIX_C_LANG_SUPPORT -_POSIX_C_LANG_SUPPORT_R -_POSIX_CLOCK_SELECTION 200809 -_POSIX_CPUTIME 200809 -_POSIX_THREAD_CPUTIME 200809 -_POSIX_DEVICE_SPECIFIC -_POSIX_DEVICE_SPECIFIC_R -_POSIX_FD_MGMT -_POSIX_FIFO -_POSIX_PIPE -_POSIX_FILE_ATTRIBUTES -_POSIX_FILE_LOCKING -_POSIX_FILE_SYSTEM -_POSIX_MONOTONIC_CLOCK 200809 -_POSIX_MULTI_PROCESS -_POSIX_SINGLE_PROCESS -_POSIX_NETWORKING -_POSIX_READER_WRITER_LOCKS 200809 -_POSIX_SPIN_LOCKS 200809 -_POSIX_REGEXP 1 -_REGEX_VERSION -_POSIX_SHELL 1 -_POSIX_SIGNALS -_POSIX_SPAWN 200809 -_POSIX_SPORADIC_SERVER -_POSIX_THREAD_SPORADIC_SERVER -_POSIX_SYSTEM_DATABASE -_POSIX_SYSTEM_DATABASE_R -_POSIX_TIMEOUTS 200809 -_POSIX_TYPED_MEMORY_OBJECTS -_POSIX_USER_GROUPS -_POSIX_USER_GROUPS_R -POSIX2_PBS -POSIX2_PBS_ACCOUNTING -POSIX2_PBS_LOCATE -POSIX2_PBS_TRACK -POSIX2_PBS_MESSAGE -SYMLOOP_MAX -STREAM_MAX 16 -AIO_LISTIO_MAX -AIO_MAX -AIO_PRIO_DELTA_MAX 20 -DELAYTIMER_MAX 2147483647 -HOST_NAME_MAX 64 -LOGIN_NAME_MAX 256 -MQ_OPEN_MAX -MQ_PRIO_MAX 32768 -_POSIX_DEVICE_IO -_POSIX_TRACE -_POSIX_TRACE_EVENT_FILTER -_POSIX_TRACE_INHERIT -_POSIX_TRACE_LOG -RTSIG_MAX 32 -SEM_NSEMS_MAX -SEM_VALUE_MAX 2147483647 -SIGQUEUE_MAX 63672 -FILESIZEBITS 64 -POSIX_ALLOC_SIZE_MIN 4096 -POSIX_REC_INCR_XFER_SIZE -POSIX_REC_MAX_XFER_SIZE -POSIX_REC_MIN_XFER_SIZE 4096 -POSIX_REC_XFER_ALIGN 4096 -SYMLINK_MAX -GNU_LIBC_VERSION glibc 2.24 -GNU_LIBPTHREAD_VERSION NPTL 2.24 -POSIX2_SYMLINKS 1 -LEVEL1_ICACHE_SIZE 32768 -LEVEL1_ICACHE_ASSOC 8 -LEVEL1_ICACHE_LINESIZE 64 -LEVEL1_DCACHE_SIZE 32768 -LEVEL1_DCACHE_ASSOC 8 -LEVEL1_DCACHE_LINESIZE 64 -LEVEL2_CACHE_SIZE 262144 -LEVEL2_CACHE_ASSOC 4 -LEVEL2_CACHE_LINESIZE 64 -LEVEL3_CACHE_SIZE 8388608 -LEVEL3_CACHE_ASSOC 16 -LEVEL3_CACHE_LINESIZE 64 -LEVEL4_CACHE_SIZE 0 -LEVEL4_CACHE_ASSOC 0 -LEVEL4_CACHE_LINESIZE 0 -IPV6 200809 -RAW_SOCKETS 200809 -_POSIX_IPV6 200809 -_POSIX_RAW_SOCKETS 200809 + getconf_out = <<~GETCONF_OUT + LINK_MAX 65000 + _POSIX_LINK_MAX 65000 + MAX_CANON 255 + _POSIX_MAX_CANON 255 + MAX_INPUT 255 + _POSIX_MAX_INPUT 255 + NAME_MAX 255 + _POSIX_NAME_MAX 255 + PATH_MAX 4096 + _POSIX_PATH_MAX 4096 + PIPE_BUF 4096 + _POSIX_PIPE_BUF 4096 + SOCK_MAXBUF + _POSIX_ASYNC_IO + _POSIX_CHOWN_RESTRICTED 1 + _POSIX_NO_TRUNC 1 + _POSIX_PRIO_IO + _POSIX_SYNC_IO + _POSIX_VDISABLE 0 + ARG_MAX 2097152 + ATEXIT_MAX 2147483647 + CHAR_BIT 8 + CHAR_MAX 127 + CHAR_MIN -128 + CHILD_MAX 63672 + CLK_TCK 100 + INT_MAX 2147483647 + INT_MIN -2147483648 + IOV_MAX 1024 + LOGNAME_MAX 256 + LONG_BIT 64 + MB_LEN_MAX 16 + NGROUPS_MAX 65536 + NL_ARGMAX 4096 + NL_LANGMAX 2048 + NL_MSGMAX 2147483647 + NL_NMAX 2147483647 + NL_SETMAX 2147483647 + NL_TEXTMAX 2147483647 + NSS_BUFLEN_GROUP 1024 + NSS_BUFLEN_PASSWD 1024 + NZERO 20 + OPEN_MAX 1024 + PAGESIZE 4096 + PAGE_SIZE 4096 + PASS_MAX 8192 + PTHREAD_DESTRUCTOR_ITERATIONS 4 + PTHREAD_KEYS_MAX 1024 + PTHREAD_STACK_MIN 16384 + PTHREAD_THREADS_MAX + SCHAR_MAX 127 + SCHAR_MIN -128 + SHRT_MAX 32767 + SHRT_MIN -32768 + SSIZE_MAX 32767 + TTY_NAME_MAX 32 + TZNAME_MAX 6 + UCHAR_MAX 255 + UINT_MAX 4294967295 + UIO_MAXIOV 1024 + ULONG_MAX 18446744073709551615 + USHRT_MAX 65535 + WORD_BIT 32 + _AVPHYS_PAGES 2101393 + _NPROCESSORS_CONF 8 + _NPROCESSORS_ONLN 8 + _PHYS_PAGES 4096040 + _POSIX_ARG_MAX 2097152 + _POSIX_ASYNCHRONOUS_IO 200809 + _POSIX_CHILD_MAX 63672 + _POSIX_FSYNC 200809 + _POSIX_JOB_CONTROL 1 + _POSIX_MAPPED_FILES 200809 + _POSIX_MEMLOCK 200809 + _POSIX_MEMLOCK_RANGE 200809 + _POSIX_MEMORY_PROTECTION 200809 + _POSIX_MESSAGE_PASSING 200809 + _POSIX_NGROUPS_MAX 65536 + _POSIX_OPEN_MAX 1024 + _POSIX_PII + _POSIX_PII_INTERNET + _POSIX_PII_INTERNET_DGRAM + _POSIX_PII_INTERNET_STREAM + _POSIX_PII_OSI + _POSIX_PII_OSI_CLTS + _POSIX_PII_OSI_COTS + _POSIX_PII_OSI_M + _POSIX_PII_SOCKET + _POSIX_PII_XTI + _POSIX_POLL + _POSIX_PRIORITIZED_IO 200809 + _POSIX_PRIORITY_SCHEDULING 200809 + _POSIX_REALTIME_SIGNALS 200809 + _POSIX_SAVED_IDS 1 + _POSIX_SELECT + _POSIX_SEMAPHORES 200809 + _POSIX_SHARED_MEMORY_OBJECTS 200809 + _POSIX_SSIZE_MAX 32767 + _POSIX_STREAM_MAX 16 + _POSIX_SYNCHRONIZED_IO 200809 + _POSIX_THREADS 200809 + _POSIX_THREAD_ATTR_STACKADDR 200809 + _POSIX_THREAD_ATTR_STACKSIZE 200809 + _POSIX_THREAD_PRIORITY_SCHEDULING 200809 + _POSIX_THREAD_PRIO_INHERIT 200809 + _POSIX_THREAD_PRIO_PROTECT 200809 + _POSIX_THREAD_ROBUST_PRIO_INHERIT + _POSIX_THREAD_ROBUST_PRIO_PROTECT + _POSIX_THREAD_PROCESS_SHARED 200809 + _POSIX_THREAD_SAFE_FUNCTIONS 200809 + _POSIX_TIMERS 200809 + TIMER_MAX + _POSIX_TZNAME_MAX 6 + _POSIX_VERSION 200809 + _T_IOV_MAX + _XOPEN_CRYPT 1 + _XOPEN_ENH_I18N 1 + _XOPEN_LEGACY 1 + _XOPEN_REALTIME 1 + _XOPEN_REALTIME_THREADS 1 + _XOPEN_SHM 1 + _XOPEN_UNIX 1 + _XOPEN_VERSION 700 + _XOPEN_XCU_VERSION 4 + _XOPEN_XPG2 1 + _XOPEN_XPG3 1 + _XOPEN_XPG4 1 + BC_BASE_MAX 99 + BC_DIM_MAX 2048 + BC_SCALE_MAX 99 + BC_STRING_MAX 1000 + CHARCLASS_NAME_MAX 2048 + COLL_WEIGHTS_MAX 255 + EQUIV_CLASS_MAX + EXPR_NEST_MAX 32 + LINE_MAX 2048 + POSIX2_BC_BASE_MAX 99 + POSIX2_BC_DIM_MAX 2048 + POSIX2_BC_SCALE_MAX 99 + POSIX2_BC_STRING_MAX 1000 + POSIX2_CHAR_TERM 200809 + POSIX2_COLL_WEIGHTS_MAX 255 + POSIX2_C_BIND 200809 + POSIX2_C_DEV 200809 + POSIX2_C_VERSION 200809 + POSIX2_EXPR_NEST_MAX 32 + POSIX2_FORT_DEV + POSIX2_FORT_RUN + _POSIX2_LINE_MAX 2048 + POSIX2_LINE_MAX 2048 + POSIX2_LOCALEDEF 200809 + POSIX2_RE_DUP_MAX 32767 + POSIX2_SW_DEV 200809 + POSIX2_UPE + POSIX2_VERSION 200809 + RE_DUP_MAX 32767 + PATH /bin:/usr/bin + CS_PATH /bin:/usr/bin + LFS_CFLAGS + LFS_LDFLAGS + LFS_LIBS + LFS_LINTFLAGS + LFS64_CFLAGS -D_LARGEFILE64_SOURCE + LFS64_LDFLAGS + LFS64_LIBS + LFS64_LINTFLAGS -D_LARGEFILE64_SOURCE + _XBS5_WIDTH_RESTRICTED_ENVS XBS5_LP64_OFF64 + XBS5_WIDTH_RESTRICTED_ENVS XBS5_LP64_OFF64 + _XBS5_ILP32_OFF32 + XBS5_ILP32_OFF32_CFLAGS + XBS5_ILP32_OFF32_LDFLAGS + XBS5_ILP32_OFF32_LIBS + XBS5_ILP32_OFF32_LINTFLAGS + _XBS5_ILP32_OFFBIG + XBS5_ILP32_OFFBIG_CFLAGS + XBS5_ILP32_OFFBIG_LDFLAGS + XBS5_ILP32_OFFBIG_LIBS + XBS5_ILP32_OFFBIG_LINTFLAGS + _XBS5_LP64_OFF64 1 + XBS5_LP64_OFF64_CFLAGS -m64 + XBS5_LP64_OFF64_LDFLAGS -m64 + XBS5_LP64_OFF64_LIBS + XBS5_LP64_OFF64_LINTFLAGS + _XBS5_LPBIG_OFFBIG + XBS5_LPBIG_OFFBIG_CFLAGS + XBS5_LPBIG_OFFBIG_LDFLAGS + XBS5_LPBIG_OFFBIG_LIBS + XBS5_LPBIG_OFFBIG_LINTFLAGS + _POSIX_V6_ILP32_OFF32 + POSIX_V6_ILP32_OFF32_CFLAGS + POSIX_V6_ILP32_OFF32_LDFLAGS + POSIX_V6_ILP32_OFF32_LIBS + POSIX_V6_ILP32_OFF32_LINTFLAGS + _POSIX_V6_WIDTH_RESTRICTED_ENVS POSIX_V6_LP64_OFF64 + POSIX_V6_WIDTH_RESTRICTED_ENVS POSIX_V6_LP64_OFF64 + _POSIX_V6_ILP32_OFFBIG + POSIX_V6_ILP32_OFFBIG_CFLAGS + POSIX_V6_ILP32_OFFBIG_LDFLAGS + POSIX_V6_ILP32_OFFBIG_LIBS + POSIX_V6_ILP32_OFFBIG_LINTFLAGS + _POSIX_V6_LP64_OFF64 1 + POSIX_V6_LP64_OFF64_CFLAGS -m64 + POSIX_V6_LP64_OFF64_LDFLAGS -m64 + POSIX_V6_LP64_OFF64_LIBS + POSIX_V6_LP64_OFF64_LINTFLAGS + _POSIX_V6_LPBIG_OFFBIG + POSIX_V6_LPBIG_OFFBIG_CFLAGS + POSIX_V6_LPBIG_OFFBIG_LDFLAGS + POSIX_V6_LPBIG_OFFBIG_LIBS + POSIX_V6_LPBIG_OFFBIG_LINTFLAGS + _POSIX_V7_ILP32_OFF32 + POSIX_V7_ILP32_OFF32_CFLAGS + POSIX_V7_ILP32_OFF32_LDFLAGS + POSIX_V7_ILP32_OFF32_LIBS + POSIX_V7_ILP32_OFF32_LINTFLAGS + _POSIX_V7_WIDTH_RESTRICTED_ENVS POSIX_V7_LP64_OFF64 + POSIX_V7_WIDTH_RESTRICTED_ENVS POSIX_V7_LP64_OFF64 + _POSIX_V7_ILP32_OFFBIG + POSIX_V7_ILP32_OFFBIG_CFLAGS + POSIX_V7_ILP32_OFFBIG_LDFLAGS + POSIX_V7_ILP32_OFFBIG_LIBS + POSIX_V7_ILP32_OFFBIG_LINTFLAGS + _POSIX_V7_LP64_OFF64 1 + POSIX_V7_LP64_OFF64_CFLAGS -m64 + POSIX_V7_LP64_OFF64_LDFLAGS -m64 + POSIX_V7_LP64_OFF64_LIBS + POSIX_V7_LP64_OFF64_LINTFLAGS + _POSIX_V7_LPBIG_OFFBIG + POSIX_V7_LPBIG_OFFBIG_CFLAGS + POSIX_V7_LPBIG_OFFBIG_LDFLAGS + POSIX_V7_LPBIG_OFFBIG_LIBS + POSIX_V7_LPBIG_OFFBIG_LINTFLAGS + _POSIX_ADVISORY_INFO 200809 + _POSIX_BARRIERS 200809 + _POSIX_BASE + _POSIX_C_LANG_SUPPORT + _POSIX_C_LANG_SUPPORT_R + _POSIX_CLOCK_SELECTION 200809 + _POSIX_CPUTIME 200809 + _POSIX_THREAD_CPUTIME 200809 + _POSIX_DEVICE_SPECIFIC + _POSIX_DEVICE_SPECIFIC_R + _POSIX_FD_MGMT + _POSIX_FIFO + _POSIX_PIPE + _POSIX_FILE_ATTRIBUTES + _POSIX_FILE_LOCKING + _POSIX_FILE_SYSTEM + _POSIX_MONOTONIC_CLOCK 200809 + _POSIX_MULTI_PROCESS + _POSIX_SINGLE_PROCESS + _POSIX_NETWORKING + _POSIX_READER_WRITER_LOCKS 200809 + _POSIX_SPIN_LOCKS 200809 + _POSIX_REGEXP 1 + _REGEX_VERSION + _POSIX_SHELL 1 + _POSIX_SIGNALS + _POSIX_SPAWN 200809 + _POSIX_SPORADIC_SERVER + _POSIX_THREAD_SPORADIC_SERVER + _POSIX_SYSTEM_DATABASE + _POSIX_SYSTEM_DATABASE_R + _POSIX_TIMEOUTS 200809 + _POSIX_TYPED_MEMORY_OBJECTS + _POSIX_USER_GROUPS + _POSIX_USER_GROUPS_R + POSIX2_PBS + POSIX2_PBS_ACCOUNTING + POSIX2_PBS_LOCATE + POSIX2_PBS_TRACK + POSIX2_PBS_MESSAGE + SYMLOOP_MAX + STREAM_MAX 16 + AIO_LISTIO_MAX + AIO_MAX + AIO_PRIO_DELTA_MAX 20 + DELAYTIMER_MAX 2147483647 + HOST_NAME_MAX 64 + LOGIN_NAME_MAX 256 + MQ_OPEN_MAX + MQ_PRIO_MAX 32768 + _POSIX_DEVICE_IO + _POSIX_TRACE + _POSIX_TRACE_EVENT_FILTER + _POSIX_TRACE_INHERIT + _POSIX_TRACE_LOG + RTSIG_MAX 32 + SEM_NSEMS_MAX + SEM_VALUE_MAX 2147483647 + SIGQUEUE_MAX 63672 + FILESIZEBITS 64 + POSIX_ALLOC_SIZE_MIN 4096 + POSIX_REC_INCR_XFER_SIZE + POSIX_REC_MAX_XFER_SIZE + POSIX_REC_MIN_XFER_SIZE 4096 + POSIX_REC_XFER_ALIGN 4096 + SYMLINK_MAX + GNU_LIBC_VERSION glibc 2.24 + GNU_LIBPTHREAD_VERSION NPTL 2.24 + POSIX2_SYMLINKS 1 + LEVEL1_ICACHE_SIZE 32768 + LEVEL1_ICACHE_ASSOC 8 + LEVEL1_ICACHE_LINESIZE 64 + LEVEL1_DCACHE_SIZE 32768 + LEVEL1_DCACHE_ASSOC 8 + LEVEL1_DCACHE_LINESIZE 64 + LEVEL2_CACHE_SIZE 262144 + LEVEL2_CACHE_ASSOC 4 + LEVEL2_CACHE_LINESIZE 64 + LEVEL3_CACHE_SIZE 8388608 + LEVEL3_CACHE_ASSOC 16 + LEVEL3_CACHE_LINESIZE 64 + LEVEL4_CACHE_SIZE 0 + LEVEL4_CACHE_ASSOC 0 + LEVEL4_CACHE_LINESIZE 0 + IPV6 200809 + RAW_SOCKETS 200809 + _POSIX_IPV6 200809 + _POSIX_RAW_SOCKETS 200809 GETCONF_OUT allow(plugin).to receive(:which).with("getconf").and_return("/usr/bin/getconf") allow(plugin).to receive(:shell_out).with("/usr/bin/getconf -a").and_return(mock_shell_out(0, getconf_out, "")) diff --git a/spec/unit/plugins/virtualbox_spec.rb b/spec/unit/plugins/virtualbox_spec.rb index ff00c37b..dd9819be 100644 --- a/spec/unit/plugins/virtualbox_spec.rb +++ b/spec/unit/plugins/virtualbox_spec.rb @@ -17,34 +17,34 @@ require_relative "../../spec_helper.rb" -vbox_output = <<EOF -Oracle VM VirtualBox Guest Additions Command Line Management Interface Version 5.0.2 -(C) 2008-2015 Oracle Corporation -All rights reserved. +vbox_output = <<~EOF + Oracle VM VirtualBox Guest Additions Command Line Management Interface Version 5.0.2 + (C) 2008-2015 Oracle Corporation + All rights reserved. -Name: /VirtualBox/GuestInfo/OS/Product, value: Linux, timestamp: 1448390422246549000, flags: <NULL> -Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.0.2.15, timestamp: 1448390422248366000, flags: <NULL> -Name: /VirtualBox/HostInfo/GUI/LanguageID, value: en_US, timestamp: 1448390412061749000, flags: <NULL> -Name: /VirtualBox/GuestInfo/Net/0/MAC, value: 080027FBB38C, timestamp: 1448390422248652000, flags: <NULL> -Name: /VirtualBox/GuestInfo/OS/ServicePack, value: <NULL>, timestamp: 1448390422246976000, flags: <NULL> -Name: /VirtualBox/HostInfo/VBoxVerExt, value: 5.0.10, timestamp: 1448390411701508000, flags: TRANSIENT, RDONLYGUEST -Name: /VirtualBox/GuestInfo/Net/0/V4/Netmask, value: 255.255.255.0, timestamp: 1448390422248569000, flags: <NULL> -Name: /VirtualBox/GuestInfo/OS/Version, value: #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015, timestamp: 1448390422246810000, flags: <NULL> -Name: /VirtualBox/GuestAdd/VersionExt, value: 5.0.2, timestamp: 1448390422247220000, flags: <NULL> -Name: /VirtualBox/GuestAdd/Revision, value: 102096, timestamp: 1448390422247266000, flags: <NULL> -Name: /VirtualBox/HostGuest/SysprepExec, value: <NULL>, timestamp: 1448390411701168000, flags: TRANSIENT, RDONLYGUEST -Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 1, timestamp: 1448390452251425000, flags: TRANSIENT, TRANSRESET -Name: /VirtualBox/GuestInfo/Net/0/Status, value: Up, timestamp: 1448390422248755000, flags: <NULL> -Name: /VirtualBox/GuestInfo/Net/0/Name, value: eth0, timestamp: 1448390422248814000, flags: <NULL> -Name: /VirtualBox/HostGuest/SysprepArgs, value: <NULL>, timestamp: 1448390411701220000, flags: TRANSIENT, RDONLYGUEST -Name: /VirtualBox/GuestAdd/Version, value: 5.0.2, timestamp: 1448390422247066000, flags: <NULL> -Name: /VirtualBox/HostInfo/VBoxRev, value: 104061, timestamp: 1448390411701536000, flags: TRANSIENT, RDONLYGUEST -Name: /VirtualBox/GuestInfo/Net/0/V4/Broadcast, value: 10.0.2.255, timestamp: 1448390422248498000, flags: <NULL> -Name: /VirtualBox/HostInfo/VBoxVer, value: 5.0.10, timestamp: 1448390411701485000, flags: TRANSIENT, RDONLYGUEST -Name: /VirtualBox/GuestInfo/OS/LoggedInUsersList, value: tim, timestamp: 1448390452251274000, flags: TRANSIENT, TRANSRESET -Name: /VirtualBox/GuestInfo/Net/Count, value: 1, timestamp: 1448391352440445000, flags: <NULL> -Name: /VirtualBox/GuestInfo/OS/Release, value: 3.19.0-31-generic, timestamp: 1448390422246638000, flags: <NULL> -Name: /VirtualBox/GuestInfo/OS/NoLoggedInUsers, value: false, timestamp: 1448390452251532000, flags: TRANSIENT, TRANSRESET + Name: /VirtualBox/GuestInfo/OS/Product, value: Linux, timestamp: 1448390422246549000, flags: <NULL> + Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.0.2.15, timestamp: 1448390422248366000, flags: <NULL> + Name: /VirtualBox/HostInfo/GUI/LanguageID, value: en_US, timestamp: 1448390412061749000, flags: <NULL> + Name: /VirtualBox/GuestInfo/Net/0/MAC, value: 080027FBB38C, timestamp: 1448390422248652000, flags: <NULL> + Name: /VirtualBox/GuestInfo/OS/ServicePack, value: <NULL>, timestamp: 1448390422246976000, flags: <NULL> + Name: /VirtualBox/HostInfo/VBoxVerExt, value: 5.0.10, timestamp: 1448390411701508000, flags: TRANSIENT, RDONLYGUEST + Name: /VirtualBox/GuestInfo/Net/0/V4/Netmask, value: 255.255.255.0, timestamp: 1448390422248569000, flags: <NULL> + Name: /VirtualBox/GuestInfo/OS/Version, value: #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015, timestamp: 1448390422246810000, flags: <NULL> + Name: /VirtualBox/GuestAdd/VersionExt, value: 5.0.2, timestamp: 1448390422247220000, flags: <NULL> + Name: /VirtualBox/GuestAdd/Revision, value: 102096, timestamp: 1448390422247266000, flags: <NULL> + Name: /VirtualBox/HostGuest/SysprepExec, value: <NULL>, timestamp: 1448390411701168000, flags: TRANSIENT, RDONLYGUEST + Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 1, timestamp: 1448390452251425000, flags: TRANSIENT, TRANSRESET + Name: /VirtualBox/GuestInfo/Net/0/Status, value: Up, timestamp: 1448390422248755000, flags: <NULL> + Name: /VirtualBox/GuestInfo/Net/0/Name, value: eth0, timestamp: 1448390422248814000, flags: <NULL> + Name: /VirtualBox/HostGuest/SysprepArgs, value: <NULL>, timestamp: 1448390411701220000, flags: TRANSIENT, RDONLYGUEST + Name: /VirtualBox/GuestAdd/Version, value: 5.0.2, timestamp: 1448390422247066000, flags: <NULL> + Name: /VirtualBox/HostInfo/VBoxRev, value: 104061, timestamp: 1448390411701536000, flags: TRANSIENT, RDONLYGUEST + Name: /VirtualBox/GuestInfo/Net/0/V4/Broadcast, value: 10.0.2.255, timestamp: 1448390422248498000, flags: <NULL> + Name: /VirtualBox/HostInfo/VBoxVer, value: 5.0.10, timestamp: 1448390411701485000, flags: TRANSIENT, RDONLYGUEST + Name: /VirtualBox/GuestInfo/OS/LoggedInUsersList, value: tim, timestamp: 1448390452251274000, flags: TRANSIENT, TRANSRESET + Name: /VirtualBox/GuestInfo/Net/Count, value: 1, timestamp: 1448391352440445000, flags: <NULL> + Name: /VirtualBox/GuestInfo/OS/Release, value: 3.19.0-31-generic, timestamp: 1448390422246638000, flags: <NULL> + Name: /VirtualBox/GuestInfo/OS/NoLoggedInUsers, value: false, timestamp: 1448390452251532000, flags: TRANSIENT, TRANSRESET EOF describe Ohai::System, "plugin virtualbox" do diff --git a/spec/unit/plugins/windows/cpu_spec.rb b/spec/unit/plugins/windows/cpu_spec.rb index 0f18a1b9..5849d5a3 100644 --- a/spec/unit/plugins/windows/cpu_spec.rb +++ b/spec/unit/plugins/windows/cpu_spec.rb @@ -21,41 +21,41 @@ require_relative "../../../spec_helper.rb" shared_examples "a cpu" do |cpu_no| describe "cpu #{cpu_no}" do it "should set physical_id to CPU#{cpu_no}" do - expect(@plugin[:cpu]["#{cpu_no}"][:physical_id]).to eq("CPU#{cpu_no}") + expect(@plugin[:cpu][cpu_no.to_s][:physical_id]).to eq("CPU#{cpu_no}") end it "should set mhz to 2793" do - expect(@plugin[:cpu]["#{cpu_no}"][:mhz]).to eq("2793") + expect(@plugin[:cpu][cpu_no.to_s][:mhz]).to eq("2793") end it "should set vendor_id to GenuineIntel" do - expect(@plugin[:cpu]["#{cpu_no}"][:vendor_id]).to eq("GenuineIntel") + expect(@plugin[:cpu][cpu_no.to_s][:vendor_id]).to eq("GenuineIntel") end it "should set model_name to Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz" do - expect(@plugin[:cpu]["#{cpu_no}"][:model_name]) + expect(@plugin[:cpu][cpu_no.to_s][:model_name]) .to eq("Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz") end it "should set description to Intel64 Family 6 Model 70 Stepping 1" do - expect(@plugin[:cpu]["#{cpu_no}"][:description]) + expect(@plugin[:cpu][cpu_no.to_s][:description]) .to eq("Intel64 Family 6 Model 70 Stepping 1") end it "should set model to 17921" do - expect(@plugin[:cpu]["#{cpu_no}"][:model]).to eq("17921") + expect(@plugin[:cpu][cpu_no.to_s][:model]).to eq("17921") end it "should set family to 2" do - expect(@plugin[:cpu]["#{cpu_no}"][:family]).to eq("2") + expect(@plugin[:cpu][cpu_no.to_s][:family]).to eq("2") end it "should set stepping to 9" do - expect(@plugin[:cpu]["#{cpu_no}"][:stepping]).to eq(9) + expect(@plugin[:cpu][cpu_no.to_s][:stepping]).to eq(9) end it "should set cache_size to 64 KB" do - expect(@plugin[:cpu]["#{cpu_no}"][:cache_size]).to eq("64 KB") + expect(@plugin[:cpu][cpu_no.to_s][:cache_size]).to eq("64 KB") end end end diff --git a/spec/unit/plugins/windows/kernel_spec.rb b/spec/unit/plugins/windows/kernel_spec.rb index 44fe4278..0628c7a3 100644 --- a/spec/unit/plugins/windows/kernel_spec.rb +++ b/spec/unit/plugins/windows/kernel_spec.rb @@ -24,17 +24,17 @@ describe Ohai::System, "Windows kernel plugin", :windows_only do require "wmi-lite/wmi" # Mock a Win32_OperatingSystem OLE32 WMI object - caption = double("WIN32OLE", :name => "Caption") - version = double("WIN32OLE", :name => "Version") - build_number = double("WIN32OLE", :name => "BuildNumber") - csd_version = double("WIN32OLE", :name => "CsdVersion") - os_type = double("WIN32OLE", :name => "OsType") - product_type = double("WIN32OLE", :name => "ProductType") - operating_system_sku = double("WIN32OLE", :name => "OperatingSystemSKU") + caption = double("WIN32OLE", name: "Caption") + version = double("WIN32OLE", name: "Version") + build_number = double("WIN32OLE", name: "BuildNumber") + csd_version = double("WIN32OLE", name: "CsdVersion") + os_type = double("WIN32OLE", name: "OsType") + product_type = double("WIN32OLE", name: "ProductType") + operating_system_sku = double("WIN32OLE", name: "OperatingSystemSKU") os_properties = [ caption, version, build_number, csd_version, os_type, product_type, operating_system_sku ] os = double( "WIN32OLE", - :properties_ => os_properties) + properties_: os_properties) allow(os).to receive(:invoke).with(build_number.name).and_return("7601") allow(os).to receive(:invoke).with(csd_version.name).and_return("Service Pack 1") @@ -47,13 +47,13 @@ describe Ohai::System, "Windows kernel plugin", :windows_only do os_wmi = WmiLite::Wmi::Instance.new(os) expect_any_instance_of(WmiLite::Wmi).to receive(:first_of).with("Win32_OperatingSystem").and_return(os_wmi) - system_type = double("WIN32OLE", :name => "SystemType") - pc_system_type = double("WIN32OLE", :name => "PCSystemType") - free_virtual_memory = double("WIN32OLE", :name => "FreeVirtualMemory") + system_type = double("WIN32OLE", name: "SystemType") + pc_system_type = double("WIN32OLE", name: "PCSystemType") + free_virtual_memory = double("WIN32OLE", name: "FreeVirtualMemory") cs_properties = [ system_type, pc_system_type, free_virtual_memory] cs = double("WIN32OLE", - :properties_ => cs_properties) + properties_: cs_properties) allow(cs).to receive(:invoke).with(system_type.name).and_return("x64-based PC") allow(cs).to receive(:invoke).with(pc_system_type.name).and_return(2) diff --git a/spec/unit/plugins/windows/uptime_spec.rb b/spec/unit/plugins/windows/uptime_spec.rb index 9531d16c..91bca8b1 100644 --- a/spec/unit/plugins/windows/uptime_spec.rb +++ b/spec/unit/plugins/windows/uptime_spec.rb @@ -21,7 +21,7 @@ require_relative "../../../spec_helper.rb" describe Ohai::System, "Windows plugin uptime" do let(:plugin) { get_plugin("uptime") } - let(:wmi) { double("wmi", { :first_of => "" }) } + let(:wmi) { double("wmi", { first_of: "" }) } before(:each) do allow(WmiLite::Wmi).to receive(:new).and_return(wmi) diff --git a/spec/unit/plugins/zpools_spec.rb b/spec/unit/plugins/zpools_spec.rb index b99a45ac..2da65e2d 100644 --- a/spec/unit/plugins/zpools_spec.rb +++ b/spec/unit/plugins/zpools_spec.rb @@ -45,9 +45,9 @@ describe Ohai::System, "zpools plugin" do EOST end let(:zpool_out) do - <<-EOZO -rpool 109G 66.2G 42.8G 60% 1.00x ONLINE - -tank 130T 4.91M 130T 0% 1.00x ONLINE - + <<~EOZO + rpool 109G 66.2G 42.8G 60% 1.00x ONLINE - + tank 130T 4.91M 130T 0% 1.00x ONLINE - EOZO end let(:zpool_status_rpool) do @@ -131,50 +131,50 @@ EOSR context "on Solaris2" do let(:zpool_status_tank) do - <<-EOST -pool: tank -state: ONLINE -scan: scrub repaired 0 in 0h0m with 0 errors on Fri Jun 6 14:43:40 2014 -config: - - NAME STATE READ WRITE CKSUM - tank ONLINE 0 0 0 - raidz2-0 ONLINE 0 0 0 - c1t50014EE209D1DBA9d0 ONLINE 0 0 0 - c1t50014EE20A0ECED2d0 ONLINE 0 0 0 - c1t50014EE20A106BFFd0 ONLINE 0 0 0 - c1t50014EE20A1423E8d0 ONLINE 0 0 0 - c1t50014EE20A145447d0 ONLINE 0 0 0 - c1t50014EE20A29EE56d0 ONLINE 0 0 0 - raidz2-1 ONLINE 0 0 0 - c1t50014EE20A2B984Cd0 ONLINE 0 0 0 - c1t50014EE20A2BBC78d0 ONLINE 0 0 0 - c1t50014EE20A2BDCA9d0 ONLINE 0 0 0 - c1t50014EE25F697DC4d0 ONLINE 0 0 0 - c1t50014EE25F698BECd0 ONLINE 0 0 0 - c1t50014EE25F6998DAd0 ONLINE 0 0 0 + <<~EOST + pool: tank + state: ONLINE + scan: scrub repaired 0 in 0h0m with 0 errors on Fri Jun 6 14:43:40 2014 + config: + + NAME STATE READ WRITE CKSUM + tank ONLINE 0 0 0 + raidz2-0 ONLINE 0 0 0 + c1t50014EE209D1DBA9d0 ONLINE 0 0 0 + c1t50014EE20A0ECED2d0 ONLINE 0 0 0 + c1t50014EE20A106BFFd0 ONLINE 0 0 0 + c1t50014EE20A1423E8d0 ONLINE 0 0 0 + c1t50014EE20A145447d0 ONLINE 0 0 0 + c1t50014EE20A29EE56d0 ONLINE 0 0 0 + raidz2-1 ONLINE 0 0 0 + c1t50014EE20A2B984Cd0 ONLINE 0 0 0 + c1t50014EE20A2BBC78d0 ONLINE 0 0 0 + c1t50014EE20A2BDCA9d0 ONLINE 0 0 0 + c1t50014EE25F697DC4d0 ONLINE 0 0 0 + c1t50014EE25F698BECd0 ONLINE 0 0 0 + c1t50014EE25F6998DAd0 ONLINE 0 0 0 EOST end let(:zpool_out) do - <<-EOZO -rpool 109G 66.2G 42.8G 60% 1.00x ONLINE 34 -tank 130T 4.91M 130T 0% 1.00x ONLINE 34 + <<~EOZO + rpool 109G 66.2G 42.8G 60% 1.00x ONLINE 34 + tank 130T 4.91M 130T 0% 1.00x ONLINE 34 EOZO end let(:zpool_status_rpool) do - <<-EOSR -pool: rpool -state: ONLINE -scan: resilvered 65.6G in 0h8m with 0 errors on Fri Jun 6 14:22:40 2014 -config: - - NAME STATE READ WRITE CKSUM - rpool ONLINE 0 0 0 - mirror-0 ONLINE 0 0 0 - c3t5d0s0 ONLINE 0 0 0 - c3t4d0s0 ONLINE 0 0 0 - -errors: No known data errors + <<~EOSR + pool: rpool + state: ONLINE + scan: resilvered 65.6G in 0h8m with 0 errors on Fri Jun 6 14:22:40 2014 + config: + + NAME STATE READ WRITE CKSUM + rpool ONLINE 0 0 0 + mirror-0 ONLINE 0 0 0 + c3t5d0s0 ONLINE 0 0 0 + c3t4d0s0 ONLINE 0 0 0 + + errors: No known data errors EOSR end before do diff --git a/spec/unit/runner_spec.rb b/spec/unit/runner_spec.rb index 28540a39..19bf8787 100644 --- a/spec/unit/runner_spec.rb +++ b/spec/unit/runner_spec.rb @@ -34,7 +34,7 @@ describe Ohai::Runner, "run_plugin" do end describe "when running a plugin" do - let(:plugin) { double("Ohai::DSL::Plugin", :kind_of? => true, :version => version, :name => :Test, :has_run? => has_run, :dependencies => [ ]) } + let(:plugin) { double("Ohai::DSL::Plugin", kind_of?: true, version: version, name: :Test, has_run?: has_run, dependencies: [ ]) } let(:version) { :version7 } let(:has_run) { false } @@ -334,7 +334,7 @@ describe Ohai::Runner, "fetch_plugins" do before(:each) do @provides_map = Ohai::ProvidesMap.new @data = Mash.new - @ohai = double("Ohai::System", :data => @data, :provides_map => @provides_map, logger: Ohai::Log.with_child) + @ohai = double("Ohai::System", data: @data, provides_map: @provides_map, logger: Ohai::Log.with_child) @runner = Ohai::Runner.new(@ohai, true) end diff --git a/spec/unit/system_spec.rb b/spec/unit/system_spec.rb index 6604fd0f..7d817e70 100644 --- a/spec/unit/system_spec.rb +++ b/spec/unit/system_spec.rb @@ -87,28 +87,28 @@ describe "Ohai::System" do end when_plugins_directory "contains directories inside" do - with_plugin("repo1/zoo.rb", <<EOF) -Ohai.plugin(:Zoo) do - provides 'seals' -end + with_plugin("repo1/zoo.rb", <<~EOF) + Ohai.plugin(:Zoo) do + provides 'seals' + end EOF - with_plugin("repo1/lake.rb", <<EOF) -Ohai.plugin(:Nature) do -provides 'fish' -end + with_plugin("repo1/lake.rb", <<~EOF) + Ohai.plugin(:Nature) do + provides 'fish' + end EOF - with_plugin("repo2/nature.rb", <<EOF) -Ohai.plugin(:Nature) do - provides 'crabs' -end + with_plugin("repo2/nature.rb", <<~EOF) + Ohai.plugin(:Nature) do + provides 'crabs' + end EOF - with_plugin("repo2/mountain.rb", <<EOF) -Ohai.plugin(:Nature) do -provides 'bear' -end + with_plugin("repo2/mountain.rb", <<~EOF) + Ohai.plugin(:Nature) do + provides 'bear' + end EOF before do @@ -127,18 +127,18 @@ EOF describe "when running plugins" do when_plugins_directory "contains a v7 plugins with :default and platform specific blocks" do - with_plugin("message.rb", <<EOF) -Ohai.plugin(:Message) do - provides 'message' + with_plugin("message.rb", <<~EOF) + Ohai.plugin(:Message) do + provides 'message' - collect_data(:default) do - message("default") - end + collect_data(:default) do + message("default") + end - collect_data(:#{Ohai::Mixin::OS.collect_os}) do - message("platform_specific_message") - end -end + collect_data(:#{Ohai::Mixin::OS.collect_os}) do + message("platform_specific_message") + end + end EOF it "should collect platform specific" do @@ -149,43 +149,43 @@ EOF end when_plugins_directory "contains v7 plugins only" do - with_plugin("zoo.rb", <<EOF) -Ohai.plugin(:Zoo) do - provides 'zoo' + with_plugin("zoo.rb", <<~EOF) + Ohai.plugin(:Zoo) do + provides 'zoo' - collect_data(:default) do - zoo("animals") - end -end + collect_data(:default) do + zoo("animals") + end + end EOF - with_plugin("park.rb", <<EOF) -Ohai.plugin(:Park) do - provides 'park' - collect_data(:default) do - park("plants") - end -end + with_plugin("park.rb", <<~EOF) + Ohai.plugin(:Park) do + provides 'park' + collect_data(:default) do + park("plants") + end + end EOF - with_plugin("fails.rb", <<EOF) -Ohai.plugin(:Fails) do - provides 'fails' - collect_data(:default) do - fail 'thing' - end -end + with_plugin("fails.rb", <<~EOF) + Ohai.plugin(:Fails) do + provides 'fails' + collect_data(:default) do + fail 'thing' + end + end EOF - with_plugin("optional.rb", <<EOF) -Ohai.plugin(:Optional) do - provides 'optional' - optional true + with_plugin("optional.rb", <<~EOF) + Ohai.plugin(:Optional) do + provides 'optional' + optional true - collect_data(:default) do - optional("canteloupe") - end -end + collect_data(:default) do + optional("canteloupe") + end + end EOF it "should collect data from all the plugins" do |