开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Multiple OSA define


 

Jake (zpmain) wrote:

Right now I am using the below statement to define one OSA

0400.3 OSA CHPID F0 iface 192.168.1.2 ipaddr 192.168.1.5 netmask 255.255.255.0

If i want second OSA devices defined then how do I code?
Can I just repeat this line with another IP address for
secondary OSA?

What the best way to get second osa device defined for the
hercules?
Hi Jake!

I'm not sure what you mean by "secondary OSA" (did you mean: "a second OSA?", or "another OSA?"), but yes, that's all you need to do.

Just like any other device statement, such as a dasd device (where you repeat the statement but with a different device number and, of course, filename), for OSA, you simply repeat the statement, but with a different device number and, of course, ipaddr:


0404.3 OSA CHPID F0 iface 192.168.1.2 ipaddr 192.168.1.6 netmask 255.255.255.0


Notice the different device number (0404.3 instead of 0400.3) and ipaddr (192.168.1.6 instead of 192.168.1.5).

The only caveat is that the iface option -- being which host adapter the emulation is to use -- must remain the same.

On my own VM system for example (which works just fine), I have 3 OSA devices defined:


0600.3 OSA chpid F0 iface 192.168.0.107 ipaddr 192.168.0.73 netmask 255.255.0.0
0604.3 OSA chpid F0 iface 192.168.0.107 ipaddr 192.168.1.73 netmask 255.255.0.0
0608.3 OSA chpid F0 iface 192.168.0.107 ipaddr 192.168.2.73 netmask 255.255.0.0


It's that simple!

I'm actually quite surprised that the question was even asked! Is there something about our documentation or something else somewhere that was maybe confusing you or causing you to think that maybe it was done differently, thereby compelling you to ask such a question?

--
"Fish" (David B. Trout)
Software Development Laboratories

mail: fish@...

Join [email protected] to automatically receive all group messages.