Operating System - HP-UX
1828218 Members
2044 Online
109975 Solutions
New Discussion

Re: Template for Kernel Parameters

 
SOLVED
Go to solution
SHRIPAD
Occasional Contributor

Template for Kernel Parameters

Hi Experts,

If I have 2 systems i.e. A & B. And if I have already tuned the kernel for A and just need the same parameters on systemB then is there any way out? Is tehre any template option available in SAM for this, pl revert back.

8 REPLIES 8
Chan 007
Honored Contributor

Re: Template for Kernel Parameters

Sripad,

Try kmtune, it may provide you solution.

If you have not rebooted you can find the old values

Chan
Chan 007
Honored Contributor

Re: Template for Kernel Parameters

Use KMTUNE command for it.

If you have any servers then it is work using Ignite to do in one shot. But you have 2 systems. The only option you have is just to do with KMTUNE or SAM
Muthukumar_5
Honored Contributor

Re: Template for Kernel Parameters

There is not utility available to tune the remote machine (by default). On doing change in kernel with machine 1 then send mail to system B on denoting the change in machine 1 and parameter. Write a shell wrapper to accomodate with kmtune or kctune (11.23 onwards).

--
Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Template for Kernel Parameters

You do another thing as,

Using remsh or ssh with password less authentication to make remote system tuning with kmtune.

It will make that too work.

--
Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Template for Kernel Parameters

You can control remote system with sam easily as,

# sam -> Run SAM on Remote Systems -> Actions -> Add new system

give new system and take control on that.

--
Muthu
Easy to suggest when don't know about the problem!
Mridul Shrivastava
Honored Contributor
Solution

Re: Template for Kernel Parameters

Create a kernel parameters file which you can then copy to remote system. Extract the parameters from the currently running system.

/usr/lbin/sysadm/system_prep -s system

If you wish to change your kernel by changing it to match another kernel or system file you can do so by using the "Template" feature of kernel reconfiguration.
Select Templates from the Actions menu of any of the kernel configuration subareas. Select Load a Template. Enter the full path name of the template file. A template file can be a kernel or configuration file that normally resides on the current system, a file copied from a remote system, or any other valid kernel or configuration file. To view the template values, use the View->Columns menu selection to assign a column position to the template values.
Template values will then automatically be displayed in any view or modify dialog boxes. The template values are not automatically applied to the kernel you are building. To apply template values choose Templates from the Actions menu. Select Apply Template Values. SAM will allow you to choose to apply template values to configurable parameters and drivers or subsystems.
Time has a wonderful way of weeding out the trivial
Devender Khatana
Honored Contributor

Re: Template for Kernel Parameters

Hi,

Yes, it is possible. I have been using this for quite some time now through SAM.

On systema with all appropriate kernel parameters-

SAM->Kernel Configuration->Configurable Parameters->

File->Print-> Select file and give path and name.

Your current drivers and parameters will be copied to the file name specified.
Now copy this file to the other system and from
SAM->Kernel Configuration->Configurable Parameters->Actions->Load a Template File

Specify the file copied from the other system and press OK.



Now apply these template values

Action->Template->Apply template Values

and it will probe or selecting drivers/parameters to be applied. Select either or both depending upon the requirement and press OK.

The new parameters will be visible in pending column. Recreate new kernel as usual.

HTH,
Devender
Impossible itself mentions "I m possible"
YoungHwan, Ko
Valued Contributor

Re: Template for Kernel Parameters

This is a way to apply System A's kernel parameter to System B.

1. Make a script at system A(Tuned System).
# vi kernel_list.sh

<Script for HP-UX 11.0 >
#!/bin/sh

/usr/sbin/kmtune -l -S /stand/system | awk '$1 ~ /P/ {P=$2} $1 ~ /V/ {V=$2} $1 ~ /D/ {D=$2} $1 ~ /Mi/ {Mi=$2} $1 ~ /Mo/ {print P " " V}' ==> This is only one row!!

<Script for HP-UX 11.11 >
#!/bin/sh

/usr/sbin/kmtune -l -S /stand/system | awk '$1 ~ /Pa/ {Pa=$2} $1 ~ /C/ {C=$2} $1 ~ /Pl/ {Pl=$2} $1 ~ /D/ {D=$2} $1 ~ /Mi/ {Mi=$2} $1 ~ /Mo/ {Mi=$2} $1 ~ /V/ {V=$2} $1 ~ /Dy/ {print Pa " " C}' | grep -v "-" ==> This is only one row!!

2. Create the kernel parameter list.
# ./kernel_list.sh > /tmp/kernel_template

3. If need modify parameter at kernel_template.

4. Copy the created kernel_template to System B.

5. Execute SAM at System B.
# sam ==> kernel configuration -> configurable parameters -> action -> templates -> load a template file ==> clear statement with absolute path.

6. Move View -> Columns -> Change ==> At "Template Formulat" column modify "Ignore" to"4".

7. Move Action -> Templates -> Apply Template Values==> choice "Configurable Parameter Values".

8. Reboot after create new kernel.