AIX install of spb

(imported topic written by SystemAdmin)

I am trying a hybrid here. I used the software dashboard to upload an spb for an AIX install of a monitoring agent. With that I used the prefect code that was in the fixlet, then tried to build an install fixlet.

Below is my script. It is BigFix action script (should I use shell script instead? If so, how is it written?)

download http://servername/Uploads/9c87cbd8ad603daf54e80b08036257f8cecbc9fd/ux_062205000_aix526.tmp

continue if {(size of it = 84517 AND sha1 of it = “9c87cbd8ad603daf54e80b08036257f8cecbc9fd”) of file “ux_062205000_aix526.tmp” of folder “__Download”}

extract ux_062205000_aix526.tmp

// Create install directory, move install directory to new path

wait sh -c “mkdir /apps/opt/IBM/ITM/tmaitm6/agentdepot/ux_062205000_aix526/”

wait sh -c “mv __Download/ux_062205000_aix526 /apps/opt/IBM/ITM/tmaitm6/agentdepot/ux_062205000_aix526/”

// Install the agent

wait sh -c “cd /apps/opt/IBM/ITM/tmaitm6/agentdepot/ux_062205000_aix526/”

wait sh -c “./silentInstall.sh”

// Cleanup install directory

wait sh “rm -rf /apps/opt/IBM/ITM/tmaitm6/agentdepot/”

(imported comment written by BenKus)

Where is it failing?

Ben

(imported comment written by SystemAdmin)

Hi Ben

It isnt failing, is completes the action, but nothing happens. I am still tinkering with this one.

(imported comment written by SystemAdmin)

I changed my script from Action to sh script. Will this work? I am curious about the download task being copied from an actions cript to a sh script.

#!/bin/sh

download http://HDWPBGFX02.hdmc.harley-davidson.com:52311/Uploads/9c87cbd8ad603daf54e80b08036257f8cecbc9fd/ux_062205000_aix526.tmp

continue if {(size of it = 84517 AND sha1 of it = “9c87cbd8ad603daf54e80b08036257f8cecbc9fd”) of file “ux_062205000_aix526.tmp” of folder “__Download”}

extract ux_062205000_aix526.tmp

// Create install directory, move install directory to new path

/usr/bin/sh -c "/usr/bin/mkdir /apps/opt/IBM/ITM/tmaitm6/agentdepot/ux_062205000_aix526/

/usr/bin/sh -c "/usr/bin/mv __Download/ux_062205000_aix526 /apps/opt/IBM/ITM/tmaitm6/agentdepot/ux_062205000_aix526/

// Install the agent

/usr/bin/sh -c "cd /apps/opt/IBM/ITM/tmaitm6/agentdepot/ux_062205000_aix526/

/usr/bin/sh -c "./silentInstall.sh

// Cleanup install directory

/usr/bin/sh "rm -rf /apps/opt/IBM/ITM/tmaitm6/agentdepot/

(imported comment written by SystemAdmin)

Well, for starters, it looks like the whole file isnt on the TEM server. I tried uploading the file directory (which contains the installer .sh) using the windows dashboard, just to get it in TEM. Is there a recommended way to do this?

Edit: Windows Software Distribution Dashboard is what I used to get the installer directory in TEM.