Friday, August 30, 2013


Mere haatho mein uski mahek aati Hai,
Saanso mein uski Saanse,
Main jeeta to uske naam se hu,
Jeena aya Hai mujhko waha se. 

Love Sharing

Tuesday, August 27, 2013

Bharat Mata ki jai

Bharat Mata Ki Jai

Is aandhi mein kaha dum Jo humein Rok de, 
Is Tufan mein kaha dum jo humein mod de,
Iraadon mein hamare itni himmat hai,
K aazaadi k deewano ki tarah Wakt ko Rok dein. 

Jaanein Gava kar mili hai aazaadi humein,
Iski kadr kartein hai hum, 
Koi aera Gera kaise koi Iska junoon tod de.

Bhagat Singh, lala lajpat rai jaise abhimaan hai hamare,
To kyo na hum is mitti pe apni Jaaan vaar dein, 
Mera desh Mahan hai, mera desh Mahan hai Iska Naara hum kaise chod dein. 

Bharat mata ki jai 
Bharat mata ki jai 
Bharat mata ki jai 

Love sharing 
Amit Chopra 

Wednesday, August 21, 2013

[Using open mode] VI editor + HP UX


Got an error yesterday while opening VI editor. it was giving an error of [Using Open Mode]. did some googling for it and found below solution. it worked. I donot know and have not tested if it works on other flavors of UNIX like solaris, linux, etc.


Message while opening VI


# vi /etc/rc.config.d/netconf

I don't know what kind of terminal you are on - all I have is 'unknown'.

[Using open mode]

"/etc/rc.config.d/netconf" [Read only] 169 lines, 6659 characters

# netconf:  configuration values for core networking subsystems



* it was not allowing to save the opened file.

below solution worked.

# TERM=vt100
# export TERM

If the error still persit on next login session. then put above mentioned in /etc/profile or profile file of user.

Love Sharing
Amit Chopra

Tuesday, August 20, 2013

Rab nu manan waleya

Ek Dharam nu v vand ta, 
Naa administration da la ta, 
Odda hi Kai dharam ne,
Naale rabb nu manan de Tarike nave lab ditte 

Main ta dila di maari nai,
Gaala kaddan to Mandir ch v hatda nai,
Rabb nu manan de rah dassan Lagya ae,
Loka nu pata nai Shayad dharam banan wale v nai rahe. 

Rabb saza denda hai mainu pata nai,
Par insaniyat na follow kar k, 
Insan apne aap nu saza denda jarur hai,
Fir b rab achai te burai dono jinda rehndi aa. 

Love sharing 
Amit chopra 

Friday, August 16, 2013

Interview questions on HP UX 11.31i part 3

Hi Friends,

Found some good questions on HP UX 11.31interview. My greed to learn UNIX is increasing day by day.

1. How to configure autofs in HP UX.
2. What are the services which we have to start after configuring AUTOFS.
3. What are the permissions and ownership required for NFS and AUTOFS file sharing?
4. How to create NPAR i.e. first VPAR?
5. How to assign resources to VPAR?
6. What is the minimum resource required to create a NPAR?
7. What is the minimum resource required to create a VPAR?
8. What is the process to boot an NPAR
9. How to boot a VPAR from other VPAR.
10. How to change the mode of VPAR to boot into NPAR.
11. Booting a system into NPAR/VPAR mode from EFI SHELL?
12. What is the significance of EFI SHELL?
13. Do we need to reset the NPAR before creating new NPAR? what is the command to reset NPAR configuration from EFI SHELL?
14. Can we assign resources on one VPAR from other VPAR? If Yes, then how and If not then why?
15. What is VPMON?
16. What is the Software name required for installing VPAR? In which OE version that software is available (BASE OE/VSE OE/DCOE)
17. What is the use of vparenv command?
18.What does VPARSTATUS -A?
19. How to boot cell and partition from MP console?
20. What is the DB file of VPAR and what is its location and its significance?

Thanks and Love Sharing
Amit Chopra


Thursday, August 15, 2013

CPU and Memory Reports HP UX

Hi Friends,

To find detailed view and reports of CPU, memory, disk utilization, file system usage, application, disk io, swap etc. there is very good utility in HP UX. I did it in HP UX 11.31, not aware of other  version. need to check more on it.
EXTRACT utilty, which is making use of scopeux behind is very good extract utility. It can bring out report of more than a month. 
Reading man page of extract can help you to choose multiple option for individual CPU or other parameter. We used the global option which brings detailed report. U can extract the same data in excel sheet and choose according to your requirement. And create graphs for your monthly report. 

€ the configuration file for export is in /var/opt/perf/Parms 
€ the services which need to be restarted  are
#/opt/perf/bin/perfstat :- command to check the o/p of performance status
#/sbin/init.d/ovpa stop
# /sbin/init.d/ovpa start
The command to take out report one month is :-

#extract -xp -g -b today-30 -e today -f /tmp/reports.out --  to bring out 30 days report from current date.

#/usr/bin/uuencode /tmp/reports.out /tmp/reports.out |mailx -m -s "mem1"

(using above command you can mail yourself the reports.out file or any attachment/file..)

would like to show how the o/p of data in graph format can be viewed in excel sheet after it is extracted on excel sheet.

CPU :-

similarly Memory, File system usage, etc reports can be taken out.

 Thanks & Love Sharing
Amit Chopra



Tuesday, August 13, 2013

We are help less

Physical wall of Germany broken but still we can see some differences.
We became independent but still we are slave with our mentality. We still need to work on it. 
Religions are free to be chosen but still we are lacking in our thoughts to accept one. 
Millions roads are built in this world but we are bounded by borders. 
Thoughts are like oceans but very less of them are positive.


Want to post more on it.

Amit chopra