Re: WMI in Python

2010-09-17 Thread alex23
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Because machine-generated code has no place in a source file to be maintained by a human. Endlessly repeating your bigotry doesn't make it any more true. -- http://mail.python.org/mailman/listinfo/python-list

Re: WMI in Python

2010-09-17 Thread Lawrence D'Oliveiro
In message 210f30c4-22da-405f-ad4b-cc46841ca...@p22g2000pre.googlegroups.com, alex23 wrote: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Because machine-generated code has no place in a source file to be maintained by a human. Endlessly repeating your bigotry doesn't make

Re: WMI in Python

2010-09-16 Thread alex23
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Why not just call Scriptomatic directly from within the Python script, then? Because Scriptomatic _generates scripts to access WMI_, that's what it _does_. Are you _seriously_ advocating writing Python code to fire up a Windows

Re: WMI in Python

2010-09-16 Thread KING LABS
On Sep 16, 12:39 pm, alex23 wuwe...@gmail.com wrote: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Why not just call Scriptomatic directly from within the Python script, then? Because Scriptomatic _generates scripts to access WMI_, that's what it _does_. Are you _seriously_

Re: WMI in Python

2010-09-16 Thread Lawrence D'Oliveiro
In message 257b2d99-03d4-491b-8f8b-dccd2bc10...@p22g2000pre.googlegroups.com, alex23 wrote: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Why not just call Scriptomatic directly from within the Python script, then? Because Scriptomatic _generates scripts to access WMI_,

Re: WMI in Python

2010-09-15 Thread alex23
sockets-based approach[3] (that I've never used but looks okay). 1: http://timgolden.me.uk/python/wmi/index.html 2: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=09dfc342-648b-4119-b7eb-783b0f7d1178displaylang=en 3: http://wdvl.internet.com/Authoring/python/client/watts06152009.html

Re: WMI in Python

2010-09-15 Thread Lawrence D'Oliveiro
In message d8d3a07f-118c-4f8b-a6fc-f6f8762c9...@x18g2000pro.googlegroups.com, alex23 wrote: However, for a quick ready solution, have you looked at Microsoft's Scriptomatic?[2] It's a handy little tool that lets you specify the WMI query you want and produces code for you, with Python being

Re: WMI in Python

2010-09-14 Thread bli
to programming and python, Being a system administrator I have chose Inventory (Software Hardware ) as my first project. You'll probably want to look at the python WMI module:http://timgolden.me.uk/python/wmi/index.html as well as the pywin32 module:http://sourceforge.net/projects

WMI in Python

2010-09-13 Thread KING LABS
Hi All, I am new to programming and python, Being a system administrator I have chose Inventory (Software Hardware ) as my first project. I would like to know experts advice on the best way to build the same using python. I would like to this tool to evolve into full fledge application. I

Re: WMI in Python

2010-09-13 Thread Rodrick Brown
The easiest way to do this is to use the native OS tools readily available to do the collection and log to a central location or if possible shared location accessible by all systems, once you have all the data you want to feed into your RDBMS you could easily parse these logs using python and

Re: WMI in Python

2010-09-13 Thread KING LABS
On Sep 13, 6:42 pm, Rodrick Brown rodrick.br...@gmail.com wrote: The easiest way to do this is to use the native OS tools readily available to do the collection and log to a central location or if possible shared location accessible by all systems, once you have all the data you want to

Re: WMI in Python

2010-09-13 Thread Ed Leafe
On Sep 13, 2010, at 9:51 AM, KING LABS wrote: I am trying to learn Python programming. Since I need a custom inventory management tool for my work place. I am considering it as a project in the process of learning Python. I am not looking for easiest way of doing things. I am considering

Re: WMI in Python

2010-09-13 Thread Aahz
In article add6a0b4-2fa5-4aec-ae44-57a4a9a13...@13g2000prf.googlegroups.com, KING LABS kinglabs...@gmail.com wrote: I would like to collect the complete information of system hardware and also software installed from registry and add/remove program and feed this data into database. You should

Re: WMI in Python

2010-09-13 Thread Jerry Hill
On Mon, Sep 13, 2010 at 8:45 AM, KING LABS kinglabs...@gmail.com wrote: Hi All, I am new to programming and python, Being a system administrator I have chose Inventory (Software Hardware ) as my first project. You'll probably want to look at the python WMI module: http://timgolden.me.uk

Re: WMI in Python

2010-09-13 Thread prakash jp
Very true most systems admins requirement range from : knoowing the Service tag for a given IP to knowing the system harware details such as RAM sizes etc. This is where Remote Inventory Management comes in handy. There is vault of already existing vb scripts/perl scripts and batch files. To me it

Re: WMI in Python

2010-09-13 Thread KING LABS
want to look at the python WMI module:http://timgolden.me.uk/python/wmi/index.html as well as the pywin32 module:http://sourceforge.net/projects/pywin32/ IIRC, there's been quite a bit of discussion about inventorying installed software on the pywin32 mailing list:http://mail.python.org

Re: WMI in Python

2010-09-13 Thread KING LABS
Inventory (Software Hardware ) as my first project. You'll probably want to look at the python WMI module:http://timgolden.me.uk/python/wmi/index.html as well as the pywin32 module:http://sourceforge.net/projects/pywin32/ IIRC, there's been quite a bit of discussion about inventorying

Googling for wmi and python....

2005-02-06 Thread Harald Massa
I upgraded Python to 2.4 now the game really starts, looking all over the internet for all the packages ... I needed Tim Goldens WMI ... and googeld, dropping there: http://www.microsoft.com/technet/scriptcenter/scripts/python/misc/wmi/defau lt.mspx With comment: Sample scripts for retrieving