cancel
Showing results for 
Search instead for 
Did you mean: 

HPUX QA

SOLVED
Go to solution
Vinayak_HPUX
Frequent Advisor

HPUX QA

1>What is similar file to .rhosts in HPUX
I can find this file by using
#find / -name .rhosts
How to configure .rhosts in HPUX
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "
19 REPLIES
Oviwan
Honored Contributor
Solution

Re: HPUX QA

Hey

it is also .rhosts in the home directory of a user.

check:
man .rhosts
man rlogin

content of .rhosts
servername username

Regards
whiteknight
Honored Contributor

Re: HPUX QA

hi,

.rhosts is not there by default, you need to create one in / directory.

WK
Problem never ends, you must know how to fix it
Vinayak_HPUX
Frequent Advisor

Re: HPUX QA

How to configure rsh or remsh in HPUX ????????????
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "
Ivan Krastev
Honored Contributor

Re: HPUX QA

See the documentation - http://docs.hp.com/en/B2355-90827/ch06s01.html

regards,
ivan
Oviwan
Honored Contributor

Re: HPUX QA

On ServerA
$cat /home/user1/.rhosts
ServerB user1

On ServerB
$cat /home/user1/.rhosts
ServerA user1

Test it on ServerA as user1
$remsh ServerB hostname
ServerB

don't forget to assign points!
Vinayak_HPUX
Frequent Advisor

Re: HPUX QA

jadeja is HPUX m/c sfqaopt is linux m/c

I have configured but rsh not working but remsh is working ............giving sfqaopt23 not found
[root@jadeja][/]rsh sfqaopt23 ls
rsh: sfqaopt23: not found.
[root@jadeja][/]remsh sfqaopt23 ls
showing list of files
abc
pqr
xyz
[root@jadeja][/]
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "
Oviwan
Honored Contributor

Re: HPUX QA

Have you configure your DNS correctly on your linux server? or you can also configure /etc/hosts

check with
$nslookup sfqaopt23
Rasheed Tamton
Honored Contributor

Re: HPUX QA

man remsh

rsh is used in HPUX as restricted shell.
Bill Hassell
Honored Contributor

Re: HPUX QA

> #find / -name .rhosts

Not a good idea at all, especially on big machines. find / might take serveral hours to complete and severely load the server needlessly. The .rhosts file only works if it is in the $HOME directory so limit the search to the $HOME directories and since it MUST reside in the user's $HOME directory, don't use find, just use ll:

ll /home/*/.rhosts

But as mentioned, .rhosts never exists by default as it can be a severe security risk. You create the file in the user's $HOME. Do this as root by:

echo "remote-host username" >> /home/username/.rhosts
echo "remote-IPaddr username" >> /home/username/.rhosts

where remote-host is the hostname of the remote computer and the username is the user that will be accesssing this local computer. Because there are so many wrong ways to setup hostname resolution, always put the IP address in the .rhosts file. Then change the permissions and ownership:

chown localUserName /home/localUserName/.rhosts
chmod 600 /home/localUserName/.rhosts

Then test with a simple command from the remote system:

(On HP-UX)
remsh localHostname pwd

(On other Unix systems)
rsh localHostname pwd


Bill Hassell, sysadmin
Vinayak_HPUX
Frequent Advisor

Re: HPUX QA

Thanx

QQQQQQQQQQQQQQQQQQQQQQQQ
Q 2> Bymistake due to > /etc/lvmtab has been null now how to recover the same?
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "
Rasheed Tamton
Honored Contributor

Re: HPUX QA

You need to open a separate thread for this.


Use vgscan -v to recreate /etc/lvmtab or restore from a backup.

man vgscan (a portion below)

If /etc/lvmtab is destroyed, do not use vgscan to re-construct /etc/lvmtab if the system is heavily loaded by an application. Otherwise, vgscan will create an incomplete /etc/lvmtab due to a known NIKE/LVM limitation issue. It's important to quiesce the logical volume's I/O before re-constructing the /etc/lvmtab. If for some reason, there is a need to re-construct /etc/lvmtab when the system is running production application, vgscan will create a partial /etc/lvmtab. In this case, most of the primary paths should be included in the /etc/lvmtab. Use vgextend to include any missing alternate paths in the VG.
Vinayak_HPUX
Frequent Advisor

Re: HPUX QA

Getting following error
[root@sfqaia7]vgscan -v
"/etc/lvmtab" could not be read into memory.
[root@sfqaia7][/]ll /etc/lvmtab
-rw------- 1 root sys 0 Apr 21 01:48 /etc/lvmtab
[root@sfqaia7][/]vgdisplay
vgdisplay: No volume group name could be read from "/etc/lvmtab".
[root@sfqaia7][/]
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "
Duncan Edmonstone
Honored Contributor

Re: HPUX QA

Thats cos by default vgscan trys to use the existing lvmtab file if its there. Just delete it (there's nothing in it anyway) and re-run:

rm /etc/lvmtab
vgscan -v


HTH

Duncan

HTH

Duncan
Rasheed Tamton
Honored Contributor

Re: HPUX QA

Yes. First remove /etc/lvmtab
and try with vgscan
or try with vgscan -av

-a Scan all controller device paths for all disks.
Vinayak_HPUX
Frequent Advisor

Re: HPUX QA

Thanks I got the soln from u guys
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "
Vinayak_HPUX
Frequent Advisor

Re: HPUX QA

====================================
On Linux Os below command used to untar abc.tar at PATH : /tmp/VIN/
#tar -xvf abc.tar -C /tmp/VIN/
But on HPUX Os 11.31 it is not able to do so.
Kindly Suggest. Thanks in advance..
====================================
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "
Duncan Edmonstone
Honored Contributor

Re: HPUX QA

you should really start a new thread for a new question...

HP-UX isn't Linux! Don't expect everything to be the same and ceratinly never assume it is...

If you want Linux behaviour you should use Linux tools - you can get the GNU version of tar (i.e. the version used on Linux) here:

http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.22/

Note you will also need to install the run-time dependencies gettext and libiconv

This will install the GNU version of tar into /usr/local/bin

HTH

Duncan

HTH

Duncan
Duncan Edmonstone
Honored Contributor

Re: HPUX QA

Incidentally, don't _blame_ HP-UX for chnaging the way tar works - the tar version in HP-UX has been around a lot longer than the GNU version - I always find it interesting that standards only suit Linux folks when they have them...

HTH

Duncan

HTH

Duncan
Vinayak_HPUX
Frequent Advisor

Re: HPUX QA

Problem resolved now.
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "