calicoctl node diags

This section describes the calicoctl node diags command.

Read the calicoctl Overview for a full list of calicoctl commands.

Displaying the help text for ‘calicoctl node diags’ command

Run calicoctl node diags --help to display the following help menu for the command.

  1. Usage:
  2. calicoctl node diags [--log-dir=<LOG_DIR>]
  3. Options:
  4. -h --help Show this screen.
  5. --log-dir=<LOG_DIR> The directory containing Calico logs
  6. [default: /var/log/calico]
  7. Description:
  8. This command is used to gather diagnostic information from a Calico node.
  9. This is usually used when trying to diagnose an issue that may be related to
  10. your Calico network.
  11. The output of the command explains how to automatically upload the
  12. diagnostics to http://transfer.sh for easy sharing of the data. Note that the
  13. uploaded files will be deleted after 14 days.
  14. This command must be run on the specific Calico node that you are gathering
  15. diagnostics for.

Examples

  1. sudo calicoctl node diags

An example response follows.

  1. Collecting diagnostics
  2. Using temp dir: /tmp/calico676127473
  3. Dumping netstat
  4. Dumping routes (IPv4)
  5. Dumping routes (IPv6)
  6. Dumping interface info (IPv4)
  7. Dumping interface info (IPv6)
  8. Dumping iptables (IPv4)
  9. Dumping iptables (IPv6)
  10. Dumping ipsets
  11. exit status 1
  12. Dumping ipsets (container)
  13. Copying journal for calico-node.service
  14. Dumping felix stats
  15. Copying Calico logs
  16. Diags saved to /tmp/calico676127473/diags-20170522_151219.tar.gz
  17. If required, you can upload the diagnostics bundle to a file sharing service
  18. such as transfer.sh using curl or similar. For example:
  19. curl --upload-file /tmp/calico676127473/diags-20170522_151219.tar.gz https://transfer.sh//tmp/calico676127473/diags-20170522_151219.tar.gz

Options

  1. --log-dir=<LOG_DIR> The directory containing Calico logs.
  2. [default: /var/log/calico]