<h2>Linux server discovery populating wrong OS version for OS type "Debian GNU/Linux"</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul style="list-style-position: inside;"><li>Linux server discovery populating wrong OS version for OS type "Debian GNU/Linux"</li></ul></section></div><div ><h3 >Release</h3><section><ul style="list-style-position: inside;"><li>All</li></ul></section></div><div ><h3 >Resolution</h3><section><ul style="list-style-position: inside;"><li>Add the below piece of code from lines(29-32) in the Eval Script on the "<strong>Step 6.2. Extract OS distribution</strong>" on the pattern "<strong>Linux Server</strong>"<br /><br />else if (lowercaseOutput.indexOf('debian') != -1)<br />{<br />rtrn = "Debian GNU/Linux";<br />}<br /><br /><img src="/sys_attachment.do?sys_id=cba7f00d1bc87414f34d33bc1d4bcb46" width="685" height="409" /><br /><br /></li><li>Then, add the below piece of code from lines(21-23) in the Eval Script on the "<strong>Step 6.3. Extract distribution version</strong>" on the pattern "<strong>Linux Server</strong>"<br /><br />else if (lowercaseOutput.indexOf('debian') != -1) {<br />versionMatch = /debian gnu\/linux ([0-9\.]+)/.exec(lowercaseOutput);<br />}<br /><br /><img src="/sys_attachment.do?sys_id=47a7f00d1bc87414f34d33bc1d4bcb45" width="700" height="418" /><br /><br /></li><li>Make sure the lines 18-20 in the Eval script on the "<strong>Step 6.3. Extract distribution version</strong>" on the pattern "<strong>Linux Server</strong>" are also as per the screenshot above.<br /><br /></li><li>Execute the discovery on the device and it should update the OS Version correctly.</li></ul></section></div></article></div>