{"id":716,"date":"2021-11-26T19:20:27","date_gmt":"2021-11-26T19:20:27","guid":{"rendered":"http:\/\/192.168.8.14\/?p=716"},"modified":"2021-11-26T19:20:27","modified_gmt":"2021-11-26T19:20:27","slug":"troubleshooting-tools-on-a-vcsa","status":"publish","type":"post","link":"https:\/\/www.jasonstreet.com\/?p=716","title":{"rendered":"Troubleshooting tools on a VCSA"},"content":{"rendered":"\n<p>Here is a list of tools\/commands I use on a VMWare VCSA (6.7 and 7.0) I can never remember them so I&#8217;ll document them here. This list will grow.<\/p>\n\n\n\n<p>1, Trace Route<\/p>\n\n\n\n<p>If you are used to using tracert on on windows you will be pleased to know that there is a trace route command on PhotonOS called (imaginatively) traceroute.<\/p>\n\n\n\n<p>Here is a sample route<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets<br>1 gateway.in.my.house (xxx.xxx.xxx.xxx) 0.255 ms 0.223 ms 0.195 ms<br>2 home.broadband.router (xxx.xxx.xxx.xxx) 0.510 ms 0.456 ms 0.538 ms<br>3 * * *<br>4 brig-core-2b-xe-802-0.network.virginmedia.net (80.3.64.69) 15.550 ms 15.596 ms 15.649 ms<br>5 * * *<br>6 eislou2-ic-3-ae0-0.network.virginmedia.net (94.174.238.226) 23.900 ms 21.960 ms 22.151 ms<br>7 72.14.221.42 (72.14.221.42) 22.486 ms 22.662 ms 27.600 ms<br>8 74.125.242.65 (74.125.242.65) 31.763 ms 29.547 ms 74.125.242.97 (74.125.242.97) 28.472 ms<br>9 216.239.63.219 (216.239.63.219) 31.577 ms 142.251.52.143 (142.251.52.143) 24.142 ms 18.935 ms<br>10 dns.google (8.8.8.8) 18.780 ms 23.241 ms 22.767 ms<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<p>2, port testing<\/p>\n\n\n\n<p>If (like me) your port testing tool on windows in telnet then you are out of luck on PhotonOS. but it does have NetCat<\/p>\n\n\n\n<p>Here is a simple port test to check DNS is listening.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">nc -zv 192.168.13.36 53<br>DNS01.mynetwork.local [ 192.168.13.36 ] 53 (domain) open<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>3, Get the routing table<\/p>\n\n\n\n<p> None of that route print here. just route in PhotonOS. a 50% saving on typing.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">route<br>Kernel IP routing table<br>Destination   Gateway         Genmask          Flags   Metric   Ref Use Iface<br>default          192.168.70.1   0.0.0.0               UG      0            0    0     eth0<br>192.168.70.0 *                      255.255.255.0   U         0           0     0    eth0<\/p>\n\n\n\n<p>Note: I used spaces to pad that out.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>4, Get the usage of all of the Filesystems<\/p>\n\n\n\n<p>If you system there is a space issue in the VCSA just run a quick df -h to get a list of all the filesystems. Here you will most likely be looking at tmp and log.<\/p>\n\n\n\n<p>Your result will look something like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"344\" src=\"http:\/\/192.168.8.14\/wp-content\/uploads\/2021\/11\/001-dfh.jpg\" alt=\"\" class=\"wp-image-717\" srcset=\"https:\/\/www.jasonstreet.com\/wp-content\/uploads\/2021\/11\/001-dfh.jpg 720w, https:\/\/www.jasonstreet.com\/wp-content\/uploads\/2021\/11\/001-dfh-300x143.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>5, Get a performance summery using top. Need a quick overview of whats going on or need to find a process using to much RAM\/CPU? top is what you need. This tool has loads of options that are easily a whole post. <\/p>\n\n\n\n<p>top<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"511\" src=\"http:\/\/192.168.8.14\/wp-content\/uploads\/2021\/11\/002-top.jpg\" alt=\"\" class=\"wp-image-718\" srcset=\"https:\/\/www.jasonstreet.com\/wp-content\/uploads\/2021\/11\/002-top.jpg 912w, https:\/\/www.jasonstreet.com\/wp-content\/uploads\/2021\/11\/002-top-300x168.jpg 300w, https:\/\/www.jasonstreet.com\/wp-content\/uploads\/2021\/11\/002-top-768x430.jpg 768w, https:\/\/www.jasonstreet.com\/wp-content\/uploads\/2021\/11\/002-top-850x476.jpg 850w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/><\/figure>\n\n\n\n<p>Use Ctrl + C to exit top, or use top -n (number of samples)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This list will grow as I add more<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>6, I normally use tail to view log files<\/p>\n\n\n\n<p>ether tail (file) -n x to get the last x lines or tail (file) -f to get real time updates as the logfile is written to.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>7, Get the IP info with ifconfig. chances are you know the most important bit of info this clammed can give as you have SSHed on to the VCSA. but other bits of info are the MTU, packet info.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a list of tools\/commands I use on a VMWare VCSA (6.7 and 7.0) I can never remember them so I&#8217;ll document them here. This list will grow. 1, Trace Route If you are used to using tracert on on windows you will be pleased to know that there is a trace route command&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43],"tags":[148,20,46],"class_list":["post-716","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-commands","tag-vcenter","tag-vcsa"],"_links":{"self":[{"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=\/wp\/v2\/posts\/716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=716"}],"version-history":[{"count":2,"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=\/wp\/v2\/posts\/716\/revisions"}],"predecessor-version":[{"id":720,"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=\/wp\/v2\/posts\/716\/revisions\/720"}],"wp:attachment":[{"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jasonstreet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}