Operating System - OpenVMS
1752675 Members
5866 Online
108789 Solutions
New Discussion юеВ

Re: How to get detailed interface info

 
SOLVED
Go to solution
Zbigniew Filek
Occasional Advisor

How to get detailed interface info

I need to get info about duplex setting on an interface under V7.3-2. I seem to remember there was a wonderful utility to give you everything you ever wanted to know about LAN and LAN interfaces (NOT LANCP). What is it?
5 REPLIES 5
Karl Rohwedder
Honored Contributor

Re: How to get detailed interface info

What's wrong with LANCP? You can also do a :

$ anal/System
SDA> SHOW LAN

regards Kalle
Zbigniew Filek
Occasional Advisor

Re: How to get detailed interface info

OK. Then how to learn what is the duplex setting using LANCP?
Robert Brooks_1
Honored Contributor
Solution

Re: How to get detailed interface info

For V8.3, I added an enhancement to $ SHOW DEVICE /FULL for Ethernet devices that will display something like . . .

$ sho dev/ful ewa0

Device EWA0:, device type DE500, is online, network device, error logging is
enabled, device is a template only.

Error count 3 Operations completed 0
Owner process "" Owner UIC [SYSTEM]
Owner process ID 00000000 Dev Prot S:RWPL,O:RWPL,G,W
Reference count 0 Default buffer size 512

Operating characteristics: Link up, Full duplex, Autonegotiation.

Speed (Mbits/sec) 100
Def. MAC addr 08-00-2B-86-AD-95 Current MAC addr AA-00-04-00-0C-2C

The above is for the "template" device. For a device that's running a specific protocol, you get . . .

$ sho dev/ful ewa2

Device EWA2:, device type DE500, is online, network device, error logging is
enabled.

Error count 0 Operations completed 124661
Owner process "NETACP" Owner UIC [SYSTEM]
Owner process ID 0000041D Dev Prot S:RWPL,O:RWPL,G,W
Reference count 2 Default buffer size 1498

Operating characteristics: Full duplex, Autonegotiation.

Speed (Mbits/sec) 100
Def. MAC addr 08-00-2B-86-AD-95 Current MAC addr AA-00-04-00-0C-2C
Protocol name DECNET Protocol type 60-03

All of the above information is available by $GETDVI item codes that were added for V8.3 and unofficially backported to 7.3-2. To use those backported item codes via DCL, you'd also need a DCL kit that was built such that it contains the backported codes. The easiest way to see if you've got them is to do something ugly like

search sys$system:dcl.exe "LAN_DEFAULT_MAC_ADDRESS"

and see if anything matches. If it does, all the LAN item codes are available.


See the V8.3 System Services reference manual for information about the LAN item codes.


-- Rob
Hoff
Honored Contributor

Re: How to get detailed interface info

Duplex? How? With LANCP?

LANCP> SHOW DEVICE /CHAR
..
No Full duplex enable
No Full duplex operational
..

Alternatively, ANALYZE /SYSTEM (SDA), and tap forward on SDA> SHOW LAN [/DEVICE=...] /FULL or use the ddc part of the ddcu: device name on SDA> SHOW LAN [/DEVICE=ddc] /FULL, or...

There are other ways to garner this information. Connect in on a managed switch and ask it, for instance.
Zbigniew Filek
Occasional Advisor

Re: How to get detailed interface info

Thank you, Rob. According to your explanation, I used:
$ x=f$getdvi("EWA4", "LAN_FULL_DUPLEX")
and it worked, even though my VMS version is 7.3-2.
Ziggy