Sha256: d4ec70a922b47bdbce7a226292f14a003cd65546677db9f7146ce9e037f9969d
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
require 'snmpjr' describe "snmpjr" do subject { Snmpjr.new(:host => 'demo.snmplabs.com', :port => 161, :community => 'public') } describe 'GET' do it "can perform a simple synchronous get request on an snmp agent" do expect(subject.get '1.3.6.1.2.1.1.1.0').to eq 'SunOS zeus.snmplabs.com 4.1.3_U1 1 sun4m' end let(:expected) { ['SunOS zeus.snmplabs.com 4.1.3_U1 1 sun4m', 'zeus.snmplabs.com'] } it "can perform a series of gets if passed an array of oids" do expect(subject.get ['1.3.6.1.2.1.1.1.0', '1.3.6.1.2.1.1.5.0']).to eq expected end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snmpjr-0.1.0-java | spec/integration/snmpjr_spec.rb |