author | Edward Pilatowicz <edward.pilatowicz@oracle.com> |
Mon, 16 Sep 2013 21:26:31 -0700 | |
changeset 2945 | 24196b483cc6 |
parent 2141 | 3757a0f8a7d1 |
child 3311 | d7bb9c5f4baa |
permissions | -rw-r--r-- |
539
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
1 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
2 |
pkg |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
3 |
HISTORY |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
4 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
5 |
1. Summary |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
6 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
7 |
The intent of history is to enable pkg clients to maintain a record of all |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
8 |
image-modifying operations that they perform. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
9 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
10 |
2. Discussion |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
11 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
12 |
2.1 Operations |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
13 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
14 |
The following operations are currently recorded by the clients that are |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
15 |
part of pkg(5): |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
16 |
|
926
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
539
diff
changeset
|
17 |
add-publisher |
539
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
18 |
image-create |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
19 |
image-set-attributes |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
20 |
image-update |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
21 |
install |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
22 |
purge-history |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
23 |
rebuild-index |
926
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
539
diff
changeset
|
24 |
refresh-publisher |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
539
diff
changeset
|
25 |
remove-publisher |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
539
diff
changeset
|
26 |
set-publisher |
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
539
diff
changeset
|
27 |
set-preferred-publisher |
539
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
28 |
uninstall |
926
6ee411c9026a
5871 publisher apis desired
Shawn Walker <Shawn.Walker@Sun.COM>
parents:
539
diff
changeset
|
29 |
update-publisher |
539
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
30 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
31 |
These operations were chosen because they have the potential to alter the |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
32 |
behavior of pkg(5) operations or because they modify an image. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
33 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
34 |
3. History Entries |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
35 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
36 |
3.1 Information Recorded |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
37 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
38 |
Each history entry contains a record of basic information about the client |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
39 |
performing the operation, along with a mix of required and optional |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
40 |
information about the operation performed. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
41 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
42 |
The following information about the client is always recorded: |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
43 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
44 |
client_name - The name of the client performing the operation |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
45 |
(e.g. pkg, packagemanager) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
46 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
47 |
client_version - The value of pkg.VERSION at the time the client |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
48 |
performed the operation (e.g. 2e5300c4f0a4+) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
49 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
50 |
client_args - The command-line arguments used when executing the |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
51 |
client (e.g. /usr/bin/pkg install foo) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
52 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
53 |
The following information about the operation performed is always recorded: |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
54 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
55 |
operation_name - The name of the operation performed (refer to 2.1) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
56 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
57 |
start_time - When the operation started (e.g. 20080916T214726Z) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
58 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
59 |
end_time - When the operation ended (e.g. 20080916T214800Z) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
60 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
61 |
userid - The id of the user that performed the operation |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
62 |
(e.g. 0) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
63 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
64 |
username - The username of the user that performed the operation |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
65 |
(e.g. root) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
66 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
67 |
result - The outcome of the operation and the reason for it |
2135
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
68 |
(e.g. Failed, Transport) This maps to the pkg history |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
69 |
output columns of 'outcome' and 'reason'. |
539
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
70 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
71 |
The following information about the operation will be recorded if provided |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
72 |
by the client or api: |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
73 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
74 |
start_state - Information about the operation requested before any |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
75 |
evaluation of that request is performed (e.g. an |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
76 |
image plan before evaluation) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
77 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
78 |
end_state - Information about the operation requested after |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
79 |
evaluation of that request has been performed (e.g. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
80 |
image plan after evaluation) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
81 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
82 |
errors - Any errors that were encountered while performing the |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
83 |
operation (i.e. tracebacks, exceptions, etc.) |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
84 |
|
2135
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
85 |
be - The name of the boot environment on which the |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
86 |
operation was performed |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
87 |
|
2141
3757a0f8a7d1
17385 history should store uuids for boot environments
Tim Foster <tim.s.foster@oracle.com>
parents:
2135
diff
changeset
|
88 |
be_uuid - The uuid corresponding to the boot environment |
3757a0f8a7d1
17385 history should store uuids for boot environments
Tim Foster <tim.s.foster@oracle.com>
parents:
2135
diff
changeset
|
89 |
|
2135
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
90 |
new_be - The name of any new boot environment that was created |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
91 |
while performing the operation. |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
92 |
|
2141
3757a0f8a7d1
17385 history should store uuids for boot environments
Tim Foster <tim.s.foster@oracle.com>
parents:
2135
diff
changeset
|
93 |
new_be_uuid - The uuid corresponding to the new boot environment |
3757a0f8a7d1
17385 history should store uuids for boot environments
Tim Foster <tim.s.foster@oracle.com>
parents:
2135
diff
changeset
|
94 |
|
2135
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
95 |
snapshot - The name of the snapshot that was taken as a result of |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
96 |
this operation. If the operation completed |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
97 |
successfully and the snapshot was destroyed, this |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
98 |
this information is not stored. |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
99 |
|
539
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
100 |
3.2 Storage |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
101 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
102 |
Each history entry is recorded in a XML file located in the metadata |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
103 |
directory of an image (e.g. /var/pkg) in a directory named "history". |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
104 |
Each XML file is named after the pattern %Y%m%dT%H%M%SZ-sequence.xml. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
105 |
Where sequence is a numeric value appended so that when multiple |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
106 |
operations are performed on an image within the same second (e.g. -02, |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
107 |
-03, etc.) entries are still written correctly. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
108 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
109 |
3.3 File Format |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
110 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
111 |
It should be noted that this format description is that of a private |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
112 |
interface and is subject to change. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
113 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
114 |
History entries are recorded in a XML file with a fairly simplistic |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
115 |
structure. The format is as follows: |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
116 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
117 |
The first line of each file is a standard xml header along with the |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
118 |
encoding used to save the information. This allows the pkg history |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
119 |
command to correctly display this information if the client changes |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
120 |
locales later. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
121 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
122 |
<?xml version="1.0" encoding="ascii"?> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
123 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
124 |
The second element of every history XML file is a root element used to |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
125 |
contain the client and operation information. Only one per file ever |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
126 |
occurs. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
127 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
128 |
<history> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
129 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
130 |
The client element has a name and version attribute used to record |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
131 |
client_name and client_version. Only one per file ever occurs. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
132 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
133 |
<client name="pkg" version="2e5300c4f0a4+"> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
134 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
135 |
The args element contains one or more "arg" (argument) elements |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
136 |
that match each element of the system argument list used to |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
137 |
execute the client. It has no attributes. Only one per file |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
138 |
ever occurs. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
139 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
140 |
<args> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
141 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
142 |
Each arg element contains a CDATA element to encapsulate |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
143 |
the raw information for the argument. It has no attributes. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
144 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
145 |
<arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
146 |
<![CDATA[/usr/bin/pkg]]> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
147 |
</arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
148 |
<arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
149 |
<![CDATA[-R]]> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
150 |
</arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
151 |
<arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
152 |
<![CDATA[/tmp/test-image]]> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
153 |
</arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
154 |
<arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
155 |
<![CDATA[install]]> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
156 |
</arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
157 |
<arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
158 |
<![CDATA[SUNWvim]]> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
159 |
</arg> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
160 |
</args> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
161 |
</client> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
162 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
163 |
The operation element has the following attributes: name, |
2135
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
164 |
start_time, end_time, userid, and username. Optional attributes |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
165 |
are be, snapshot and new_be, indicating the boot environment the |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
166 |
operation was applied to, the snapshot taken during this operation, |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
167 |
and any new boot environment created as a result. |
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
168 |
It can also contain the following, optional elements: start_state, |
539
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
169 |
end_state, and errors. It only occurs once per file. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
170 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
171 |
<operation end_time="20080912T225513Z" name="install" result="Succeeded" |
2135
6eeb55920e13
3419 history command -- ability to specify dates or date ranges desired
Tim Foster <tim.s.foster@oracle.com>
parents:
926
diff
changeset
|
172 |
start_time="20080912T225327Z" userid="101" be="solaris" username="username"> |
539
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
173 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
174 |
The start_state element is used to store information about the |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
175 |
operation performed before a request is evaluated (e.g. image |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
176 |
plan before evaluation). It always contains a CDATA element with |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
177 |
the related information and only occurs once per file. It has no |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
178 |
attributes. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
179 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
180 |
<start_state> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
181 |
<![CDATA[UNEVALUATED: |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
182 |
+pkg:/[email protected],5.11-0.96:20080825T192756Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
183 |
]]> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
184 |
</start_state> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
185 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
186 |
The end_state element is used to store information about the |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
187 |
operation performed after a request is evaluated (e.g. image |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
188 |
plan after evaluation). It always contains a CDATA element with |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
189 |
the related information and only occurs once per file. It has no |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
190 |
attributes. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
191 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
192 |
<end_state> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
193 |
<![CDATA[None -> pkg:/[email protected],5.11-0.96:20080825T192756Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
194 |
None -> pkg:/[email protected],5.11-0.96:20080825T183047Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
195 |
None -> pkg:/[email protected],5.11-0.96:20080825T191747Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
196 |
None -> pkg:/[email protected],5.11-0.96:20080825T191518Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
197 |
None -> pkg:/[email protected],5.11-0.96:20080825T193230Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
198 |
None -> pkg:/[email protected],5.11-0.96:20080825T191411Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
199 |
None -> pkg:/[email protected],5.11-0.96:20080825T194948Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
200 |
None -> pkg:/[email protected],5.11-0.96:20080825T191417Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
201 |
None -> pkg:/[email protected],5.11-0.96:20080825T192030Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
202 |
None -> pkg:/[email protected],5.11-0.96:20080825T192639Z |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
203 |
]]> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
204 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
205 |
The errors element contains one or more "error" elements |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
206 |
that encapsulate the information about each error that was |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
207 |
recorded during the operation. It has no attributes, and |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
208 |
only occurs once per file. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
209 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
210 |
<errors> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
211 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
212 |
Each error element contains a CDATA element to encapsulate |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
213 |
the raw information about the error. It has no attributes. |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
214 |
|
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
215 |
<error> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
216 |
<![CDATA[]]> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
217 |
</error> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
218 |
</errors> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
219 |
</operation> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
220 |
</history> |
7486304966c5
1449 pkg requires operational history
Shawn Walker <shawn.walker@sun.com>
parents:
diff
changeset
|
221 |