BESClient Issue on Linux

Yes, we are doing the same. I have used both the CDT and the deploy from BES Console. But it was failed but at the final phase of the agent deployment we need to select the architecture and we don’t see anything to select the 32-bit or i686.

I tried using this bash script on ubuntu DMZ client machine where it should connect to DMZ relay server. even if I have wget & curl installed its throwing an error saying wget or curl is not installed So it cant download the required files. Please suggest if I am missing something here.

Tagging in @jgstew

Do you have the curl binaries in your $PATH, or installed in some none-defwult location? If you run the ‘curl’ command.manually does it work?

1 Like

I am able to run the curl command successfully, just tried downloading a file from sample link & it works.
I have installed it on default location …starter with linux so dont have a good inside on how to set the $PATH… I have installed it on random directory…

Ok, then either install curl into the default system directory, or update the bash script to reference curl by the location where you installed it. Or use the normal client installation instructions.

2 Likes

The install_bigfix script tests for both curl and wget in the PATH and uses whichever it finds. Not sure why it wouldn’t work in this case. I’d have to double check that there isn’t an issue if both are installed.

1 Like

I’m testing if a particular command exists using the following: https://github.com/jgstew/tools/blob/fb91f28eb3abe1e7d277869b54a89855623da76f/bash/install_bigfix.sh#L27

# http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script
# http://www.tldp.org/LDP/abs/html/functions.html
# FUNCTION: check if command exists
command_exists () {
  type "$1" &> /dev/null ;
}

Then the actual use is here: https://github.com/jgstew/tools/blob/fb91f28eb3abe1e7d277869b54a89855623da76f/bash/install_bigfix.sh#L192

if command_exists curl ; then

In the script I prefer curl and use it if found, else use wget.

If curl or wget were recently installed, then it is possible a reboot would be required for the script to see them properly, or something else is causing the script to not find them.

In most of my testing, every platform had either curl or wget preinstalled, so if I covered both cases, then all cases would work. If that isn’t the case, I would love to know more specifics about the edge case platforms that it is not working on. Would need to know the exact versions and a bit more about it.

I did find that curl and wget was missing on Ubuntu/Debian Docker Images and address that outside of the script here: https://github.com/jgstew/tools/blob/master/bash/docker_bigfix_client.sh

I could probably add some extra fallbacks for looking for wget/curl to be installed, as well as offering to install them if missing automatically. Same goes for initscripts and any other prereqs.

3 Likes

Hello All the members of this forum,

Good evening…

I ma new to Bigfix …

looking for help …

Can some one help me how the Bigfix agent is communicating to IBM LMT …and also need help how to generate IBM license monitoring tool

Thanks and Regards
Venkatesh K

I think you should probably start a new thread for your query…this is a response to an unrelated thread that’s over a year old.

1 Like