The below code shows everything as expected but all the status's show as 17 - unknow. I polled all the devices and they are all working fine. All show off except for one. What am i doing wrong?
<pre class="ip-ubbcode-code-pre">
print "<table>";
for($i=1; $i < $List->Count() + 1; $i++) {
$What=$List->item($i);
$device="<tr>";
$device.="<td>$What->Name</td>";
$device.="<td>$What->Location</td>";
$device.="<td>$What->Status</td>";
$device.="</tr>\n";
print $device;
}
print "</table>";
unset($hs);
?>
</pre>
<pre class="ip-ubbcode-code-pre">
print "<table>";
for($i=1; $i < $List->Count() + 1; $i++) {
$What=$List->item($i);
$device="<tr>";
$device.="<td>$What->Name</td>";
$device.="<td>$What->Location</td>";
$device.="<td>$What->Status</td>";
$device.="</tr>\n";
print $device;
}
print "</table>";
unset($hs);
?>
</pre>
Comment