Robert_47833
Jul 20, 2017Altostratus
python load sys config merge from-terminal
def send_tmsh_cmd(self,command):
payload = {}
cmd = "-c \'" + command + "\'"
payload['command'] = 'run'
payload['utilCmdArgs'] = cmd
req_url = self.mgmt_url + "/util/bash"
load sys config merge from-terminal Enter configuration. Press CTRL-D to submit or CTRL-C to cancel.
I am using python to send tmsh command to F5
currently, I want to merge a local file to remote f5
how to achieve this?
1: tried to send it in this way:
tmshload sys config merge from-terminal
ltm pool LVSP00-CPS_80 { load-balancing-mode round-robin monitor JBossDeploymentStatus_8080 and MaintFlagHTTP1.1_80 }
but how to send ctrl-d?
2: another way is to copy this file to f5, then merger it?