Failures with parameter "value"

(imported topic written by SystemAdmin)

In the following fixlet code, a parameter is set and then used to do a mkdir, then checked, but fails relevance.

The directory /tmp/tsm_install does exist on the system, so I can’t figure out why this does not work

// Setup parameters

parameter “SOURCEDIR” = “/tmp/tsm_install/”

if { not exist folder (parameter “SOURCEDIR”) }

wait sh -c “mkdir {parameter “SOURCEDIR”}”

endif

continue if {exist folder “parameter “SOURCEDIR””}

When run, the directory /tmp/tsm_install does get created, but the continue if fails as seen below from the log

Command succeeded parameter “SOURCEDIR” = “/tmp/tsm_install/” (fixlet 1536)

Command succeeded (Exit Code=0) wait sh -c “mkdir /tmp/tsm_install/” (fixlet 1536)

Command failed (Relevance substitution failed) continue if {exist folder “(parameter “SOURCEDIR”)”} (fixlet 1536)

If I eliminate the continue if above knowing that the /tmp/tsm_install directory is present, this net command fails as well. It’s like bigfix does not evaluate the parameter SOURCEDIR as /tmp/tsm_install properly

// Linux (OEL, Redhat and SuSE)

if {exist (operating system) whose (it as string as lowercase contains “linux”)}

download http://cbclnxadmin/ks/linux/tsm/5.5.0.6-TIV-TSMBAC-LinuxX86.tar

wait sh -c “cd {parameter “SOURCEDIR”}; tar __Download/5.5.0.6-TIV-TSMBAC-LinuxX86.tar”

endif

(imported comment written by NoahSalzman)

I think you want

continue if {exist folder parameter “SOURCEDIR”}

(imported comment written by SystemAdmin)

No still fails with directory existing on system…

ls -l /tmp

drwxr-xr-x 2 root root 4096 Mar 24 09:23 tsm_install

In log:

Command succeeded parameter “SOURCEDIR” = “/tmp/tsm_install/” (fixlet 1571)

Command failed (Relevance substitution failed) continue if {exist folder parameter “SOURCEDIR”} (fixlet 1571)

Checking QNA:

Q: exist folder “/tmp/tsm_install”

A: True

T: 6872

Q: exists folder “/tmp/tsm_install”

A: True

T: 153

(imported comment written by BenKus)

I think you want this (parenthesis and no quotes):

continue if {exist folder (parameter “SOURCEDIR”)}

Ben

(imported comment written by SystemAdmin)

Is this the case for putting any relevance inside of another relevance?

if {exists names of files whose ( name of it contains “dsm.”) of folder “/usr/bin”}

now add more to it… using a parameter defined at beginning of action script as

parameter “INSTALLDIR” = “/opt/tivoli/tsm/client/ba/bin/” is the statement below correct???

if {exists names of files whose ( name of it contains “dsm.”) of folder (parameter “INSTALLDIR”)