With esxcli system coredump, you can manage local diagnostic partitions or set up core dump on a remote server in conjunction with ESXi Dump Collector. For information about ESXi Dump Collector, see the vSphere Networking documentation.The following example scenario changes the local diagnostic partition with ESXCLI. Specify one of the connection options listed in Connection Options in place of <conn_options>.
1 Show the diagnostic partition the VMkernel uses and display information about all partitions that can be used as diagnostic partitions.
3 Set the active partition to naa.<naa_ID>.If a diagnostic partition is set, the command displays information about it. Otherwise, the command shows that no partition is activated and configured.By default, a core dump is saved to the local disk. You can use ESXi Dump Collector to keep core dumps on a network server for use during debugging. ESXi Dump Collector is especially useful for Auto Deploy, but supported for any ESXi 5.0 host. ESXi Dump Collector supports other customization, including sending core dumps to the local disk.ESXi Dump Collector is included with the vCenter Server autorun.exe application. You can install ESXi Dump Collector on the same system as the vCenter Server service or on a different Windows or Linux machine. See vSphere Networking.You can configure ESXi hosts to use ESXi Dump Collector by using the Host Profiles interface of the vSphere Web Client, or by using ESXCLI. Specify one of the connection options listed in Connection Options in place of <conn_options>.
1 Set up an ESXi system to use ESXi Dump Collector by running esxcli system coredump.esxcli <conn_options> system coredump network set --interface-name vmk0 --server-ipv4=1-XX.XXX --port=6500You must specify a VMkernel port with --interface-name, and the IP address and port of the server to send the core dumps to. If you configure an ESXi system that is running inside a virtual machine, you must choose a VMkernel port that is in promiscuous mode.The host on which you have set up ESXi Dump Collector sends core dumps to the specified server by using the specified VMkernel NIC and optional port.The following example scenario changes the diagnostic partition. Specify one of the connection options listed in Connection Options in place of <conn_options>.
2 Display information about all partitions that can be used as diagnostic partitions. Use -l to list all diagnostic partitions, -f to list all diagnostic partitions in order of priority.
4 Set the active partition to naa.<naa_ID>.
5 Run vicfg-dumppart -t again to verify that a diagnostic partition is set.If a diagnostic partition is set, the command displays information about it. Otherwise, the command informs you that no partition is set.