|
LITTLEBLACKDOG.COM
|
| Author |
Message |
T
Curmudgeon

Joined: 17 May 2001 Posts: 15915
Location: Airstrip One
|
Posted:
Fri May 02, 2008 4:54 pm Post subject: Query link duplex from command line |
|
Simple one, this: With a network adapter whose device drivers and associated utilities do not display link details, how do I discover a connection's duplex state if the adapter is set to auto-negotiate? Better yet, how can I do it from the command line?
My Google-fu is weak, it seems. All I can find is other questions but no definitive answers. Even PENetCfg (from Bart) only lets me set the duplex state from the command line, not query it. |
_________________ Got questions? Click here.
Still got questions? Click here, too.
affabletoaster, Akely, anglachel, blahpony, CMTG, EdisonRex, Elk, Equin, evilness, Fido, fathertyme, Goddess, Jaymac, je, jodygirl, KingKobra, Lycander, mally, Max, OhioArt2, perrito_blanco, Rover, Spot, sully_51, the taz man, thriftyjack, twiztid, wrathiron, yiayia49
A journey of 3,500 miles begins with a single comic.
Would you like good music at a price that is right? CD Baby, baby.
Elf booty got soul. Elf girls like to rock and roll.
|
|
|
|
|
squashman
Big Dog


Joined: 08 Oct 2001 Posts: 3429
Location: 1265 Lombardi Ave.
|
Posted:
Mon May 05, 2008 10:37 am Post subject: |
|
Can you adapt this batch file which I found here.
http://www2.irobx.net:8010/serendipity/
@echo off
if {%1}=={} goto :EOF
call :go %1 2>nul
goto :eof
:go
for /f %%i in ('reg query \%1\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}') do (
reg query \%1%%i /v driverdesc |findstr NC7781 1>nul 2>nul
if not errorlevel 1 @echo NC7781 && @reg query \%1%%i /v RequestedMediaType |findstr RequestedMediaType
reg query \%1%%i /v driverdesc |findstr NC3163 1>nul 2>nul
if not errorlevel 1 @echo NC3163 && @reg query \%1%%i /v SpeedDuplex| findstr SpeedDuplex
reg query \%1%%i /v driverdesc |findstr NC3134 1>nul 2>nul
if not errorlevel 1 @echo NC3134 && @reg query \%1%%i /v SpeedDuplex| findstr SpeedDuplex
reg query \%1%%i /v driverdesc |findstr Netelligent 1>nul 2>nul
if not errorlevel 1 (@echo Netelligent && @reg query \%1%%i /v MediaSpeed| findstr MediaSpeed
@reg query \%1%%i /v Duplex| findstr Duplex)
reg query \%1%%i /v driverdesc |findstr NC7131 1>nul 2>nul
if not errorlevel 1 @echo NC7131 && @reg query \%1%%i /v SpeedDuplex| findstr SpeedDuplex
reg query \%1%%i /v driverdesc |findstr NC7770 1>nul 2>nul
if not errorlevel 1 @echo NC7770 && @reg query \%1%%i /v RequestedMediaType|findstr RequestedMediaType
reg query \%1%%i /v driverdesc |findstr NC7782 1>nul 2>nul
if not errorlevel 1 @echo NC7782 && @reg query \%1%%i /v RequestedMediaType|findstr RequestedMediaType
)
|
|
|
|
|
|
|
squashman
Big Dog


Joined: 08 Oct 2001 Posts: 3429
Location: 1265 Lombardi Ave.
|
Posted:
Mon May 05, 2008 10:49 am Post subject: |
|
|
|
|
|
T
Curmudgeon

Joined: 17 May 2001 Posts: 15915
Location: Airstrip One
|
Posted:
Tue May 06, 2008 3:32 am Post subject: |
|
Bugger.
Ah well. Looks like I'll have to find the relevant Registry keys for each system we use.
Still, thanks for those links; at least now I know the answer. |
_________________ Got questions? Click here.
Still got questions? Click here, too.
affabletoaster, Akely, anglachel, blahpony, CMTG, EdisonRex, Elk, Equin, evilness, Fido, fathertyme, Goddess, Jaymac, je, jodygirl, KingKobra, Lycander, mally, Max, OhioArt2, perrito_blanco, Rover, Spot, sully_51, the taz man, thriftyjack, twiztid, wrathiron, yiayia49
A journey of 3,500 miles begins with a single comic.
Would you like good music at a price that is right? CD Baby, baby.
Elf booty got soul. Elf girls like to rock and roll.
|
|
|
|
|
|
|
|
|
View next topic
View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB
© 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours
Help us keep advertisements off this site. Donate today!
|
|