- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Getting Network Mask Address
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 12:35 AM
тАО11-26-2009 12:35 AM
Getting Network Mask Address
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?
Please help.
Thanks,
Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 01:58 AM
тАО11-26-2009 01:58 AM
Re: Getting Network Mask Address
Since TCP/IP is not generic in VMS, there is no generic interface. And there is no programming API I know of.
What comes nearest would be using "ifconfig -a"
and parse the output.
But the output format is still TCPIP stack dependent, so You have to write your own parsing (DCL-)program to extract the info wanted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 02:02 AM
тАО11-26-2009 02:02 AM
Re: Getting Network Mask Address
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 04:27 AM
тАО11-26-2009 04:27 AM
Re: Getting Network Mask Address
There is no universal DCL command to get the network address.
In Multinet, the information is generally accessed by looking at the configuration information by using the MULTINET CONFIGURE command.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 04:38 AM
тАО11-26-2009 04:38 AM
Re: Getting Network Mask Address
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 05:08 AM
тАО11-26-2009 05:08 AM
Re: Getting Network Mask Address
$ @sys$startup:tcpip$define_commands
$ awk :== $ sys$common:[syshlp.examples.tcpip.snmp]gawk.exe
$ pipe ifconfig -a | awk/command="/broadcast/ {print $1}" sys$pipe
This will print the broadcast mask, not the network mask.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 05:37 AM
тАО11-26-2009 05:37 AM
Re: Getting Network Mask Address
pipe ifconfig -a | awk/command="/netmask/ {print $4}" sys$pipe
prints all netmasks on all interfaces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 06:02 AM
тАО11-26-2009 06:02 AM
Re: Getting Network Mask Address
$ pipe ifconfig -a | awk/command="/netmask/ {print $4}" sys$pipe | (read sys$pipe in ; def/job in &in)
$ x1=%X'f$extract(0,2,f$trn("in"))
$ x2=%X'f$extract(2,2,f$trn("in"))
$ x3=%X'f$extract(4,2,f$trn("in"))
$ x4=%X'f$extract(6,2,f$trn("in"))
$ res:='X1'"."'X2'"."'X3'"."'X4'
$ wr sys$output "the network mask is ''res'"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 06:08 AM
тАО11-26-2009 06:08 AM
Re: Getting Network Mask Address
As for the request, please lodge a formal request with HP.
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.
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.)