Wednesday, December 19, 2012

Interview questions for HP UX 11.31i

Sharin some of the questions which are being asked frequently for HP UX 11.31i Interview.

the question level may differ for different user of HP UX admin.

1. What is command for measuring CPU and DISK utilisation?

Answer :- SAR is a utillty which is used.

$sar -Mu 2 5 will give the o/p for CPU utilization. it also shows how many CPU are there in your server.
$sar -d 2 5 will give the o/p pattern for disk utilized.

2 5 :- these can be changed for how long and with what duration you want the o/p of sar command.

2. What are the steps to troubleshoot a Hard disk failure?

Ans :- sautil is the utility which can be used to detect hard disk faliure.

/var/adm/syslog/syslog.log can also show the disk failure.

with ioscan -fnC disk (failed disk can be seen) bit this will not show any result if disk is completly failed. small corruptions or sector failure cannot be seen with it.

3. What is the booting sequence of HP UX 11.31i for rx2660 server, RX8640 nd HP 9000 server?
4. How to set the limit and kernel values in HP UX 11.31i
5. What is the command to verify the Patch implemented and verify it i correclty implemented.?
6. What is the command for adding/modifying/group moification/ownership changes in a directory?
7. What are the ways to boot from Ignite backup?
8. What is the command for ignite backup (make_net_recovery AvI  -s -x inc_entire=vg00
 and if on tape then make_tape_recovery -AvI -a /dev/rmt/0mn -x inc_entire=vg00
9. How we can change the password policy?
it is through /etc.default/security file only. after that you need to rerun the /sbin/init.d/secsh services. and shd services.
10. What is the command to check running services?
ps -ef |grep -i
11. what is the command to check on which port the service is running?
then we can check through netstat -an |grep -i or



will try to keep post on the same topic....

please add more and all positive and negatives comments invited.

Best Regards
Amit Chopra

Thursday, November 15, 2012

CLI to GUI RHEL 6

Hi All,

For switching from CLI i.e. command line interface to Graphical User Interface. we need to install two packages and change /etc/inittab default level.

At root prompt # or with sudo access. you need to run below command after mounting DVD/ISO image on the server.

1. mount /dev/dvd /mnt
2. cd /etc/yum.repos.d/
3. vi yum.repo (if any other repo is there then please remove that)
4. in yum.repo ---->

[Server]
name=Server
baseurl=file:///mnt/
gpgcheck=0
enabled=1
:wq!
5. yum clean all
6. yum updae all (should update all the files from DVD)
7. if all is OK.
8. yum groupinstall "X Window System"
9. yum groupinstall "KDE DESKTOP"
10. after installation. we need to edit /etc/inittab file.
11. in place of 3 or 4 write 5.
12. reboot the machine and you will be fallen to GUI prompt. (Virtual Machines)


suggestion and if errors in my work is to be done then please write. and if found useful then do also comment. thanks a lot.

 

Thursday, November 8, 2012

USERADD command HANGES or not responding + LINUX

Hi All,

Today first time faced an issue related to "useradd" and "groupadd" command. the command were hanging and not reponding or giving no response for long duration. that we need to do CTRL+C to come out at prompt.

What i learnt :-

1. we should first always check "dmesg" and "/var/adm/messages".
2. to check these #dmesg and then check for any issues there or errors.
3. To read #cat /var/adm/messages.
4. follow up the errors and conclusion found.
5. screnshot for errors are below.
6. LDAP as shown in error.
7. Disable need to be done through SETUP which was enabled on the server or #setup
8. just unselect the LDAP option in setup > authentication configuration.
9. save the configuration.
10. now run useradd or groupadd command. it will run for sure.
9. A good link i found on net by some internet friend on net or forum. thanks. 




Thanks, please share if any other error u find regarding this. we will work out. thanks for the visit.

 

Wednesday, November 7, 2012

Who are we

It seems sometimes to me a simple question. but when it is seen deeply then feels like WHO ARE WE? is a very big question. which we have to find and after that we need to find WHY ARE WE HERE? and after that question comes other questions like HOW ARE WE? and HOW WE HAVE TO BE? WHAT WE HAVE TO LOOK FOR? WHERE WE ARE AT PRESENT?

Are we doing anything good for Humanity?
Are we doing anything good for other living beings on earth or we just want to eat them or everything for our selfishness.
What is the purpose of our birth?

What i come to a conclusion is, we all have to work and live until death calls us. God or Almighty has sent us for his works and to complete them. every person every living being born with a purpose of giving. so what is the purpose of asking or begging for anything.



 

Sunday, September 30, 2012

Who is Poor

The first thing which comes in our mind, when we hear this word "POOR" is The Man who earns very less and hardly lives his life. But is this true, Is it really this term means, What your think? How do you see a POOR man? what you try to find in a person?  We need to find the answer in ourselves first of all.
                                                       According to some observation which i did at my personal level. Poor is He/She who do not understand what basic requirements are. Not food and clothes, but attitude, Behavior, respect to other as Human Being. We now, feel like Money will bring every happiness, Money will take us somewhere to heaven and we will be on the top of GOD too someday. It makes me feel like, why I born in this world, shall i also respond like people who are killing each other for the sake of money. which will remain for some days for last for some decade (if managed anyhow) but how long. Why we don't understand the Humanity. I may be using some BIG and heavy words, which may not be digestible by some people. Hunger for food is fine, but Hunger for Money, Hunger for Lust, Hunger for living a Royal life. Why we do not care about our coming generations, Our Nature which has given us everything fresh. Why we are destroying it.
I the BIG "I" in us not dieing and killing others for its own existence. even if we consider one's life. one is not able to live properly when I in him exist. now a days, We all are having an invisible knife or pistol in our hands. With which we are not directly killing others because just of some left fear  from getting caught by Police or punishment. but we indirectly making a person less able than us not to live and kill himself. Mangers are keeping their feet on their subordinates and want to grow and want to be in eyes of his/her Managers. People who have some little knowledge too, they do not share knowledge because they fear if he/she or subordinate took his place then what will happen. we all are scared in inside us only. We are not open to a person until we find a person giving some benefit to us.
 We are Poor in terms of our Thoughts, Positive attitude, behavior, living life.

Please suggest some ideas to overcome these.