Snmp error


I’m using the SNMP module to retrieve interfaces mac addresses (oid Snmpwalk works fine

snmpwalk -v 1 -r 1 -t 2 -c public .
IF-MIB::ifPhysAddress.1 = STRING: 0:10:83:fd:dd:67

while using the ruby module

ifTable_columns = [ “”, ] => “#{host}”, :Version => :SNMPv1, :Community
=> ‘public’) do |manager|
manager.walk(ifTable_columns) do |row|
row.each { |vb| puts “#{} #{vb.value.to_s}
#{vb.value.asn1_type}” }

the mac address is visualized as shown ýÝg OCTET STRING

instead of 0:10:83:fd:dd:67.

How can I fix it?
Thank you very mych,


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