1827367 Members
5811 Online
109963 Solutions
New Discussion

Re: new to sys admin

 
akashvenkat
New Member

new to sys admin

hi all

Im a sys admin trainee , i need some help from ur side

There are lots of commands in HP_UX pls list the important commands which are mostly used for administration

Thanks in Advance
12 REPLIES 12
RAC_1
Honored Contributor

Re: new to sys admin

There are so many commands. Start by reading man man pages. First understand how man pages are grouped into different sections. Like certin commands are only for sysadmins, some refer to system calls etc.

man man

Also, start reading basic unix books, then you can move onto HP-UX books. A book by Rafiq-Ur-Rehman is best for hp-ux.
There is no substitute to HARDWORK
Indrajit_1
Valued Contributor

Re: new to sys admin

Hi Akashvenkat,

The are many commands in hp unix and each command is important in it's arena..

Man command is the best practice to teach urself.
#man ( for example man ls)

If possible, try to arrange some book published by hp.

cheers
indrajit
Never Ever Give Up
Cem Tugrul
Esteemed Contributor

Re: new to sys admin

Hi Akashvenkat,
there are lots of commands.Once upon a time
i got such a kind of pdf.i can not put the attachment here because max limit size 1Mb.
if you can give a valid e-mail address without any quota then i can send via e-mail to you.
HP-UX Reference Release 11.0
System Administration Commands
Sectiom 1M
B2355-90166
E1097

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Adisuria Wangsadinata_1
Honored Contributor

Re: new to sys admin

Hi,

I think most of HP-UX commands are important, but you need to get to use it so you will find which one is suitable for your daily tasks.

If you would like to find the details about the command, just search the man page of that command.

You can go for HP-UX Sys Admin training or just read from the books.

Poniatowski is a good book for start. The one that I use for the first time is 'HP-UX 11i System Administration Handbook and Toolkit'. And also from Rehman.

Below are some books for references :

HP-UX
Cooper/Moore HP-UX 11i Internals
Fernandez Configuring CDE
Madell Disk and File Management Tasks on HP-UX
Olker Optimizing NFS Performance
Poniatowski HP-UX 11i Virtual Partitions
Poniatowski HP-UX 11i System Administration Handbook and Toolkit, Second Edition
Poniatowski The HP-UX 11.x System Administration Handbook and Toolkit
Poniatowski HP-UX 11.x System Administration "How To" Book
Poniatowski HP-UX 10.x System Administration "How To" Book
Poniatowski HP-UX System Administration Handbook and Toolkit
Poniatowski Learning the HP-UX Operating System
Rehman HP-UX CSA: Official Study Guide and Desk Reference
Sauers/Ruemmler/Weygant HP-UX 11i Tuning and Performance
Weygant Clusters for High Availability, Second Edition
Wong HP-UX 11i Security

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Cem Tugrul
Esteemed Contributor

Re: new to sys admin

Or,
you can go http://www.docs.hp.com/
then make a search B2355-90166
Then you can get


» HP-UX Reference (11i v1 05/09) - 1M System Administration Commands a-m (vol 3) (6880) (HP-UX 11i v1)




Our greatest duty in this life is to help others. And please, if you can't
Muthukumar_5
Honored Contributor

Re: new to sys admin

Commands:

ls, find, grep, sed, awk, cut, history, alias, netstat, route, paste, comp, diff, man, ps, top, vmstat, iostat, ioscan, kmtune, ndd, fsadm, mkfs, fsck, cat, nm, ldd, strings, chatr, vgdisplay, bdf, du,df, lvdisplay

View their man pages and go to the SEE also part.

To go with man pages then,

go to http://docs.hp.com/en/hpuxman_pages.html and select platform and use that pdf / html files. Continue with the above list.

hth.
Easy to suggest when don't know about the problem!
Joseph Loo
Honored Contributor

Re: new to sys admin

hi,

u may like to refer to this:

http://bhami.com/rosetta.html

it gives u some common command not just for HP-UX but other UNIX OS as well, in case u r experience with other UNIX OS.

regards.
(p.s. please remember to assign points.)
what you do not see does not mean you should not believe
Sยภเl Kย๓คг
Respected Contributor

Re: new to sys admin

Hi,

There are lots of documentations available in the net. I recommend you to lern module by module, rather than just muggingup the commands. That is no way going to help you.
What best you can do is to classify the hpux system in to diffrent modules and gp thorugh one by one, prepare a small note of commands and it'd discr. Some think like

UNIX has some thing called man pages, this is an online help available in the system. practice to get help from man.

Regards,
Sunil

Your imagination is the preview of your life's coming attractions
Sยภเl Kย๓คг
Respected Contributor

Re: new to sys admin

Hi,

There are lots of documentations available in the net. I recommend you to lern module by module, rather than just muggingup the commands. That is no way going to help you.
What best you can do is to classify the hpux system in to diffrent modules and go
thorugh one by one, prepare a small note of commands and it'd discr. Some think like

UNIX has some thing called man pages, this is an online help available in the system. practice to get help from man.

Regards,
Sunil

Your imagination is the preview of your life's coming attractions
Steven E. Protter
Exalted Contributor

Re: new to sys admin

Shalom Akashvenkat,

My advice is spend and hour a day reading threads and various questions in this very forum.

You will see a lot of commands to deal with issues both mundane and complex.

You might also like to get a book called HP Certified by Rehman, it provides a good learners background.

Lastly, you can see if HP Education offers courses near your locale. I loved all the courses I took at HP and learned a lot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Raj D.
Honored Contributor

Re: new to sys admin

Hi Akashvenkat ,

Just start with $ man man , and you got the key to all.

The commands are huge , and every command is useful for their particular use. And many unix commands are same , except few changes . for hp-ux commands check this link:

http://docs.hp.com/en/5971-2523/5971-2523.pdf



Also go through the hp-ux sysadmin books , that will help :

Here is one:
1.
HP-UX 11i System Administration Handbook and Toolkit, Second Edition
By Marty Poniatowski

Publisher : Prentice Hall PTR
Pub Date : February 10, 2003
ISBN : 0-13-101883-3
Pages : 1440
Link: http://www.amazon.com/gp/product/0131018833/103-8194516-7258200?v=glance&n=283155&v=glance

2. HP-UX System Administration.
By: Rafeeq Ur Rehman.
Is also good for certification.


Enjoy ,
hth ,
Raj.



" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: new to sys admin

Hi Akashvenkat ,

Here is few things , that might help you :

1. User Administration:

# useradd -u uid -s /usr/bin/ksh -g pri_group -d /home/username -m username
[ Where uid , pri_group , username : are input ]

# passwd username # setting password.
# passwd -f username # to chg pw at next login.

# usermod -G grp1 grp2 username # to add more group for the user ]

# passwd -l username # To lock a user ]

You can do the same activity through sam also.

2. System Maintenance:

1. To shutdown :
(Make sure nobody working and system needs to shutdown , check oracle and other application stopped.)

# ps -ef | egrep '(ora|pmon)' # to check if oracle running.)

Check Application team before shutting down.

To shutdown for any maintenace or other reason:
# shutdown -h -y 0

To Reboot: ( To watch the reboot, make sure you have logged in GSP/console)
# reboot -r -y 0

To boot in single user mode:
Interrupt normal boot process:
at ISL > hpux -is


3. To check System Logs:
/var/adm/syslog/syslog.log
dmesg
/var/opt/resmon/log/event.log
/var/adm/wtmp , utmp , btmp #login logs.
/var/adm/mail.log # mail log
/var/adm/cron/log # cron log
/var/adm/lp/log # LP logs.
/var/adm/sw/swinstall.log # All sw logs can be found here.
/var/adm/crash # crash dumps.


4. System / devices :
# ioscan -fnC disk # to check disks.
# ioscan -fnC tape # to check tape devs.
# ioscan -fnC lan # to check lan devs.
# ioscan -fnC fc # to check fc adptrs.
# ioscan -fnC ext_bus # to check all ext_bus


# /opt/fcms/bin/fcmsutil /dev/fc0 # to check fc details.(assuming fc0 is the fc adapter )
/usr/bin/cstm # cstm . check "man cstm" for details.

EMS:
# /opt/resmin/bin/resls / # To check resources configured

5. System Backup/Restore:

tar
cpio
make_tape_recovery *Important.

( Use man page to see details.)



6. Kernel tuning:

# kmtune -q parameter # to see current value.
# kmtune -s npty=120 # [Ex: to change npty value ]
# ./mk_kernel
# ./kmupdate
# shutdown -r -y 0 # to make it effective]

Check this:
HP-UX Kernel Tuning and Performance Guide:
http://docs.hp.com/en/1219/tuningwp.html



7. Software /Patching:
# swlist -l bundle # [ to see installed bundled ]
# swlist -l product # [ to see installed products ]
# swlist -l fileset # [ to check filesets]

# swinstall -s `pwd`/depot # to install software from created depot directory.
# swverify \* # to verify all sw.

# swremove # to remove sw .


8. Performance monitoring:
# glance
# top
# sar -v 5 5 # to check system table .
# sar -u -M 5 5 # to check cpu uti.
# vmstat 5 5 # swap usuage.
# iostat 5 5 # io usage.
# swapinfo -tm # swap usuage status.

Also check this performance monitoring too:
http://www.hpux.ws/system.perf.sh




9. System Inventory:

A. Nickel Script:
http://unixguide.net/scripts/nickel108

B. cfg2html
http://come.to/cfg2html

C. HP collection.sh script.


10. Finding CPU Details:

A.
# echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm


B. Finidng CPU speed in Mhz, in a single command:

# echo "CPU Speed is= \c" ; echo itick_per_tick/D|adb -k /stand/vmunix /dev/kmem|tail -1|cut -f2 | awk '{printf "%0f MHz\n", $1/10000}'


C. Memory Details:

# echo "selclass qualifier memory ;info;wait;infolog" | /usr/sbin/cstm

# cat /var/adm/syslog/syslog.log | grep -i physical



11. LP Administration:

# lpsched # to start the scheduler.
# lpstop # to stop the scheduler.
# lpadmin -p pr0 ... # to add printer .
# accept pr0 # to accept the pr0
# denable pr0 # to enable pr0

# lpstat -t # to check lp status.
# cancel req_id # to cancel request.

# man lpadmin [# for details . ]



12. for LVM :

A. pvdisplay , vgdisplay , lvdisplay ...

B. To use MirrorDisk/UX to mirror internal disks. Take a look at this link(Mirroring Data Using LVM section):

http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html
Link:

C. Also check Chapter 16 of LVM , of Recovery Handbook:

http://www.1402.com/documents/Logical%20Volume%20Manager.pdf


I hav etried to provide most of the things , very quickly , also dont forget to keep in touch with this forum , as this is the great source of knowledge than anything else,

Hope this will help you ,

Enjoy ,

hth,
Raj.




















" If u think u can , If u think u cannot , - You are always Right . "