3 Replies Latest reply on Feb 7, 2011 8:46 AM by David.Hruby

    LANSurveyor Discovery Configuration File Format

      I`m writing this because I couldn`t access the related discussion on this site and also because I wasn`t able to find this info anywhere on the net. Basically this is a tip and also a further discussion if other people have more info

      The problem I was facing was the need to create .lsc discovery files from a script and not to type everything by hand in lan surveyor. The .lsc config file isn`t extremely friendly to edit so the following info describes how to enter IP address ranges in .lsc file format.
      I know this is not 100% complete info so you should check LS ranges before creating a diagram :)

      for example we have the following two ranges: - and -
      part of the lsc file would look something like this:

       2                          <- number of ranges
      16843018             <- range1 start ip addr
      -33488630            <- range1 end ip addr
      16933898             <- range2 start ip addr
      -33332214            <- range 2 end ip addr
      0                            <- end

      Lets take the first ip and get it into 16843018 :)
      first step is to write the octets backwords so becomes
      second step is to transform from base 10 to base 2 so becomes 00000001.00000001.00000001.00001010
      third step is to delete the dots so we get this 00000001000000010000000100001010
      and the last step is to transform this 00000001000000010000000100001010 back into base 10 so we get 16843018
      the same for the other values

      The second ip:

      I know the value is different but LS seems to work ok with it also.. I don`t know the negative values are created