F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

purna_256577's avatar
purna_256577
Icon for Nimbostratus rankNimbostratus
Nov 07, 2016

API/Scripts to execute tmsh list commands

we have requirement to pull the data from F5 VPN box to get the Group, ACL and resource using the below commands , please advise if there is any API / scripts available along with examples to pull the required data .

 

Modal : BIG-IP 4000 ( 12.0.0 ) Commands :-

 

tmsh list apm policy agent resource-assign rules tmsh list apm acl xxxx ( parameter from the above command )

 

1 Reply

  • You can customize bash/perl script based on requirement but through single command also possible. or create file & call from corn job.

    Prerequisite: You will need a box that can ssh to all of your devices. "unix/linux server"

    Single/multiple f5 host to store f5 device in f5hosts.txt file

    while read HOST ; do echo "" | ssh $HOST "tmsh list apm policy agent resource-assign rules && tmsh list apm acl xxxx && show sys hardware " ; done < f5hosts.txt > output.txt

    Refer Shaun post