# CMD 工具 ## 阿里云SLB后端服务器client工具 ### Usage Example: SlbClient.exe -t lb -o update -reg cn-hangzhou -key LTAI5tCB8SmJcwfO -sec dX4kgF4VcblsbCVdKvtCGCmvNbLkZK -lb lb-bp1nz8xl5q8kiqfv0iumf -params "[{\"ServerId\":\"i-bp1hcv8qx0677hv9pr0s\",\"Weight\":\"100\"}]" ``` Usage of SlbClient.exe: -key string accessKeyId (default "accessKeyId") -lb string loadBalancerId (default "loadBalancerId") -o string operation: add、update、remove (default "update") -params string SetBackendServers: [{"ServerId":"ServerId","Weight":"0"}] AddBackendServers: [{"ServerId":"ServerId","Weight":"100","Type":"eni","ServerIp":"192.168.11.1"}] RemoveBackendServers: [{"ServerId":"ServerId","Weight":"100"}] (default "params") -reg string regionId: cn-hangzhou (default "regionId") -sec string accessSecret (default "accessSecret") -t string target: lb (default "lb") ``` ## 腾讯云CLB后端服务器client工具 ### Usage Example1: ./TencentCloudClient -t b -o add -key AKIDSoxxjI5tukPr9ECsQmwthKhroaCZlldI -sec b1FG2b3JMrESVLxjJdhYDgx12qPiplXB -reg ap-shanghai -params "{\"LoadBalancerId\":\"lb-jip7505r\",\"Targets\":[{\"InstanceId\":\"ins-n2i7x483\",\"Weight\":20}]}" Example2: ./TencentCloudClient -t b -o remove -key AKIDSoxxjI5tukPr9ECsQmwthKhroaCZlldI -sec b1FG2b3JMrESVLxjJdhYDgx12qPiplXB -reg ap-shanghai -params "{\"LoadBalancerId\":\"lb-jip7505r\",\"InstanceIds\":[\"ins-n2i7x483\"]}" ``` Usage of ./TencentCloudClient: -key string accessKeyId (default "secretId") -o string operation: add、remove (default "add") -params string AddBackendServers: [{"ServerId":"ServerId","Weight":"100","Type":"eni","ServerIp":"192.168.11.1"}] RemoveBackendServers: [{"ServerId":"ServerId","Weight":"100"}] (default "params") -reg string regionId: cn-hangzhou (default "regionId") -sec string accessSecret (default "secretKey") -t string target: b=backendServer (default "b") ```