none
NTTTCP and Nao Server RRS feed

  • Question

  • Hi,

    I am trying to run NTTTCP application in 2 NanoServer based VMs [TP4 build].  I checked that NTTTCP application against NanoServerAPIScan executable with ReverseForwarder packer and made sure that the application is supported.

    C:\a_temp\NanoServerApiScan_20151120>NanoServerApiScan.exe /BinaryPath:C:\a_temp\NTttcp-v5.31\x64\ /ReverseForwardersPath:C:\a_temp\NanoServerApiScan_20151120\RF
    -----------------------------------------------------------------------------
    === ntttcp.exe ===
    === C:\a_temp\NTttcp-v5.31\x64\ntttcp.exe ===

     I am passing following command for each VM

     .\ntttcp.exe -r -m 4,*,x.x.x.104 -l 64k -a 2 -t 30 ##VM1

     .\ntttcp.exe -s -m 4,*,x.x.x.104 -l 64k -a 2 -t 30  ##VM2

    I am getting following error message......

    =====================

    .\ntttcp.exe : ERROR: ProcessMappings failed: wrong final state in -m option

        + CategoryInfo          : NotSpecified: (ERROR: ProcessM...te in -m option:String) [], RemoteException

        + FullyQualifiedErrorId : NativeCommandError

    ERROR: main failed: error in parameters

    ======================

    Any thoughts on why I am not able to run this application in NanoVMs?  Is NTTTCP usage different for NanoVM?

    Thanks,

    Mihir

    Sunday, December 20, 2015 11:28 PM

All replies

  • Hi Mihir,

    I'm able to reproduce the error, we are investigating the issue. I'll let you know when we have more info.

    Thanks,

    Andrew

    Monday, December 21, 2015 7:16 PM
  • Hi Mihir,

    It's probably just a PowerShell syntax issue. These command lines work:

    On Nano, in remote powershell: Start-Process c:\users\administrator\documents\ntttcp.exe -RedirectStandardOutput out.txt -RedirectStandardError err.txt -ArgumentList "-r -m 1,0,0.0.0.0"

    On Nano, in remote powershell: Invoke-Expression “c:\users\administrator\documents\ntttcp.exe -r -m 1,0,0.0.0.0”

    On Nano, in remote powershell: c:\users\administrator\documents\ntttcp.exe -r -m “1,0,0.0.0.0”

    On Server Desktop, in remote powershell: Start-Process c:\users\administrator\documents\ntttcp.exe -RedirectStandardOutput out.txt -RedirectStandardError err.txt -ArgumentList "-r -m 1,0,0.0.0.0"

    On Server Desktop, in remote powershell: Invoke-Expression “c:\users\administrator\documents\ntttcp.exe -r -m 1,0,0.0.0.0”

    On Server Desktop, in remote powershell: c:\users\administrator\documents\ntttcp.exe -r -m “1,0,0.0.0.0”

    These command lines don’t work.  They give the “ProcessMappings” error listed earlier.

    On Nano, in remote powershell: c:\users\administrator\documents\ntttcp.exe -r -m 1,0,0.0.0.0

    On Server Desktop, in remote powershell: c:\users\administrator\documents\ntttcp.exe -r -m 1,0,0.0.0.0

     

    The NTttcp error message indicates it didn’t get the last part of the string provided.  This is because PowerShell removes commas, unless a string is contained in quotes.

     

    http://stackoverflow.com/questions/11990688/powershell-is-removing-comma-from-program-argument

     

    A few side notes below.

    Prior to running ntttcp.exe, firewall needs to be configured.

    [NanoTP4GRF]: PS C:\Users\Administrator\Documents> netsh advfirewall firewall add rule name="ntttcp.exe" dir=in action=allow program="c:\users\administrator\documents\ntttcp.exe" enable=yes

    Ok.

     

    Also, the IP address provided to NTttcp can’t be “x.x.x.x”.  NTttcp doesn’t know what an “x” is.  The address string needs to be either “0.0.0.0” to indicate all local addresses (for the “-r” receiver side only), or an explicit single address (which must be provided on the “-s” sender side).

    Hope this helps.

    ref@

    Tuesday, December 29, 2015 6:17 PM
  • Thanks Andrew and Refaat for your replies.
    Wednesday, December 30, 2015 10:15 AM
  • Hi patemih22,

    Are you successful in running ntttcp in nano? I tried executing ntttcp.exe and it does not return any output for the help. 

    [x.x.x.x]: PS C:\tools> .\NTttcp.exe /?
    [x.x.x.x]: PS C:\tools>

    Thanks

    Tuesday, January 5, 2016 6:46 AM
  • Hi,

    Yes we have been able to. Are you using the latest version? 5.31: https://gallery.technet.microsoft.com/NTttcp-Version-528-Now-f8b12769

    Thanks,

    Andrew

    Tuesday, January 5, 2016 5:30 PM
  • I am able to run ntttcp from Nano server. I used these command and it worked

    .\ntttcp.exe -r -m "8,*,<your.test.ip.address>" -rb 2M -a 16 -t 30

    .\NTttcp.exe -s -m "8,*,<your.test.ip.address>" -l 128k -a 2 -t 30

    Thursday, January 21, 2016 10:09 PM
  • This (.\ntttcp.exe -r... etc) does not work on build 14267 in Nano Server.

    Invoke-Expression -Command "C:\NTttcp-v5.31-x64\ntttcp.exe -r -m 8,*,XXX.XXX.XXX.XXX -rb 2M -a 16 -t 15"

    Works on a GUI-based server from a remote PS session, but does not work in a Remote PS Session on Nano Server.

    I have confirmed the firewall is disabled, and network connectivity between the receiver and the sender is fine.

    Thanks-

    HSBrown


    • Edited by HS Brown Thursday, March 3, 2016 10:21 PM
    Thursday, March 3, 2016 10:20 PM