Forum Discussion
xuwen
Mar 01, 2022Cumulonimbus
i suggest you use f5 python sdk api: f5-sdk
here is the code to save sys ucs file and name its filename "/var/local/ucs/test.ucs":
from f5.bigip import ManagementRoot
mgmt = ManagementRoot("192.168.5.109", 'admin', 'xt32112300')
"""save sys ucs name /var/local/ucs/test.ucs"""
mgmt.tm.sys.ucs.exec_cmd(command='save', name='/var/local/ucs/test.ucs')
"""check system all sys ucs filename"""
for i in mgmt.tm.sys.ucs.load().items:
print(i['apiRawValues']['filename'])
- KeyClackerMar 01, 2022Altocumulus
Appreciate that, but we don't use Python anywhere in our organization. If Python can do it using the same REST API then I would think anything could.