/build/static/layout/Breadcrumb_cap_w.png

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,

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 15 years ago
Red Belt
0
Do you think it might be an idea to show us the syntax you are using, so that it can be corrected?
Posted by: bkelly 15 years ago
Red Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ