fix bugs
This commit is contained in:
Родитель
27d1c20d2b
Коммит
7b9a62daa7
|
@ -60,7 +60,7 @@ Function SetupRemoting{
|
|||
ufw enable | Out-Null
|
||||
ufw allow ssh | Out-Null
|
||||
ufw allow $Port/tcp | Out-Null
|
||||
Copy-Item -Path "$toolpath/rc.local" -Destination "/etc/rc.local"
|
||||
Copy-Item -Path "./ncps/rc.local" -Destination "/etc/rc.local"
|
||||
echo "`n* soft nofile 1048575 `n* hard nofile 1048575 " >> /etc/security/limits.conf
|
||||
chmod +x /etc/rc.local
|
||||
} # SetupRemoting()
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
|
||||
"NcpsAzure": {
|
||||
"Iterations": 1,
|
||||
"Iterations": 3,
|
||||
"Port": 50000,
|
||||
"Threads": [1, 8, 64],
|
||||
"ConnectionsPerThread": [1, 2],
|
||||
|
|
|
@ -579,19 +579,19 @@ Function ProcessToolCommands{
|
|||
Remove-Item -Force -Path ("{0}/{1}_Sender.zip" -f $CommandsDir, $Toolname) -Recurse -ErrorAction SilentlyContinue
|
||||
|
||||
#copy the zip files from remote machines to the current (orchestrator) machines
|
||||
Copy-Item -Path "$RecvDir/Recv.zip" -Destination ("{0}/{1}_Receiver.zip" -f $CommandsDir, $Toolname) -FromSession $recvPSSession -Force
|
||||
Copy-Item -Path "$SendDir/Send.zip" -Destination ("{0}/{1}_Sender.zip" -f $CommandsDir, $Toolname) -FromSession $sendPSSession -Force
|
||||
Copy-Item -Path "$RecvDir/Recv.zip" -Destination ("{0}/{1}_Receiver.zip" -f $RecvDir, $Toolname) -FromSession $recvPSSession -Force
|
||||
Copy-Item -Path "$SendDir/Send.zip" -Destination ("{0}/{1}_Sender.zip" -f $SendDir, $Toolname) -FromSession $sendPSSession -Force
|
||||
|
||||
Invoke-Command -Session $recvPSSession -ScriptBlock $ScriptBlockRemoveFileFolder -ArgumentList "$CommandsDir/Recv.zip"
|
||||
Invoke-Command -Session $sendPSSession -ScriptBlock $ScriptBlockRemoveFileFolder -ArgumentList "$CommandsDir/Send.zip"
|
||||
Invoke-Command -Session $recvPSSession -ScriptBlock $ScriptBlockRemoveFileFolder -ArgumentList "$RecvDir/Recv.zip"
|
||||
Invoke-Command -Session $sendPSSession -ScriptBlock $ScriptBlockRemoveFileFolder -ArgumentList "$SendDir/Send.zip"
|
||||
} else {
|
||||
LogWrite "Copying directories..."
|
||||
Remove-Item -Force -Path ("{0}/{1}_Receiver" -f $CommandsDir, $Toolname) -Recurse -ErrorAction SilentlyContinue
|
||||
Remove-Item -Force -Path ("{0}/{1}_Sender" -f $CommandsDir, $Toolname) -Recurse -ErrorAction SilentlyContinue
|
||||
|
||||
#copy just the entire results folder from remote machines to the current (orchestrator) machine
|
||||
Copy-Item -Path "$CommandsDir/Receiver/$Toolname/" -Recurse -Destination ("{0}/{1}_Receiver" -f $CommandsDir, $Toolname) -FromSession $recvPSSession -Force
|
||||
Copy-Item -Path "$CommandsDir/Sender/$Toolname/" -Recurse -Destination ("{0}/{1}_Sender" -f $CommandsDir, $Toolname) -FromSession $sendPSSession -Force
|
||||
Copy-Item -Path "$RecvDir/Receiver/$Toolname/" -Recurse -Destination ("{0}/{1}_Receiver" -f $CommandsDir, $Toolname) -FromSession $recvPSSession -Force
|
||||
Copy-Item -Path "$SendDir/Sender/$Toolname/" -Recurse -Destination ("{0}/{1}_Sender" -f $CommandsDir, $Toolname) -FromSession $sendPSSession -Force
|
||||
}
|
||||
|
||||
if ($Bcleanup -eq $True) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче