[go: up one dir, main page]

File: chccwdev.8

package info (click to toggle)
s390-tools 1.6.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,160 kB
  • ctags: 3,968
  • sloc: ansic: 26,413; asm: 5,072; sh: 4,042; cpp: 1,518; perl: 1,299; makefile: 587
file content (109 lines) | stat: -rw-r--r-- 2,884 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
.TH CHCCWDEV 8 "Apr 2006" "s390-tools"

.SH NAME
chccwdev \- modify generic attributes of channel attached devices.

.SH SYNOPSIS
.TP 9
.B chccwdev
.B -h
.TP
.B chccwdev
.RB "[ (" -a
.IB <name> = <value>
.RB "| " -e " | " -d " | " -f  ") [...]]"
.br
.I  <range>
.RI "[, " "<range>" " [...]]"
.TP
.B chccwdev
.B --version

.SH DESCRIPTION
The chccwdev command is used to set generic attributes for devices that
are controlled by the common I/O subsystem. Attributes are set in the order
they are specified on the commandline except the online attribute which is
special.
.P
If the same attribute is given more than one time the value that was set
last will be used. This is also true (while not that obvious) when mixing
the generic
.BR -a " and the " -e ", " -d " and " -f " arguments."
.P
All attributes will be set in the following order:
.RS
.TP 4
1.
All attributes except online. If the device is offline there will be no
error if the attribute doesn't exist.
.TP
2.
Set the online attribute to the desired value ((forced) online or offline).
.TP
3.
Set all the attributes that havn't been set, yet. At this point invalid
attribute names will always cause an error.
.RE
.P
If any error occurs the execution is terminated. So if using ranges only
devices before the current one have been modified. There is no automatic
rollback. All attributes that already have been changed will stay that way.

.SH OPTIONS
.TP 8
.BR -h | --help
Print help text.

.TP 8
.BR --version
Print the version of the s390-tools package and the command.

.TP
.BR -a | --attribute " \fI<name>\fR=\fI<value>\fR"
Try to set the attribute named \fIname\fR to the given value. After writing
the attribute it will be read to check whether the setting was accepted.

.TP
.BR -e | --online
Try to set the given range of devices online.

.TP
.BR -f | --forceonline
Same as online but for devices that support this (DASD devices), it can
be used to bring it online regardless of any reserved states.

.TP
.BR -d | --offline
Try to set the given range of devices offline. The online and offline
option are exclusive.

.TP
\fB<range>\fR = <bus ID>\fB[-\fR<bus ID>\fB]\fR
.TP
\fB<bus ID>\fR = ([0-9]+\\.[0-9]+\\.)?[0-9a-f]{1,4}

.SH EXAMPLES
\fBchccwdev --online 0.0.0192,0.0.0195-0.0.0198\fR
.RS
Will try to set the devices with bus ID 0.0.0192, 0.0.0195, 0.0.0196,
0.0.0197 and 0.0.0198 online
.RE
.P
.B chccwdev --attribute readonly=1 --attribute  0.0.0192
.RS
This will try to set the device with bus ID 0.0.192 online with readonly
attribute set to one (read-only mode).
.RE
.P
.B chccwdev --attribute cmb_enable=1 0.0.0195-0.0.0198
.RS
Set the cmb_enable attribute of the devices 0.0.0195, 0.0.0196, 0.0.0197 and
0.0.0198 to one. This would for example activate the usage of the channel
measurement block facility.
.RE

.SH AUTHOR
.nf
This man-page was written by Stefan Bader <shbader@de.ibm.com>.
.fi