Store device model and serial via UTF8 conversion

This commit is contained in:
Oliver Gorwits
2014-03-25 21:18:49 +00:00
parent 846b5adf67
commit e922ec9c68
2 changed files with 5 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
* Suggest installation of perl-core RPM (arguably Red Hat's bug not ours!)
* FATAL warnings considered harmful
* Only show STP blocked icon if port is UP
* Store device model and serial via UTF8 conversion
2.024004 - 2014-03-04

View File

@@ -154,7 +154,7 @@ sub store_device {
my @properties = qw/
snmp_ver
description uptime contact name location
layers ports mac serial model
layers ports mac
ps1_type ps2_type ps1_status ps2_status
fan slots
vendor os os_ver
@@ -164,6 +164,9 @@ sub store_device {
$device->$property( $snmp->$property );
}
$device->model( Encode::decode('UTF-8', $snmp->model) );
$device->serial( Encode::decode('UTF-8', $snmp->serial) );
$device->snmp_class( $snmp->device_type );
$device->last_discover(\'now()');