Hi,

I am looking at NDIS to get some piece of
information that Microsoft implementation
of SNMP does not give me (mib2-transmission)

I have found how to get the required stats from
NDIS using IOCTL_NDIS_QUERY_GLOBAL_STATS
but there is a small piece of information that I
could not find anywhere in the documentation

Network adapters are identified by an index number
(called ifIndex) in SNMP. However I cant find any
corresponding information in the NDIS OID header
files. Without that identifier I have no way of correlating
the information about adapters SNMP gives me and
the information I can find out myself using NDIS.

If someone knows how this ifIndex number is found by
the inetmib1.dll which gives the mib2 data or how I
can get the ifIndex from NDIS or even from where I
can get the mib2-transmission group information in
windows please tell me about it

Thank you
arun

Re: NDIS query and SNMP by Pavel

Pavel
Sat Aug 02 16:54:49 CDT 2003

"arun" <akumar@omnesysindia.com> wrote in message
news:bgfuph$nka16$1@ID-164188.news.uni-berlin.de...
> Network adapters are identified by an index number
> (called ifIndex) in SNMP. However I cant find any
> corresponding information in the NDIS OID header
> files. Without that identifier I have no way of correlating
> the information about adapters SNMP gives me and
> the information I can find out myself using NDIS.
>
> If someone knows how this ifIndex number is found by
> the inetmib1.dll which gives the mib2 data or how I
> can get the ifIndex from NDIS or even from where I
> can get the mib2-transmission group information in
> windows please tell me about it

On the level of NDIS OIDs, notion of "adapter index" does not exist... maybe
it exists on winsock level?
Try networking or WMI newsgroups.

--PA



Re: NDIS query and SNMP by Maxim

Maxim
Sat Aug 02 16:35:25 CDT 2003

> On the level of NDIS OIDs, notion of "adapter index" does not exist... maybe
> it exists on winsock level?

I can assume that "ifIndex" is an ARP-level thing.
ARP-level controls are exposed by IPHelper API.

Max



Re: NDIS query and SNMP by Alan

Alan
Mon Aug 04 06:40:05 CDT 2003

arun <akumar@omnesysindia.com> wrote:
> Hi,
>
> I am looking at NDIS to get some piece of
> information that Microsoft implementation
> of SNMP does not give me (mib2-transmission)
>
[...]
> If someone knows how this ifIndex number is found by
> the inetmib1.dll which gives the mib2 data or how I
> can get the ifIndex from NDIS or even from where I
> can get the mib2-transmission group information in
> windows please tell me about it

As it seems that NDIS doesn't keep this information and there is no direct
way to find the ifIndex to interface mapping... I suppose you might be able
to calculate the mapping yourself by using the ifDescr object. When your
extension agent first starts get it to collect all instances of ifDescr
(indexed by ifIndex) and also collect all the interface names with NDIS and
together hopefully that'll allow you to build a table of ifIndex to
interface mappings. You'll also have to monitor interface changes so that
you can re-run the 'find mapping' function then.
--
Alan J. McFarlane
http://homepage.ntlworld.com/alanjmcf/
Please follow-up in the newsgroup for the benefit of all.