#71304 - 2002-10-30 08:07 PM
Edit IP in Sybase client
|
Anonymous
Anonymous
Unregistered
|
Is there a way to edit the IP address on win95/98 clients that is located in the Sybase client information. The Sysbase client is used to connect to a remote database. Part of the client config is putting in the IP address of the remomte server.
I would like to do this by group becasue we will be changing our IP addressing soon.
This may be an unusual request but I figured I would give it a shot.
Thank you
|
Top
|
|
|
|
#71305 - 2002-10-30 08:28 PM
Re: Edit IP in Sybase client
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
well, if it is in the registry or in an ini file, it would be easy.
I suggest you look in the registry for it, and post its location and we can write something up for you.
|
Top
|
|
|
|
#71306 - 2002-10-31 02:41 PM
Re: Edit IP in Sybase client
|
Anonymous
Anonymous
Unregistered
|
Thank you.
The registry key is as follows; HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\EasylenderConsumerServer
The string value is as follows; Start "C:\SQLANY50\WIN32\dbclient.exe -c -x tcpip{myip=none;dobroadcast=no;host=10.10.1.10}
What I need to change is just the ip address in the string.
IF you can help that would be awesome.
|
Top
|
|
|
|
#71308 - 2002-10-31 03:28 PM
Re: Edit IP in Sybase client
|
Anonymous
Anonymous
Unregistered
|
With this function replace how does it know which hive key the string is contained in.
I am not sure how to implement this in my environment to just change an ip address.
Thank you
|
Top
|
|
|
|
#71311 - 2002-10-31 05:30 PM
Re: Edit IP in Sybase client
|
Anonymous
Anonymous
Unregistered
|
In my original post I indicated it was in the HKEY_LOcal_Machine hive.
Can I still use kix to make the edit to the string contained within this hive?? Thank you
|
Top
|
|
|
|
#71316 - 2002-10-31 08:50 PM
Re: Edit IP in Sybase client
|
Anonymous
Anonymous
Unregistered
|
I have read the manual that comes with the download. It is not very detailed. It gives a lot of the commands but some of them have no detail.
If there is another manual you are speaking of please let me know where to find it.
Thank you
|
Top
|
|
|
|
#71320 - 2002-11-01 05:55 AM
Re: Edit IP in Sybase client
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
adagost,
We (Les, Rad, Jens, etc.) could throw a script together and post it up for you to take away. In other words, use resources and put together information. Put another way, we want you to learn.
When we say to RTFM, use FAQ UDF Sections.. Utilize Search features to look for specific things:
Registry Replace String Read Write
I think one of the most important exercises I went through was to dig into the sample scripts that Ruud was so kind to provide. Start with the TEST.KIX..
Before we get off too much of a tangent here...
Let's "boil the broth off of the soup" and see what we have?
Like I was taught in Management, we need to break things into bite-sized chunks.
(1) What is the goal? Read in a Registry string, change it and replace.
(2) How do we do this? We need to replace a string and add it back in to the registry.
(3) Testing and execution.
- What is our environment? NT/W9x, Kixtart version, etc.
- Will the users have rights to do this?
Does it break? Do we need some SLEEP statments? So, taking this we can put together the following..
- Reading a value from the Registry, how do we do that?
READVALUE - Wait.. We need to test to see if the value is what need otherwise RETURN.. Use a string Function like INSTR to do so.
- How do use that for our operations? Assign it a value?
- Great, we now have a value we read in from the registry.. Now what? Let's use the Replace UDF listed..
- With the resulting variable from the Replace UDF, write the value back to the registry.
Does this help lay out the gameplan a bit better? Kent
|
Top
|
|
|
|
#71322 - 2002-11-01 05:40 PM
Re: Edit IP in Sybase client
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
Trawling through the posts we find it is a REG_SZ and is: quote:
Start "C:\SQLANY50\WIN32\dbclient.exe -c -x tcpip{myip=none;dobroadcast=no;host=10.10.1.10}
From what he is asking for, he wants to change 10.10.1.10 to something like 10.10.32.10.
Kent
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 370 anonymous users online.
|
|
|