galez74 wrote:
> Quick python test:
> - install and configure WMI on a certain Windows machine
> - on a different one, install python+pywin32
> - run this script:
>
>
> >
> > import win32com.client
> >
> > strComputer = "SRV2k3.corp.COMPANY.lcl"
> > objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
> > objSWbemServices =
> > objWMIService.ConnectServer(strComputer,"root\cimv2",".\zenoss","Zenpass01")
> >
> > colItems = objSWbemServices.ExecQuery("Select * from Win32_WMISetting")
> > for objItem in colItems:
> > print "ASP Script Default Namespace: ",
> > objItem.ASPScriptDefaultNamespace
> > print "Build Version: ", objItem.BuildVersion
> >
>
>
> I played with these values and they all worked.
>
> strComputer = "SRV2k3.corp.COMPANY.lcl"
> strComputer = "10.1.1.2"
>
> objWMIService.ConnectServer(strComputer,"root\cimv2","zenoss","Zenpass01")
> objWMIService.ConnectServer(strComputer,"root\cimv2",".\zenoss","Zenpass01")
> objWMIService.ConnectServer(strComputer,"root\cimv2","CORP\zenoss","Zenpass01")
>
>
> so Windows is not picky about FQDN or ./USERNAME, it must be Zenoss not
> passing parameters correctly???
i have an error with your program:
at "print"
expected an indented block
------------------------
unset
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=10771#10771
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users