Skip to content

Instantly share code, notes, and snippets.

@bysnupy
Created April 8, 2021 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bysnupy/468c9a411e8067c67a9bf79dd844d06e to your computer and use it in GitHub Desktop.
Save bysnupy/468c9a411e8067c67a9bf79dd844d06e to your computer and use it in GitHub Desktop.
$ oc get pod -A | grep openshift-debug-node
openshift-debug-node-2dnn5zgqp2                    ip-10-0-198-72ap-northeast-1computeinternal-debug                          1/1     Running        0          176m
openshift-debug-node-8rxtlcxcbq                    ip-10-0-134-187ap-northeast-1computeinternal-debug                         1/1     Running        0          3h15m

// We can select a specific pcap using the file name which show us the generated timestamp.
$ oc cp -n openshift-debug-node-2dnn5zgqp2 \
  ip-10-0-198-72ap-northeast-1computeinternal-debug:tcpdump_20210405_054132.pcap \
  ./tcpdump_20210405_054132.pcap
  
$ oc cp -n openshift-debug-node-8rxtlcxcbq \
  ip-10-0-134-187ap-northeast-1computeinternal-debug:tcpdump_20210405_063341.pcap \
  ./tcpdump_20210405_063341.pcap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment