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’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 on PhotonOS called (imaginatively) traceroute.
Here is a sample route
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 gateway.in.my.house (xxx.xxx.xxx.xxx) 0.255 ms 0.223 ms 0.195 ms
2 home.broadband.router (xxx.xxx.xxx.xxx) 0.510 ms 0.456 ms 0.538 ms
3 * * *
4 brig-core-2b-xe-802-0.network.virginmedia.net (80.3.64.69) 15.550 ms 15.596 ms 15.649 ms
5 * * *
6 eislou2-ic-3-ae0-0.network.virginmedia.net (94.174.238.226) 23.900 ms 21.960 ms 22.151 ms
7 72.14.221.42 (72.14.221.42) 22.486 ms 22.662 ms 27.600 ms
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
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
10 dns.google (8.8.8.8) 18.780 ms 23.241 ms 22.767 ms
2, port testing
If (like me) your port testing tool on windows in telnet then you are out of luck on PhotonOS. but it does have NetCat
Here is a simple port test to check DNS is listening.
nc -zv 192.168.13.36 53
DNS01.mynetwork.local [ 192.168.13.36 ] 53 (domain) open
3, Get the routing table
None of that route print here. just route in PhotonOS. a 50% saving on typing.
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.70.1 0.0.0.0 UG 0 0 0 eth0
192.168.70.0 * 255.255.255.0 U 0 0 0 eth0
Note: I used spaces to pad that out.
4, Get the usage of all of the Filesystems
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.
Your result will look something like this.
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.
top
Use Ctrl + C to exit top, or use top -n (number of samples)
This list will grow as I add more
6, I normally use tail to view log files
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.
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.