# \#bash

**URL:** https://community.f5.com/tag/bash/883.md

[Latest](https://community.f5.com/latest.md) · [Categories](https://community.f5.com/categories.md) · [Tags](https://community.f5.com/tags.md)

---

## [Five Ways to Automate F5OS with Ansible: A Practical Guide](https://community.f5.com/t/five-ways-to-automate-f5os-with-ansible-a-practical-guide/75676)

<div class="topic-metadata">

**Author:** [@Tony\_Marfil](https://community.f5.com/u/Tony_Marfil)\
**Replies:** 2\
**Last updated:** [June 18, 2026, 10:24am UTC](https://community.f5.com/t/five-ways-to-automate-f5os-with-ansible-a-practical-guide/75676 "2026-06-18T10:24:45Z")

</div>

This article explores five methods for automating F5OS using Ansible, complete with real-world examples you can adapt to your own environment. The five methods, with working code examples, include F5OS collection modules…

---

## [Modify UCS Archive so it doesn't backup epsec images](https://community.f5.com/t/modify-ucs-archive-so-it-doesnt-backup-epsec-images/67239)

<div class="topic-metadata">

**Author:** [@John\_Beckmann](https://community.f5.com/u/John_Beckmann)\
**Replies:** 1\
**Last updated:** [May 16, 2025, 2:30pm UTC](https://community.f5.com/t/modify-ucs-archive-so-it-doesnt-backup-epsec-images/67239 "2025-05-16T14:30:00Z")

</div>

Problem this snippet solves: Currently, if you have APM installed, the UCS Archive process, also backs up the epsec images. I have written a bash script, which modifies the UCS Archive process, so that it does not incl…

---

## [Using bash and tmsh to make bulk updates](https://community.f5.com/t/using-bash-and-tmsh-to-make-bulk-updates/75696)

<div class="topic-metadata">

**Author:** [@Carl\_Brothers](https://community.f5.com/u/Carl_Brothers)\
**Replies:** 0\
**Last updated:** [February 6, 2025, 12:44am UTC](https://community.f5.com/t/using-bash-and-tmsh-to-make-bulk-updates/75696 "2025-02-06T00:44:02Z")

</div>

How this began Customers who may have had AAM/WAM enabled in their BIG-IP systems may be unaware of removal of that entire module and code branch that was done in versions 16 and above. Any BIG-IP systems that had these …

---

## [Removing AAM/WAM for a successful upgrade](https://community.f5.com/t/removing-aam-wam-for-a-successful-upgrade/75668)

<div class="topic-metadata">

**Author:** [@Carl\_Brothers](https://community.f5.com/u/Carl_Brothers)\
**Replies:** 3\
**Last updated:** [February 5, 2025, 5:51pm UTC](https://community.f5.com/t/removing-aam-wam-for-a-successful-upgrade/75668 "2025-02-05T17:51:47Z")

</div>

If you are wanting to upgrade to version 16 or 17 of BIG-IP, one thing that can cause your config not to load, is any element of AAM/WAM/WOM. As I discovered via a customer of mine, even removing all AAM/WAM items from t…

---

## [Let's Encrypt with Cloudflare DNS and F5 REST API](https://community.f5.com/t/lets-encrypt-with-cloudflare-dns-and-f5-rest-api/69310)

<div class="topic-metadata">

**Author:** [@lnxgeek](https://community.f5.com/u/lnxgeek)\
**Replies:** 8\
**Last updated:** [December 2, 2024, 10:24pm UTC](https://community.f5.com/t/lets-encrypt-with-cloudflare-dns-and-f5-rest-api/69310 "2024-12-02T22:24:42Z")

</div>

Hi all This is a followup on the now very old Let’s Encrypt on a Big-IP article. It has served me, and others, well but is kind of locked to a specific environment and doesn’t scale well. I have been going around it fo…

---

## [BigIP UCS Backup script; looking for some guidance on design](https://community.f5.com/t/bigip-ucs-backup-script-looking-for-some-guidance-on-design/74567)

<div class="topic-metadata">

**Author:** [@williammyer1](https://community.f5.com/u/williammyer1)\
**Replies:** 2\
**Last updated:** [May 30, 2024, 12:00am UTC](https://community.f5.com/t/bigip-ucs-backup-script-looking-for-some-guidance-on-design/74567 "2024-05-30T00:00:41Z")

</div>

Greetings, I’ve began to work on a bash script, intended to be ran locally on each F5 appliance via a cron task. The criteria for this script has been, Saves the UCS /w encryption using {Hostname}-YYYY-MM-DD.ucs na…

---

## [List BIG-IP Next Instance Backups on Central Manager](https://community.f5.com/t/list-big-ip-next-instance-backups-on-central-manager/74154)

<div class="topic-metadata">

**Author:** [@JRahm](https://community.f5.com/u/JRahm)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 12:04am UTC](https://community.f5.com/t/list-big-ip-next-instance-backups-on-central-manager/74154 "2024-03-08T00:04:06Z")

</div>

In the Central Manager GUI, you can create/schedule BIG-IP Next Instance backups, but outside of the listing shown there, you can’t download the files from that view if you want to archive them for off-box requirements. …

---

## [Issue with a simple Bash Script for adding an iRule to a list of Virtual Servers.](https://community.f5.com/t/issue-with-a-simple-bash-script-for-adding-an-irule-to-a-list-of-virtual-servers/73953)

<div class="topic-metadata">

**Author:** [@touriel](https://community.f5.com/u/touriel)\
**Replies:** 2\
**Last updated:** [February 7, 2024, 10:14pm UTC](https://community.f5.com/t/issue-with-a-simple-bash-script-for-adding-an-irule-to-a-list-of-virtual-servers/73953 "2024-02-07T22:14:50Z")

</div>

Hello Community, I am having an issue with a bash script for an F5 BIG-IP Load Balancer, intended to read and iterate over a .txt list of Virtual Server names, look up the partition for a given VS, and add an iRule to i…

---

## [Ansible Module for bash against F5 LTM](https://community.f5.com/t/ansible-module-for-bash-against-f5-ltm/71603)

<div class="topic-metadata">

**Author:** [@alanjohnson7467](https://community.f5.com/u/alanjohnson7467)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 4:17pm UTC](https://community.f5.com/t/ansible-module-for-bash-against-f5-ltm/71603 "2023-02-07T16:17:32Z")

</div>

Hi folks, I’m trying to find an Ansible module that will actually work for bash against F5 LTMs. I’ve tried command, shell, and ansible.builtin.shell with no luck. Alternatively an Ansible module that could execute a s…

---

## [BIGIP LTM Automated Pool Monitor Flap Troubleshooting Script in Bash](https://community.f5.com/t/bigip-ltm-automated-pool-monitor-flap-troubleshooting-script-in-bash/64051)

<div class="topic-metadata">

**Author:** [@Kiozs\_131042](https://community.f5.com/u/Kiozs_131042)\
**Replies:** 6\
**Last updated:** [August 4, 2022, 3:53pm UTC](https://community.f5.com/t/bigip-ltm-automated-pool-monitor-flap-troubleshooting-script-in-bash/64051 "2022-08-04T15:53:46Z")

</div>

Problem this snippet solves: A bash script is mainly for collecting data when F5 BIG-IP LTM pool member monitor flaps in a period of time and help determine the Root Cause of BIGIP monitor health check failure; Script w…

---

## [curl command not giving full output when used in Ansible f5 module .](https://community.f5.com/t/curl-command-not-giving-full-output-when-used-in-ansible-f5-module/69200)

<div class="topic-metadata">

**Author:** [@Blue\_whale](https://community.f5.com/u/Blue_whale)\
**Replies:** 9\
**Last updated:** [February 14, 2022, 6:24am UTC](https://community.f5.com/t/curl-command-not-giving-full-output-when-used-in-ansible-f5-module/69200 "2022-02-14T06:24:53Z")

</div>

Hi Experts , Below comand is not giving the complete output when we run this command from f5 Ansible Module .. Anyone knowns any workaround ? curl -vk https://example.com

---

## [Use F5 LTM as HTTP Proxy](https://community.f5.com/t/use-f5-ltm-as-http-proxy/68319)

<div class="topic-metadata">

**Author:** [@stan\_piron](https://community.f5.com/u/stan_piron)\
**Replies:** 24\
**Last updated:** [February 8, 2022, 6:17am UTC](https://community.f5.com/t/use-f5-ltm-as-http-proxy/68319 "2022-02-08T06:17:17Z")

</div>

Problem this snippet solves: LTM product can be used as a HTTP Proxy for servers and PC. This code explains minimum requirements to configure proxy feature without SWG module (configurations from Explicit Forward Proxy …

---

## [Can we run curl in tmsh mode ?](https://community.f5.com/t/can-we-run-curl-in-tmsh-mode/48397)

<div class="topic-metadata">

**Author:** [@Blue\_whale](https://community.f5.com/u/Blue_whale)\
**Replies:** 3\
**Last updated:** [January 25, 2022, 7:57pm UTC](https://community.f5.com/t/can-we-run-curl-in-tmsh-mode/48397 "2022-01-25T19:57:05Z")

</div>

Hi Experts , Can we run curl command in tmsh mode ? \<tmos\>curl -vk https://10.10.10.1 or do we have any option to use \<bash\> along with tmsh and execute the curl in tmos ?

---

## [Bug (ID 775845) Workaround; REST API httpd restart](https://community.f5.com/t/bug-id-775845-workaround-rest-api-httpd-restart/48051)

<div class="topic-metadata">

**Author:** [@Greg\_Jewett](https://community.f5.com/u/Greg_Jewett)\
**Replies:** 1\
**Last updated:** [August 27, 2021, 2:35pm UTC](https://community.f5.com/t/bug-id-775845-workaround-rest-api-httpd-restart/48051 "2021-08-27T14:35:49Z")

</div>

So this is less of a question, but a post to help my fellow BIG-IP LTM administrators, since the solution I came up with is quite the hack, but it works for me, so your mileage may vary, and of course -- test in non-prod…

---

## [Quick and dirty shell script to find unused certificates](https://community.f5.com/t/quick-and-dirty-shell-script-to-find-unused-certificates/68647)

<div class="topic-metadata">

**Author:** [@Lee\_Sutcliffe](https://community.f5.com/u/Lee_Sutcliffe)\
**Replies:** 7\
**Last updated:** [December 22, 2020, 9:57am UTC](https://community.f5.com/t/quick-and-dirty-shell-script-to-find-unused-certificates/68647 "2020-12-22T09:57:52Z")

</div>

Problem this snippet solves: This has been edited quite a bit since I first posted so it’s probably not as quick and dirty as it was before. This in response to a question regarding removing unused certificates https:/…

---

## [Issue with External monitor returning value](https://community.f5.com/t/issue-with-external-monitor-returning-value/61157)

<div class="topic-metadata">

**Author:** [@drhaskins](https://community.f5.com/u/drhaskins)\
**Replies:** 1\
**Last updated:** [November 1, 2020, 9:29pm UTC](https://community.f5.com/t/issue-with-external-monitor-returning-value/61157 "2020-11-01T21:29:01Z")

</div>

I am attempting to write an external monitor to determine which of our three databases is the “master.” We need to first ssh to the server and then run a command. This command should return either a ‘true’ or ‘fals’ #…

---

## [Download a BIG-IP UCS archive with "curl".](https://community.f5.com/t/download-a-big-ip-ucs-archive-with-curl/66422)

<div class="topic-metadata">

**Author:** [@JG](https://community.f5.com/u/JG)\
**Replies:** 5\
**Last updated:** [October 21, 2020, 2:02am UTC](https://community.f5.com/t/download-a-big-ip-ucs-archive-with-curl/66422 "2020-10-21T02:02:41Z")

</div>

Problem this snippet solves: Download a BIG-IP UCS archive using the program “curl” and verifies the output file’s signature. Tested on 13.1.1. How to use this snippet: Edit the code to input the hostname of your F5 …

---

## [Automated ASM Backup - working bash script now to automate or convert to iCall/tcl](https://community.f5.com/t/automated-asm-backup-working-bash-script-now-to-automate-or-convert-to-icall-tcl/50190)

<div class="topic-metadata">

**Author:** [@saidshow](https://community.f5.com/u/saidshow)\
**Replies:** 6\
**Last updated:** [February 22, 2020, 2:45pm UTC](https://community.f5.com/t/automated-asm-backup-working-bash-script-now-to-automate-or-convert-to-icall-tcl/50190 "2020-02-22T14:45:26Z")

</div>

Hi All, I have put together a BASH script that when run performs a backup of the ASM policies and copies them to a remote location. The script runs great and I have had it set as a Cron job in my lab setup to automate…

---

## [script to find difference between scf file](https://community.f5.com/t/script-to-find-difference-between-scf-file/54448)

<div class="topic-metadata">

**Author:** [@anson](https://community.f5.com/u/anson)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 10:01pm UTC](https://community.f5.com/t/script-to-find-difference-between-scf-file/54448 "2019-09-17T22:01:05Z")

</div>

Hi, Is there a option in f5 to trigger an alert based on scf difference . We recently had an issue with our f5 and the suggestion was to post a query with devcentral to track difference in scf file . Statement from the…

---

## [Where to place bash scripts on the appliance in order to survive platform upgrades?](https://community.f5.com/t/where-to-place-bash-scripts-on-the-appliance-in-order-to-survive-platform-upgrades/50202)

<div class="topic-metadata">

**Author:** [@saidshow](https://community.f5.com/u/saidshow)\
**Replies:** 6\
**Last updated:** [July 23, 2019, 12:04am UTC](https://community.f5.com/t/where-to-place-bash-scripts-on-the-appliance-in-order-to-survive-platform-upgrades/50202 "2019-07-23T00:04:32Z")

</div>

Hi All, I have a bash script that is executed by an iCall script. I know iCall will survive an upgrade of the BIG-IP platform however I suspect that my bash script will need to be placed in to very specific location o…

---

## [BASH Script to make UCS and FTP off to remote Server](https://community.f5.com/t/bash-script-to-make-ucs-and-ftp-off-to-remote-server/67835)

<div class="topic-metadata">

**Author:** [@Russell](https://community.f5.com/u/Russell)\
**Replies:** 2\
**Last updated:** [May 4, 2019, 5:57pm UTC](https://community.f5.com/t/bash-script-to-make-ucs-and-ftp-off-to-remote-server/67835 "2019-05-04T17:57:07Z")

</div>

Problem this snippet solves: Automate UCS Backup and copy via FTP to remote FTP Server. How to use this snippet: Run as a script to save and ship off a UCS file, via FTP, from the BIGIP Device to a Remote Server. Cod…

---

## [User for ASM Automated Backup Script](https://community.f5.com/t/user-for-asm-automated-backup-script/13736)

<div class="topic-metadata">

**Author:** [@saidshow\_251381](https://community.f5.com/u/saidshow_251381)\
**Replies:** 1\
**Last updated:** [March 15, 2019, 1:49pm UTC](https://community.f5.com/t/user-for-asm-automated-backup-script/13736 "2019-03-15T13:49:17Z")

</div>

Hi Guys, I have a script that allows me to backup ASM policies in moments, the catch however is that this script requires credentials for a user with Advanced Shell Access. Advanced Shell Access requires Administrativ…

---

## [Windows File Share Monitor SMB CIFS](https://community.f5.com/t/windows-file-share-monitor-smb-cifs/67174)

<div class="topic-metadata">

**Author:** [@hoolio](https://community.f5.com/u/hoolio)\
**Replies:** 2\
**Last updated:** [March 7, 2019, 4:26am UTC](https://community.f5.com/t/windows-file-share-monitor-smb-cifs/67174 "2019-03-07T04:26:06Z")

</div>

Problem this snippet solves: This external monitor performs a health check of a Windows file share using CIFS/Samba. There is an inbuilt SMB monitor for LTM. However, GTM does not (yet?) have this. See the comments in …

---

## [/var/ directory running out of space](https://community.f5.com/t/var-directory-running-out-of-space/17250)

<div class="topic-metadata">

**Author:** [@Zuke\_254875](https://community.f5.com/u/Zuke_254875)\
**Replies:** 1\
**Last updated:** [October 23, 2018, 6:52pm UTC](https://community.f5.com/t/var-directory-running-out-of-space/17250 "2018-10-23T18:52:10Z")

</div>

I’m getting a broadcast message on the bash CLI that warns me about the /var/ directory running out of room. 011d0004:3: Disk partition /var has only 14% free There are four Tomcat files of identical size taking up alm…

---

## [Cronjob that checks every 15 min if there is no APM active session, than disable the virt.](https://community.f5.com/t/cronjob-that-checks-every-15-min-if-there-is-no-apm-active-session-than-disable-the-virt/45904)

<div class="topic-metadata">

**Author:** [@LirazM](https://community.f5.com/u/LirazM)\
**Replies:** 2\
**Last updated:** [August 20, 2018, 11:43pm UTC](https://community.f5.com/t/cronjob-that-checks-every-15-min-if-there-is-no-apm-active-session-than-disable-the-virt/45904 "2018-08-20T23:43:39Z")

</div>

Hello there, My goal is to check every 15 minutes if there is no active APM session , if not, disable the virt. i thought i will have a bash script that i can call from crontab with the timing: 0,15,30,45 \* \* \* \* /…

---

## [Super HTTP Monitor](https://community.f5.com/t/super-http-monitor/62578)

<div class="topic-metadata">

**Author:** [@Kirk\_Bauer\_1018](https://community.f5.com/u/Kirk_Bauer_1018)\
**Replies:** 3\
**Last updated:** [July 17, 2018, 11:59am UTC](https://community.f5.com/t/super-http-monitor/62578 "2018-07-17T11:59:06Z")

</div>

Problem this snippet solves: Super HTTP supports GET and POST requests, HTTP 1.0 and 1.1, Host headers, User-Agent headers, HTTP and HTTPS. It supports cookies. It supports authentication (basic, digest, and ntlm). It s…

---

## [Set partition context in bash](https://community.f5.com/t/set-partition-context-in-bash/47471)

<div class="topic-metadata">

**Author:** [@Ørjan](https://community.f5.com/u/%C3%98rjan)\
**Replies:** 1\
**Last updated:** [June 18, 2018, 2:47pm UTC](https://community.f5.com/t/set-partition-context-in-bash/47471 "2018-06-18T14:47:02Z")

</div>

When running the command "show ltm clientssl-proxy cached-certs virtual clientssl-profile " in tmsh I have to do “cd /” first so it finds the correct VS and profile. This VS and client-SSL profile is part of our forwa…

---

## [BigIP i-series - Clearing Alarmlog on LCD not possible](https://community.f5.com/t/bigip-i-series-clearing-alarmlog-on-lcd-not-possible/56959)

<div class="topic-metadata">

**Author:** [@Ichnafi](https://community.f5.com/u/Ichnafi)\
**Replies:** 3\
**Last updated:** [January 10, 2018, 12:31pm UTC](https://community.f5.com/t/bigip-i-series-clearing-alarmlog-on-lcd-not-possible/56959 "2018-01-10T12:31:25Z")

</div>

Hi all, I just found out, that the “Clear All” Button on the Touch-Screen of our i-series LTMs is missing. Following this manual (https://support.f5.com/kb/en-us/products/ddos-hybrid-defender/manuals/product/platform-…

---

## [F5 Automation - TCL & Bash](https://community.f5.com/t/f5-automation-tcl-bash/68835)

<div class="topic-metadata">

**Author:** [@Vijay\_E](https://community.f5.com/u/Vijay_E)\
**Replies:** 2\
**Last updated:** [November 28, 2017, 7:58am UTC](https://community.f5.com/t/f5-automation-tcl-bash/68835 "2017-11-28T07:58:49Z")

</div>

Problem this snippet solves: This is a really simple way to automate CLI command execution on multiple F5 devices using Bash & TCL scripting. How to use this snippet: On a linux machine that is utilized to connect to …

---

## [BIG-IP Backup Script In Bash](https://community.f5.com/t/big-ip-backup-script-in-bash/62688)

<div class="topic-metadata">

**Author:** [@dwertz\_104302](https://community.f5.com/u/dwertz_104302)\
**Replies:** 3\
**Last updated:** [September 11, 2017, 8:55pm UTC](https://community.f5.com/t/big-ip-backup-script-in-bash/62688 "2017-09-11T20:55:49Z")

</div>

Problem this snippet solves: A script that can backup F5 configurations, runs daily, and FTP’s the backup to a defined remote server. You will need to change the ftphost, user and password variables to reflect the FTP s…

[Next page](https://community.f5.com/tag/bash/883.md?match_all_tags=true&page=1&tags%5B%5D=bash)
