Update Endpoint Task (AIX 64-bit)

Hi All,

When ever I am trying to deploy Update Endpoint task on AIX Servers its getting failed with exit code 1.

Can anyone please let me know is there any bug with Update Endpoint -(AIX 64-bit) fixlet

Any help will be highly appreciated :slight_smile:

We need to gather more information, have you checked the Client Logs?

I don’t have the client log file from AIX Server but in action info I can see last line of fixlet is getting failed.
Please see the below action info content

Completed
// JRE extract and install

Completed
wait gunzip -f {client folder of current
site}/__Download/jre764redist.tar.gz

Completed
if {exit code of action != 0}

Failed
exit {exit code of action as integer}

endif

wait tar xf {client folder of current
site}/__Download/jre764redist.tar

if {exit code of action != 0}

exit {exit code of action as integer}

endif

wait mv -f {client folder of current site}/jre {storage folder of
client}/__GTS/__IEMHC/jre

if {exit code of action != 0}

exit {exit code of action as integer}

endif

appendfile
1f5d4dd2cbf0d21105ee0c78ce668a97fe3c2a72e32cd450c4b4d4167809d4d5

move __appendfile “{storage folder of
client}/__GTS/__IEMHC/jre/sha256.txt”

// Last Change

appendfile {now as string}

// Version

appendfile {parameter “version”}

// Build ID

appendfile {parameter “build_id”}

// create the version file

delete “{storage folder of
client}/__GTS/__IEMHC/version.txt”

move __appendfile “{storage folder of
client}/__GTS/__IEMHC/version.txt”

// append JRE version to end

appendfile #!/bin/sh

appendfile “{storage folder of client}/__GTS/__IEMHC/jre/bin/java”
-version >> “{storage folder of client}/__GTS/__IEMHC/version.txt”
2>&1

delete launch.sh

move __appendfile launch.sh

wait chmod 750 launch.sh

wait “{client folder of current site}/launch.sh”

// HCLauncher version

appendfile #!/bin/sh

appendfile “{storage folder of client}/__GTS/__IEMHC/jre/bin/java” -jar
“{storage folder of client}/__GTS/__IEMHC/HCLauncher/HCLauncher.jar” -version

“{storage folder of client}/__GTS/__IEMHC/HCLauncher/version.txt”
2>&1

delete launch.sh

move __appendfile launch.sh

wait chmod 750 launch.sh

wait “{client folder of current site}/launch.sh”

// clean up the work folder

folder delete “{storage folder of
client}/__GTS/__IEMHC/Temp”

Note:- This Problem we are facing on all the AIX Servers

That’s not the whole log, but…is there enough space on the filesystem where BESData is located to unzip the JRE package? The failure appears to be on the command that runs gunzip to extract the Java runtime.

Yes there is around 1GB of free space in
/var/opt/BESClient.

does the file {client folder of current site}/__Download/jre764redist.tar.gz exist?

What are you trying to update?

The Fixlet seems to be a GTS Fixlet from Internal GTS Content, why don’t you use the Bigfix Fixlet to upgrade the Endpoints?

This Fixlet is basically used for Health check. I am not able to find any Update Endpoint task from BES support Site in IBM BigFix Console.

I would check if that file exists.

And yes, in BES Support there are fixlets to upgrade BESClients.

Yes that I know…here for the fixlet which we are talking about is not upgrading the BES Client. Its about the Update endpoints which will pull the health check information from the AIX servers.

From the man page for gunzip

Exit status is normally 0; if an error occurs, exit status is 1. If a warning occurs, exit status is 2.

So as you are checking for a not equal to 0 case, if a warning happens you are treating this as a failure.

As to 1GB being free, that might not be true while your action is running. The space can quickly get eaten up and the extraction could be large (remember you will have at least 2 copies of the download still around)