Forum Discussion
Satoshi_Toyosa1
Jun 19, 2018Employee
for t in monitorTypes:
endp = 'mgmt.tm.ltm.monitor.' + t + '.get_collection()'
try:
e = eval(endp) Get list
eList = map(lambda x: x.name, e)
print('{}: {}'.format(t, ','.join(eList)))
except AttributeError:
print('{} does not exist.'.format(t))
The code would yield something like this (truncated):
diameters: diameter
dns_s: dns
externals: external
firepass_s: firepass
ftps: ftp
gateway_icmps: gateway_icmp
https: http,http_head_f5
https_s: https,https_443,https_head_f5
...