Page 1 of 1 1
Topic Options
#9834 - 2001-06-22 08:35 PM Looking for Utility to check IP Address
Anonymous
Unregistered


We are in desparate need of a VERY small utility to use in a logon script (10k-15k or smaller would be great!!).

The utility needs to get the IP address of the client and compare it against an INI file that lists IP addresses and IP address ranges.

The INI file must support sections that list specific IP addresses and address ranges. The sections must be include and exclude, so we can define what IP's to include and IP's to exclude.

The utility can return just a DOS error code that a logon script can use.
This is sort of like checkras, except we want to look at the IP address, not tif the client is using RAS.

Is there anything like this available??

Ian...

Top
#9835 - 2001-06-22 08:47 PM Re: Looking for Utility to check IP Address
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
lecube,

Welcome,

KiXtart has everything you need already builtin ... check out the @IPADDRESSx macro ...

quote:

@IPADDRESSx TCP/IP address (possible values for x are 0 - 3).

Note: Addresses are padded so that the resulting string always consists of four sets of three characters separated by periods. For example, if your IP address is 123.45.6.7, @IPADDRESS0 is 123. 45. 6. 7.



-Shawn

Top
#9836 - 2001-06-22 09:08 PM Re: Looking for Utility to check IP Address
Anonymous
Unregistered


Kixtart is WAY TOO BIG!!!

I need a very small utility (less than 15k) to perform 1 function. I need this for dial-up users.

Downloading over 300k needed for kixtart is not reasonable for our needs.

Someone must have written a small application like the one I need.

Ian...

Top
#9837 - 2001-06-23 04:40 AM Re: Looking for Utility to check IP Address
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

It isn't a big problem to use kixtart when you install the necessary
files to your local drives and do it only once.
Scripts of 10-15 KBytes are very big so the amount of data transmission
can be very low.

How?

Use our package f.e. kix363update.exe for a correct installation
of kixtart to your local drives. Size of this package is: 156 KBytes.
The package will create a check file c:\kix363.ok to prevent
unnecessary downloads of the package again.
The code of your batch file can be:

code:

if not exist c:\kix363.ok %0\..\kix363update.exe
kix32 %0\..\your_script.kix


Greetings.

BTW: we think it can never be a problem for any user when the organization is
downloading a file of 156 KBytes to their local drive and when they do it
only once.

See topic for more information:
http://kixtart.org/board/Forum2/HTML/000583.html
See our site for package http://home.wanadoo.nl/scripting


------------------
Site map:

[This message has been edited by MCA (edited 24 June 2001).]

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#9838 - 2001-07-24 08:41 PM Re: Looking for Utility to check IP Address
Dennis Rigdon Offline
Fresh Scripter

Registered: 2001-07-04
Posts: 8
Loc: OKC, OK
I use the following DOS code to make RAS connections faster. Copying the KIX files to some RAS clients is not always possible.
code:

echo Your logon Script is now running.
echo Termination of the script will result in loss of network resources.
if not "%echo%"=="" echo %echo%
if not "%OS%"=="Windows_NT" goto :win95
REM =NT/2000 CLIENTS
for /f "delims=: tokens=2" %%A in ('arp -a^|find "Interface:"') do SET IPAddr=%%A
for /f "tokens=1" %%A in ('echo %IPAddr%^|find "192.168."') do SET IPAddr=%%A
rem echo IP Address: %IPAddr%
for /f "delims=. tokens=3" %%A in ('echo %IPAddr%^|find "192.168."') do SET Subnet=%%A
rem echo Subnet: %Subnet%
if "%Subnet%"=="22" goto Remote
%0\..\KIX32.exe empnt.KIX
goto :exit
:win95
arp -a|find "192.168.22."
if errorlevel 1 goto 9xLocal
if errorlevel 0 goto 9xRemote

:9xLocal
%0\..\KIX32.exe emp95.KIX
goto Exit

:9xRemote
cls
echo Subnet: 192.168.22.0
echo Remote Access Client - Logon script execution canceled.
:exit
Echo Script execution complete.
EXIT


[ 24 July 2001: Message edited by: Dennis Rigdon ]

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 735 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.049 seconds in which 0.021 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org