lib/hotwired/core.rb in hotwired-0.0.1 vs lib/hotwired/core.rb in hotwired-0.0.2

- old
+ new

@@ -137,11 +137,11 @@ # old_by_sysname = false if record[:oid_sysDescr].match 'Application Control Engine' # 查无记录则需要新增 if (not old_by_sysname) && (not old_by_ip) # all new device - @output.info "ptr [%s] sysName [%s] ip [%s]" % [record[:ptr], record[:oid_sysName], record[:ip]] - Log.info "#{record[:ip]} added" + Log.info "ptr [%s] sysName [%s] ip [%s]" % [record[:ptr], record[:oid_sysName], record[:ip]] + # Log.info "#{record[:ip]} added" @db.add record # 根据 IP 可以查询到数据,但设备名称发生变化 elsif (not old_by_sysname) && old_by_ip # IP seen, name not, device got renamed? Log.info "#{record[:ip]} got renamed"