HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Command rdist: distfile: No such file or direc...
Operating System - HP-UX
1833680
Members
4794
Online
110062
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2005 03:18 AM
11-21-2005 03:18 AM
Command rdist: distfile: No such file or directory
Hi,could you tell me why do i need "distfile" file ?
I've created .rhosts file containing "+" in both machines (local and remote) and is ok when i execute next:
$ rdist -c -v $(pwd)/test
143.45.67.54
updating host 143.45.67.54
need to install: /home/Manuales/test
but, when i execute nex it appears the message "distfile":
$ rdist -v $(pwd)/test 143.45.67.54
distfile: No such file or directory
what do i do more?
why does message appears?
Thanks, Manuales.
I've created .rhosts file containing "+" in both machines (local and remote) and is ok when i execute next:
$ rdist -c -v $(pwd)/test
143.45.67.54
updating host 143.45.67.54
need to install: /home/Manuales/test
but, when i execute nex it appears the message "distfile":
$ rdist -v $(pwd)/test 143.45.67.54
distfile: No such file or directory
what do i do more?
why does message appears?
Thanks, Manuales.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2005 03:27 AM
11-21-2005 03:27 AM
Re: Command rdist: distfile: No such file or directory
Hi Manuales ,
$ rdist -v $(pwd)/test 143.45.67.54
In this command check $pwd is set correctly to get the correct path.
What happens if u try with absolute path.
hth,
Raj.
$ rdist -v $(pwd)/test 143.45.67.54
In this command check $pwd is set correctly to get the correct path.
What happens if u try with absolute path.
hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2005 04:26 AM
11-21-2005 04:26 AM
Re: Command rdist: distfile: No such file or directory
Hi,
The message "distfile: No such file or directory " is obvious as the output of
rdist -v $(pwd)/test 143.45.67.54 which you are trying.
In your first command you used " -c " option which forces the rdist to use remaining arguments as distfile specified format options.
In the second command , rdist is searching for the distfile since -f option is not used and this is a default mode of operation. It will search for a file named as "distfile" in the current directory of the local host.
So if you want to give all those arguments at the command line itself , you should use "-c" option exclusively.
Second option would be put all those arguments in a file named as "distfile" or any other file name as per the specified format in the local host working directory. Then use "-f" option with rdist to specify it. Refer the rdist (1) man page as well.
The message "distfile: No such file or directory " is obvious as the output of
rdist -v $(pwd)/test 143.45.67.54 which you are trying.
In your first command you used " -c " option which forces the rdist to use remaining arguments as distfile specified format options.
In the second command , rdist is searching for the distfile since -f option is not used and this is a default mode of operation. It will search for a file named as "distfile" in the current directory of the local host.
So if you want to give all those arguments at the command line itself , you should use "-c" option exclusively.
Second option would be put all those arguments in a file named as "distfile" or any other file name as per the specified format in the local host working directory. Then use "-f" option with rdist to specify it. Refer the rdist (1) man page as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2005 04:31 AM
11-21-2005 04:31 AM
Re: Command rdist: distfile: No such file or directory
This is how I setup rdist:
rdist was setup as follows:
created /app/admin/drp
created script to update files tn DR server called update-binaries.sh
created file to store what to update called distfile
/app/admin/drp # cat update-binaries.sh
#! /bin/sh
# Keep the DRP copy of the vgpadm up-to-date.
# Currently the files are in:
#
# /home/vgpadm
#
# See the rdist(1M) distfile for a list of exclusions.
DRPDIR=/app/admin/drp
DRPHOST=svr032
mount | grep /home > /dev/null 2>&1
if [ $? -eq 0 ]
then
( su - vgpadm -c "rdist -f $DRPDIR/distfile vgpadm"; ) 2>&1 |\
tee $DRPDIR/drp.log 2>&1 |\
mailx -s "VGPADM DRP rdist output" gwild@mydomain.com
fi
/app/admin/drp # cat distfile
VGPDR = ( svr032 )
#
# File systems to be copied over to the DR host.
VGPADM = /home/vgpadm
vgpadm: ( ${VGPADM} ) -> ( ${VGPDR} )
install -R -w ;
except ${VGPADM}/logfiles;
Add to cron:
# Copy vgpadm across to the DR site.
05 01 * * * /app/admin/drp/update-binaries.sh
Rgds...Geoff
rdist was setup as follows:
created /app/admin/drp
created script to update files tn DR server called update-binaries.sh
created file to store what to update called distfile
/app/admin/drp # cat update-binaries.sh
#! /bin/sh
# Keep the DRP copy of the vgpadm up-to-date.
# Currently the files are in:
#
# /home/vgpadm
#
# See the rdist(1M) distfile for a list of exclusions.
DRPDIR=/app/admin/drp
DRPHOST=svr032
mount | grep /home > /dev/null 2>&1
if [ $? -eq 0 ]
then
( su - vgpadm -c "rdist -f $DRPDIR/distfile vgpadm"; ) 2>&1 |\
tee $DRPDIR/drp.log 2>&1 |\
mailx -s "VGPADM DRP rdist output" gwild@mydomain.com
fi
/app/admin/drp # cat distfile
VGPDR = ( svr032 )
#
# File systems to be copied over to the DR host.
VGPADM = /home/vgpadm
vgpadm: ( ${VGPADM} ) -> ( ${VGPDR} )
install -R -w ;
except ${VGPADM}/logfiles;
Add to cron:
# Copy vgpadm across to the DR site.
05 01 * * * /app/admin/drp/update-binaries.sh
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP