0% found this document useful (0 votes)
131 views

TMSH Command Line Options

tmsh is the command line interface for managing the BIG-IP system. It provides options for running commands non-interactively (-a, -c), connecting to a specific blade in a cluster (-d), disabling video effects (-e), allowing saving to a secondary slot (-f), ignoring mcpd phase checks (-g), showing help (-h), running as a login shell (-l), logging messages (-m), preventing questions (-q), running in a specific TMSH version (-r), and printing debug information (-s, -u, -v). The man page can be viewed with the man tmsh command and provides more details on usage and options.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views

TMSH Command Line Options

tmsh is the command line interface for managing the BIG-IP system. It provides options for running commands non-interactively (-a, -c), connecting to a specific blade in a cluster (-d), disabling video effects (-e), allowing saving to a secondary slot (-f), ignoring mcpd phase checks (-g), showing help (-h), running as a login shell (-l), logging messages (-m), preventing questions (-q), running in a specific TMSH version (-r), and printing debug information (-s, -u, -v). The man page can be viewed with the man tmsh command and provides more details on usage and options.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

# tmsh -h

usage: tmsh <options ...> <command>


An option may be specified once. A command may follow the options, in
which case the shell exits after executing the command.
-a do not update the command history file
-c run a command, a command with multiple arguments must be in quotes,
this must be the last option specified
-d <address or host name> connect to mcpd at the specified location
-e disable video effects (bold, color, ...)
-f allow saving configuration on secondary slot in cluster environment
-g don't check mcpd phase when saving configuration
-h show this list
-l run as a login shell, job control is disabled, not valid with a command
-m all messages sent to and received from mcpd to tmsh.out
-q the shell will not ask the user any questions, this option does not
have an effect in interactive mode
-r <version> run TMSH syntax in the specified version.
-s print debug information for statistics commands to tmsh.out
-u do not print API status information in logs or to standard out.
-v print current TMSH version

Vew tmsh manual (man) page

Log into the Advanced shell (bash)


Note: If you are at the (tmos) # prompt, type the command run /util bash
Run the command man tmsh to see the full manual pages for tmsh.

For Example: the following is a snippet of the tmsh manual page on 14.x

# man tmsh
NAME
tmsh - Traffic Management Shell - A command line interface for managing the
BIG-IP(r) system.

DESCRIPTION
You can use tmsh to configure and manage the BIG-IP system in conjunction
with the Configuration utility,
which is the browser-based BIG-IP system and network management tool.

<snipped>
COMMAND LINE OPTIONS
The following options can be specified when tmsh is started from the system
shell.

-a tmsh does not write commands to the command history file.

Note that if auditing is enabled, tmsh continues to write commands to


the audit log. This option is
useful when writing scripts from the system shell, because it stops the
scripts from filling up the
command history file. This option applies to the non-interactive mode
only.

-c Run the specified command. A command that contains multiple arguments


must be in quotes. No other
options may be specified after -c

-d [ip address | host name]


Connects to the specified blade in a clustered system.
-e Disables video highlighting in tmsh.

-h Displays options you can use when accessing tmsh from the system shell.

-m Generates a tmsh debug log named tmsh.out in the current directory.

Note that when you run a tmsh script, the shell generates a debug log
file for the script named
tmsh.out.[script name].

Using this option causes tmsh to run significantly slower.

-q Prevents tmsh from responding to user actions with questions. This


option is useful when writing non-
interactive shell scripts from the system shell.

-r <version>
This option allows the user to run TMSH the specified version. This is
used to provide backwards
compatibility for older TMSH syntax only. The version must be specified
in the format maj.min.pt, for
example 11.5.0

You might also like