Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion PERFTEST.PS1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Param(
[parameter(Mandatory=$true)] [string] $SrcIp,
[parameter(Mandatory=$true)] [string] $DestIp,
[parameter(Mandatory=$true)] [ValidateScript({Test-Path $_ -PathType Container})] [String] $OutDir = "",
[ValidateSet("Default", "Azure", "Detail", "Max", "Container")]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to remove this line?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this prevents adding new configs for one off tests.

[parameter(Mandatory=$false)] [string] $Config = "Default",
[parameter(Mandatory=$false)] [Array] $ToolList = @("ntttcp", "latte", "l4ping", "cps", "ctstraffic", "ncps", "secnetperf"),
[parameter(Mandatory=$false)] [switch] $SamePort = $false
Expand Down
9 changes: 2 additions & 7 deletions SetupTearDown.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,11 @@ param(
Write-Host "`nSSHD default config files already exist"
}

if (-NOT (Test-Path "$env:ProgramData\ssh\administrators_authorized_keys"))
{
if ($null -eq (Select-String -Path "$env:ProgramData\ssh\administrators_authorized_keys" -Pattern $authorizedKey)) {
Write-Host "`nAdd the AuthorizedKey as a trusted admin key"
Add-Content -Force -Path "$env:ProgramData\ssh\administrators_authorized_keys" -Value "$authorizedKey"
Add-Content -Force -Path "$env:ProgramData\ssh\administrators_authorized_keys" -Value "`n$authorizedKey"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need the `n? I think Add-Content will add a new line by default.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the `n is still here.

icacls.exe "$env:ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"
}
else
{
Write-Host "`nTrusted admin keys already exist"
}

if (-NOT (Test-Path "$env:ProgramFiles\PowerShell\7\"))
{
Expand Down
2 changes: 1 addition & 1 deletion l4ping/l4ping.Config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

"L4pingContainer":
{
"Iterations" : 5,
"Iterations" : 3,
"StartPort" : 50000,
"ClientSendSize" : 4,
"ClientReceiveSize" : 4,
Expand Down
20 changes: 14 additions & 6 deletions ntttcp/ntttcp.Config.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,25 @@
},

"NtttcpContainer": {
"Iterations" : 5,
"Iterations" : 3,
"StartPort" : 50000,
"tcp" : {
"BufferLen" : [65536],
"Connections" : [64, 128],
"Connections" : [64],
"OutstandingIo" :[16],
"Options": "-ns"
},
"udp" : {
"BufferLen" : [1372],
"Connections" : [64, 128],
"Connections" : [64],
"OutstandingIo" : null,
"Options" : "-ns"
},
"Warmup" : 2,
"Cooldown" : 2,
"Runtime" : 90
},

"NtttcpFrag": {
"NtttcpTcp": {
"Iterations" : 5,
"StartPort" : 50000,
"tcp" : {
Expand All @@ -108,8 +107,17 @@
"OutstandingIo" :[16],
"Options": "-sp"
},
"udp" : null,
"Warmup" : 2,
"Cooldown" : 2,
"Runtime" : 90
},
"NtttcpUdp": {
"Iterations" : 5,
"StartPort" : 50000,
"tcp" : null,
"udp" : {
"BufferLen" : [512, 1024, 1372],
"BufferLen" : [1372],
"Connections" : [64],
"OutstandingIo" : null,
"Options" : "-sp"
Expand Down
2 changes: 1 addition & 1 deletion secnetperf/secnetperf.Config.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
},
"SecnetperfContainer": {
"Iterations": 5,
"Iterations": 3,
"StartPort": 50000,
"TestType" : {
"Latency": {
Expand Down