This packager create a standalone executable for linux with configuration setup. The created packager doesn't require any modification or dependencies installation on the system which can be helpful depending on business security policy.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.gitignore
LICENSE
PerlModulesDownloadList.txt
README.md
packageOCSAgent.config
packageOCSAgent.sh

README.md

OCS Agent Unix Packager

Banner

OCS Agent Standalone Unix Packager

Some Links:
Ask question | Website | OCS Professional

Description

The aim of this script is to create a all in one package to be deployed on every Linux machine. The package embeds compiled Perl for the related OS, OCS Agent perl package, and all required perl mudules.

  • packageOCSAgent.config: packager configuration
    • PROXY_HOST if you have direct Internet connection
    • OCS_INSTALL_DIR: OCS Agent installation directory
    • PERL_VERSION: Perl version you want to compile and embed in OCS package
    • PERL_DL_LINK: Perl download link
    • OCSAGENT_DL_LINK: OCS Agent download link
    • NMAP_DL_LINK: Nmap download link
    • OCS_AGENT_CRONTAB: [0-1] Create script to add crontab on system
    • OCS_AGENT_CRONTAB_HOUR: How many hour between each crontab call
    • OCS_AGENT_LAZY: [0-1] Activate lazy mode on Agent
    • OCS_AGENT_TAG: Set default tag
    • OCS_SERVER_URL: Set server URL
    • OCS_SSL_ENABLED: [0-1] Enable SSL check
    • OCS_SSL_CERTIFICATE_FULL_PATH: Path to the certificate
    • OCS_LOG_FILE: [0-1] Enable file logging feature
    • OCS_LOG_FILE_PATH: Set the log path file
  • PerlModulesDownloadList.txt: download URL for all Perl modules dependencies
  • packageOCSAgent.sh: packager script

Usage

As root user

#./packageOCSAgent.sh

Output is a tar/gz archive: ocsinventory-agent_LinuxDistribution_MajorVersion.tar.gz

Todo

  1. Bypass current limitations

Current Limitation

  1. nmap command line path is not referenced in Perl module, thus, IP Discovery function does not work