Re: Remote uptime with win32pdh

2009-09-29 Thread Jamie
On Sep 29, 1:19 pm, Jamie wrote: > On Sep 29, 1:08 pm, Jamie wrote: > > > > > > > I'm new to python and I'm trying to write a script which takes the > > computer name from the variable 'name' and gets the uptime. > > > What I have so far: > >     query = win32pdh.OpenQuery() > >     counter = win

Re: Remote uptime with win32pdh

2009-09-29 Thread Jamie
On Sep 29, 1:08 pm, Jamie wrote: > I'm new to python and I'm trying to write a script which takes the > computer name from the variable 'name' and gets the uptime. > > What I have so far: >     query = win32pdh.OpenQuery() >     counter = win32pdh.AddCounter(query, r'\System\System Up Time') >    

Remote uptime with win32pdh

2009-09-29 Thread Jamie
I'm new to python and I'm trying to write a script which takes the computer name from the variable 'name' and gets the uptime. What I have so far: query = win32pdh.OpenQuery() counter = win32pdh.AddCounter(query, r'\System\System Up Time') win32pdh.CollectQueryData(query) var1, val