TDI Query (TDIQ) Test Tool
|
|
IP Configuration | |
|
IP Route Information | |
|
IP Statistics |
Of significance is:
TDIQ is platform-independent...
TDIQ does not examine the registry, use Winsock 2, use INETMIB1.DLL or use IPHelper functions. It does link to wsock32.dll (Winsock 1.1) primarily for formatting functions like intoa, etc.
Testing has shown that it works correctly (so far...) on:
|
Windows 95 | |
|
Windows 98 | |
|
Windows Me | |
|
Windows NT 4.0 | |
|
Windows 2000 | |
|
Windows XP |
The information accessible by the PCAUSA TDIQ is not as complete as that provided by IP Helper and TDIQ does not currently support changing any IP settings.
Nevertheless, the availability of a single platform-independent API that provides a useful subset of the platform-limited IP Helper is of potential use.
![]()
TDIQ is a Win32 console application. You run it from a Windows 9X MS-DOS Prompt window or a Windows NT Command Prompt window.
The TDIQ output is formatted to be similar to existing Windows NT IP utilities such as IPCONFIG, ROUTE PRINT and the SDK IP Helper sample called IPSTAT.
![]()
To command TDIQ to display IP configuration information use the ipconfig command line option:
C:> tdiq ipconfig
The following is a capture of the TDIQ IP configuration output for a PCAUSA Windows 2000 server that has two Ethernet adapters installed. One adapter has two IP addresses:
TDI Query (TDIQ) Test Tool for Windows NT - V2.01.04.12
Copyright (c) 2000-2002 Printing Communications Assoc., Inc (PCAUSA)IP Configuration
Loopback Adapter:Description..........: MS TCP Loopback interface
Physical Address.....:
IP Address...........: 127.0.0.1
Subnet Mask..........: 255.0.0.0
Speed................: 10000000 bits/second
MTU (Local Nodes)....: 32768 bytes
Bytes Sent...........: 226940
Bytes Received.......: 226940Ethernet Adapter:
Description..........: NETGEAR FA310TX Fast Ethernet PCI Adapter
Physical Address.....: 00-A0-CC-63-08-1B
IP Address...........: 192.168.1.64
Subnet Mask..........: 255.255.255.0
Default Gateway......: 192.168.1.1
Speed................: 10000000 bits/second
MTU (Local Nodes)....: 1500 bytes
Bytes Sent...........: 589960909
Bytes Received.......: 2556362483Ethernet Adapter:
Description..........: NETGEAR FA310TX Fast Ethernet PCI Adapter
Physical Address.....: 00-A0-CC-65-61-7D
IP Address...........: 66.47.97.218
Subnet Mask..........: 255.255.255.248
IP Address...........: 66.47.97.219
Subnet Mask..........: 255.255.255.248
Default Gateway......: 66.47.97.217
Speed................: 10000000 bits/second
MTU (Local Nodes)....: 1500 bytes
Bytes Sent...........: 3938397
Bytes Received.......: 63344217
![]()
To command TDIQ to display IP route information use the iproute command line option:
C:> tdiq iproute
The following is a capture of the TDIQ IP route information output for a PCAUSA Windows 2000 server that has two Ethernet adapters installed:
TDI Query (TDIQ) Test Tool for Windows NT - V2.01.04.12 Copyright (c) 2000-2002 Printing Communications Assoc., Inc (PCAUSA)
==========================================================================
Interface List
0x01 ........................... MS TCP Loopback interface
0x03 ...00-A0-CC-63-08-1B....... NETGEAR FA310TX Fast Ethernet PCI Adapter
0x04 ...00-A0-CC-65-61-7D....... NETGEAR FA310TX Fast Ethernet PCI Adapter
==========================================================================
==========================================================================
Active Routes:
Network Address Netmask Gateway Address Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.64 1
0.0.0.0 0.0.0.0 66.47.97.217 66.47.97.218 1
66.47.97.216 255.255.255.248 66.47.97.219 66.47.97.218 1
66.47.97.218 255.255.255.255 127.0.0.1 127.0.0.1 1
66.47.97.219 255.255.255.255 127.0.0.1 127.0.0.1 1
66.255.255.255 255.255.255.255 66.47.97.219 66.47.97.218 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.1.0 255.255.255.0 192.168.1.64 192.168.1.64 1
192.168.1.64 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.1.255 255.255.255.255 192.168.1.64 192.168.1.64 1
224.0.0.0 224.0.0.0 192.168.1.64 192.168.1.64 1
224.0.0.0 224.0.0.0 66.47.97.219 66.47.97.218 1
255.255.255.255 255.255.255.255 192.168.1.64 192.168.1.64 1
Default Gateway: 192.168.1.1
==========================================================================
![]()
To command TDIQ to display IP statistics information use the ipstat command line option:
C:> tdiq ipstat
The following is a capture of the TDIQ IP statistics information for a PCAUSA Windows NT workstation:
TDI Query (TDIQ) Test Tool for Windows NT - V2.01.04.12 Copyright (c) 2000-2002 Printing Communications Assoc., Inc (PCAUSA)
IP Statistics dwForwarding = 2 dwDefaultTTL = 128 dwInReceives = 2694939 dwInHdrErrors = 0 dwInAddrErrors = 0 dwForwDatagrams = 0 dwInUnknownProtos = 0 dwInDiscards = 0 dwInDelivers = 2694905 dwOutRequests = 1985929 dwRoutingDiscards = 0 dwOutDiscards = 0 dwOutNoRoutes = 0 dwReasmTimeout = 60 dwReasmReqds = 34 dwReasmOks = 0 dwReasmFails = 31 dwFragOks = 0 dwFragFails = 0 dwFragCreates = 0 dwNumIf = 3 dwNumAddr = 4 dwNumRoutes = 13
This information looks identical to the output of the SDK IP Helper sample called IPSTAT and the statistics fields can be interpreted as described in the MIB_IPSTATS structure description. However, the IP Helper GetIPStatistics() function was not used to acquire this information.
June 22, 2002 - Released V2.01.02.14.
Fixed bug observed on Windows Me. Code repartition for ease
of readability,
February 17, 2000 - Released V2.00.03.09. This is the initial release of
TDIQ.
Please let us know if you encounter difficulties using this program or if you have suggestions for improvement.
![]()
You'll need to read the Terms And Conditions and enter your Contact Information before beginning your download. Your Contact Information will only be used by PCAUSA, primarily to determine if there is sufficient interest to maintain the software on the PCAUSA website.
Enjoy!
If you find bugs in TDIQ or wish to suggest improvements, please let us know.
![]()
The TDI Query (TDIQ) source code is included with the PCAUSA TDI Client 2000 Samples for Windows NT and Windows 2000.
|
PCAUSA Home ·
Privacy Statement ·
Products ·
Ordering ·
Support ·
Utilities ·
Resources
|