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'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 A 192.168.17.66<br>andrey@nm1:~$ wmic -U speedracer%password //ws6.bvzn.local "Select RemoteQueueLength from Win32_PerfFormattedData_<div id=":zk" class="ArwC7c ckChnd">SMTPSVC_SMTPServer"<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> "Select RemoteQueueLength from Win32_PerfFormattedData_SMTPSVC_SMTPServer"<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> #0 wmic(call_backtrace+0x2d) [0x848ac4d]<br> #1 wmic(smb_panic+0x80) [0x848ada0]<br> #2 wmic [0x848b0c6]<br> #3 [0xb7fdf420]<br> #4 /lib/i686/cmov/libc.so.6(abort+0x188) [0xb7e60018]<br>
#5 wmic(talloc_named_const+0x185) [0x84cd2b5]<br> #6 wmic(ndr_pull_WbemQualifiers+0x13d) [0x80c954d]<br> #7 wmic(ndr_pull_WbemClass+0x3e4) [0x80c9bf4]<br> #8 wmic(ndr_pull_DataWithStack+0xae) [0x80c7ece]<br> #9 wmic(ndr_pull_WbemClassObject+0x2c1) [0x80c89b1]<br>
#10 wmic(WBEMDATA_Parse+0x8f2) [0x80c60d2]<br> #11 wmic(IEnumWbemClassObject_SmartNext+0x221) [0x80c6491]<br> #12 wmic(main+0x758) [0x80c4988]<br> #13 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7e49455]<br> #14 wmic [0x80c3fe1]<br>
Aborted<br>andrey@nm1:~$ host ws7.bvzn.local<br>ws7.bvzn.local A 192.168.17.67<br>andrey@nm1:~$ wmic -U speedracer%password //ws7.bvzn.local "Select RemoteQueueLength from Win32_PerfFormattedData_SMTPSVC_SMTPServer"<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> "Select RemoteQueueLength from Win32_PerfFormattedData_SMTPSVC_SMTPServer"<br>
CLASS: Win32_PerfFormattedData_SMTPSVC_SMTPServer<br>Name|RemoteQueueLength<br>_Total|0<br>SMTP 1|0<br>andrey@nm1:~$ dpkg -L 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 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 Version Description<br>+++-================-================-================================================<br>ii wmi-client 1:0.1.13-1 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>