You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
netnsDiagCommand=`if [ -d /var/run/netns ]; then cd /var/run/netns; for ns in *; do echo "*** ${ns} ***"; ip netns exec "${ns}" ip a; ip netns exec "${ns}" ip r; echo; done; fi`
Retrieve and unpack Virtlet diagnostics information
8
+
9
+
### Options
10
+
11
+
```
12
+
-h, --help help for diag
13
+
```
14
+
15
+
### Options inherited from parent commands
16
+
17
+
```
18
+
--alsologtostderr log to standard error as well as files
19
+
--as string Username to impersonate for the operation
20
+
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
21
+
--certificate-authority string Path to a cert file for the certificate authority
22
+
--client-certificate string Path to a client certificate file for TLS
23
+
--client-key string Path to a client key file for TLS
24
+
--cluster string The name of the kubeconfig cluster to use
25
+
--context string The name of the kubeconfig context to use
26
+
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
27
+
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
28
+
--log-backtrace-at traceLocation when logging hits line file:N, emit a stack trace (default :0)
29
+
--log-dir string If non-empty, write log files in this directory
30
+
--logtostderr log to standard error instead of files
31
+
-n, --namespace string If present, the namespace scope for this CLI request
32
+
--password string Password for basic authentication to the API server
33
+
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
34
+
-s, --server string The address and port of the Kubernetes API server
35
+
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
36
+
--token string Bearer token for authentication to the API server
37
+
--user string The name of the kubeconfig user to use
38
+
--username string Username for basic authentication to the API server
39
+
-v, --v Level log level for V logs
40
+
--virtlet-runtime string the name of virtlet runtime used in kubernetes.io/target-runtime annotation (default "virtlet.cloud")
41
+
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
42
+
```
43
+
44
+
### SEE ALSO
45
+
46
+
*[virtletctl](virtletctl.md) - Virtlet control tool
47
+
*[virtletctl diag dump](virtletctl_diag_dump.md) - Dump Virtlet diagnostics information
48
+
*[virtletctl diag sonobuoy](virtletctl_diag_sonobuoy.md) - Add Virtlet sonobuoy plugin to the sonobuoy output
49
+
*[virtletctl diag unpack](virtletctl_diag_unpack.md) - Unpack Virtlet diagnostics information
50
+
51
+
###### Auto generated by spf13/cobra on 11-Jul-2018
Pull Virtlet diagnostics information from the nodes and dump it as a directory tree or JSON
8
+
9
+
```
10
+
virtletctl diag dump output_dir [flags]
11
+
```
12
+
13
+
### Options
14
+
15
+
```
16
+
-h, --help help for dump
17
+
--json Use JSON output
18
+
```
19
+
20
+
### Options inherited from parent commands
21
+
22
+
```
23
+
--alsologtostderr log to standard error as well as files
24
+
--as string Username to impersonate for the operation
25
+
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
26
+
--certificate-authority string Path to a cert file for the certificate authority
27
+
--client-certificate string Path to a client certificate file for TLS
28
+
--client-key string Path to a client key file for TLS
29
+
--cluster string The name of the kubeconfig cluster to use
30
+
--context string The name of the kubeconfig context to use
31
+
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
32
+
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
33
+
--log-backtrace-at traceLocation when logging hits line file:N, emit a stack trace (default :0)
34
+
--log-dir string If non-empty, write log files in this directory
35
+
--logtostderr log to standard error instead of files
36
+
-n, --namespace string If present, the namespace scope for this CLI request
37
+
--password string Password for basic authentication to the API server
38
+
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
39
+
-s, --server string The address and port of the Kubernetes API server
40
+
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
41
+
--token string Bearer token for authentication to the API server
42
+
--user string The name of the kubeconfig user to use
43
+
--username string Username for basic authentication to the API server
44
+
-v, --v Level log level for V logs
45
+
--virtlet-runtime string the name of virtlet runtime used in kubernetes.io/target-runtime annotation (default "virtlet.cloud")
46
+
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
0 commit comments