Chapter 3. Base functions 95
Device reconfiguration is a three-step process:
1. Stop the device with an z/OS console command (VARY STOP) or with a VARY
OBEYFILE that names a data set in which the STOP command is defined.
2. Activate an OBEYFILE that deletes the links and the devices.
3. Activate an OBEYFILE that adds the new or changed links and devices and then starts
them.
If you wish to delete a device, the order of steps you take is important. The DELETE
statement in PROFILE.TCPIP allows you to remove LINK, DEVICE and PORT or
PORTRANGE definitions. The general sequence for deleting and adding back a device is:
1. Stop the device.
2. Remove the HOME address by excluding it from the full stack's HOME list.
3. Delete the link.
4. Delete the device.
5. Add the new or changed device.
6. Add the new or changed link.
7. Add the HOME statements for the full stack.
8. Add the full gateway statements for the stack if you are using static routing.
9. Start the device.
3.9.2 Modifying a device
In this example we wanted to change the address of OSA-Express device OSA2080 at
address 2080 from 10.10.2.212 to 10.10.2.201. This process would involve deleting the
current definition and redefining the device.
In Example 3-18 you see all the devices in the TCPIPE stack. Under each device a single link
is defined, which is associated with an IP address.
Example 3-18 Displays of devices and home before deletion
D TCPIP,TCPIPE,N,HOME
EZD0101I NETSTAT CS V1R7 TCPIPE 269
269 00000090 HOME ADDRESS LIST:
269 00000090 LINKNAME: STAVIPA1LNK
269 00000090 ADDRESS: 10.10.10.210
269 00000090 FLAGS: PRIMARY
269 00000090 LINKNAME: OSA2080LNK
269 00000090 ADDRESS: 10.10.2.212
269 00000090 FLAGS:
269 00000090 LINKNAME: OSA20A0LNK
269 00000090 ADDRESS: 10.10.3.213
269 00000090 FLAGS:
269 00000090 LINKNAME: OSA20C0LNK
269 00000090 ADDRESS: 10.10.2.214
269 00000090 FLAGS:
269 00000090 LINKNAME: OSA20E0LNK
269 00000090 ADDRESS: 10.10.3.215
269 00000090 FLAGS:
269 00000090 LINKNAME: EZASAMEMVS
269 00000090 ADDRESS: 10.10.20.130
269 00000090 FLAGS:
269 00000090 LINKNAME: IQDIOLNK0A0A1482
269 00000090 ADDRESS: 10.10.20.130
269 00000090 FLAGS:
269 00000090 LINKNAME: LOOPBACK
269 00000090 ADDRESS: 127.0.0.1
96 Communications Server for z/OS V1R7 TCP/IP Implementation, Volume 1 - Base Functions, Connectivity, and Routing
269 00000090 FLAGS:
269 00000090 INTFNAME: LOOPBACK6
269 00000090 ADDRESS: ::1
269 00000090 TYPE: LOOPBACK
269 00000090 FLAGS:
269 00000090 12 OF 12 RECORDS DISPLAYED
269 00000090 END OF THE REPORT
Notice the address of OSA2080LNK (10.10.2.212). We need to change this in the running
system by stopping, deleting, redefining, and adding back the OSA-Express device and link
and home address.
Because the STOP command is executed as the last statement within an OBEYFILE
regardless of its position within the file, you cannot do the STOP and DELETE in one step.
Trying to do so will result in the error messages illustrated in Example 3-19.
Example 3-19 Timing problems with device/link deletion
V TCPIP,TCPIPE,O,TCPIPE.TCPPARMS(DELE30)
EZZ0060I PROCESSING COMMAND: VARY TCPIP,TCPIPE,O,TCPIPE.TCPPARMS(DELE30)
EZZ0300I OPENED OBEYFILE FILE 'TCPIPE.TCPPARMS(DELE30)'
EZZ0309I PROFILE PROCESSING BEGINNING FOR 'TCPIPE.TCPPARMS(DELE30)'
EZZ0395I DELETE LINK OSA2080LNK ON LINE 20 FAILED BECAUSE LINK IS ACTIVE
EZZ0395I DELETE DEVICE OSA2080 ON LINE 21 FAILED BECAUSE DEVICE IS AC
TIVE
EZZ0316I PROFILE PROCESSING COMPLETE FOR FILE 'TCPIPE.TCPPARMS(DELE30)'
EZZ0303I OBEYFILE FILE CONTAINS ERRORS
EZZ0331I NO HOME ADDRESS ASSIGNED TO LINK OSA2080LNK
EZZ0059I VARY OBEY COMMAND FAILED: SEE PREVIOUS MESSAGES
BPXF206I ROUTING INFORMATION FOR TRANSPORT DRIVER TCPIPE HAS BEEN
INITIALIZED OR UPDATED.
EZZ4315I DEACTIVATION COMPLETE FOR DEVICE OSA2080
We also want to delete the LINK before the DEVICE (step 3 and step 4) in the right sequence.
When we add them later, we reverse the order again as in the PFROFILE data set. The
sequence of device definitions is always DEVICE, then LINK, so the statements in the profile
need to be reversed. If they are not, the following error occurs (Figure 3-20).
Example 3-20 Another timing problem with device/link deletion
V TCPIP,TCPIPE,O,TCPIPE.TCPPARMS(DELE30)
EZZ0060I PROCESSING COMMAND: VARY TCPIP,TCPIPE,O,TCPIPE.TCPPARMS(DELE30)
EZZ0300I OPENED OBEYFILE FILE 'TCPIPE.TCPPARMS(DELE30)'
EZZ0309I PROFILE PROCESSING BEGINNING FOR 'TCPIPE.TCPPARMS(DELE30)'
EZZ0395I DELETE DEVICE OSA2080 ON LINE 15 FAILED BECAUSE DEVICE HAS A LINK DEFINED
EZZ0316I PROFILE PROCESSING COMPLETE FOR FILE 'TCPIPE.TCPPARMS(DELE30)'
EZZ0303I OBEYFILE FILE CONTAINS ERRORS
EZZ0059I VARY OBEY COMMAND FAILED: SEE PREVIOUS MESSAGES
We will now change the characteristic of the device and link of OSA2080LNK. In the following
steps we stop the device (see Example 3-21).
Example 3-21 Command to stop the device
V TCPIP,TCPIPE,STOP,OSA2080
EZZ0060I PROCESSING COMMAND: VARY TCPIP,TCPIPE,STOP,OSA2080
EZZ0053I COMMAND VARY STOP COMPLETED SUCCESSFULLY
EZZ4315I DEACTIVATION COMPLETE FOR DEVICE OSA2080

Get Communications Server for z/OS V1R7 TCP/IP Implementation, Volume 1: Base Functions, Connectivity, and Routing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.