Operating System - HP-UX
1833012 Members
3012 Online
110048 Solutions
New Discussion

copy the kernel parameters value

 
SOLVED
Go to solution
Jorge Prado_1
Advisor

copy the kernel parameters value

As I can quickly copy the kernel parameters value of a server hp-ux 11i to several server.

Thank

Jorge A. Prado T.
5 REPLIES 5
Rajeev  Shukla
Honored Contributor

Re: copy the kernel parameters value

You can copy some parameters but not all buy copying the
* Tunable parameters
from the /stand/system file to the other servers, be carefull dont copy the whole /stand/system file as the drivers may be different for other systems, so just copy the below portions of * Tunable parameters from /stand/system file.

and the recreate the kerenel with this new system file.

Rajeev
Michael Tully
Honored Contributor
Solution

Re: copy the kernel parameters value

You can use the system file, *BUT* this file may need to be different for different servers, and different applications.

To generate a fresh file.

# cd /stand/build
# /usr/lbin/system_prep -s system

either use rcp or ftp to copy the file.

TO generate a kernel
# cd /stand/build (assuming the file is there)
# vi system (make your changes)
# mk_kernel -s system
# kmupdate

Once your completed, you will need to reboot.
# cd /
# shutdown -r -y now
Anyone for a Mutiny ?
Sanjiv Sharma_1
Honored Contributor

Re: copy the kernel parameters value

Hi Jorge,

If all the hpux 11i servers are having the same configuration then you can use the same /stand/system and generate the new kernel (through sam or command line) and restart the system as advised by Michael.

Thanks,
Everything is possible
twang
Honored Contributor

Re: copy the kernel parameters value

I remember that I have similar requirement when I was building our test server of Oracle Application. We need to keep the OS patches level, kernel paramter and Oracle patches level on the test box(A400) are same as the production server(L1500). I use the front part of manual changing kernel parameter to copy kernel parameters to the test server:
- first of all generate the system file
# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system

make your changes required and copy "system" file to new server.
On new test, rebuild the kernel using system from production server & reboot:
# mk_kernel -s system
# kmupdate
# cd /
# shutdown -r -y now
Caesar_3
Esteemed Contributor

Re: copy the kernel parameters value

Hello!

Do this:
cd /stand/build
/usr/lbin/system_prep -s system

copy system to the other server to /stand/build

cd /stand/build
mk_kernel -s system
kmupdate

reboot the server for update.

Caesar