cancel
Showing results for 
Search instead for 
Did you mean: 

Depot Creation

SOLVED
Go to solution
Srinivasan Palani
Occasional Advisor

Depot Creation

Hi,

I am in the process of upgrading EMC control center.
My current version of ECC is 5.1.20 and the version needs to be upgraded is 6.1
I have a tar file for the ECC 6.1 software. After untar the file I get 3 files.
1.ECC_Hostagent
2.ECC_Masteragent
3.ECC_Oracleagent
I also have a catalog folder and INDEX file appending to above three folders.

I want to create a depot to upgrade the software.
I am appending the INDEX file here, PLease help me in creating the depot for the software
distribution
layout_version 1.0
data_model_revision 2.40
uuid bb9e0e40-aa4b-11dd-a4d8-001321d6908e
mod_time 1225787813
create_time 1225787813
path_max 255
name_max 100
media
sequence_number 1
vendor
tag HP
title "Hewlett-Packard Co."
end
product
tag ECC_MAGENT
data_model_revision 2.40
instance_id 1
control_directory ECC_MAGENT
revision 6.1.0.0.130
title "EMC_MasterAgent"
mod_time 1225787813
create_time 1225787813
vendor_tag HP
directory /view/61hf_losbe213_242/vobs/eccinstall/install/native_agents/HP-UX/ST
AGING/MA
all_filesets FILES
is_locatable true
fileset
tag FILES
data_model_revision 2.40
instance_id 1
control_directory FILES
size 69494716
revision 6.1.0.0.130
mod_time 1225787813
create_time 1225787813
state available

Please help me in creating the depot.
10 REPLIES
Dennis Handly
Acclaimed Contributor

Re: Depot Creation

>After untar the file I get 3 files.

Do NOT untar your depot. You should just use swinstall to install it. You can use swlist to list it:
swlist -s /path-to-depot/ECC-depot-name

>Please help me in creating the depot.

You already have a depot.
Srinivasan Palani
Occasional Advisor

Re: Depot Creation

Great! Thanks for your help.

I again have some questions

I tried upgrading the software with the install_native.sh

This script communicate to these depots and performing the upgrade.

I want to place these depots in central server and like to install this on all other server we have.

Please help me in this
Dennis Handly
Acclaimed Contributor

Re: Depot Creation

>I tried upgrading the software with the install_native.sh. This script communicate to these depots and performing the upgrade.

I have no idea what's in that file but you may have to change the path to the depots.

>I want to place these depots in central server and like to install this on all other server we have.

To be able to access your depots from another machine you have to register them:
swreg -l depot /path-to-depot-1 /path-to-depot-2

Then you can just use swinstall as:
swinstall -s server:/path-to-depot-1
Matti_Kurkela
Honored Contributor
Solution

Re: Depot Creation

.depot files (aka "tape depots") cannot be accessed remotely. You must use swcopy to turn the .depot file into a directory depot in your central server:

swcopy -s /somewhere/EMC-depot-file @ centralserver:/location/EMC-depot-dir \*

or, locally on the central server:

swcopy -s /somewhere/EMC-depot-file @ /location/EMC-depot-dir \*

MK
MK
Srinivasan Palani
Occasional Advisor

Re: Depot Creation

Thanks dor your respone.

I did swcopy of all depots in to a single depot directory.

While doing analysis I get the below error

(pid=22288)

* Beginning Analysis Phase.
* Source: ustcu037.kcc.com:/home/q00726s/ecc.depot
* Target: ustcu027:/
* Target logfile: ustcu027:/var/adm/sw/swagent.log
* Reading source for product information.
* Reading source for file information.
ERROR: You must pass in the Install Location. Please refer to the Install
ERROR: The "checkinstall" script for "ECC_MAGENT" failed (exit code
"1"). The script location was
"/var/tmp/BAAa22288/catalog/ECC_MAGENT/pfiles/checkinstall".
* This script had errors and the execution of this product
cannot proceed until the problem is fixed. Check the above
output from the script for further details.
* Executing preDSA command.
NOTE: All filesets in the product "ECC_MAGENT,r=6.1.0.0.130" will be
excluded because there was an error in this product.

* Summary of Analysis Phase:
ERROR: Exclude ECC_MAGENT.FILES,r=6.1.0.0.130
ERROR: 1 of 1 filesets had Errors. ERROR: The Analysis Phase had errors. See the above output for
details.


Please help
Dennis Handly
Acclaimed Contributor

Re: Depot Creation

>ERROR: You must pass in the Install Location. Please refer to the Install

I would suggest you read the document.
I suppose you could look at /var/tmp/BAAa22288/catalog/ECC_MAGENT/pfiles/checkinstall and see what variable should be set.
Devender Khatana
Honored Contributor

Re: Depot Creation

#swinstall -p -s central_server_hostname:/path_to_depot/depot_name \*

This command should help you to install the patch from a central server without requiring to copy it to each server. The -p option is to run the installation preview only. Once the preview is successful, execute the same command without -p option.

Some additional arguments also could be required to make it successful (like mount_all_filesystems).

The communication between central server and the clients is mendatory for this to work.

HTH,
Devender
Impossible itself mentions "I m possible"
Steven E. Protter
Exalted Contributor

Re: Depot Creation

Shalom,

remote depots may require this command:

swreg -d depot

In the depot

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Srinivasan Palani
Occasional Advisor

Re: Depot Creation

I have a tar file for ecc 6.1 upgrade. After untar I could see 3 agent files in tar format and also a install_native.sh script

Please find the tar file, install script and HP-UX directory holding 3 agent files

ustcu027 root /depots/dev/patches/ECC > ll total 402266
drwxr-xr-x 2 root root 96 Jul 2 00:11 HP-UX
-rw-r----- 1 q00925s ux_users 205904384 Jul 2 00:05 hpux_native_130.tar
-rwxrwxrwx 1 root root 46308 Nov 4 2008 install_native.sh

ustcu027 root /depots/dev/patches/ECC/HP-UX > ll total 402092
-rw-r--r-- 1 root root 23982080 Nov 4 2008 ECCHAGT
-rw-r--r-- 1 root root 70492160 Nov 4 2008 ECCMAGT
-rw-r--r-- 1 root root 111380480 Nov 4 2008 ECCOAGT

I understand that the install script should be used to upgrade ecc software on HP-UX.
My question here is , I want to create the ecc 6.1 as a software depot so that I can use swinstall to upgrade all unix servers by having the depot in central location.
Dennis Handly
Acclaimed Contributor

Re: Depot Creation

>After untar I could see 3 agent files in tar format and also a install_native.sh script

(These aren't really tar format, these are depots.) You would need to modify install_native.sh such that the swinstall commands point to the depot(s) on your central site.

And as Matti said above, use swcopy to create a directory depot.

>I want to create the ecc 6.1 as a software depot

You said you did that.

>Matti: .depot files (aka "tape depots") cannot be accessed remotely.

Hmm, swreg doesn't tell you that. You can swlist them but not swcopy nor swinstall.