ESXi tip: how to configure hosts to offload their logs to a collector server from the command line

Diagnostics information can be sent to a remote host instead, or in addition to the local store. This information is useful for troubleshooting host failures. Here is how to configure from the command prompt in 7 easy steps:

To configure hosts for Netdump with the command line, perform the following steps:

1.Open a console session to the host or connect remotely via SSH.
2.Review the current settings:
esxcli system coredump network get

3.Specify the outbound interface, IP address, and UDP port of the remote collector:
esxcli system coredump network set –interface-name –server-ipv4 –server-port PortNumber

4.Enable the configuration:
esxcli system coredump network set –enable true

5.Check the functionality of the collector server:
esxcli system coredump network check

6.Output in case of success should be as follows:
Verified the configured netdump server is running

7.Save the configuration permanently:
/sbin/auto-backup.sh


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.