- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swpackage to tape
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
08-22-2005 06:00 AM
08-22-2005 06:00 AM
can someone help me with this procedure? or best practice?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:19 AM
08-22-2005 06:19 AM
Solutionpatchdir=/some/directory/name
cd $patchdir
DEPOT=$PWD/depot
for PATCH in *.depot
do
swcopy -x enforce_dependencies=FALSE \
-x mount_all_filesystems=FALSE \
-x reinstall=TRUE \
-x write_remote_files=TRUE \
-x layout_version=1.0 \
-d -s $PWD/$PATCH.depot \* @ $DEPOT
swpackage -s $PSF \
-x write_remote_files=TRUE \
-x layout_version=1.0 \
@ $DEPOT
swverify -d -x mount_all_filesystems=FALSE \
-x enforce_dependencies=FALSE \
\* @ $DEPOT
if [ $? -ne 0 ]; then
{
echo "ERROR: swverify of depot failed."
ERRORS=1
}
fi
if [ $ERRORS -eq 1 ]; then
echo "ERROR: Errors were found while building depot."
fi
tar -cvf /dev/rmt/0m depot
---------------------
on the other system
patchdir=/some/directory/name
cd $patchdir
tar -xvf /dev/rmt/0m
swreg -l depot $PWD/depot
swinstall -s $PWD/depot
----------------------------
This may not be what you are looking for. You may want the tape to be used as a depot but, if you do not have severe space problems on either servers, I would suggest using the tape just a s a transport container nothing more. Installing software from a disk depot is much faster than doing it via tape.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:20 AM
08-22-2005 06:20 AM
Re: swpackage to tape
never tried to to tape this might work.
swcopy -s {list} {of} {patches} @ {tapedevice}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:35 AM
08-22-2005 06:35 AM
Re: swpackage to tape
swpackage -s /patch/depot -x media_type=tape @ /dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:50 AM
08-22-2005 06:50 AM
Re: swpackage to tape
* Writing the tape "/dev/rmt/0m" (tape 1 of 1).
* Writing the fileset "PHKL_31500.100BT-KRN" (1 of 159)
ERROR: Cannot open file
"/h07/patches/depot/PHKL_31500/100BT-KRN/usr/conf/lib/libbtlan.a".
No such file or directory (2).
ERROR: Failed to write the software object: "fileset contents" to the
output tape file.
* Removing the temporary depot.
now, PHKL_31500 is not in the depot but it is a dependency of one of the patches that i want on the tape. PHKL_31500 is however installed on the system. any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:53 AM
08-22-2005 06:53 AM
Re: swpackage to tape
Add '-x autoselect_dependencies=false' to your swcopy/swpackage command line...
--Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:00 AM
08-22-2005 07:00 AM
Re: swpackage to tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:38 AM
08-22-2005 07:38 AM
Re: swpackage to tape
Not sure why you'd still be getting this error with the new parameter, but please provide the exact command that's generating the error.
Have you tried to package all these patches into a bundle using 'make_bundles'?
Also, are you using a tape because you don't have network access from the systems you want to install the patches to the server where your patches are located? Don't know if you knew that if you put all the patches into a depot, you can pull them across the network to your target servers.
--Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:57 AM
08-22-2005 07:57 AM
Re: swpackage to tape
PHKL_31500 is a 100MB patch "s700_800 11.23 Sept04 base patch"
If you have good internet speed , it can be downloaded from itrc site in 10 min.
and the tar file can be extracted and , it will create the depo file , and can be installed easily , with
# swinstall -s /depotdir/filename.depot
Cheers.
Raj.