diff options
Diffstat (limited to 'usr/src/man/man1m')
-rw-r--r-- | usr/src/man/man1m/Makefile | 4 | ||||
-rw-r--r-- | usr/src/man/man1m/flowadm.1m | 392 | ||||
-rw-r--r-- | usr/src/man/man1m/hotplug.1m | 330 | ||||
-rw-r--r-- | usr/src/man/man1m/tzreload.1m | 78 |
4 files changed, 512 insertions, 292 deletions
diff --git a/usr/src/man/man1m/Makefile b/usr/src/man/man1m/Makefile index a571d4ca86..1eaa441df3 100644 --- a/usr/src/man/man1m/Makefile +++ b/usr/src/man/man1m/Makefile @@ -11,7 +11,7 @@ # # Copyright 2011, Richard Lowe -# Copyright 2019 Joyent, Inc. +# Copyright 2020 Joyent, Inc. # Copyright 2015 Nexenta Systems, Inc. All rights reserved. # Copyright (c) 2013, 2016 by Delphix. All rights reserved. # Copyright 2016 Toomas Soome <tsoome@me.com> @@ -170,6 +170,7 @@ _MANFILES= 6to4relay.1m \ halt.1m \ hextoalabel.1m \ hostconfig.1m \ + hotplug.1m \ id.1m \ idmap.1m \ idmapd.1m \ @@ -490,6 +491,7 @@ _MANFILES= 6to4relay.1m \ ttymon.1m \ tunefs.1m \ txzonemgr.1m \ + tzreload.1m \ tzselect.1m \ uadmin.1m \ ucodeadm.1m \ diff --git a/usr/src/man/man1m/flowadm.1m b/usr/src/man/man1m/flowadm.1m index 860d5f1faa..fcaa518a41 100644 --- a/usr/src/man/man1m/flowadm.1m +++ b/usr/src/man/man1m/flowadm.1m @@ -1,10 +1,11 @@ '\" te +.\" Copyright 2020 Peter Tribble .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved .\" Copyright (c) 2011, Joyent, Inc. All Rights Reserved .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH FLOWADM 1M "April 9, 2016" +.TH FLOWADM 1M "February 26, 2020" .SH NAME flowadm \- administer bandwidth resource control and priority for protocols, services, containers, and virtual machines @@ -30,14 +31,7 @@ services, containers, and virtual machines [\fB-p\fR \fIprop\fR[,...]] [\fIflow\fR] .fi -.LP -.nf -\fBflowadm show-usage\fR [\fB-a\fR] [\fB-d\fR | {\fB-p\fR \fIplotfile\fR \fB-F\fR \fIformat\fR}] [\fB-s\fR \fItime\fR] - [\fB-e\fR \fItime\fR] \fB-f\fR \fIfilename\fR [\fIflow\fR] -.fi - .SH DESCRIPTION -.LP The \fBflowadm\fR command is used to create, modify, remove, and show networking bandwidth and associated resources for a type of traffic on a particular link. @@ -62,7 +56,7 @@ Inbound and outbound packet are matched to flows in a very fast and scalable way, so that limits can be enforced with minimal performance impact. .sp .LP -The \fBflowadm\fR command can be used to identify a flow without imposing any +The \fBflowadm\fR command can be used to define a flow without imposing any bandwidth resource control. This would result in the traffic type getting its own resources and queues so that it is isolated from rest of the networking traffic for more observable and deterministic behavior. @@ -71,7 +65,6 @@ traffic for more observable and deterministic behavior. \fBflowadm\fR is implemented as a set of subcommands with corresponding options. Options are described in the context of each subcommand. .SH SUBCOMMANDS -.LP The following subcommands are supported: .sp .ne 2 @@ -80,140 +73,139 @@ The following subcommands are supported: .ad .sp .6 .RS 4n -Show flow configuration information (the default) or statistics, either for all -flows, all flows on a link, or for the specified \fIflow\fR. +Adds a flow to the system. The flow is identified by its flow attributes and +properties. .sp -.ne 2 -.na -\fB\fB-o\fR \fIfield\fR[,...]\fR -.ad -.sp .6 -.RS 4n -A case-insensitive, comma-separated list of output fields to display. The field -name must be one of the fields listed below, or a special value \fBall\fR, to -display all fields. For each flow found, the following fields can be displayed: +As part of identifying a particular flow, its bandwidth resource can be limited +and its relative priority to other traffic can be specified. If no bandwidth +limit or priority is specified, the traffic still gets its unique layer 2, 3, +and 4 queues and processing threads, including NIC hardware resources (when +supported), so that the selected traffic can be separated from others and can +flow with minimal impact from other traffic. .sp .ne 2 .na -\fB\fBflow\fR\fR +\fB\fB-t\fR, \fB--temporary\fR\fR .ad .sp .6 .RS 4n -The name of the flow. +The changes are temporary and will not persist across reboots. Persistence is +the default. .RE .sp .ne 2 .na -\fB\fBlink\fR\fR +\fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR .ad .sp .6 .RS 4n -The name of the link the flow is on. +Specifies an alternate root directory where \fBflowadm\fR should apply +persistent creation. .RE .sp .ne 2 .na -\fB\fBipaddr\fR\fR +\fB\fB-l\fR \fIlink\fR, \fB--link\fR=\fIlink\fR\fR .ad .sp .6 .RS 4n -IP address of the flow. This can be either local or remote depending on how the -flow was defined. +Specify the link to which the flow will be added. .RE .sp .ne 2 .na -\fB\fBtransport\fR\fR +\fB\fB-a\fR \fIattr\fR=\fIvalue\fR[,...], \fB--attr\fR=\fIvalue\fR\fR .ad .sp .6 .RS 4n -The name of the layer for protocol to be used. +A mandatory comma-separated list of attributes to be set to the specified +values. .RE .sp .ne 2 .na -\fB\fBport\fR\fR +\fB\fB-p\fR \fIprop\fR=\fIvalue\fR[,...], \fB--prop\fR=\fIvalue\fR[,...]\fR .ad .sp .6 .RS 4n -Local port of service for flow. +An optional comma-separated list of properties to be set to the specified +values. Flow properties are documented in the "Flow Properties" section, below. +.RE + .RE .sp .ne 2 .na -\fB\fBdsfield\fR\fR +\fB\fBflowadm remove-flow\fR [\fB-t\fR] [\fB-R\fR \fIroot-dir\fR] \fB-l\fR +{\fIlink\fR | \fIflow\fR}\fR .ad .sp .6 .RS 4n -Differentiated services value for flow and mask used with \fBDSFIELD\fR value -to state the bits of interest in the differentiated services field of the IP -header. -.RE - -.RE - +Remove an existing flow identified by its link or name. .sp .ne 2 .na -\fB\fB-p\fR, \fB--parsable\fR\fR +\fB\fB-t\fR, \fB--temporary\fR\fR .ad .sp .6 .RS 4n -Display using a stable machine-parsable format. +The changes are temporary and will not persist across reboots. Persistence is +the default. .RE .sp .ne 2 .na -\fB\fB-P\fR, \fB--persistent\fR\fR +\fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR .ad .sp .6 .RS 4n -Display persistent flow property information. +Specifies an alternate root directory where \fBflowadm\fR should apply +persistent removal. .RE .sp .ne 2 .na -\fB\fB-S\fR, \fB--continuous\fR\fR +\fB\fB-l\fR \fIlink\fR | \fIflow\fR, \fB--link\fR=\fIlink\fR | \fIflow\fR\fR .ad .sp .6 .RS 4n -Continuously display network utilization by flow in a manner similar to the way -that \fBprstat\fR(1M) displays CPU utilization by process. +If a link is specified, remove all flows from that link. If a single flow is +specified, remove only that flow. +.RE + .RE .sp .ne 2 .na -\fB\fB-s\fR, \fB--statistics\fR\fR +\fB\fBflowadm show-flow\fR [\fB-pP\fR] [\fB-s\fR [\fB-i\fR \fIinterval\fR]] +[\fB-o\fR \fIfield\fR[,...]] [\fB-l\fR \fIlink\fR] [\fIflow\fR]\fR .ad .sp .6 .RS 4n -Displays flow statistics. -.RE - +Show flow configuration information, either for all +flows, all flows on a link, or for the specified \fIflow\fR. .sp .ne 2 .na -\fB\fB-i\fR \fIinterval\fR, \fB--interval\fR=\fIinterval\fR\fR +\fB\fB-o\fR \fIfield\fR[,...]\fR .ad .sp .6 .RS 4n -Used with the \fB-s\fR option to specify an interval, in seconds, at which -statistics should be displayed. If this option is not specified, statistics are -displayed once. -.RE - +A case-insensitive, comma-separated list of output fields to display. The field +name must be one of the fields listed below, or a special value \fBall\fR, to +display all fields. For each flow found, the following fields can be displayed: .sp .ne 2 .na -\fB\fB-l\fR \fIlink\fR, \fB--link\fR=\fIlink\fR | \fIflow\fR\fR +\fB\fBflow\fR\fR .ad .sp .6 .RS 4n @@ -240,35 +232,28 @@ Operate on a link that has been delegated to the specified zone. .ad .sp .6 .RS 4n -Adds a flow to the system. The flow is identified by its flow attributes and -properties. -.sp -As part of identifying a particular flow, its bandwidth resource can be limited -and its relative priority to other traffic can be specified. If no bandwidth -limit or priority is specified, the traffic still gets its unique layer 2, 3, -and 4 queues and processing threads, including NIC hardware resources (when -supported), so that the selected traffic can be separated from others and can -flow with minimal impact from other traffic. +The name of the link the flow is on. +.RE + .sp .ne 2 .na -\fB\fB-t\fR, \fB--temporary\fR\fR +\fB\fBipaddr\fR\fR .ad .sp .6 .RS 4n -The changes are temporary and will not persist across reboots. Persistence is -the default. +IP address of the flow. This can be either local or remote depending on how the +flow was defined. .RE .sp .ne 2 .na -\fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR +\fB\fBproto\fR\fR .ad .sp .6 .RS 4n -Specifies an alternate root directory where \fBflowadm\fR should apply -persistent creation. +The name of the layer for protocol to be used. .RE .sp @@ -288,27 +273,29 @@ Operate on a link that has been delegated to the specified zone. .ad .sp .6 .RS 4n -Specify the link to which the flow will be added. +Local port of service for flow. .RE .sp .ne 2 .na -\fB\fB-a\fR \fIattr\fR=\fIvalue\fR[,...], \fB--attr\fR=\fIvalue\fR\fR +\fB\fBrport\fR\fR .ad .sp .6 .RS 4n -A comma-separated list of attributes to be set to the specified values. +Remote port of service for flow. .RE .sp .ne 2 .na -\fB\fB-p\fR \fIprop\fR=\fIvalue\fR[,...], \fB--prop\fR=\fIvalue\fR[,...]\fR +\fB\fBdsfld\fR\fR .ad .sp .6 .RS 4n -A comma-separated list of properties to be set to the specified values. +Differentiated services value for flow and mask used with \fBDSFIELD\fR value +to state the bits of interest in the differentiated services field of the IP +header. .RE .RE @@ -328,19 +315,17 @@ Remove an existing flow identified by its link or name. .ad .sp .6 .RS 4n -The changes are temporary and will not persist across reboots. Persistence is -the default. +Display using a stable machine-parsable format. .RE .sp .ne 2 .na -\fB\fB-R\fR \fIroot-dir\fR, \fB--root-dir\fR=\fIroot-dir\fR\fR +\fB\fB-P\fR, \fB--persistent\fR\fR .ad .sp .6 .RS 4n -Specifies an alternate root directory where \fBflowadm\fR should apply -persistent removal. +Display persistent flow property information. .RE .sp @@ -360,8 +345,8 @@ Operate on a link that has been delegated to the specified zone. .ad .sp .6 .RS 4n -If a link is specified, remove all flows from that link. If a single flow is -specified, remove only that flow. +Display information for all flows on the named link or information for the +named flow. .RE .RE @@ -375,7 +360,7 @@ specified, remove only that flow. .sp .6 .RS 4n Set values of one or more properties on the flow specified by name. The -complete list of properties can be retrieved using the \fBshow-flow\fR +complete list of properties can be retrieved using the \fBshow-flowprop\fR subcommand. .sp .ne 2 @@ -561,100 +546,7 @@ A comma-separated list of properties to show. .RE -.sp -.ne 2 -.na -\fB\fBflowadm show-usage\fR [\fB-a\fR] [\fB-d\fR | {\fB-p\fR \fIplotfile\fR -\fB-F\fR \fIformat\fR}] [\fB-s\fR \fItime\fR] [\fB-e\fR \fItime\fR] -[\fIflow\fR]\fR -.ad -.sp .6 -.RS 4n -Show the historical network flow usage from a stored extended accounting file. -Configuration and enabling of network accounting through \fBacctadm\fR(1M) is -required. The default output will be the summary of flow usage for the entire -period of time in which extended accounting was enabled. -.sp -.ne 2 -.na -\fB\fB-a\fR\fR -.ad -.sp .6 -.RS 4n -Display all historical network usage for the specified period of time during -which extended accounting is enabled. This includes the usage information for -the flows that have already been deleted. -.RE - -.sp -.ne 2 -.na -\fB\fB-d\fR\fR -.ad -.sp .6 -.RS 4n -Display the dates for which there is logging information. The date is in the -format \fIDD\fR/\fIMM\fR/\fIYYYY\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-F\fR \fIformat\fR\fR -.ad -.sp .6 -.RS 4n -Specifies the format of \fIplotfile\fR that is specified by the \fB-p\fR -option. As of this release, \fBgnuplot\fR is the only supported format. -.RE - -.sp -.ne 2 -.na -\fB\fB-p\fR \fIplotfile\fR\fR -.ad -.sp .6 -.RS 4n -When specified with \fB-s\fR or \fB-e\fR (or both), outputs flow usage data to -a file of the format specified by the \fB-F\fR option, which is required. -.RE - -.sp -.ne 2 -.na -\fB\fB-s\fR \fItime\fR, \fB-e\fR \fItime\fR\fR -.ad -.sp .6 -.RS 4n -Start and stop times for data display. Time is in the format -\fIYYYY\fR.\fIMM\fR.\fIDD\fR,\fIhh\fR:\fImm\fR:\fIss\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR \fIfilename\fR\fR -.ad -.sp .6 -.RS 4n -Read extended accounting records of network flow usage from \fIfilename\fR. -.RE - -.sp -.ne 2 -.na -\fB\fIflow\fR\fR -.ad -.sp .6 -.RS 4n -If specified, display the network flow usage only from the named flow. -Otherwise, display network usage from all flows. -.RE - -.RE - .SS "Flow Attributes" -.LP The flow operand that identify a flow in a \fBflowadm\fR command is a comma-separated list of one or more keyword, value pairs from the list below. .sp @@ -683,7 +575,7 @@ address is \fB/32\fR and for IPv6 is \fB/128\fR. .sp .6 .RS 4n Identifies a network flow by the remote IP address. The syntax is the same as -\fBlocal_ip\fR attributes +the \fBlocal_ip\fR attribute. .RE .sp @@ -710,6 +602,16 @@ Identifies a service specified by the local port. .sp .ne 2 .na +\fB\fBremote_port\fR\fR +.ad +.sp .6 +.RS 4n +Identifies a service specified by the remote port. +.RE + +.sp +.ne 2 +.na \fB\fBdsfield\fR[\fB:\fR\fIdsfield_mask\fR]\fR .ad .sp .6 @@ -726,7 +628,7 @@ is used. Both the \fBdsfield\fR value and mask must be in hexadecimal. .sp .LP -The following five types of combinations of attributes are supported: +The following six types of combinations of attributes are supported: .sp .in +2 .nf @@ -734,6 +636,7 @@ local_ip[/\fIprefixlen\fR]=\fIaddress\fR remote_ip[/\fIprefixlen\fR]=\fIaddress\fR transport={tcp|udp|sctp|icmp|icmpv6} transport={tcp|udp|sctp},local_port=\fIport\fR +transport={tcp|udp|sctp},remote_port=\fIport\fR dsfield=\fIval\fR[:\fIdsfield_mask\fR] .fi .in -2 @@ -741,13 +644,11 @@ dsfield=\fIval\fR[:\fIdsfield_mask\fR] .sp .LP -On a given link, the combinations above are mutually exclusive. An attempt to -create flows of different combinations will fail. +On a given link, the types of combinations above are mutually exclusive. An +attempt to create flows of different types on a given link will fail. .SS "Restrictions" -.LP There are individual flow restrictions and flow restrictions per zone. .SS "Individual Flow Restrictions" -.LP Restrictions on individual flows do not require knowledge of other flows that have been added to the link. .sp @@ -793,12 +694,10 @@ flow16\fR .sp .SS "Flow Restrictions Per Zone" -.LP Within a zone, no two flows can have the same name. After adding a flow with the link specified, the link will not be required for display, modification, or deletion of the flow. .SS "Flow Properties" -.LP The following flow properties are supported. Note that the ability to set a given property to a given value depends on the driver and hardware. .sp @@ -826,7 +725,6 @@ tokens \fBhigh\fR, \fBmedium\fR, or \fBlow\fR. The default is \fBmedium\fR. .RE .SH EXAMPLES -.LP \fBExample 1 \fRCreating a Policy Around a Mission-Critical Port .sp .LP @@ -840,8 +738,8 @@ delete the policy. .nf # \fBflowadm add-flow -l bge0 -a transport=TCP,local_port=443 https-1\fR # \fBflowadm show-flow -l bge0\fR -FLOW LINK IP ADDR PROTO PORT DSFLD -https1 bge0 -- tcp 443 -- +FLOW LINK IPADDR PROTO LPORT RPORT DSFLD +https1 bge0 -- tcp 443 -- -- .fi .in -2 .sp @@ -859,13 +757,13 @@ priority. .nf # \fBflowadm set-flowprop -p maxbw=500M,priority=high https-1\fR # \fBflowadm show-flow https-1\fR -FLOW LINK IP ADDR PROTO PORT DSFLD -https1 bge0 -- tcp 443 -- +FLOW LINK IPADDR PROTO LPORT RPORT DSFLD +https-1 bge0 -- tcp 443 -- -- # \fBflowadm show-flowprop https-1\fR -FLOW PROPERTY VALUE DEFAULT POSSIBLE -https-1 maxbw 500 -- -- -https-1 priority HIGH -- LOW,NORMAL,HIGH +FLOW PROPERTY VALUE DEFAULT POSSIBLE +https-1 maxbw 500 -- -- +https-1 priority high -- low,medium,high .fi .in -2 .sp @@ -888,33 +786,7 @@ priority=low limit-udp-1\fR .sp .LP -\fBExample 4 \fRShowing Flow Usage -.sp -.LP -Flow usage statistics can be stored using the extended accounting facility, -\fBacctadm\fR(1M). - -.sp -.in +2 -.nf -# \fBacctadm -e extended -f /var/log/net.log net\fR - -# \fBacctadm net\fR -Network accounting: active -Network accounting file: /var/log/net.log -Tracked Network resources: extended -Untracked Network resources: none -.fi -.in -2 -.sp - -.sp -.LP -The historical data that was saved can be retrieved in summary form using the -\fBshow-usage\fR subcommand of \fBflowadm\fR. - -.LP -\fBExample 5 \fRSetting Policy, Making Use of \fBdsfield\fR Attribute +\fBExample 4 \fRSetting Policy, Making Use of \fBdsfield\fR Attribute .sp .LP The following command sets a policy for EF PHB (DSCP value of 101110 from RFC @@ -931,71 +803,6 @@ for this flow will be \fB0x2e\fR (101110) with the \fBdsfield_mask\fR being .in -2 .sp -.sp -.LP -Display summary information: - -.sp -.in +2 -.nf -# \fBflowadm show-usage -f /var/log/net.log\fR -FLOW DURATION IPACKETS RBYTES OPACKETS OBYTES BANDWIDTH -flowtcp 100 1031 546908 0 0 43.76 Kbps -flowudp 0 0 0 0 0 0.00 Mbps -.fi -.in -2 -.sp - -.sp -.LP -Display dates for which logging information is available: - -.sp -.in +2 -.nf -# \fBflowadm show-usage -d -f /var/log/net.log\fR -02/19/2008 -.fi -.in -2 -.sp - -.sp -.LP -Display logging information for \fBflowtcp\fR starting at 02/19/2008, 10:38:46 -and ending at 02/19/2008, 10:40:06: - -.sp -.in +2 -.nf -# \fBflowadm show-usage -s 02/19/2008,10:39:06 -e 02/19/2008,10:40:06 \e --f /var/log/net.log flowtcp\fR -FLOW TIME IPACKETS RBYTES OPACKETS OBYTES BANDWIDTH -flowtcp 10:39:06 1 1546 4 6539 3.23 Kbps -flowtcp 10:39:26 2 3586 5 9922 5.40 Kbps -flowtcp 10:39:46 1 240 1 216 182.40 bps -flowtcp 10:40:06 0 0 0 0 0.00 bps -.fi -.in -2 -.sp - -.sp -.LP -Output the same information as above as a plotfile: - -.sp -.in +2 -.nf -# \fBflowadm show-usage -s 02/19/2008,10:39:06 -e 02/19/2008,10:40:06 \e --p /home/plot/myplot -F gnuplot -f /var/log/net.log flowtcp\fR -# \fBTime tcp-flow\fR -10:39:06 3.23 -10:39:26 5.40 -10:39:46 0.18 -10:40:06 0.00 -.fi -.in -2 -.sp - .SH EXIT STATUS .ne 2 .na @@ -1017,7 +824,6 @@ An error occurred. .RE .SH ATTRIBUTES -.LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -1032,6 +838,10 @@ Interface Stability Committed .TE .SH SEE ALSO -.LP -\fBacctadm\fR(1M), \fBdladm\fR(1M), \fBifconfig\fR(1M), \fBprstat\fR(1M), -\fBroute\fR(1M), \fBattributes\fR(5), \fBdlpi\fR(7P) +\fBdladm\fR(1M), \fBflowstat\fR(1M), \fBifconfig\fR(1M), +\fBroute\fR(1M), \fBattributes\fR(5) + +.SH NOTES +The display of statistics by the \fBshow-flow\fR subcommand, and the +\fBshow-usage\fR subcommand, have been removed. This functionality can +now be accessed using the \fBflowstat\fR(1M) utility. diff --git a/usr/src/man/man1m/hotplug.1m b/usr/src/man/man1m/hotplug.1m new file mode 100644 index 0000000000..0c5c8266fc --- /dev/null +++ b/usr/src/man/man1m/hotplug.1m @@ -0,0 +1,330 @@ +.\" +.\" The contents of this file are subject to the terms of the +.\" Common Development and Distribution License (the "License"). +.\" You may not use this file except in compliance with the License. +.\" +.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +.\" or http://www.opensolaris.org/os/licensing. +.\" See the License for the specific language governing permissions +.\" and limitations under the License. +.\" +.\" When distributing Covered Code, include this CDDL HEADER in each +.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. +.\" If applicable, add the following below this CDDL HEADER, with the +.\" fields enclosed by brackets "[]" replaced with your own identifying +.\" information: Portions Copyright [yyyy] [name of copyright owner] +.\" +.\" +.\" Copyright (c) 2010, Sun Microsystems, Inc. All Rights Reserved +.\" Copyright 2020 Joyent, Inc. +.\" +.Dd March 2, 2020 +.Dt HOTPLUG 1M +.Os +.Sh NAME +.Nm hotplug +.Nd configure hotplug connectors and ports +.Sh SYNOPSIS +.Nm +.Fl \&? +.Nm +.Cm list +.Op Fl lv +.Op Ar path +.Op Ar connection +.Nm +.Cm online +.Ar path +.Ar port +.Nm +.Cm offline +.Op Fl fq +.Ar path +.Ar port +.Nm +.Cm enable +.Ar path +.Ar connector +.Nm +.Cm disable +.Op Fl fq +.Ar path +.Ar connector +.Nm +.Cm poweron +.Ar path +.Ar connector +.Nm +.Cm poweroff +.Op Fl fq +.Ar path +.Ar connector +.Nm +.Cm set +.Fl o Ar options +.Ar path +.Ar connector +.Nm +.Cm get +.Fl o Ar options +.Ar path +.Ar connector +.Sh DESCRIPTION +The +.Nm +command is used to manage hotplug connections. +A connection can be a connector or port. +A hotplug connector is a representation of a physical point in the system where +components can be inserted or removed. +A hotplug port is a representation of a logical point in the system device tree +where the connection of a device to the system is managed. +.Pp +The +.Nm +command only supports hotplug operations on hotplug connectors for PCI Express +buses and PCI buses that implement the Standard PCI Hotplug feature. +Hotplug ports on PCI Express and PCI buses in systems with PCI Express fabrics +are also supported. +Additional buses may be supported in the future. +.Pp +The +.Nm +command operates on the following kinds of objects: +.Bl -tag -width "connection" +.It Cm path +Hotplug connectors and ports are integrated into the system device tree. +The names of connectors and ports are unique relative only to their bus +controller. +A device path is required to uniquely reference a connector or port. +.It Cm connector +If a hardware component supports being physically inserted or removed, then a +hotplug connector represents the location where this action may occur. +When a connector exists, it has a hierarchy of ports and device nodes that +depend upon it. +.It Cm port +All device nodes can be virtually hotplugged, even if their hardware does not +support physical hotplugging. +A hotplug port exists between a device node and its parent node in the system +device tree. +It represents the location where the device node and its dependents can be +managed. +.It Cm connection +A hotplug connection is a generic term to refer to either a hotplug connector or +a hotplug port. +.El +.Pp +Hotplug connectors and ports are managed according to a state model. +The +.Nm +command can list information about the hotplug connections in a system, or it +can initiate change of state operations on specific hotplug connections. +.Pp +Hotplug connectors can be in the following states: +.Bl -tag -width "present" +.It Cm empty +A component is not physically inserted in the connector. +.It Cm present +A component is physically inserted in the connector, but the component is +powered off. +The component is not in use. +.It Cm powered +A component is physically inserted in the connector, and the component is +powered on. +The component is disabled and is not in use. +.It Cm enabled +A component is physically inserted in the connector. +The component is powered on and has been probed and tested. +The component is enabled and devices that represent its functions can be used. +.El +.Pp +Hotplug ports can be in the following states: +.Bl -tag -width "port-present" +.It Cm port-empty +No device exists for the hotplug port. +.It Cm port-present +A device exists for the hotplug port, but the device has not been probed and it +has no attached device driver. +The device is not in use. +.It Cm offline +A device exists for the hotplug port, and the device has been probed. +A device driver is not attached, and the device is not in use. +.It Cm online +A device exists for the hotplug port, and its device driver is fully attached. +The device is in use. +.It Cm maintenance +A device exists for the hotplug port, and its device driver is fully attached. +The device is in use, but not fully operational. +A maintenance or fault management operation is affecting the device. +.El +.Pp +The +.Nm +command can also access bus private properties for each hotplug connector. +The current values of bus private properties can be displayed. +New values for each bus private property can be set directly. +.Sh EXIT STATUS +.Bl -diag +.It 0 +Successful completion. +.It 1 +Invalid command line options were specified. +.It 2 +The specified path or connection does not exist. +.It 3 +A fatal error occurred. +One or more error messages are displayed on standard error. +.It 4 +The hotplug service is not available. +.El +.Sh EXAMPLES +.Bl -tag -width 0n +.It Sy Example 1 No Showing All Hotplug Connections +The following command shows all hotplug connections: +.Bd -literal +# hotplug list -v +pci@0,0 + <pci.2,1> (ONLINE) + pci108e,534a@2,1 + [pci30] (EMPTY) + <pci.e,0> (ONLINE) + pci10de,5d@e + <pci.b,0> (ONLINE) + display@b + [NEM0] (ENABLED) + <pci.a,0> (ONLINE) + pci108e,534a@a,0 + { Network interface nge0 } + { nge0: hosts IP addresses: 10.0.0.1 } + <pci.a,1> (MAINTENANCE) + pci108e,534a@a,1 + [NEM1] (EMPTY) + <pci.c,0> (OFFLINE) + pci108e,534a@4 +.Ed +.Pp +To show the full paths of hotplug connections and devices, enter the following +command: +.Bd -literal +# hotplug list -l +/pci@0,0 <pci.2,1> (ONLINE) +/pci@0,0/pci108e,534a@2,1 [pci30] (EMPTY) +/pci@0,0 pci.e,0> (ONLINE) +/pci@0,0/pci10de,5d@e <pci.b,0> (ONLINE) +/pci@0,0/pci10de,5d@e/display@b +/pci@0,0/pci10de,5d@e [NEM0] (ENABLED) +/pci@0,0/pci10de,5d@e <pci.a,0> (ONLINE) +/pci@0,0/pci10de,5d@e/pci108e,534a@a,0 +/pci@0,0/pci10de,5d@e <pci.a,1> (MAINTENANCE) +/pci@0,0/pci10de,5d@e/pci108e,534a@a,0 +/pci@0,0/pci10de,5d@e [NEM1] (EMPTY) +/pci@0,0 pci.c,0> (OFFLINE) +/pci@0,0/pci108e,534a@4 +.Ed +.It Sy Example 2 No Reporting Failure During State Change Operation +If a change of state operation fails, an explanation is displayed to describe +the failure. +An attempt to offline a hotplug port with dependent devices that are currently +in use by the system might fail as follows: +.Bd -literal +# hotplug offline /pci@0,0/pci10de,5d@e pci.a,0 +ERROR: devices or resources are busy. +pci108e,534a@a,0: + { Network interface nge0 } + { nge0: hosts IP addresses: 10.0.0.1 } + { Plumbed IP Address } +.Ed +.It Sy Example 3 No Displaying Bus-Specific Properties and Values +The following command displays all supported bus-specific properties and their +possible values: +.Bd -literal +# hotplug get -o help /pci@0,0 pci.2,1 +power_led=<on|off|blink> +fault_led=<on|off|blink> +active_led=<on|off|blink> +attn_led=<on|off|blink> +card_type=<type description> +board_type=<type description> +.Ed +.It Sy Example 4 Displaying Bus-Specific Options +The following command displays the card type and the current state of the Power +LED of a PCI hotplug connector: +.Bd -literal +# hotplug get -o card_type,power_led /pci@0,0 pci.2,1 +card_type=fibre +power_led=on +.Ed +.It Sy Example 5 No Setting a Bus-Specific Property +The following command turns on the attention LED of a PCI hotplug connector: +.Bd -literal +# hotplug set -o attn_led=on /pci@0,0 pci.2,1 +.Ed +.El +.Sh DIAGNOSTICS +The following error message is displayed on systems that do not have any +supported I/O buses: +.Bd -literal +ERROR: there are no connections to display. +(See hotplug(1m) for more information.) +.Ed +.Pp +If this error message is seen, note that the system might still have other I/O +devices that support hotplugging, through the +.Xr cfgadm 1M +command instead of +.Nm . +.Sh INTERFACE STABILITY +.Sy Committed +.Sh SEE ALSO +.Xr cfgadm 1M , +.Xr hotplugd 1M , +.Xr getsubopt 3C , +.Xr rcmscript 4 , +.Xr attributes 5 +.Sh NOTES +The +.Nm +service +.Po FMRI +.Pa svc:/system/hotplug +.Pc +must be enabled as a prerequisite for using the +.Nm +command. +See +.Xr hotplugd 1M . +.Pp +The authorization +.Pa solaris.hotplug.modify +must be granted in order to perform change-of-state operations. +Alternatively, the rights profile +.Qq Hotplug Management +can be granted, which includes that authorization. +.Pp +Verbose usage information is gathered from the RCM framework. +Its format and content is subject to change. +.Pp +The following bus specific properties are supported in PCI bus controllers: +.Bl -tag -width Ds +.It Cm power_led No \&| Cm fault_led No \&| Cm attn_led No \&| Cm active_led +States of a specific LED of a slot. +The value could be +.Cm on , off , +or +.Cm blink . +.Pp +They can all be used with +.Cm get +subcommand, but only property +.Cm attn_led +can be used with +.Cm set +subcommand. +.It Cm card_type No \&| Cm board_type +Type of a card or board of a slot. +.Pp +They can all be used with +.Cm get +subcommand, but neither can be used with +.Cm set +subcommand. +.El diff --git a/usr/src/man/man1m/tzreload.1m b/usr/src/man/man1m/tzreload.1m new file mode 100644 index 0000000000..335812f177 --- /dev/null +++ b/usr/src/man/man1m/tzreload.1m @@ -0,0 +1,78 @@ +.\" +.\" The contents of this file are subject to the terms of the +.\" Common Development and Distribution License (the "License"). +.\" You may not use this file except in compliance with the License. +.\" +.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +.\" or http://www.opensolaris.org/os/licensing. +.\" See the License for the specific language governing permissions +.\" and limitations under the License. +.\" +.\" When distributing Covered Code, include this CDDL HEADER in each +.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. +.\" If applicable, add the following below this CDDL HEADER, with the +.\" fields enclosed by brackets "[]" replaced with your own identifying +.\" information: Portions Copyright [yyyy] [name of copyright owner] +.\" +.\" +.\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved +.\" Copyright 2020 Joyent, Inc. +.\" +.Dd February 27, 2020 +.Dt TZRELOAD 1M +.Os +.Sh NAME +.Nm tzreload +.Nd notify timezone update +.Sh SYNOPSIS +.Nm Op Fl a +.Sh DESCRIPTION +The +.Nm +command triggers processes to reread timezone information. +The timezone information is cached in each process. +In response to a +.Nm +command, this cache is updated on the next call to +.Xr ctime 3C +and +.Xr mktime 3C +by each process. +By default, +.Nm +only triggers this update for the current zone. +.Pp +In addition to updating processes, the +.Nm +command also notifies +.Xr cron 1M +to reinitialize the job scheduler with the new timezone information. +.Sh OPTIONS +The following options are supported: +.Bl -tag -width Ds +.It Fl a +Update processes in all zones. +.El +.Sh FILES +.Bl -tag -width Ds +.It Pa /usr/share/lib/zoneinfo +Standard zone information directory. +.El +.Sh INTERFACE STABILITY +.Sy Committed +.Sh SEE ALSO +.Xr cron 1M , +.Xr zdump 1M , +.Xr zic 1M , +.Xr zoneadm 1M , +.Xr ctime 3C , +.Xr mktime 3C , +.Xr attributes 5 +.Sh NOTES +Although +.Nm +reinitializes +.Xr cron 1M , +applications that are affected by timezone changes still need to be restarted or +reinitialized if they do not reread the new timezone information before timezone +changes take place. |