Store device model and serial via UTF8 conversion
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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()');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user