Forum Discussion
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
- Samir_Jha_52506
Noctilucent
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.txtRefer Shaun post
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com