I am trying to create a NQE query for all the F5 devices. The query searches for SSL profile on custom command.
Custom Command is :
show ltm virtual detail recursive | grep -E "Ltm::ClientSSL Profile:" -E "Virtual Server:"
The NQE should return SSL Profiles and the VIPs associated with them.
Solved
NQE Query to get SSL profiles from Custom Commands on F5
Best answer by jack.shen
Hi Shivang,
I see there is an issue with the double quote formatting. This should work for you. Make sure you are selecting the snapshot and network that has the custom command running.
Regards,
Jack
foreach d in network.devices
foreach c in d.outputs.commands
where isPresent(c.commandText)
where matches(c.commandText, "*Ltm::ClientSSL Profile:*Virtual Server*")
select { name: d.name, command: c.commandText, response: c.response }
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Sign up
Already have an account? Login
Welcome to the Forward Networks Community
Select a login option:
Register / Login Forward Employee LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.