mardi 20 novembre 2018

Testing non-unix devices with Serverspec

I'm looking for a way test non-unix devices like switches HP server ILO or Onboard Administrator configurations.

They all have SSH CLIs, in most cases don't support ssh key authentication (password only).

What I want to do is to run CLI commands via SSH and parse their output.

Anybody tried this? Do you think that serverspec is feasible to do it?

When I tried such test:

require 'spec_helper'
describe command('show syslog settings') do
  its(:stdout) { should match 'Enabled' }
end

looks like Serverspec tries to run Unix shell on the device.

Aucun commentaire:

Enregistrer un commentaire