1833757 Members
2876 Online
110063 Solutions
New Discussion

IP Change in HP9000

 
Rajesh_20
Occasional Advisor

IP Change in HP9000

Hi All,
Good day.we are using HP9000 Server for Our Warehouse Management System.I have a requirement to change the current IP settings.
In order to do this I tried to use the System administration Tool "sam". But it doesn't work.
Please assist me?

To Modify IP:

Can I edit the IP setting and Sub Net Mask in the File named nectconf in the path /etc/rc.config.d/netconf.

Just by changing this, will it work.

Apart from this do I need to do any other changes anywhere?.

Please help me....

Thanks in Advance,

Rajesh
12 REPLIES 12
T G Manikandan
Honored Contributor

Re: IP Change in HP9000

YOu can do either of the one below

1.Run
#set_parms ip_address
to change it


2.Edit /etc/rc.config.d/netconf and /etc/hosts file

to change the ip-address and subnetmask.
Then do a /sbin/init.d/net stop
/sbin/init.d/net start


Revert
KapilRaj
Honored Contributor

Re: IP Change in HP9000

Rajesh,

Best way is to follow this procedure....

vi /etc/rc.config.d/netconf & do the changes
vi /etc/hosts & make the changes.....
Stop all your applications

/usr/sbin/rc2.d/net stop
/usr/sbin/rc2.d/net start

or

init 1
init 4/3 (where ever u r) see `who -r`

all the best

kaps
Nothing is impossible
Rajesh_20
Occasional Advisor

Re: IP Change in HP9000

Dear Mr Mani

Thanks for your reply. Appreciate you greatly for your immediate response.

I tried to do this but it give me a message "Not Found".

1.Run
#set_parms ip_address
to change it

Well, I shall do the changes in both the files.
Can you please try to explain me what does the net stop and net start does?

Is it for initializing?....

2.Edit /etc/rc.config.d/netconf and /etc/hosts file

to change the ip-address and subnetmask.
Then do a /sbin/init.d/net stop
/sbin/init.d/net start

Thanks once again...

Rajesh
John Payne_2
Honored Contributor

Re: IP Change in HP9000

/sbin/init.d contains system startup and shutdown scripts. ./net stop will'stop' the service, and './net start' will start (or initalize) the service.

Hope it helps

John
Spoon!!!!
Rajesh_20
Occasional Advisor

Re: IP Change in HP9000

Hi Mr KapilRaj

Thanks for your message too. Appreciate you for your time and effort.I shall try this.

It is actually a Production Server and I will be given very short time to do the modification.After changes the system should be back to production....so I need to be prepared for this.

To make it effective, Do I need to restart the system?

Or Just by editing the two files and running the net stop and net start will make it efective.

Thanks, Rajesh
John Payne_2
Honored Contributor

Re: IP Change in HP9000

By making the changes and running the start/stop script, the ip address 'should' change. (I generally do not have a problem with this, unless I make an invalid entry... :) )

Also, that file has thing like a default route_gateway. If you are moving your primary address to a new subnet, you will want to change your default route.

Hope it helps

John
Spoon!!!!
KapilRaj
Honored Contributor

Re: IP Change in HP9000

Rajesh,

It is better to restart always , but in mission critical systems we do not get time for that.

My apologies for giving the wrong path as /usr/sbin

It should be /sbin/init.d/net stop and /sbin/init.d/net start

This will work no need to re-boot the box. I will prefer init 1 & then init 3 so that all the other subsystems will do a proper shutdown & startup

All the best (U do not need it) this is a very small change)

kaps
Nothing is impossible
John Payne_2
Honored Contributor

Re: IP Change in HP9000

welcome to the forums, by the way.

You'll find a wealth of stuff in here to help you out. I know I have. (note the search to the left.)

John
Spoon!!!!
Rajesh_20
Occasional Advisor

Re: IP Change in HP9000

Hi John

Thanks for your replies. I am most delighted to joing this forum as I get immediate response from experts like you.

Hope I can learn a lot from this forum...

Thanks to everyone....

Rajesh
Rajesh_20
Occasional Advisor

Re: IP Change in HP9000

Kapil,

I am clear about doing the net stop and net start. But what does the following refer to..

init 1
init 4/3 (where ever u r) see `who -r`

You had also mentioned that you will prefer init 1 & then init 3 so that all the other subsystems will do a proper shutdown & startup

How do I do the init 1 and init 3....is it a command that need to run after doing the net stop and net start?

Thanks, Rajesh


Rajesh_20
Occasional Advisor

Re: IP Change in HP9000


Hi All

I could not find any comand by the name

net start
net stop

in the path /sbin/init.d

I can see only net command.

When I tried to run the net start command
the system gave me an error message:

$ net start
sh: net: not found.

Why this happens?.....Please assist.Do I need to run as a root? or is it because I am trying to run the command from the wrong place.


I am enclosing the List of Files under init.d directory.

Thanks, Rajesh

T G Manikandan
Honored Contributor

Re: IP Change in HP9000

Probably net is ont in the path.

Just do a
./net stop
./net start
from the /sbin/init.d/

or use the absolute path.

net is the initialization script and start and stop are its args
If you are changing the ip-add
just make modifications in /etc/rc.config.d/netconf and /etc/hosts