For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

purna_256577's avatar
purna_256577
Icon for Nimbostratus rankNimbostratus
Nov 08, 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