1831061 Members
2546 Online
110019 Solutions
New Discussion

swmodify question

 
Raf_L
Occasional Advisor

swmodify question

Team,

on my depot server (original):
[u51cf28:/root]# swlist -l product @ /tmp/RAF/rafdepot/ | more
# Initializing...
# Contacting target "u51cf28"...
#
# Target: u51cf28:/tmp/RAF/rafdepot/
#

BindUpgrade C.9.3.2.3.0 BIND special release upgrade
Lsof A.12.00-4.81.001 Tool to report a list of all open files and theprocesses that opened them
PHNE_33766 1.0 Bind 8.1.2 Patch
WBEMServices A.02.07.04 WBEM Services CORE Product for hp 9000 servers
WBEMServices A.02.07.04 WBEM Services CORE Product
WBEMServices A.02.05.08 WBEM Services CORE Product


Then I tried:
[u51cf28:/root]# swmodify -d -a title="test1" WBEMServices @ /tmp/RAF/rafdepot/
[u51cf28:/root]# swlist -l product @ /tmp/RAF/rafdepot/ | more
# Initializing...
# Contacting target "u51cf28"...
#
# Target: u51cf28:/tmp/RAF/rafdepot/
#

BindUpgrade C.9.3.2.3.0 BIND special release upgrade
Lsof A.12.00-4.81.001 new string
PHNE_33766 1.0 Bind 8.1.2 Patch
WBEMServices A.02.07.04 test1
WBEMServices A.02.07.04 test1
WBEMServices A.02.05.08 test1


So that worked.

Question: how to use swmodify to only change an attribute of 1 target ?
Reason for asking: we are using software X; However, X has 2 different versions (1 for PA, 1 for IA64) but both look identical in swlist.
So I would like to "rename" X to Y for the PA version and X to Z for the IA64 version.
(more or less the same here with WBEM, but for WBEM the versions do differ; in my case, even the versions are the same)

could you help ?
(so in brief: how to use swmodify to change an attribute (name, title) of a particular product in a depot ?

thx,

Raf
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: swmodify question

I would suggest you leave swmodify to the experts.

>Question: how to use swmodify to only change an attribute of 1 target?

You need to specify the software_spec on the end of "WBEMServices".

>we are using software X; However, X has 2 different versions (1 for PA, 1 for IA64) but both look identical in swlist.

Why do you need to change the title? swinstall knows to install the proper version. No need to have humans involved.

You need to tell swlist to list the software_spec, which mentions PA or IPF.
swlist -l fileset -a software_spec -s /tmp/RAF/rafdepot/
Raf_L
Occasional Advisor

Re: swmodify question

Solved the problem myself

[u51cf28:/root]# swmodify -d -a title="test4" WBEMServices,r=A.02.05.08 @ /tmp/RAF/rafdepot/
[u51cf28:/root]# swlist -l product @ /tmp/RAF/rafdepot/
# Initializing...
# Contacting target "u51cf28"...
#
# Target: u51cf28:/tmp/RAF/rafdepot/
#

BindUpgrade C.9.3.2.3.0 BIND special release upgrade
Lsof A.12.00-4.81.001 new string
PHNE_33766 1.0 Bind 8.1.2 Patch
WBEMServices A.02.07.04 test3
WBEMServices A.02.07.04 test3
WBEMServices A.02.05.08 test4
Steven E. Protter
Exalted Contributor

Re: swmodify question

Shalom,

This software is designed, one version per system.

Trying to run two versions on the same system will likely leave you with nothing working at all.

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
Dennis Handly
Acclaimed Contributor

Re: swmodify question

>Solved the problem myself
>swmodify -d -a title="test4" WBEMServices,r=A.02.05.08 @ /tmp/RAF/rafdepot/

Yes, that ",r=" was what I was referring to.