Undefined method `Gauge' for SNMPSET:Class (NoMethodError)

Hi,

Does anybody have an idea how to SET a snmp gauge OID? My code sample is
as follows

host = ‘192.168.10.10’
community = ‘tenant’

userID_OID = ‘1.3.6.1.4.1.9344.100.107.13.1.0’
password_OID = ‘1.3.6.1.4.1.9344.100.107.13.2.0’

SNMP::Manager.open( :Host => hpbsmiIP,
:Community => community) do |manager|
userID = VarBind.new(userID_OID,
OctetString.new(‘admin’))
manager.set(userID)
pass = VarBind.new(password_OID,
OctetString.new(‘[email protected]’))
manager.set(pass)
end

manager = Manager.new(:Host => hpbsmiIP, :Community => community)
varbind = VarBind.new(“1.3.6.1.4.1.9344.100.107.1.4.0”, Gauge(‘1’))
manager.set(varbind)

Thanks in advance

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs