Questions tagged [tmsh]

Use this tag for all questions about tmsh scripting language, which is related to F5 products

TMSH is the acronym for Traffic Management Shell. It is the F5 proprietary scripting language which allows users to set up configurations, check statistics and others.

10 questions
1
vote
1 answer

awk printing random "e" that is not in string

I am wanting to extract ip and port from a string. Strings look like this. destination x.x.x.x:yyyy where x is ip and y is port commandout=() while IFS= read -r line # Read a line do commandout+=("$line") # Append line to the…
Tony Haynes
  • 69
  • 1
  • 7
1
vote
1 answer

accessing F5 load balancer using unix script

I'm new to F5 load balancers. Is there anyway I can stop/start servers in the F5 pool using unix scripts? Thanks, Santosh
santosh.a
  • 503
  • 5
  • 20
1
vote
1 answer

F5 LTM config through tmsh - At least one monitor

f5-LTM version 11.6 Hi, I'm looking for the syntax to create a pool via tmsh with 2 monitors (monitor_A, monitor_B) with 'Availability Requirement' set to 'At Least...' '1' Health Monitor(s) checked…
Kalisen
  • 467
  • 1
  • 5
  • 13
0
votes
1 answer

How to run tmsh(F5) command using python SSH Paramiko

How can I run tmsh (f5) command and get output using SSH python ? ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect('1.1.1.1', username='username', password='password') …
0
votes
2 answers

Backup whole F5 bigIP configuration and save as file

I'm trying to export my current F5 bigIP configuration into a file and later create a replica of the same bigIP with that configuration. This reference mentioned following this: Create the UCS archive file by using the following command syntax,…
Tina J
  • 4,983
  • 13
  • 59
  • 125
0
votes
1 answer

Ansible loop/conditional

I've been working on a play to create a virtual server and am doing it by asking the user some questions to gather the configuration requirements. I'd like to run some pre-checks to show that certain virtual server properties exist, I've been able…
Pete
  • 35
  • 2
  • 9
0
votes
1 answer

Ansible var_prompt

I'm trying to create a playbook that will configure an LTM virtual server by asking the user some questions. Here's a sample of what the configuration might look like: tmsh create ltm virtual junk_virtual { destination 192.168.51.60:80 ip-protocol…
Pete
  • 35
  • 2
  • 9
0
votes
1 answer

run bash script with nice results in error

I have a fairly long bash script. I want to run it with nice nice ./test1.scr if I do not run the script with nice, it works great. But when I run it with nice. commands being ran inside my script fail. commandout=() while IFS= read -r line # Read…
Tony Haynes
  • 69
  • 1
  • 7
0
votes
0 answers

what is wrong with parsing the pipe | sed command

Testing some new scripts I came across this issue as part of the ps_redirect.sh now If I issue the command at the CLI using tmsh I can see that I get the desired outcome which is to bring the irule currently in use. I had to manipulate the result…
0
votes
1 answer

how to run the command tmsh list cm device-group one-line | awk '{print $3} in expect , this is for F5 load balancer

help me to run the command tmsh list cm device-group one-line | awk '{print $3}' in expect , this is for F5 load balancer when i run this in HPNA i'm getting can't read "3": no such variable while executing