root / QMP / qmp-events.txt @ d74c7dfd
History | View | Annotate | Download (4.3 kB)
1 |
QEMU Monitor Protocol Events |
---|---|
2 |
============================ |
3 |
|
4 |
BLOCK_IO_ERROR |
5 |
-------------- |
6 |
|
7 |
Emitted when a disk I/O error occurs. |
8 |
|
9 |
Data: |
10 |
|
11 |
- "device": device name (json-string) |
12 |
- "operation": I/O operation (json-string, "read" or "write") |
13 |
- "action": action that has been taken, it's one of the following (json-string): |
14 |
"ignore": error has been ignored |
15 |
"report": error has been reported to the device |
16 |
"stop": error caused VM to be stopped |
17 |
|
18 |
Example: |
19 |
|
20 |
{ "event": "BLOCK_IO_ERROR", |
21 |
"data": { "device": "ide0-hd1", |
22 |
"operation": "write", |
23 |
"action": "stop" }, |
24 |
"timestamp": { "seconds": 1265044230, "microseconds": 450486 } } |
25 |
|
26 |
Note: If action is "stop", a STOP event will eventually follow the |
27 |
BLOCK_IO_ERROR event. |
28 |
|
29 |
RESET |
30 |
----- |
31 |
|
32 |
Emitted when the Virtual Machine is reseted. |
33 |
|
34 |
Data: None. |
35 |
|
36 |
Example: |
37 |
|
38 |
{ "event": "RESET", |
39 |
"timestamp": { "seconds": 1267041653, "microseconds": 9518 } } |
40 |
|
41 |
SHUTDOWN |
42 |
-------- |
43 |
|
44 |
Emitted when the Virtual Machine is powered down. |
45 |
|
46 |
Data: None. |
47 |
|
48 |
Example: |
49 |
|
50 |
{ "event": "SHUTDOWN", |
51 |
"timestamp": { "seconds": 1267040730, "microseconds": 682951 } } |
52 |
|
53 |
Note: If the command-line option "-no-shutdown" has been specified, a STOP |
54 |
event will eventually follow the SHUTDOWN event. |
55 |
|
56 |
STOP |
57 |
---- |
58 |
|
59 |
Emitted when the Virtual Machine is stopped. |
60 |
|
61 |
Data: None. |
62 |
|
63 |
Example: |
64 |
|
65 |
{ "event": "SHUTDOWN", |
66 |
"timestamp": { "seconds": 1267041730, "microseconds": 281295 } } |
67 |
|
68 |
VNC_CONNECTED |
69 |
------------- |
70 |
|
71 |
Emitted when a VNC client establishes a connection. |
72 |
|
73 |
Data: |
74 |
|
75 |
- "server": Server information (json-object) |
76 |
- "host": IP address (json-string) |
77 |
- "service": port number (json-string) |
78 |
- "family": address family (json-string, "ipv4" or "ipv6") |
79 |
- "auth": authentication method (json-string, optional) |
80 |
- "client": Client information (json-object) |
81 |
- "host": IP address (json-string) |
82 |
- "service": port number (json-string) |
83 |
- "family": address family (json-string, "ipv4" or "ipv6") |
84 |
|
85 |
Example: |
86 |
|
87 |
{ "event": "VNC_CONNECTED", |
88 |
"data": { |
89 |
"server": { "auth": "sasl", "family": "ipv4", |
90 |
"service": "5901", "host": "0.0.0.0" }, |
91 |
"client": { "family": "ipv4", "service": "58425", |
92 |
"host": "127.0.0.1" } }, |
93 |
"timestamp": { "seconds": 1262976601, "microseconds": 975795 } } |
94 |
|
95 |
|
96 |
Note: This event is emitted before any authentication takes place, thus |
97 |
the authentication ID is not provided. |
98 |
|
99 |
VNC_DISCONNECTED |
100 |
---------------- |
101 |
|
102 |
Emitted when the conection is closed. |
103 |
|
104 |
Data: |
105 |
|
106 |
- "server": Server information (json-object) |
107 |
- "host": IP address (json-string) |
108 |
- "service": port number (json-string) |
109 |
- "family": address family (json-string, "ipv4" or "ipv6") |
110 |
- "auth": authentication method (json-string, optional) |
111 |
- "client": Client information (json-object) |
112 |
- "host": IP address (json-string) |
113 |
- "service": port number (json-string) |
114 |
- "family": address family (json-string, "ipv4" or "ipv6") |
115 |
- "x509_dname": TLS dname (json-string, optional) |
116 |
- "sasl_username": SASL username (json-string, optional) |
117 |
|
118 |
Example: |
119 |
|
120 |
{ "event": "VNC_DISCONNECTED", |
121 |
"data": { |
122 |
"server": { "auth": "sasl", "family": "ipv4", |
123 |
"service": "5901", "host": "0.0.0.0" }, |
124 |
"client": { "family": "ipv4", "service": "58425", |
125 |
"host": "127.0.0.1", "sasl_username": "luiz" } }, |
126 |
"timestamp": { "seconds": 1262976601, "microseconds": 975795 } } |
127 |
|
128 |
VNC_INITIALIZED |
129 |
--------------- |
130 |
|
131 |
Emitted after authentication takes place (if any) and the VNC session is |
132 |
made active. |
133 |
|
134 |
Data: |
135 |
|
136 |
- "server": Server information (json-object) |
137 |
- "host": IP address (json-string) |
138 |
- "service": port number (json-string) |
139 |
- "family": address family (json-string, "ipv4" or "ipv6") |
140 |
- "auth": authentication method (json-string, optional) |
141 |
- "client": Client information (json-object) |
142 |
- "host": IP address (json-string) |
143 |
- "service": port number (json-string) |
144 |
- "family": address family (json-string, "ipv4" or "ipv6") |
145 |
- "x509_dname": TLS dname (json-string, optional) |
146 |
- "sasl_username": SASL username (json-string, optional) |
147 |
|
148 |
Example: |
149 |
|
150 |
{ "event": "VNC_INITIALIZED", |
151 |
"data": { |
152 |
"server": { "auth": "sasl", "family": "ipv4", |
153 |
"service": "5901", "host": "0.0.0.0"}, |
154 |
"client": { "family": "ipv4", "service": "46089", |
155 |
"host": "127.0.0.1", "sasl_username": "luiz" } }, |
156 |
"timestamp": { "seconds": 1263475302, "microseconds": 150772 } } |