Important CLI commands for F5 LTM

TMOS commands

run util bash -enable shell
show sys self-ip -show self IP’s
show ltm persistence persist-records -show persistence records
list ltm node [node_address] -show node status
modify ltm node [node_address] down -disable node
modify ltm node [node_address] up -enable node
modify net packet-filter all logging enabled -enable logging for all packet filters
delete ltm persistence persist-records pool [pool-name] -delete persistance records
save config -save the entire config to the stored config files
load config -replace running config with config from the config files
show sys performance connections historical -show the previous connection counts.

bash commands

ls – lists your files
ls -l – lists your files in ‘long format’, which contains the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified
ls -a – lists all files, including hidden files
ln -s <filename> <link> – creates symbolic link to file
touch <filename> – creates or updates your file
cat > <filename> – places standard input into file
more <filename> – shows the first part of a file (move with space and type q to quit)
head <filename> – outputs the first 10 lines of file
tail <filename> – outputs the last 10 lines of file (useful with -f option)
emacs <filename> – lets you create and edit a file
mv <filename1> <filename2> – moves a file
cp <filename1> <filename2> – copies a file
rm <filename> – removes a file
diff <filename1> <filename2> – compares files, and shows where they differ
wc <filename> – tells you how many lines, words and characters there are in a file
chmod -options <filename> – lets you change the read, write, and execute permissions on your files
gzip <filename> – compresses files
gunzip <filename> – uncompresses files compressed by gzip
gzcat <filename> – lets you look at gzipped file without actually having to gunzip it
lpr <filename> – print the file
lpq – check out the printer queue
lprm <jobnumber> – remove something from the printer queue
genscript – converts plain text files into postscript for printing and gives you some options for formatting
dvips <filename> – print .dvi files (i.e. files produced by LaTeX)
grep <pattern> <filenames> – looks for the string in the files
grep -r <pattern> <dir> – search recursively for pattern in directory

mkdir <dirname> – makes a new directory
cd – changes to home
cd <dirname> – changes directory

man <command> – shows the manual for specified command
df – shows disk usage
du <filename> – shows the disk usage of the files and directories in filename (du -s give only a total)
last <yourUsername> – lists your last logins
ps -u yourusername – lists your processes
kill <PID> – kills (ends) the processes with the ID you gave
killall <processname> – kill all processes with the name
top – displays your currently active processes
bg – lists stopped or background jobs ; resume a stopped job in the background
fg – brings the most recent job in the foreground
fg <job> – brings job to the foreground

ping <host> – pings host and outputs results
whois <domain> – gets whois information for domain
dig <domain> – gets DNS information for domain
dig -x <host> – reverses lookup host
wget <file> – downloads file