Operating System - HP-UX
1753781 Members
7500 Online
108799 Solutions
New Discussion юеВ

Re: exrequisite in sw_sel explanation needed

 
SOLVED
Go to solution
Jeff_Traigle
Honored Contributor

exrequisite in sw_sel explanation needed

I'm trying to set up software selection so that the selection of one bundle excludes the ability to select another. This seems pretty simple frm the instl_adm(4) man page... use exrequisite. Here's my apps_cfg where I'm trying to set this up:

#########################################################
## Software Sources
#########################################################

sw_source "/var/spool/sw" {
source_type = "NET"
sd_server = "192.168.0.11"
sd_depot_dir = "/var/spool/sw"
source_format = SD
}

sw_category "JDO Software" {
description = "Software for JDO systems"
}

sw_category "On-site Software" {
description = "Software for On-site systems"
}

sw_category "JDIS Software" {
description = "Software for all JDIS systems"
}

######################################################
## Other Software
#####################################################

sw_sel "b_Netbackup" {
description = "(Netbackup) VERITAS Netbackup"
sw_source = "/var/spool/sw"
sw_category = "JDO Software"
sd_software_list = "b_Netbackup,r=4.5GA,a=HPUX_B.11_32/64"
exrequisite = "On-site Software"
impacts = "/usr" 147523Kb
}

sw_sel "b_JDISAdmin" {
description = "(JDISAdmin) JDIS Admin Scripts"
sw_source = "/var/spool/sw"
sw_category = "JDIS Software"
sd_software_list = "b_JDISAdmin,r=1.0,a=HPUX_B.11_32/64"
impacts = "/opt" 299Kb
} = TRUE

sw_sel "b_APC" {
description = "(APC) APC Powerchute Plus"
sw_source = "/var/spool/sw"
sw_category = "On-site Software"
sd_software_list = "b_APC,r=4.2.3,a=HPUX_B.11_32/64"
exrequisite = "JDO Software"
post_config_cmd+="touch /onsite"
impacts = "/sbin" 24Kb
impacts = "/opt" 8458Kb
impacts = "/etc" 8Kb
}

The exclusion doesn't work, however. I'm able to select both Netbackup and Powerchute in the Ignite UI. Am I missing something or is something in Ignite broken? (Using v4.4.29 on 11i v1)

The reason I'm trying to do it this way instead of having separate cfg entries in INDEX (which works wonderfully well) is the install process must be from tape because the outsource company doesn't have an Ignite server and the likelihood we'll provide one for them is minimal. In reading all of the Ignite documentation and trying things, it seems I can't modify the INDEX on the LIF volume going to tape to accomodate this. (If that's not correct, by all means, let me know... I'd rather do it that way and copy what my server configuration is. :)
--
Jeff Traigle
3 REPLIES 3
Kent Ostby
Honored Contributor
Solution

Re: exrequisite in sw_sel explanation needed

I havent used this feature, but my reading of the man page is that you would have to use the tag defined by a "sw_sel" versus the tag defined by a "sw_category".

So you would want in the first case to have:
exrequisite="b_APC".

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Jeff_Traigle
Honored Contributor

Re: exrequisite in sw_sel explanation needed

Thanks, Kent. That was it. In all the reading, got my exrequisite stuff confused. Joy joy. :)
--
Jeff Traigle
Jeff_Traigle
Honored Contributor

Re: exrequisite in sw_sel explanation needed

BTW... since I have to do things this way and one or the other of Powerchute or Netbackup must be installed... is there a way to enforce that? I don't recall seeing anything that looked promising to handle that, but that doesn't mean much at this point. :)
--
Jeff Traigle