ISCSI Storage Serial Number Parse Error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Windows Agent |
Fix Committed
|
Medium
|
Didier Liroulet |
Bug Description
Hello,
We are having issues with the parsing of Serial Numbers on "SYNOLOGY iSCSI Storage SCSI Disk Device" mount points on Windows Server 2008 R2 Standard with OCS Inventory NG Agent Version 2.0.5.2
Apache on OCS server is responding with HTTP Error 500 because "Parser.pm" perl script is not able to completely parse the inventory XML file:
[error] [client X.X.X.X] \nnot well-formed (invalid token) at line 1658, column 29, byte 59576 at /usr/lib64/
The error refers to the line of the SERIAL NUMBER in the inventory file sent by the Windows Agent:
[OCS XML]
<STORAGES>
<MANUFACTURER>
<NAME>SYNOLOGY iSCSI Storage SCSI Disk Device</NAME>
<MODEL>
<DESCRIPTION>Disk drive</DESCRIPTION>
<TYPE>Fixed hard disk media</TYPE>
<DISKSIZE>
<SERIALNUMBER>
<FIRMWARE>
</STORAGES>
As I understand, I believe WMI object Win32_DiskDrive is used by the agent to retrieve storage information.
Here is the result of powershell command "Get-WmiObject Win32_DiskDrive | Select-Object DeviceId, SerialNumber":
DeviceId SerialNumber
-------- ------------
\\.\PHYSICALDRIVE2 078b2f10-
\\.\PHYSICALDRIVE3 6c59fecf-
PHYSICALDRIVE2 is correctly parsed. Here is the corresponding XML in the inventory file:
[OCS XML]
<STORAGES>
<MANUFACTURER>
<NAME>SYNOLOGY iSCSI Storage SCSI Disk Device</NAME>
<MODEL>
<DESCRIPTION>Disk drive</DESCRIPTION>
<TYPE>Fixed hard disk media</TYPE>
<DISKSIZE>
<SERIALNUMBER>ヒ /フ1 ¦ ᅪ ᅦsg#</
<FIRMWARE>
</STORAGES>
Thank you for your help.
Regards,
Changed in ocsinventory-windows-agent: | |
assignee: | nobody → Didier Liroulet (dliroulet) |
importance: | Undecided → Medium |
status: | New → In Progress |
Hi,
Could you try with OCS Agent 2.1rc1 using /DEBUG=2 command line parameter, and send me SysInfo.log file created ?
Cheers