Launch sflowtool.exe as a Windows Service

How to run the Traverse sFlow Converter as a Windows Service (in the background)


In the steps below, it is assumed that Traverse is installed in the default location of "C:\Program Files (x86)\Traverse".  The paths in these commands may need to be modified to reflect the actual installation location.  Likewise, in the example below, we assume that 'sflowtool.exe' is to be launched as follows, however your port numbers may vary:

"C:\Program Files (x86)\Traverse\apps\silk\bin\sflowtool.exe" -4 -p 6343 -d 2055 -c

  • First, at an elevated command prompt (i.e. launched with 'Run As Administrator'), create a Windows Service entry:
    sc create tvSFlow binpath= "C:\Program Files (x86)\Traverse\bin\srvany.exe" type= own start= auto DisplayName= "Traverse sFlow Converter"
  • Launch the Registry Editor (regedit)
  • Find the registry key called 'tvSFlow' already created with the previous command (Edit->Find)
  • Right click on 'tvSFlow', select 'New -> Key' to create a sub-key (under tvSFlow) and change the name of this sub-key to 'Parameters'
  • Right click on 'Parameters', select 'New -> Multi-String Value' to create a new entry and change the name to 'AppEnvironment'
  • Right click on 'Parameters' and create a new 'String Value' called 'Application'
  • Right click on 'Parameters' and create a new 'String Value' called 'AppParameters'
  • Right click on 'AppEnvironment', select 'Modify...' and set the value to 'CYGWIN=nontsec nodosfilewarning SystemRoot=C:\Windows'
  • Right click on 'Application' and set the value to '"C:\Program Files (x86)\Traverse\apps\silk\bin\sflowtool.exe"', including the double quotes but not the outer single quotes
  • Right click on 'AppParameters' and set the value to '-4 -p 6343 -d 2055 -c ""', including the double quotes around the IP address
  • Exit the Registry Editor
  • Start the tvSFlow service
    sc start tvSFlow

All versions of Traverse



NOTE: The above commands and paths have been verified as correct but in one instance we have seen the SFlow service fail to work as expected until the 2 file paths were updated to remove the white-space.

If the manually run SFlow command works ( but the service does not, as an alternative please update both file paths:


"C:\Program Files (x86)\Traverse\bin\srvany.exe"
"C:\Program Files (x86)\Traverse\apps\silk\bin\sflowtool.exe"


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Contact us