Hey guys, I’ve trying to figure this out for the whole day and think its time I ask the pro’s!!
I need this script to log info ONLY the subset mask, in this case 24
Help would be super appreciated!
:global ipaddress 10.1.101.1/24
:for i from=( [:len $ipaddress] - 1) to=0 do={
:if ( [:pick $ipaddress $i] = "/") do={
:put [:pick $ipaddress 0 $i]
}
}
:global ipaddress 10.1.101.1/24
:put [:pick $ipaddress 0 [:find $ipaddress "/"]]