Determining IP Address's


Im trying to get Kixscript to look at an Ip address and do a certain commad if it matches so

If IPaddress=
then do this stuff
if ipaddress=
then do this stuff
do this

But I cant get the kix syntax correct to look at the ip address,

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 13 years ago
Red Belt
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 13 years ago
Red Belt
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

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