1"use strict";(self.webpackChunktigera_docs=self.webpackChunktigera_docs||[]).push([["3913"],{11426:function(e,n,i){i.r(n),i.d(n,{frontMatter:()=>a,toc:()=>d,default:()=>h,metadata:()=>o,assets:()=>l,contentTitle:()=>s});var o=JSON.parse('{"id":"reference/calicoctl/node/diags","title":"calicoctl node diags","description":"Command to get diagnostics from a Calico node.","source":"@site/calico_versioned_docs/version-3.28/reference/calicoctl/node/diags.mdx","sourceDirName":"reference/calicoctl/node","slug":"/reference/calicoctl/node/diags","permalink":"/calico/3.28/reference/calicoctl/node/diags","draft":false,"unlisted":false,"editUrl":"https://github.com/tigera/docs/edit/main/calico_versioned_docs/version-3.28/reference/calicoctl/node/diags.mdx","tags":[],"version":"3.28","frontMatter":{"description":"Command to get diagnostics from a Calico node."},"sidebar":"calicoSidebar","previous":{"title":"calicoctl node status","permalink":"/calico/3.28/reference/calicoctl/node/status"},"next":{"title":"calicoctl node checksystem","permalink":"/calico/3.28/reference/calicoctl/node/checksystem"}}'),c=i(37937),t=i(17869);let a={description:"Command to get diagnostics from a Calico node."},s="calicoctl node diags",l={},d=[{value:"Displaying the help text for 'calicoctl node diags' command",id:"displaying-the-help-text-for-calicoctl-node-diags-command",level:2},{value:"Examples",id:"examples",level:3},{value:"Options",id:"options",level:3}];function r(e){let n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.header,{children:(0,c.jsx)(n.h1,{id:"calicoctl-node-diags",children:"calicoctl node diags"})}),"\n",(0,c.jsxs)(n.p,{children:["This section describes the ",(0,c.jsx)(n.code,{children:"calicoctl node diags"})," command."]}),"\n",(0,c.jsxs)(n.p,{children:["Read the ",(0,c.jsx)(n.a,{href:"/calico/3.28/reference/calicoctl/overview",children:"calicoctl Overview"}),"\nfor a full list of calicoctl commands."]}),"\n",(0,c.jsx)(n.h2,{id:"displaying-the-help-text-for-calicoctl-node-diags-command",children:"Displaying the help text for 'calicoctl node diags' command"}),"\n",(0,c.jsxs)(n.p,{children:["Run ",(0,c.jsx)(n.code,{children:"calicoctl node diags --help"})," to display the following help menu for the\ncommand."]}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{children:"Usage:\n calicoctl node diags [--log-dir=<LOG_DIR>]\n\nOptions:\n -h --help Show this screen.\n --log-dir=<LOG_DIR> The directory containing Calico logs\n [default: /var/log/calico]\n\nDescription:\n This command is used to gather diagnostic information from a Calico node.\n This is usually used when trying to diagnose an issue that may be related to\n your Calico network.\n\n The output of the command explains how to automatically upload the\n diagnostics to http://transfer.sh for easy sharing of the data. Note that the\n uploaded files will be deleted after 14 days.\n\n This command must be run on the specific Calico node that you are gathering\n diagnostics for.\n"})}),"\n",(0,c.jsx)(n.h3,{id:"examples",children:"Examples"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-bash",children:"sudo calicoctl node diags\n"})}),"\n",(0,c.jsx)(n.p,{children:"An example response follows."}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{children:"Collecting diagnostics\nUsing temp dir: /tmp/calico676127473\nDumping netstat\nDumping routes (IPv4)\nDumping routes (IPv6)\nDumping interface info (IPv4)\nDumping interface info (IPv6)\nDumping iptables (IPv4)\nDumping iptables (IPv6)\nDumping ipsets\nexit status 1\nDumping ipsets (container)\nCopying journal for calico-node.service\nDumping felix stats\nCopying Calico logs\n\nDiags saved to /tmp/calico676127473/diags-20170522_151219.tar.gz\nIf required, you can upload the diagnostics bundle to a file sharing service\nsuch as transfer.sh using curl or similar. For example:\n\n curl --upload-file /tmp/calico676127473/diags-20170522_151219.tar.gz https://transfer.sh//tmp/calico676127473/diags-20170522_151219.tar.gz\n"})}),"\n",(0,c.jsx)(n.h3,{id:"options",children:"Options"}),"\n",(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{children:" --log-dir=<LOG_DIR> The directory containing Calico logs.\n [default: /var/log/calico]\n"})})]})}function h(e={}){let{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,c.jsx)(n,{...e,children:(0,c.jsx)(r,{...e})}):r(e)}},17869:function(e,n,i){i.d(n,{R:()=>a,x:()=>s});var o=i(82645);let c={},t=o.createContext(c);function a(e){let n=o.useContext(t);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:a(e.components),o.createElement(t.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.