Hi,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 :)

ok,for example we have the following two ranges: 10.1.1.1 - 10.1.1.254 and 10.100.2.1 - 10.100.3.254part of the lsc file would look something like this:

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

The second ip: 10.1.1.2541)254.1.1.102)11111110.00000001.00000001.000010103)111111100000000100000001000010104)4261478666

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

We don't have offical description of .lsc file. I've answered you to help with your investigation. Anyway, the others are options from new discovery form and it's easier to change them by the options than by hack the .lsc file.

Actions

More Like This

Retrieving data ...

SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 130,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining.