tmsh scripting
10 Topicstmsh to show pool members connection stats for FQDN member?
Hi there, I have a pool that contains 2 members and 2 auto-generated FQDN members; e.g. Server01.domain.org Server02.domain.org _auto_104.1.1.1 _auto_104.1.1.2 Where _auto_104.1.1.1 is linked to Server01.domain.org and the other is linked to 02. If I want to see the connection stats for node Server01.domain.org - I notice the stats are only connected against _auto_104.1.1.1. So how can I use TMSH to query Server01 connection stats? I hope that makes sense! Let me know if I'm misunderstanding any of this, as it would really help. Thank you in advance.51Views0likes4CommentsChanging Virtual Server's Access Profile with TMSH
I'm trying to perform an action in TMSH that would be otherwise simple in the f5 Console GUI. When you navigate to Local traffic -> Virtual Servers -> Virtual Server List and click on a given virtual server, you can then scroll down and change the Access Profile assigned to that virtual server in the Access Profile dropdown, click update, and you're done ... quite simple. It seems like the way to change to a different profile for a given virtual server in TMSH is to just delete the old one and then add a new one. However, when I tab to try to see my options for autocomplete after the add or delete part of my command, it only shows SSL Profiles and HTTP Profiles as options, not Access Profiles. Here is the TMSH command I'm talking about ... modify ltm virtual MY_VIRTUAL_SERVER profiles add { [NO OPTION FOR ACCESS PROFILES HERE] Is there a way to change a virtual server's assigned access profile using a TMSH command without having to directly edit bigip.conf directly?644Views0likes1CommentChanging Virtual Server's Access Profile with TMSH w/o Knowing Its Current Value
I am trying to use tmsh to change the Access Profile that is assigned to a given virtual server without knowing its current value. In the f5 Console GUI this is straightforward. When you navigate to Local traffic -> Virtual Servers -> Virtual Server List and click on a given virtual server, you can then scroll down and change the Access Profile assigned to that virtual server in the dropdown next to "Access Profile", click update, and you're done ... no need to know what the access profile was set to beforehang, you can just change the dropdown next to the "Access Profile" label. However, when I'm performing the same action using a tmsh command, I seem to have to know the value that assigned Access Profile is currently set to in order to be able to delete the profile out of that virtual server's properties and add in my new one. Here is the tmsh command I'm using ... modify ltm virtual MY_VIRTUAL_SERVER profiles add {ACCESS_PROFILE_NEW} profiles delete {ACCESS_PROFILE_ORIG} My point is that I need to know that the access profile is set to ACCESS_PROFILE_ORIG before issuing this command to reassign the access profile value. Is there any way to just have tmsh somehow detect what the access profile is set to and then delete it?1KViews0likes20CommentsUnsetting an attribute on tmsh modify
Seems that this is a simple thing. Right now I have a client-ssl profile that looks like the below. How can I use a tmsh command to unset or make it so the ciphers are assumed from the parent profile? ltm profile client-ssl testblah { ciphers ALL:!SSLv2:!SSLv3 defaults-from my_parent_ssl_profile }291Views0likes3CommentsLoad UCS to not active volume which is in version lower than originating (need this for script)
In my case I have two boot locations with different images versions (like below): Volume Product Version Build Active Status HD1.1 BIG-IP 12.1.2 0.0.249 no complete HD1.2 BIG-IP 13.1.0 0.0.1868 yes complete I need to load UCS (predefined config version 12.1.2) to volume HD1.1. I need to load this UCS when I'm logged in on volume HD1.2 (which is active volume). I already checked "cpcfg" command but got error: "New version (12.1.2) is not >= originating version (13.1.0)" I already checked command "tmsh load sys ucs" but this command don't have option to load ucs to not active volume. I'm building a script so I need solution in this particular moment and situation. Any ideas?330Views0likes1Comment"Sweetening" packet filter insertion from TMSH to avoid conflicts
Hello everybody. From the WebUI, you can insert a new rule "After" an existing rule and they all get get spaced out nicely. In TMSH, you have to manually declare the order number and you get a complaint on a conflict. Trying to script up the insertion of new rules in TMSH so we get the same type of behavior but that looks like it'll involve harvesting/sorting and modifying all the current rules. Hate to reinvent the wheel if someone has done this already. Has anyone solved this problem yet? Cheers Bernie188Views0likes0CommentsCommands in TMSH scripting
Hi all, I'm looking automate the creation of nodes/pools/and virtual servers by creating a TMSH script which I can run, input values and create my virtual server. I've already created a script through bash using such commands as echo and read to put out questions such as "Enter a node name = " and then reading in a variable titled NODE_NAME. I want to do the same in TMSH scripting but I can't seem to find what commands to use. For examples, what does "set" or "puts" do? What command can I use in place of the "read" command in bash. Thanks!581Views0likes3Commentsusing tmsh commands in tcl script
Hey all, I am new to the community as well as f5 technologies in general. Ill give a synopsis as to I am looking to accomplish by using a tmsh script. At my company we do site switches where we fail over applications depending on work thats be done at DC or another. And at times we have failover close to 70 applications. My question is if I was going to use for instance the tmsh cmd: modify gtm pool members modify { :https { disabled } } modify gtm pool members modify { :https { enabled } } In a script how would I got about adding it to the script? Also, I created a test.tcl file in my home directory and executed (Active)(tmos) run cli script but couldnt find the file. How would I execute it? Thanks679Views0likes4Commentsusing tmsh commands in tcl script
Hey all, I am new to the community as well as f5 technologies in general. Ill give a synopsis as to I am looking to accomplish by using a tmsh script. At my company we do site switches where we fail over applications depending on work thats be done at DC or another. And at times we have failover close to 70 applications. My question is if I was going to use for instance the tmsh cmd: modify gtm pool members modify { :https { disabled } } modify gtm pool members modify { :https { enabled } } In a script how would I got about adding it to the script? Also, I created a test.tcl file in my home directory and executed (Active)(tmos) run cli script but couldnt find the file. How would I execute it? Thanks279Views0likes1Comment