diff --git a/CoreAgent.API/Configurations/netcommand.json b/CoreAgent.API/Configurations/netcommand.json index 4e15f8a..db153af 100644 --- a/CoreAgent.API/Configurations/netcommand.json +++ b/CoreAgent.API/Configurations/netcommand.json @@ -35,16 +35,16 @@ }, { "type": 0, - "template": "tcpdump", + "template": "pkill tcpdump", "timeout": 5000, "isEnabled": true, "needReturnResult": false, "needBackgroundExecution": false, - "canBeKilled": true, + "canBeKilled": false, "hasParameters": false }, { - "type": 0, + "type": 1, "template": "chmod 777 /etc/shscripts/ntp.sh", "timeout": 5000, "isEnabled": true, @@ -54,7 +54,7 @@ "hasParameters": false }, { - "type": 0, + "type": 1, "template": "nohup sh /etc/shscripts/ntp.sh >/tmp/ntp.log 2>&1 &", "timeout": 15000, "isEnabled": true, @@ -64,7 +64,7 @@ "hasParameters": false }, { - "type": 0, + "type": 1, "template": "chmod 777 /root/enb/lte_init.sh", "timeout": 5000, "isEnabled": true, @@ -74,7 +74,7 @@ "hasParameters": false }, { - "type": 0, + "type": 1, "template": "chmod 777 /root/mme/lte_init.sh", "timeout": 5000, "isEnabled": true, @@ -84,7 +84,7 @@ "hasParameters": false }, { - "type": 0, + "type": 1, "template": "sh /root/enb/lte_init.sh", "timeout": 20000, "isEnabled": true, @@ -94,7 +94,7 @@ "hasParameters": false }, { - "type": 0, + "type": 1, "template": "sh /root/mme/lte_init.sh", "timeout": 20000, "isEnabled": true, @@ -104,7 +104,7 @@ "hasParameters": false }, { - "type": 0, + "type": 1, "template": "rm -f /tmp/*", "timeout": 5000, "isEnabled": true, @@ -114,7 +114,7 @@ "hasParameters": false }, { - "type": 0, + "type": 1, "template": "rm -f /var/log/lte/*", "timeout": 5000, "isEnabled": true, @@ -134,7 +134,7 @@ "hasParameters": false }, { - "type": 0, + "type": 1, "template": "rm -f /tmp/*.log", "timeout": 2000, "isEnabled": true, @@ -144,7 +144,7 @@ "hasParameters": false }, { - "type": 1, + "type": 2, "template": "sudo sh /etc/shscripts/network_se_{0}.sh", "timeout": 15000, "isEnabled": true, diff --git a/CoreAgent.Infrastructure/Services/Configuration/NetworkCommandConfigurationService.cs b/CoreAgent.Infrastructure/Services/Configuration/NetworkCommandConfigurationService.cs deleted file mode 100644 index 0519ecb..0000000 --- a/CoreAgent.Infrastructure/Services/Configuration/NetworkCommandConfigurationService.cs +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file