LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Microsoft
Author Message
T
Curmudgeon


Joined: 17 May 2001
Posts: 15915
Location: Airstrip One

Post Posted: Fri May 02, 2008 4:54 pm   Post subject: Query link duplex from command line Reply with quote Back to top  

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.
View user's profile Send private message Visit poster's website
squashman
Big Dog
Big Dog


Joined: 08 Oct 2001
Posts: 3429
Location: 1265 Lombardi Ave.

Post Posted: Mon May 05, 2008 10:37 am   Post subject: Reply with quote Back to top  

Can you adapt this batch file which I found here.
http://www2.irobx.net:8010/serendipity/

Code: Select all
@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
   
)
View user's profile Send private message Send e-mail
squashman
Big Dog
Big Dog


Joined: 08 Oct 2001
Posts: 3429
Location: 1265 Lombardi Ave.

Post Posted: Mon May 05, 2008 10:49 am   Post subject: Reply with quote Back to top  

According to what I have read around the web, it is different for each network card.
http://www.tech-archive.net/Archive/Win2000/microsoft.public.win2000.cmdprompt.admin/2004-07/0276.html
View user's profile Send private message Send e-mail
T
Curmudgeon


Joined: 17 May 2001
Posts: 15915
Location: Airstrip One

Post Posted: Tue May 06, 2008 3:32 am   Post subject: Reply with quote Back to top  

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 user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic     Reply to topic

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!