Operating System - HP-UX
1823986 Members
4515 Online
109667 Solutions
New Discussion юеВ

HP-UX Command to modify entries in /etc/initab

 
Mahesh_35
Occasional Contributor

HP-UX Command to modify entries in /etc/initab

Hi

I want to know HP-UX command to modify the records in /etc/inittab file

Note : AIX has such command(mkitab,rmitab,chitab and lsitab) to do modification in /etc/initab file

Thanks
Mahesh

9 REPLIES 9
Thierry Poels_1
Honored Contributor

Re: HP-UX Command to modify entries in /etc/initab

hi,

the most commonly used tool for this is "vi" :)

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Peter Godron
Honored Contributor

Re: HP-UX Command to modify entries in /etc/initab

Mahesh,
you can edit the file with vi and force save as root, but what are you trying to do?
Regards
SureshKumar_2
Valued Contributor

Re: HP-UX Command to modify entries in /etc/initab

hi mahesh,

There is no commands to modify /etc/inittab file.

you have to do it manually by editing the file.

suresh
Things are very easy, when u know about it...
KapilRaj
Honored Contributor

Re: HP-UX Command to modify entries in /etc/initab

There are no commands as such ..

make a backup , vi ....

if you mess up, thats it !!

Regds,

Kaps
Nothing is impossible
Zeev Schultz
Honored Contributor

Re: HP-UX Command to modify entries in /etc/initab

It a usual ascii text file...
So computers don't think yet. At least not chess computers. - Seymour Cray
Nguyen Anh Tien
Honored Contributor

Re: HP-UX Command to modify entries in /etc/initab

/etc/inittab is run_level config file. I usually use vi to change level.
Util now, I haven't known command to modify it.
tienna
HP is simple
Shantaram Sahyadri
Frequent Advisor

Re: HP-UX Command to modify entries in /etc/initab

Hi,

HP-UX does not have any commands to modify /etc/inittab. Use vi to edit the file and force save it. use

init q command to re-examin the file with out changing the runlevel.

to apply reboot the system
Cheers
Shantaram
If you dont change, you will be extinct

Re: HP-UX Command to modify entries in /etc/initab

AIX = *A*IX *I*sn't uni*X*

AIX is UNIX written by a bunch of mainframe system programmers, and as such it always does things different - sometimes better, sometimes worse.

One of the big issues with AIX is that (much like Windows), configuration information is held in several different locations - in traditional UNIX text files (like inittab), and in an object database 'registry' (called ODM in AIX-land). If the two locations don't agree then things get screwy (changes vanish or don't behave as expected).

Now your average UNIX admin expects to just edit the file, and have the change come into effect, either when he reboots, restarts a daemon, or forces a daemon to re-read its config file (often by sending a HUP signal to the process). Try this on AIX and you'll soon find yourself in trouble, as you have only changed the text file, not the ODM. AIX gets round this by giving you LOADS of commands that read/update both the text files and the ODM at the same time (like mkitab,rmitab,chitab and lsitab).

On HP-UX the text config file is the ONLY source of information for almost all config settings - so we don't need a thousand different commands to change configurations, you can just edit the inittab file and then (in the case of init) issue 'init q' to have init re-read its config. If you have a desire to automate this, then standard UNIX text manipulation tools like sed/ed/awk should allow you to add/delete/change lines without too much of a problem.

I'll leave it to you to decide which you prefer!

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Rashid Hamid
Regular Advisor

Re: HP-UX Command to modify entries in /etc/initab

Hi Mahesh

in AIX, the /etc/initab or /etc/filesystem cannot directly edit. It is advice to use mkitab, rmitab, chitab or use smitty because those files are directly to ODM.

in HPUX, just use any of your favourite editor such as vi.

Regards
Rashid

I'm Parit Madirono/Parit Betak Boyz