<?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 Re: Getting Network Mask Address in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540241#M43198</link>
    <description>&lt;BR /&gt;Since TCP/IP is not generic in VMS, there is no generic interface. And there is no programming API I know of.&lt;BR /&gt;&lt;BR /&gt;What comes nearest would be using "ifconfig -a"&lt;BR /&gt;and parse the output.&lt;BR /&gt;But the output format is still TCPIP stack dependent, so You have to write your own parsing (DCL-)program to extract the info wanted.&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Nov 2009 09:58:03 GMT</pubDate>
    <dc:creator>Joseph Huber_1</dc:creator>
    <dc:date>2009-11-26T09:58:03Z</dc:date>
    <item>
      <title>Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540240#M43197</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to know if there is any DCL command which will give me the Network Mask address. I am getting it from "tcpip show interface" but this command won't work if MultiNet is present. Is there any generic command which will give me the Mask address?&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Vineet</description>
      <pubDate>Thu, 26 Nov 2009 08:35:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540240#M43197</guid>
      <dc:creator>Vineet Deshpande</dc:creator>
      <dc:date>2009-11-26T08:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540241#M43198</link>
      <description>&lt;BR /&gt;Since TCP/IP is not generic in VMS, there is no generic interface. And there is no programming API I know of.&lt;BR /&gt;&lt;BR /&gt;What comes nearest would be using "ifconfig -a"&lt;BR /&gt;and parse the output.&lt;BR /&gt;But the output format is still TCPIP stack dependent, so You have to write your own parsing (DCL-)program to extract the info wanted.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2009 09:58:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540241#M43198</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-11-26T09:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540242#M43199</link>
      <description>And be aware:there is no such thing than "the" network mask:&lt;BR /&gt;each interface has its own, and will be different: if one IF is connected to the outside world, the another to the local LAN (e.g. a 10.* or 192.168.*.* network), then they certainly have different netmask and broadcast addresses.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2009 10:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540242#M43199</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-11-26T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540243#M43200</link>
      <description>Vineet,&lt;BR /&gt;&lt;BR /&gt;There is no universal DCL command to get the network address.&lt;BR /&gt;&lt;BR /&gt;In Multinet, the information is generally accessed by looking at the configuration information by using the MULTINET CONFIGURE command.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Thu, 26 Nov 2009 12:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540243#M43200</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2009-11-26T12:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540244#M43201</link>
      <description>For TCPWARE and MULTINET this data may be available in a logical name</description>
      <pubDate>Thu, 26 Nov 2009 12:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540244#M43201</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2009-11-26T12:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540245#M43202</link>
      <description>The following works with Alpha VMS 7.3-2 (and not Itanium :-)&lt;BR /&gt;&lt;BR /&gt;$ @sys$startup:tcpip$define_commands&lt;BR /&gt;$ awk :== $ sys$common:[syshlp.examples.tcpip.snmp]gawk.exe&lt;BR /&gt;$ pipe ifconfig -a | awk/command="/broadcast/ {print $1}" sys$pipe&lt;BR /&gt;&lt;BR /&gt;This will print the broadcast mask, not the network mask.</description>
      <pubDate>Thu, 26 Nov 2009 13:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540245#M43202</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2009-11-26T13:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540246#M43203</link>
      <description>On my TCPIP system the following &lt;BR /&gt;&lt;BR /&gt;pipe ifconfig -a | awk/command="/netmask/ {print $4}" sys$pipe&lt;BR /&gt;&lt;BR /&gt;prints all netmasks on all interfaces.</description>
      <pubDate>Thu, 26 Nov 2009 13:37:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540246#M43203</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2009-11-26T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540247#M43204</link>
      <description>Taking Joseph'idea, the following works if you have only a network card (but you get the idea)&lt;BR /&gt;&lt;BR /&gt;$ pipe ifconfig -a | awk/command="/netmask/ {print $4}" sys$pipe | (read sys$pipe in ; def/job in &amp;amp;in)&lt;BR /&gt;$ x1=%X'f$extract(0,2,f$trn("in"))&lt;BR /&gt;$ x2=%X'f$extract(2,2,f$trn("in"))&lt;BR /&gt;$ x3=%X'f$extract(4,2,f$trn("in"))&lt;BR /&gt;$ x4=%X'f$extract(6,2,f$trn("in"))&lt;BR /&gt;$ res:='X1'"."'X2'"."'X3'"."'X4'&lt;BR /&gt;$ wr sys$output "the network mask is ''res'"&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2009 14:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540247#M43204</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2009-11-26T14:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Network Mask Address</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540248#M43205</link>
      <description>This usually ends up involving prompting the user directly, or querying the lower-level IP stack APIs (the C socket library) within the application.&lt;BR /&gt;&lt;BR /&gt;As for the request, please lodge a formal request with HP.  &lt;BR /&gt;&lt;BR /&gt;It is long past time that there be a DCL lexical function for this, and/or a DCL command interface that works with all of the IP stacks.&lt;BR /&gt;&lt;BR /&gt;And FWIW as you proceed with this, remember that IPv6 is in play here, too.  (Yes, there are OpenVMS systems running on IPv6 networks.  More will be coming on-line, too.)&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2009 14:08:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/getting-network-mask-address/m-p/4540248#M43205</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-26T14:08:51Z</dc:date>
    </item>
  </channel>
</rss>

