Determining IP Address's
Yo
Im trying to get Kixscript to look at an Ip address and do a certain commad if it matches so
If IPaddress=192.168.1.0
then do this stuff
else
if ipaddress=192.168.2.0
then do this stuff
else
do this
end
But I cant get the kix syntax correct to look at the ip address,
Im trying to get Kixscript to look at an Ip address and do a certain commad if it matches so
If IPaddress=192.168.1.0
then do this stuff
else
if ipaddress=192.168.2.0
then do this stuff
else
do this
end
But I cant get the kix syntax correct to look at the ip address,
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
Posted by:
bkelly
15 years ago
There are macro variables that let you see the IP of the local computer: @IPADDRESS0, @IPADDRESS1, and @IPADDRESS2. If there is one NIC you'll likely just need to look at @IPADDRESS0. Unfortunately it is returned paded with spaces and with no decimal points. For details and a sample that lets you build a "proper" IP address (with decimals and no spaces) see: http://www.adminscripteditor.com/syntax.asp?act=v&id=315
Bob
Bob
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.