Mahi
Nov 14, 2019Cirrus
Setting $hostname variable
Hello,
I want to setup the environment variable referring the hostname of the current device and use it in multiple commands such as tcpdump as follows.
tcpdump -nni 0.0 -s0 -w /var/tmp/$hostname_$date_$time.pcap
If there any simple way to do that? once a variable is setup, I can copy paste the same command on multiple LTM devices so as to speed up the troubleshooting. Thank you in advance.