[go: up one dir, main page]

File: vmur.8

package info (click to toggle)
s390-tools 2.3.0-2~deb10u1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 6,188 kB
  • sloc: ansic: 87,755; sh: 8,398; cpp: 8,384; perl: 3,783; makefile: 1,476; asm: 654
file content (610 lines) | stat: -rw-r--r-- 15,687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
.\" Copyright 2017 IBM Corp.
.\" s390-tools is free software; you can redistribute it and/or modify
.\" it under the terms of the MIT license. See LICENSE for details.
.\"
.TH VMUR 8 "January 2015" "s390-tools"
.
.ds v \fBvmur\fP
.
.
.SH NAME
vmur \- Work with z/VM spool file queues
.
.
.SH SYNOPSIS
.B vmur
.RI [ OPTIONS ]
.br
.B vmur
.IR vmur_command " [" command_options "] [" command_args ]
.
.
.
.SH DESCRIPTION
The \*v program allows to read, create, list, purge, or order files
on the z/VM spool files queues (RDR, PUN, and PRT).

\*v supports the following commands:
.RS 3
.TP 12
.RB "- " receive :
Read a file from the reader queue
.TP
.RB "- " punch :
Create a file on the punch queue
.TP
.RB "- " print :
Create a file on the print queue
.TP
.RB "- " list :
List one or all files on a spool file queue
.TP
.RB "- " purge :
Purge one or all files on a spool file queue
.TP
.RB "- " order :
Position a file at the top of a spool file queue
.
.RE
.PP
The \*v program requires the vmcp kernel module as prerequisite.
For the receive, punch, and print commands the vmur kernel module is also
required, and the corresponding z/VM virtual unit record devices
(in most cases 000c as reader, 000d as punch, and 000e as printer) 
must be set online.
See
.BR chccwdev (8)
for setting devices online or offline.
.
.
.
.SH OPTIONS
.TP
.BR "\-h" " or " "\-\-help"
Print help information, then exit.
.TP
.BR "\-v" " or " "\-\-version"
Print version information, then exit.
.PP
All other options are command specific and will be discussed below in the
respective command context.
.
.
.
.\" .SH USAGE
.SH receive
.SS Read file from reader queue
.IP "" 0
Synopsis:
.IP "" 2
receive [-fH] [-d dev_node] [-C class] [-t | -b sep.pad | -c]
spoolid
[-O | outfile]
.PP
Minimum abbreviation: re
.PP
Use \fBreceive\fR when you want to read a file
from the z/VM reader queue.
The file to be read is identified by its spoolid,
a 4-digit decimal number.
Use the 'vmur list' command to display information
about files in the z/VM reader queue.
.SP
.SH receive options
.SP
The following command options are supported by \fBreceive\fR:
.SP
.IP "" 0
\fB-f or --force\fR
.IP "" 2
Specifies that outfile is to be overwritten without displaying any
confirmation message.
.SP
.IP "" 0
\fB-H or --hold\fR
.IP "" 2
Specifies that the reader file to be received shall remain in the reader queue
after processing. If omitted, the reader file is purged.
.SP
.IP "" 0
\fB-C or --class\fR
.IP "" 2
Specifies the spool file class to match particular reader files.  The class
value is a 1-character alphanumeric field whose values can be A through Z, 0
through 9, or asterisk (*).

If you omit this option, the asterisk (*) is used to receive files of any class.
.SP
.IP "" 0
\fB-d or --device\fR
.IP "" 2
Specifies the device node of the virtual reader device.
If omitted, /dev/vmrdr-0.0.000c is assumed.
.SP
.IP "" 0
\fB-t or --text\fR
.IP "" 2
Specifies that a text file requiring EBCDIC-to-ASCII conversion is to be 
received. Character sets IBM037 and ISO-8859-1 are used for the conversion.
An ASCII line feed character (0x0a) is inserted for each 80-byte input
record read from the z/VM reader. Trailing EBCDIC blanks (0x40) in the
input records are stripped.
.SP
.IP "" 0
\fB-b or --blocked\fR
.IP "" 2
Specifies that the file is to be received using blocked mode.
As parameter for the -b option, the
hex codes of a separator byte and a padding byte have to be specified.
The parameter has the following format: 0xSS,0xPP
.br
All trailing padding bytes are
removed from the end of each record read from the virtual reader and
the separator byte is inserted afterwards.
The receive function's output can be piped to
.BR iconv (1)
using the appropriate character sets, for example:
.IP "" 2
# vmur re 7 -b 0x25,0x40 -O | iconv -f EBCDIC-US -t ISO-8859-1 > file
.SP
.IP "" 0
\fB-c or --convert\fR
.IP "" 2
Specifies to convert the VMDUMP spool file into a
format appropriate for further analysis with crash or lcrash.
.SP
.IP "" 0
\fB-O or --stdout\fR
.IP "" 2
Specifies that the reader file's contents are written to
standard output.
.SP
.SH receive arguments
.SP
The following command arguments are supported by \fBreceive\fR:
.SP
.IP "" 0
\fBspoolid\fR
.IP "" 2
Denotes the spoolid, which identifies a z/VM spool file.
.br
spoolid is mandatory and must be a decimal number in the range 0-9999.
.SP
.IP "" 0
\fBoutfile\fR
.IP "" 2
specifies the name of the output file to receive the
reader file's data.
.br
If both outfile and --stdout are omitted, name and type of the spool file
to be received
(see NAME and TYPE columns in 'vmur list' output)
are taken to build output file name name.type.
If the spool file to be received is an unnamed file, an error message
is issued.
.SP
.SH receive example
.SP
Receive the z/VM console of your Linux guest machine. In the 'vmur list' output
this is an unnamed file with identifier
CON in the right part of the CLASS column.
Assume its spoolid is 1234.
.IP "" 2
# vmur re -t 1234 linux_console
.PD
.IP "" 0
.SP
.SH punch or print
.SS Write file to punch or printer queue
.IP "" 0
Synopsis:
.IP "" 2
punch|print [-fr] [-d dev_node]
[-C class] [--form form] [--dest dest] [--dist distcode]
[-t | -b sep.pad] [-u user] [-n node]
.br
      [-N name.type] [file]
.PP
Minimum abbreviation: pun/pr
.PP
Use \fBpunch/print\fR when you want to write a file to the z/VM punch or
printer queue.
Specify the --rdr option if you want the file to be transferred to the z/VM
reader queue.
.SP
.SH punch/print options
.SP
The following command options are supported by \fBpunch/print\fR:
.SP
.IP "" 0
\fB-f or --force\fR
.IP "" 2
Specifies to automatically convert Linux input file name (or
<name>.<type> as specified with --name) to a valid spool
file name and type without any error message.
Invalid characters are replaced by _(underscore) and both <name> and <type>
are truncated to a length of maximal 8 characters.
.SP
.IP "" 0
\fB-r or --rdr\fR
.IP "" 2
Specifies that the punch or printer file
is to be transferred to a reader.
.SP
.IP "" 0
\fB-d or --device\fR
.IP "" 2
Specifies the device node of the virtual punch or printer device.
If omitted, /dev/vmpun-0.0.000d is assumed for punch,
and /dev/vmprt-0.0.000e for printer.
.SP
.IP "" 0
\fB-C or --class\fR
.IP "" 2
Specifies the spool file class assigned to the spool files created on this punch
or print.  The class value is a 1-character alphanumeric field whose values can be
A through Z and 0 through 9.
.SP
.IP "" 0
\fB--form\fR
.IP "" 2
Specifies the form to be assigned to the spool files on this punch or print.
The value is a 1- to 8-character value.
.SP
.IP "" 0
\fB--dest\fR
.IP "" 2
Specifies the destination value to be assigned to the spool files on this punch
or print.  The value is a 1- to 8-character value.

If the destination value has not been changed otherwise, for example, by a CP
SPOOL command, the default is OFF.  OFF is the initial setting of the
destination value for virtual devices.   Specify ANY to indicate that the
resulting spool file can be processed on any CP output device that meets other
selection criteria, regardless of the device's DEST setting.
.SP
.IP "" 0
\fB--dist\fR
.IP "" 2
Specifies the distribution code to be assigned to the spool files on this punch
or print.  The distribution code, distcode, is a 1- to 8-character value and
appears on the separator page.

If OFF or an asterisk (*) is specified, the distribution code of the spool file
is reset to the distribution code in the system directory.
.SP
.IP "" 0
\fB-t or --text\fR
.IP "" 2
specifies to
punch or print the input file as text file, that is perform ASCII-to-EBCDIC
conversion (using character sets ISO-8859-1 and IBM037)
and pad each input line with trailing blanks to fill up the unit
device record. The unit device record length is 80 for a punch and 132
for a printer. If an input line length exceeds 80 or 132 for punch
or print, respectively, an error message is issued.
.SP
.IP "" 0
\fB-b or --blocked\fR
.IP "" 2
Specifies that the file is to be written using blocked mode.
As parameter for the -b option, the
hex codes of a separator byte and a padding byte have to be specified.
The parameter has the following format: 0xSS,0xPP
.br
The separator byte identifies
the line end character of the file to punch or print. If a line has less
characters than the record length of the used unit record device, the
residual of the record is filled up with the specified padding byte.
If a line exceeds the record length, an error is printed.
.br
.BR iconv (1)
output can be piped to punch or print, for example: 
.IP "" 2
# iconv xyz -f ISO-8859-1 -t EBCDIC-US | vmur pun -b 0x25,0x40 -N abc
.SP
.IP "" 0
\fB-u or --user\fR
.IP "" 2
Specifies the z/VM user ID to whose reader the data is to be
transferred. The --user operand must adhere to z/VM user naming conventions.
If a local user is specified (that is the --node option is omitted), the
user name is validated against the CP directory.
.br
The user option
is only valid, if the -r option has been specified.
If user is omitted, the data is transferred
to your own machine's reader.
.SP
.IP "" 0
\fB-n or --node\fR
.IP "" 2
Specifies the z/VM node ID of a remote z/VM system to which
the data is to be transferred. RSCS (Remote Spooling Communications
Subsystem) must be installed on the z/VM systems and
the specified node ID must be defined in the RSCS machine's configuration file.
The node option
is only valid, if the -u option has been specified.
If node is omitted, the data is transferred to the specified user
at your local z/VM system.
.SP
.IP "" 0
\fB-N or --name\fR
.IP "" 2
Specifies a name and, optionally, a type for the z/VM spool file to be created by
the punch or print function (see NAME and TYPE columns in 'vmur list' output).
.br
In the following situations the spool file type is ignored
and only a spool file name is set:
.IP "" 4
- if the string specified in --name does not contain any period delimiter.
.IP "" 4
- if the only period appears at the very first beginning of string.
.IP "" 4
- if a period appears at the very end of string and is not preceded by
another period.
.IP "" 2
If --name is omitted:
.IP "" 4
- The Linux input file name (if any) is taken instead
and an error message is issued, if it does not comply to z/VM file
name rules (e.g. longer than 8 chars).
.IP "" 4
- If the Linux input file name is also omitted (that is data is read
from standard input), then an error message is issued.
.SP
.SH punch/print arguments
.SP
The following command arguments are supported by \fBpunch/print\fR:
.SP
.IP "" 0
\fBfile\fR
.IP "" 2
Specifies the Linux file data to be punched or printed.
If file is omitted, the data is read from standard input.
.SP
.SH punch/print example
.SP
Punch parmfile and transfer it to the reader queue.
.IP "" 2
$ vmur pun -r /boot/parmfile
.PD
.IP "" 0
.SP
.SH list
.SS List file(s) on spool file queue
.IP "" 0
Synopsis:
.IP "" 2
list [-q queue] [spoolid]
.PP
Minimum abbreviation: li
.PP
Use \fBlist\fR when you want to display information about files on a
z/VM spool file queue.
.SP
.SH list options
.SP
The following command option is supported by \fBlist\fR:
.SP
.IP "" 0
\fB-q or --queue\fR
.IP "" 2
Specifies the z/VM spool file queue to be listed. Possible values are rdr
(reader file queue), pun (punch file queue), and prt (printer file queue).
.br
If omitted, the reader file queue is assumed.
.SP
.SH list arguments
.SP
The following command argument is supported by \fBlist\fR:
.SP
.IP "" 0
\fBspoolid\fR
.IP "" 2
Identifies the z/VM spool file to be listed.
If omitted, all spool files on the specified queue are listed 
.PD
.IP "" 0
.SP
.SH purge
.SS Purge file(s) on spool file queue
.IP "" 0
Synopsis:
.IP "" 2
purge [-f] [-q queue] [-C class] [--form form] [--dest dest] [spoolid]
.PP
Minimum abbreviation: pur
.PP
Use \fBpurge\fR to remove files on a z/VM spool file queue.  Select the
spool files to remove with the class, form, or dest options and the
spoolid argument.  If these are omitted, all spool files on the specified
queue are purged.
\fB
.SP
.SH purge options
.SP
The following command options are supported by \fBpurge\fR:
.SP
.IP "" 0
\fB-f or --force\fR
.IP "" 2
Specifies to purge the specified spool file(s) without displaying any
confirmation message.
.SP
.IP "" 0
\fB-q or --queue\fR
.IP "" 2
Specifies which spool file queue contains the file(s) that you want to purge.
Possible values are rdr
(reader file queue), pun (punch file queue), and prt (printer file queue).
.br
If omitted, the reader file queue is assumed.
.SP
.IP "" 0
\fB-C or --class\fR
.IP "" 2
Specifies a spool file class.  All the files of the specified class are purged.
The class value is a 1-character alphanumeric field whose values ca be A through
Z, 0 through 9.
.SP
.IP "" 0
\fB--form\fR
.IP "" 2
Specifies a form name.  All the files with the specified form name are purged.
The form name is a 1- to 8-character value.
.SP
.IP "" 0
\fB--dest\fR
.IP "" 2
Specifies a destination value.  All the files with the specified destination
value are purged.  The destination is a 1- to 8-character value.
.SP
.SH purge arguments
.SP
The following command argument is supported by \fBpurge\fR:
.SP
.IP "" 0
\fBspoolid\fR
.IP "" 2
Identifies the z/VM spool file to be purged.
.PD
.IP "" 0
.SP
.SH order
.SS Order file on spool file queue
.IP "" 0
Synopsis:
.IP "" 2
list [-q queue] spoolid
.PP
Minimum abbreviation: or
.PP
Use \fBorder\fR when you want to place a spool file on top of a
z/VM spool file queue.
.SP
.SH order options
.SP
The following command option is supported by \fBorder\fR:
.SP
.IP "" 0
\fB-q or --queue\fR
.IP "" 2
Specifies the z/VM spool file queue you want to order. Possible values are rdr
(reader file queue), pun (punch file queue), and prt (printer file queue).
.br
If omitted, the reader file queue is assumed.
.SP
.SH order arguments
.SP
The following command argument is supported by \fBorder\fR:
.SP
.IP "" 0
\fBspoolid\fR
.IP "" 2
Identifies the z/VM spool file to be ordered.
.
.
.
.SH "EXAMPLES"
.SS "Log and read the z/VM console from Linux"
.IP "1." 3
Start z/VM console spooling by issuing:

.ft CW
.in +0.25in
.nf
# vmcp sp cons start
.fi
.in -0.25in
.ft
.
.IP "2."
Produce output to the z/VM console (for example, with \fBCP TRACE\fP)
.IP "3."
Close the console file and transfer it to the reader queue, find the spool ID
behind the \f(CWFILE\fP keyword in the corresponding CP message.
In the example below, the spool ID is 398:

.ft CW
.in +0.25in
.nf
# vmcp sp cons clo \(rs* rdr
RDR FILE 0398 SENT FROM LINUX025 CON WAS 0398 RECS 1872 
.fi
.in -0.25in
.ft
.
.IP "4."
Read and save the spool file on the Linux file system in the
current working directory:

.ft CW
.in +0.25in
.nf
# vmur re -t 398 linux_cons
.fi
.in -0.25in
.ft
.
.SS Prepare z/VM reader to IPL Linux
.IP "1." 3
Send parmfile to the z/VM punch queue and transfer it to the reader queue:

.ft CW
.in +0.25in
.nf
# vmur pun -r /boot/parmfile
Reader file with spoolid 0465 created.
.fi
.in -0.25in
.ft
.
.IP "2."
Send the Linux kernel image to the z/VM punch queue and
transfer it to reader queue:

.ft CW
.in +0.25in
.nf
# vmur pun -r /boot/vmlinuz -N image
Reader file with spoolid 0466 created.
.fi
.in -0.25in
.ft
.
.IP "3."
Move the Linux kernel image to the first and parmfile to
the second position in the reader queue:

.ft CW
.in +0.25in
.nf
# vmur or 465
# vmur or 466
.fi
.in -0.25in
.ft
.
.IP "4."
Prepare re-IPL from the z/VM reader and reboot:

.ft CW
.in +0.25in
.nf
# chreipl ccw 0.0.000c
# reboot
.fi
.in -0.25in
.ft
.
.\" ---
.
.
.
.SH "SEE ALSO"
.BR chccwdev (8),
.BR vmcp (8),
.BR iconv (1)

.I "Linux on System z - Device Drivers, Features, and Commands"