Set capture duration explicitly.

master
Sean McArdle 2020-06-19 21:48:58 -07:00
parent 820e937ec4
commit eebef90592
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ namespace MyLLDP.Properties {
}
/// <summary>
/// Looks up a localized string similar to $Packet = Invoke-DiscoveryProtocolCapture -Type LLDP;
/// Looks up a localized string similar to $Packet = Invoke-DiscoveryProtocolCapture -Type LLDP -Duration 62;
///if ($Packet) { ((Get-DiscoveryProtocolData -Packet $Packet | Out-String) -split &quot;`n&quot; | sort) -join &quot;`n&quot; }.
/// </summary>
internal static string script2 {

View File

@ -899,7 +899,7 @@ function Export-Pcap {
"Starting capture for 60 seconds"</value>
</data>
<data name="script2" xml:space="preserve">
<value>$Packet = Invoke-DiscoveryProtocolCapture -Type LLDP;
<value>$Packet = Invoke-DiscoveryProtocolCapture -Type LLDP -Duration 62;
if ($Packet) { ((Get-DiscoveryProtocolData -Packet $Packet | Out-String) -split "`n" | sort) -join "`n" }</value>
</data>
</root>