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 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. The p

Re: WMI in Python

2010-09-17 Thread alex23
Lawrence D'Oliveiro 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-16 Thread Lawrence D'Oliveiro
In message <257b2d99-03d4-491b-8f8b-dccd2bc10...@p22g2000pre.googlegroups.com>, alex23 wrote: > Lawrence D'Oliveiro 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_. P

Re: WMI in Python

2010-09-16 Thread KING LABS
On Sep 16, 12:39 pm, alex23 wrote: > Lawrence D'Oliveiro 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 W

Re: WMI in Python

2010-09-16 Thread alex23
Lawrence D'Oliveiro 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 application, programmatically manipulati

Re: WMI in Python

2010-09-15 Thread Lawrence D'Oliveiro
In message , 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 one of > the targets. Why not just call Scriptomatic directly

Re: WMI in Python

2010-09-15 Thread alex23
KING LABS wrote: > The following information is exactly what I am trying to collect for > the inventory. I can find vb scripts with googling. I want to do the > same with Python & Win32. Use Server/Client architecture . > Client(agent) updates the information to server. I highly agree with the re

Re: WMI in Python

2010-09-14 Thread bli
On Sep 14, 7:46 am, KING LABS wrote: > On Sep 14, 10:39 am, KING LABS wrote: > > > > > > > > > > > On Sep 13, 8:31 pm, Jerry Hill wrote: > > > > On Mon, Sep 13, 2010 at 8:45 AM, KING LABS wrote: > > > > Hi All, > > > > > I am new to programming and python, Being a system administrator I > > > >

Re: WMI in Python

2010-09-13 Thread KING LABS
On Sep 14, 10:39 am, KING LABS wrote: > On Sep 13, 8:31 pm, Jerry Hill wrote: > > > On Mon, Sep 13, 2010 at 8:45 AM, KING LABS wrote: > > > Hi All, > > > > I am new to programming and python, Being a system administrator I > > > have chose Inventory (Software & Hardware ) as my first project. >

Re: WMI in Python

2010-09-13 Thread KING LABS
On Sep 13, 8:31 pm, Jerry Hill wrote: > On Mon, Sep 13, 2010 at 8:45 AM, KING LABS 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 >

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 Jerry Hill
On Mon, Sep 13, 2010 at 8:45 AM, KING LABS 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/python/wmi/index.html

Re: WMI in Python

2010-09-13 Thread Aahz
In article , KING LABS 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 subscribe to the win32 mailing list: http://mail.python.org/mailman/listinfo/py

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 consider

Re: WMI in Python

2010-09-13 Thread KING LABS
On Sep 13, 6:42 pm, Rodrick Brown 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 > feed into your RDBMS yo

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 t

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 woul