There is no existing variable for subnetmask.
How Lansweeper wake on lan works:
If you have the enterprise version, the WOL command is sent from scan server (the one that scanned the asset)
There are 2 WOL methods tried by the service:
1)Normal wol.exe method which only works in the local subnet
2)“Poweroff.exe” method which works across subnets, see http://users.telenet.be/jbosman/poweroff/poweroff.htm