Browse Source

删除冗余文件 更新command 类型

master
root 4 days ago
parent
commit
95398a2dd9
  1. 24
      CoreAgent.API/Configurations/netcommand.json
  2. 1
      CoreAgent.Infrastructure/Services/Configuration/NetworkCommandConfigurationService.cs

24
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,

1
CoreAgent.Infrastructure/Services/Configuration/NetworkCommandConfigurationService.cs

@ -1 +0,0 @@
Loading…
Cancel
Save