btw, you can change:
code:
$arraytotal  = 3
DIM $subnet[$arraytotal]
$subnet[0] = 10.32.1
$subnet[1] = 10.32.2
$subnet[2] = 10.32.3

to just:
code:
DIM $subnet
$subnet = "10.32.1","10.32.2","10.32.3"

might simplify a little.
if you are not using the classC elsewhere, you don't need array at all, just remove this:
code:
:TechStuff
;--- inventory ---
$nb = 0
DO
if $ClassC = $subnet[$nb]
call "inventory.kix"
endif
$nb = $nb + 1
UNTIL $nb = $arraytotal

and change the lines to:
code:
;subnets:
$subnet = "10.32.1","10.32.2","10.32.3"

;if correct, do inventory:
if instr($subnet,$ClassC)
call "inventory.kix"
endif

cuts almost half of your code... (does it?)
 
_________________________
!

download KiXnet