Package: wmi-client<br><br>Hello,<br><br>I have a script that connects to a number of windows
targets and pokes them for some WMI info. One command does not work and
throws a trace back instead. What is interesting is that if I run it
with the FQDN of the machine, it works. But if I run it with the IP
address of that machine it does not. Somehow, it seems to be tight to
that particular IP address. I&#39;m attaching the screen snip of how it
breaks only for that particular IP.<br>
<br>andrey@nm1:~$ host ws6.bvzn.local<br>
ws6.bvzn.local&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.17.66<br>andrey@nm1:~$ wmic -U speedracer%password //ws6.bvzn.local &quot;Select RemoteQueueLength from Win32_PerfFormattedData_<div id=":zk" class="ArwC7c ckChnd">SMTPSVC_SMTPServer&quot;<br>
CLASS: Win32_PerfFormattedData_SMTPSVC_SMTPServer<br>
Name|RemoteQueueLength<br>_Total|0<br>SMTP 1|0<br>andrey@nm1:~$ wmic -U speedracer%password //<a href="http://192.168.17.66/" target="_blank">192.168.17.66</a> &quot;Select RemoteQueueLength from Win32_PerfFormattedData_SMTPSVC_SMTPServer&quot;<br>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>INTERNAL ERROR: Signal 6 in pid 27993 (4.0.0alpha3-GIT-UNKNOWN)<br>Please read the file BUGS.txt in the distribution<br>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<br>

PANIC: internal error<br>BACKTRACE: 15 stack frames:<br>&nbsp;#0 wmic(call_backtrace+0x2d) [0x848ac4d]<br>&nbsp;#1 wmic(smb_panic+0x80) [0x848ada0]<br>&nbsp;#2 wmic [0x848b0c6]<br>&nbsp;#3 [0xb7fdf420]<br>&nbsp;#4 /lib/i686/cmov/libc.so.6(abort+0x188) [0xb7e60018]<br>

&nbsp;#5 wmic(talloc_named_const+0x185) [0x84cd2b5]<br>&nbsp;#6 wmic(ndr_pull_WbemQualifiers+0x13d) [0x80c954d]<br>&nbsp;#7 wmic(ndr_pull_WbemClass+0x3e4) [0x80c9bf4]<br>&nbsp;#8 wmic(ndr_pull_DataWithStack+0xae) [0x80c7ece]<br>&nbsp;#9 wmic(ndr_pull_WbemClassObject+0x2c1) [0x80c89b1]<br>

&nbsp;#10 wmic(WBEMDATA_Parse+0x8f2) [0x80c60d2]<br>&nbsp;#11 wmic(IEnumWbemClassObject_SmartNext+0x221) [0x80c6491]<br>&nbsp;#12 wmic(main+0x758) [0x80c4988]<br>&nbsp;#13 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7e49455]<br>&nbsp;#14 wmic [0x80c3fe1]<br>

Aborted<br>andrey@nm1:~$ host ws7.bvzn.local<br>ws7.bvzn.local&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.17.67<br>andrey@nm1:~$ wmic -U speedracer%password //ws7.bvzn.local &quot;Select RemoteQueueLength from Win32_PerfFormattedData_SMTPSVC_SMTPServer&quot;<br>

CLASS: Win32_PerfFormattedData_SMTPSVC_SMTPServer<br>Name|RemoteQueueLength<br>_Total|0<br>SMTP 1|0<br>andrey@nm1:~$ wmic -U speedracer%password //<a href="http://192.168.17.67/" target="_blank">192.168.17.67</a> &quot;Select RemoteQueueLength from Win32_PerfFormattedData_SMTPSVC_SMTPServer&quot;<br>

CLASS: Win32_PerfFormattedData_SMTPSVC_SMTPServer<br>Name|RemoteQueueLength<br>_Total|0<br>SMTP 1|0<br>andrey@nm1:~$ dpkg -L&nbsp; wmi-client<br>/.<br>/usr<br>/usr/bin<br>/usr/bin/winexe<br>/usr/bin/wmic<br>/usr/share<br>/usr/share/doc<br>

/usr/share/doc/wmi-client<br>/usr/share/doc/wmi-client/copyright<br>/usr/share/doc/wmi-client/changelog.Debian.gz<br>/usr/share/man<br>/usr/share/man/man1<br>/usr/share/man/man1/winexe.1.gz<br>/usr/share/man/man1/wmic.1.gz<br>

andrey@nm1:~$ dpkg -l&nbsp; wmi-client<br>Desired=Unknown/Install/Remove/Purge/Hold<br>| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend<br>|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)<br>

||/ Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Description<br>+++-================-================-================================================<br>ii&nbsp; wmi-client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1:0.1.13-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DCOM/WMI client implementation<br>andrey@nm1:~$ </div>
<br clear="all"><br>-----<br>Andrey Gordon [<a href="mailto:andrey.gordon@gmail.com">andrey.gordon@gmail.com</a>]<br>