Hm, here's something interesting.  The network engineers at JMU are still 
running 2.1.3, so I copied 'wmic' from their installation over to my server and 
ran some tests between the 2.1.3 'wmic' and the 2.2.1 'wmic'.  Here are my 
results:

With the 2.2.1 binary:

Code:
[EMAIL PROTECTED] wmi]$ time /opt/zenoss/bin/wmic -U domain/user%password 
//server1 "SELECT RegisteredUser FROM Win32_OperatingSystem"
CLASS: Win32_OperatingSystem
Name|RegisteredUser
Microsoft Windows Server 2003 Standard 
Edition|C:\WINDOWS|\Device\Harddisk0\Partition1|James Madison University

real    0m18.199s
user    0m0.000s
sys     0m0.000s

[EMAIL PROTECTED] wmi]$ time /opt/zenoss/bin/wmic -U domain/user%password 
//server1 "SELECT RegisteredUser FROM Win32_OperatingSystem"
CLASS: Win32_OperatingSystem
Name|RegisteredUser
Microsoft Windows Server 2003 Standard 
Edition|C:\WINDOWS|\Device\Harddisk0\Partition1|James Madison University

real    0m18.223s
user    0m0.000s
sys     0m0.004s


With the 2.1.3 binary:

Code:
[EMAIL PROTECTED] wmi]$ time ./wmic -U domain/user%password //server1 "SELECT 
RegisteredUser FROM Win32_OperatingSystem"  CLASS: Win32_OperatingSystem
Name|RegisteredUser
Microsoft Windows Server 2003 Standard 
Edition|C:\WINDOWS|\Device\Harddisk0\Partition1|James Madison University

real    0m0.223s
user    0m0.000s
sys     0m0.004s
[EMAIL PROTECTED] wmi]$ time ./wmic -U domain/user%password //server1 "SELECT 
RegisteredUser FROM Win32_OperatingSystem"
CLASS: Win32_OperatingSystem
Name|RegisteredUser
Microsoft Windows Server 2003 Standard 
Edition|C:\WINDOWS|\Device\Harddisk0\Partition1|James Madison University

real    0m0.141s
user    0m0.000s
sys     0m0.000s




For whatever reason both binaries share the same version number ("Version 
4.0.0tp4-SVN-build-UNKNOWN"), but it does look like something's not right with 
the binary in 2.2.1.  I am going to replace the 2.2.1 wmic binary on my system 
for now with the binary from 2.1.3 and see how many issues that alleviates, 
because it definitely looks like the version of wmic that shipped with 2.2.1 is 
broken.  I'll post an update with the results in the next few days.

--seth




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=22091#22091

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to