Professional Documents
Culture Documents
general tips
general tips
Start terminal:
i.e.
- How to add alias and save it on a run command if you forget the IP
- Ls -a (to list hidden files starting with .)
- See for mac .zshrc and for linux its .bashrc
- alias ssj="ssh -J p.hare@172.31.50.25"
alias jump="ssh p.hare@172.31.50.25"
alias scj="scp -J p.hare@172.31.50.25"
- source .zshrc (make sure you source so that it can run what you added)
- cat show\ switch\ interface\ -\ EHREUKCLIENT01.txt | grep -a4 AP4 > ap.txt (creates
new file and displays 4 line after the AP4 on ap.txt file)
- cat ap.txt (to read the file ap.txt)
Capture traffic on the box
#run monitor traffic interface et-0/1/2 matching "tcp port 179 and host
2001:7f8:4:3::e9a3:1" extensive write-file /var/tmp/CAPTURE-et-0/1/2.pcap
#run monitor traffic interface et-0/1/3 matching "tcp port 179 and host
2a03:fd82:0:4::1" extensive write-file /var/tmp/CAPTURE-et-0/1/3.pcap
Fortinet