Page 1 of 1 1
Topic Options
#47965 - 1999-07-19 08:58 PM Detecting wrong IP addresses
Anonymous
Unregistered


I have a file that contain all Macadresses and respective IP addresses of the computers. TCPIP is specified so as to identify them ( over 700 ). I am trying to use Kix scripts to change the IP addresses and reboot the PC if the PC is using the wrong IP addresses. Any pointers or help will be appreciated. I cannot afford to use DHCP as it has too many subnets. Thanks
Top
#47966 - 1999-08-05 05:04 PM Re: Detecting wrong IP addresses
Anonymous
Unregistered


What do you mean that you have to many subnets for DHCP? Have you looked at:

Q161571

Windows NT 4.0 Service Pack 2 (SP2) provides support for a new DHCP "superscope"
feature. This feature allows a Windows NT DHCP server to:

- Support DHCP clients on locally attached networks that have multiple logical
subnets on one physical network (sometimes referred to as a "multi-net").

- Support DHCP clients on the far side of bootp relay agents, where the network
on the far side of the relay agent has multiple logical subnets on one
physical network.


#Q120932

Top
#47967 - 1999-08-10 11:15 PM Re: Detecting wrong IP addresses
Anonymous
Unregistered


There is a decision by the network adminsitrator in not providing a DHCP server in each subnet. Any way, what I hope to achieve is to assign the correct IP address to the correct PC. Thanks.
Top
#47968 - 1999-08-11 01:44 AM Re: Detecting wrong IP addresses
Anonymous
Unregistered


With kix32 it is not possible to detect the MAC address.
You need to write a program in C or an other language that will do the trick for you !

------------------
Lon Geefshuysen,
www.xs4all.nl/~longeef/NT/KiXtart
lon_geefshuysen@essentium.com


Top
#47969 - 1999-08-11 07:43 AM Re: Detecting wrong IP addresses
Flavien Offline
Getting the hang of it

Registered: 1999-07-21
Posts: 95
Loc: Geneva, Switzerland
You could make a script like that (I suppose the format of your IPs file is 00112233445566 172. 1. 1.254). This is supposed to work only with W95 (I didn't test it).
OPEN(1,"YourIPfile.txt",2)
:LOOP
$X=READLINE(1)
IF $X=""
GOTO END
ENDIF
IF @ADDRESS=SUBSTR($X,1,12) AND @IPADDRESS0<>SUBSTR($X,14,28)
WRITEVALUE("HKEY_LOCAL_MACHINE\TheKeyWhereWindows95StoreTheIP","TheSubkey",SUBSTR($X,14,28,"REG_SZ")
ENDIF
GOTO LOOP
:END
CLOSE(1)

Good luck!

Top
#47970 - 1999-08-11 01:08 PM Re: Detecting wrong IP addresses
Anonymous
Unregistered


Lon,

@ADDRESS returns the MAC address....

Darryl Jacoby, MCSE

Top
#47971 - 1999-08-14 10:24 AM Re: Detecting wrong IP addresses
alex Offline
Fresh Scripter

Registered: 2002-01-16
Posts: 8
What you are trying to do is completely nuts. Use kix login scripts to manage IP addresses?!
Use DHCP you crazy loon. Tell your network administrator to use DHCP to make everyone's job easier.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 2312 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.054 seconds in which 0.026 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