介绍

简介:一款基于 Go 语言实现的 F5 LTM 配置自动化输出工具,目前支持 Windows、Linux 以及 MacOS。

表格输出效果

image-20220622151706375

参数说明

  • partition : 分区
  • virtualservername :虚拟服务名称
  • destination :虚拟服务地址
  • description : 描述
  • source : 源地址
  • vs_ip_protocol :协议
  • profiles :调用的配置文件
  • pool_name :pool 名称
  • pool_members:Pool 成员
  • snat_type:源地址转换类型
  • snat_pool :源地址转换 pool
  • irules : 调用的 iRule

实战演示

1、下载 Windows 应用程序

2、运行程序

语法:

1
2
3
4
5
6
7
8
9
10
C:\Users\wangh>C:\Users\wangh\Desktop\ltmx.exe -h
Usage of C:\Users\wangh\Desktop\ltmx.exe:
-a string
Host ip address. (default "192.168.5.134")
-f string
Specifies an alternative configuration file. (default "/tmp/ltm.xlsx")
-p string
Password to login to the host. (default "admin")
-u string
username to login to the host. (default "admin")

执行示例:

image-20220622170333142

MacOS 和 Linux 版本再次不做演示了,用法与 Windows 几乎一致。