From 95398a2dd949935739319e25ecc63dc681c272ef Mon Sep 17 00:00:00 2001 From: root <295172551@qq.com> Date: Sat, 14 Jun 2025 00:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99=E6=96=87?= =?UTF-8?q?=E4=BB=B6=20=E6=9B=B4=E6=96=B0command=20=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreAgent.API/Configurations/netcommand.json | 24 +++++++++---------- .../NetworkCommandConfigurationService.cs | 1 - 2 files changed, 12 insertions(+), 13 deletions(-) delete mode 100644 CoreAgent.Infrastructure/Services/Configuration/NetworkCommandConfigurationService.cs 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