On 26 Jul 2005, at 00:04, Chris Miles wrote:
> Thanks Mark. The "List Network Adapter Properties" script did the
> trick. And it didn't need ActiveState Python to work, thankfully.
I spoke too soon. Unfortunately the answers I get from COM are not
compatible with win32pdh. Example:
win32c
> >>http://www.microsoft.com/technet/scriptcenter/scripts/python
> /pyindex.mspx
> >>has some scripts that appear to do what you need.
> >
> >>(Quite cool that we can now post a microsoft.com address
> for help with
> >>Python scripts ;)
> >
> >Really, really cool. It's a hug of a giant.
> >
> >B
>>http://www.microsoft.com/technet/scriptcenter/scripts/python/pyindex.mspx
>>has some scripts that appear to do what you need.
>
>>(Quite cool that we can now post a microsoft.com address for help with
>>Python scripts ;)
>
>Really, really cool. It's a hug of a giant.
>
>But the sad thing: I quite
Mark,
>http://www.microsoft.com/technet/scriptcenter/scripts/python/pyindex.mspx
>has some scripts that appear to do what you need.>(Quite cool that we can now post a microsoft.com address for help with>Python scripts ;)
Really, really cool. It's a hug of a giant.
But the sad thing: I quite ra
Thanks Mark. The "List Network Adapter Properties" script did the
trick. And it didn't need ActiveState Python to work, thankfully.
I would have preferred a solution that used win32pdh, and not
win32com, just for consistency, but at least I get the results I'm
after.
Cheers,
Chris
--
Ch
k, Benjamin
> Cc: Mark Hammond; Chris Miles; python-win32@python.org
> Subject: Re: [python-win32] Fetching network interface instance names
>
>
> WorksForMe both 2.3.2 and 2.4.1 (ActiveState versions)
> (actually I only tried the .Caption, but since you said that
> that
ndor: ", objItem.Vendor
> print "Version: ", objItem.Version
>
> They are obviously missing a step, because the colItems /
> ExecQuerry is working, but
> objItems does not have any of the Caption / Description, etc
> variables....
>
> So there mus
ously missing a step, because the colItems /
ExecQuerry is working, but
objItems does not have any of the Caption / Description, etc
variables
So there must be a missing step
- Benjamin
>
> Mark.
>
> > -----Original Message-
> > From: [EM
to:[EMAIL PROTECTED] Behalf Of Chris Miles
> Sent: Monday, 25 July 2005 7:45 AM
> To: python-win32@python.org
> Subject: [python-win32] Fetching network interface instance names
>
>
> Hi, I am querying win32pdh to fetch statistics from each network
> interface on the machine. I am
Hi, I am querying win32pdh to fetch statistics from each network
interface on the machine. I am able to fetch the stats I need, using
the code below, from each network interface, provided I already know
the network interface instance name (eg: intf below).
My Q is: how can I programmaticall
10 matches
Mail list logo