<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Get S.M.A.R.T. value through smartmontool]]></title><description><![CDATA[<p dir="auto">Expert:<br />
   This is the detail of configure smartmontool.<br />
   1.how to configure agent's file at client?</p>
<blockquote>
<p dir="auto">ExternalParametersProvider = C:\netxms\Smart.cmd:3600<br />
ExternalParameter = Read_Error_Rate:cmd.exe /c C:\NetXMS\SMART-01.cmd<br />
ExternalParameter = Spin_Up_Time:cmd.exe /c C:\NetXMS\SMART-03.cmd<br />
ExternalParameter = Reallocated_Sector_Ct:cmd.exe /c C:\NetXMS\SMART-05.cmd<br />
ExternalParameter = Seek_Error_Rate:cmd.exe /c C:\NetXMS\SMART-07.cmd<br />
ExternalParameter = Spin_Retry_Count:cmd.exe /c C:\NetXMS\SMART-10.cmd<br />
ExternalParameter = Calibration_Retry_Count:cmd.exe /c C:\NetXMS\SMART-11.cmd<br />
ExternalParameter = G-Sense_Error_Rate:cmd.exe /c C:\NetXMS\SMART-191.cmd<br />
ExternalParameter = Reallocated_Event_Count:cmd.exe /c C:\NetXMS\SMART-196.cmd<br />
ExternalParameter = Current_Pending_Sector:cmd.exe /c C:\NetXMS\SMART-197.cmd<br />
ExternalParameter = UDMA_CRC_Error_Count:cmd.exe /c C:\NetXMS\SMART-199.cmd<br />
ExternalParameter = Multi_Zone_Error_Rate:cmd.exe /c C:\NetXMS\SMART-200.cmd</p>
</blockquote>
<p dir="auto"> <br />
smart.cmd</p>
<blockquote>
<p dir="auto">@echo off<br />
C:\smartmontools\bin\smartctl.exe -A -f brief sda &gt; C:\netxms\SmartTest.txt</p>
</blockquote>
<p dir="auto">SMART-01.cmd code</p>
<blockquote>
<p dir="auto">@echo off<br />
C:\NetXMS\Smartinfo "C:\netxms\SmartTest.txt" -Raw_Read_Error_Rate</p>
</blockquote>
<p dir="auto">the smartinfo is a tools writed by myself,it read value from smartTest.txt that smartctl output.</p>
<p dir="auto">2.how to create a DCI and get return value?<br />
  after create a DCI,in the transformation write</p>
<pre><code>int32($1)
</code></pre>
<p dir="auto"> </p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003039-2016-06-13_09h58_57.png" alt="2016-06-13_09h58_57.png" class="img-markdown  img-fluid" width="668" height="431" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003041-2016-06-13_10h16_10.png" alt="2016-06-13_10h16_10.png" class="img-markdown  img-fluid" width="716" height="273" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003043-2016-06-13_10h16_41.png" alt="2016-06-13_10h16_41.png" class="img-markdown  img-fluid" width="712" height="496" /></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003045-SmartInfo.zip">SmartInfo.zip</a></p>
]]></description><link>https://forum.netxms.org/topic/4514/get-s.m.a.r.t.-value-through-smartmontool</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 20:43:57 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4514.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Jun 2016 07:49:32 GMT</pubDate><ttl>60</ttl></channel></rss>