<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Testing for a LAN device with $GETDVI in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908478#M21217</link>
    <description>Is there something I can easily check with $GETDVI (or other user-mode means) to determine if a given device uses the LAN driver?&lt;BR /&gt;&lt;BR /&gt;Right now I'm using a brute force approach by checking if the device type is one of a long list of known LAN device types--DT$_DEUNA and cousins listed in DCDEF.H.&lt;BR /&gt;&lt;BR /&gt;You can't just check the device type against a single range from a minimum to a maximum value. You'd have to check against a number of "discontiguous" ranges plus specific single values.&lt;BR /&gt;&lt;BR /&gt;Perhaps there is some indicator, buried in all the other stuff available from $GETDVI or other mechanisms, that says "I'm a LAN device"?&lt;BR /&gt;&lt;BR /&gt;I'm pretty familiar with $GETDVI and the LAN driver $QIO interface but perhaps I've overlooked something...</description>
    <pubDate>Wed, 22 Jun 2005 06:54:42 GMT</pubDate>
    <dc:creator>Galen Tackett</dc:creator>
    <dc:date>2005-06-22T06:54:42Z</dc:date>
    <item>
      <title>Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908478#M21217</link>
      <description>Is there something I can easily check with $GETDVI (or other user-mode means) to determine if a given device uses the LAN driver?&lt;BR /&gt;&lt;BR /&gt;Right now I'm using a brute force approach by checking if the device type is one of a long list of known LAN device types--DT$_DEUNA and cousins listed in DCDEF.H.&lt;BR /&gt;&lt;BR /&gt;You can't just check the device type against a single range from a minimum to a maximum value. You'd have to check against a number of "discontiguous" ranges plus specific single values.&lt;BR /&gt;&lt;BR /&gt;Perhaps there is some indicator, buried in all the other stuff available from $GETDVI or other mechanisms, that says "I'm a LAN device"?&lt;BR /&gt;&lt;BR /&gt;I'm pretty familiar with $GETDVI and the LAN driver $QIO interface but perhaps I've overlooked something...</description>
      <pubDate>Wed, 22 Jun 2005 06:54:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908478#M21217</guid>
      <dc:creator>Galen Tackett</dc:creator>
      <dc:date>2005-06-22T06:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908479#M21218</link>
      <description>is that LAN seperate from network class device?</description>
      <pubDate>Wed, 22 Jun 2005 07:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908479#M21218</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-06-22T07:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908480#M21219</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;Does "network class device" mean a device with DC$_SCOM for its device class? If so, I believe a number of non-LAN devices have that type too; for example maybe the old point to point DECnet devices like the DMC32. (I don't have one to check but that's what my rusty memory tells me.)&lt;BR /&gt;&lt;BR /&gt;I wish it was as easy as checking for that device class...&lt;BR /&gt;&lt;BR /&gt;Galen</description>
      <pubDate>Wed, 22 Jun 2005 07:50:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908480#M21219</guid>
      <dc:creator>Galen Tackett</dc:creator>
      <dc:date>2005-06-22T07:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908481#M21220</link>
      <description>One of the bits of devchar says "I'm a network device". I think that's the base for "network device" in show dev.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 22 Jun 2005 08:34:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908481#M21220</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-06-22T08:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908482#M21221</link>
      <description>does looking for DVI$_ACPTYPE =  DVI$C_ACP_NET help?&lt;BR /&gt;&lt;BR /&gt;or  DEV$V_NET   in DEVCHAR?</description>
      <pubDate>Wed, 22 Jun 2005 10:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908482#M21221</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-06-22T10:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908483#M21222</link>
      <description>pseudo-device drivers like BGDRIVER set the "network device" bit as well, though they seem to set the ACPTYPE as well.&lt;BR /&gt;&lt;BR /&gt;Why do you need to know?</description>
      <pubDate>Wed, 22 Jun 2005 10:06:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908483#M21222</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2005-06-22T10:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908484#M21223</link>
      <description>and if you do find a DMC32 be nice to it as its probably feeling a bit tired :-)&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2005 10:17:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908484#M21223</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-06-22T10:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908485#M21224</link>
      <description>David (and all),&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Why do you need to know?&lt;BR /&gt;&lt;BR /&gt;It's just a small part of my eternal quest for truth. :-)&lt;BR /&gt;&lt;BR /&gt;Actually, I've written a few network utilities that try to automatically locate a LAN device to use, if the user hasn't specified one on the command line.&lt;BR /&gt;&lt;BR /&gt;They do this via a routine that scans all the devices of class DC$_SCOM and ignoring those that aren't LAN devices. Currently whenever VMS introduces a new LAN device type, I have to edit this routine to add the new device. The routine is not pretty--it has a giant switch() statement--but it works.&lt;BR /&gt;&lt;BR /&gt;&lt;FYI&gt;&lt;BR /&gt;One of these utilities listens for MOP System ID messages and builds a sorted tree of them. The user can interactively display a decoded version of the MOP SYSID frame. A related one sends a MOP Request ID message to a specified target LAN address, then decodes the response (if there is one.)&lt;BR /&gt;&lt;BR /&gt;They may not be particularly useful to others but I wish I could somehow make these utilities available. My employer is understandably very sensitive to releasing even small programs--especially on machine readable media. Somebody has to sign off on security, and somebody else authorizing release of proprietary information. Neither of these somebodies is likely to ever know that I even exist.)&lt;BR /&gt;&lt;/FYI&gt;</description>
      <pubDate>Wed, 22 Jun 2005 10:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908485#M21224</guid>
      <dc:creator>Galen Tackett</dc:creator>
      <dc:date>2005-06-22T10:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908486#M21225</link>
      <description>"One of these utilities listens for MOP System ID messages "&lt;BR /&gt;&lt;BR /&gt;I wrote one of those once and may have even corresponded with you in a former life (I worked for Softel and you had a more tolkienesque name). &lt;BR /&gt;&lt;BR /&gt;Parhaps I can dig it up.</description>
      <pubDate>Wed, 22 Jun 2005 10:39:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908486#M21225</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-06-22T10:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908487#M21226</link>
      <description>Galen,&lt;BR /&gt;&lt;BR /&gt;wouldn't the first character of the OpenVMS device name give a clue about whether it's a LAN interface ?&lt;BR /&gt;&lt;BR /&gt;Excn - CSMA/CD&lt;BR /&gt;Fxcn - FDDI&lt;BR /&gt;Txcn - TokenRing&lt;BR /&gt;Hxcn - ATM&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 22 Jun 2005 11:15:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908487#M21226</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-06-22T11:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908488#M21227</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Take a look at dvi$_net.  Or, from DCL . . .&lt;BR /&gt;&lt;BR /&gt;$ write sys$output f$getdvi( "ewa0", "net" )&lt;BR /&gt;TRUE&lt;BR /&gt;&lt;BR /&gt;                  -- Rob</description>
      <pubDate>Wed, 22 Jun 2005 19:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908488#M21227</guid>
      <dc:creator>Robert Brooks_1</dc:creator>
      <dc:date>2005-06-22T19:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908489#M21228</link>
      <description>I attached a part if the T4$CONFIG DCL routine, which tries to displays a list of all network devices, perhaps you can get some ideas from it.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Thu, 23 Jun 2005 00:08:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908489#M21228</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2005-06-23T00:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908490#M21229</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;You said,&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;I wrote one of those once and may have even corresponded with you in a former life (I worked for Softel and you had a more tolkienesque name). &lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Indeed! I remember this now. Way back when I worked for Lockheed Martin I used to use "finarfin" in one of my e-mail addresses--to this day it's still my AIM screen name. The code I have now is probably a distant descendant of what I was working on at the time.&lt;BR /&gt;&lt;BR /&gt;Volker,&lt;BR /&gt;&lt;BR /&gt;Did you forget Xcnn and Icnn? :-)&lt;BR /&gt;&lt;BR /&gt;Your idea looks pretty good. It would certainly simplify the code and would probably reduce the amount of future work to keep it up to date. After all, the device names for newly introduced LAN devices usually "piggyback" onto the first character of some older device's name. It's seldom that one pops up with a previously unused first character.&lt;BR /&gt;&lt;BR /&gt;Maybe I'm trying too hard to be thorough, for a program that no one but me uses or would probably care about in the first place. But that's just the perfectionist in me showing... :-)&lt;BR /&gt;&lt;BR /&gt;Robert,&lt;BR /&gt;&lt;BR /&gt;As David posted earlier, BG0: and perhaps other network pseudo-device drivers set the NET bit too. (And perhaps the drivers for old synchronous devices like the DMC11, DMR11, etc...)&lt;BR /&gt;&lt;BR /&gt;Karl,&lt;BR /&gt;&lt;BR /&gt;Thanks for the snippet of DCL from T4$CONFIG. A couple of things popped into my head while reading it:&lt;BR /&gt;&lt;BR /&gt;1) (Minor nit with the code) There are some constant declarations that could be moved outside of a loop, perhaps for an infinitesimal increase in performance. Where T4$CONFIG.COM has this:&lt;BR /&gt;&lt;BR /&gt;$ Get_Network_Device:&lt;BR /&gt;$ Field_Number = 4&lt;BR /&gt;$ Ucb$M_OnLine = %X10&lt;BR /&gt;$ Ucb$M_Template = %X2000&lt;BR /&gt;$ Dev$M_Net = %X2000&lt;BR /&gt;&lt;BR /&gt;Couldn't at least the Ucb$... and Dev$... assignments be moved to somewhere like the beginning of the procedure?&lt;BR /&gt;&lt;BR /&gt;2) I wonder how LANCP knows what is a LAN device and what isn't? Clearly it's smart enough to know that not every device with DC$_SCOM is a LAN device. Or maybe it too has a list of all known LAN device name prefixes that has to be edited whenever a new one is added.&lt;BR /&gt;&lt;BR /&gt;All,&lt;BR /&gt;&lt;BR /&gt;Thanks everyone. All your replies will help me decide what to do. And more discussion is still welcome...</description>
      <pubDate>Thu, 23 Jun 2005 05:26:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908490#M21229</guid>
      <dc:creator>Galen Tackett</dc:creator>
      <dc:date>2005-06-23T05:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908491#M21230</link>
      <description>Galen,&lt;BR /&gt;&lt;BR /&gt;yes, LANACP uses a built-in table of MEDIUM and CONTROLLER letters to try to form valid device names:&lt;BR /&gt;&lt;BR /&gt;char dev_medium[] = {"CEEEEEEEEEEEEFFFFFFFFHHHHHIIIIIXXX"};&lt;BR /&gt;char dev_cntrlr[] = {"LBCFILORSTWXZACOQRWXZCORWZCORWZEQZ"};&lt;BR /&gt;&lt;BR /&gt;So this goes from CLu0, EBu0 all the way  to XZu0 (with u=A,...,Z)&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Thu, 23 Jun 2005 06:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908491#M21230</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-06-23T06:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908492#M21231</link>
      <description>Volker,&lt;BR /&gt;&lt;BR /&gt;The way that you say LANACP does it suits me just fine. I'll probably work that into a future release.&lt;BR /&gt;&lt;BR /&gt;Disclaimer:&lt;BR /&gt;This is not a commitment to produce a future version. (Of course I'm the only one who uses it, so I'm only dislaiming this to myself. ;-)</description>
      <pubDate>Thu, 23 Jun 2005 06:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908492#M21231</guid>
      <dc:creator>Galen Tackett</dc:creator>
      <dc:date>2005-06-23T06:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Testing for a LAN device with $GETDVI</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908493#M21232</link>
      <description>The information provided by Volker Halle will do the trick for my application.</description>
      <pubDate>Mon, 27 Jun 2005 07:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/testing-for-a-lan-device-with-getdvi/m-p/4908493#M21232</guid>
      <dc:creator>Galen Tackett</dc:creator>
      <dc:date>2005-06-27T07:00:38Z</dc:date>
    </item>
  </channel>
</rss>

