Unix platform specifics - AIX

Note

  • The Java version on the target machine must correspond to the Java version required by the agent.

  • The user of the AIX system that executes the scan must be a member of the administrator's group.

Remote copy mode

On the computer that will run the script for the remote scan:

  1. Copy the files snowagent.jar and snowagent.config to the current folder (copy from an existing agent installation). If Oracle inventory option is to be used, place sios.jar in the same folder.

  2. Example script:

    ssh <USER>@<REMOTE_MACHINE> mkdir -p <TEMP_DIR>
    
    scp snowagent.jar <USER>@<REMOTE_MACHINE>:<TEMP_DIR>
    
    scp snowagent.config <USER>@<REMOTE_MACHINE>:<TEMP_DIR>/snowagent.config
    
    ssh <USER>@<REMOTE_MACHINE> chmod 700 <TEMP_DIR>/snowagent.jar
    
    ssh -t <USER>@<REMOTE_MACHINE> 'cd <TEMP_DIR>;sudo <JAVA_LOCATION> -jar <TEMP_DIR>/snowagent.jar'
    
    ssh -t <USER>@<REMOTE_MACHINE> 'rm -rf <TEMP_DIR>'

    Where:

    Parameter

    Description

    <JAVA_LOCATION>

    Path to the Java executable, for example /usr/java8_64/jre/bin/java.

  3. In the case Oracle inventory scan is required, add the following command to the script after copying snowagent.config:

    scp sios.jar <USER>@<REMOTE_MACHINE>:<TEMP_DIR>/sios.jar
  4. In the case a server endpoint is not configured, run snowagent with only “scan” option and then retrieve result files from the machine as following:

    ssh -t <USER>@<REMOTE_MACHINE> 'cd <TEMP_DIR>;sudo <JAVA_LOCATION> -jar <TEMP_DIR>/snowagent.jar scan'
    
    scp -rp <USER>@<REMOTE_MACHINE>:<TEMP_DIR>/data ..

Net share mode

Note

  • The system package bos.cifs_fs.rte and its dependencies must be installed. You may check if the package is present by running

    lslpp -L |grep cifs
  • To install the package, use the official AIX installation media.

On the computer that will run the script for remote scan:

  1. Copy the files snowagent.jar and snowagent.config to the shared network folder

    \\<NET_SHARE_ADDRESS>\<NET_SHARE_FOLDER> (copy from an existing agent installation).

    If Oracle inventory option is to be used, place sios.jar in the same folder.

    In this example, we will assume that snowagent.jar is to be put in the following folder:

    \\<NET_SHARE_ADDRESS>\<NET_SHARE_FOLDER>\aix\

  2. Example script:

    ssh <USER>@<REMOTE_MACHINE> mount -v cifs -n <NET_SHARE_ADDRESS> -o fmode=777 /<NET_SHARE_FOLDER> <TEMP_DIR>
    
    ssh <USER>@<REMOTE_MACHINE> mkdir <TEMP_DIR>/aix/<TARGET_NAME>
    
    ssh <USER>@<REMOTE_MACHINE> 'cd <TEMP_DIR>/aix/<TARGET_NAME>; sudo java -jar ../snowagent.jar'
    
    ssh <USER>@<REMOTE_MACHINE> 'cd <TEMP_DIR>/../; umount <TEMP_DIR>'

    Where:

    Parameter

    Description

    <JAVA_LOCATION>

    Path to the Java executable, for example /usr/java8_64/jre/bin/java.

    <TEMP_DIR>

    Temporary folder which the shared network folder will be mounted to, for example /tmp/snowagent.

    <NET_SHARE_ADDRESS>

    Host name or IP address of the machine that hosts the shared folder.

    <NET_SHARE_FOLDER>

    Name of the shared folder on the <NET_SHARE_ADDRESS> machine.

  3. In the case a server endpoint is not configured, run snowagent with only “scan” option as following:

    ssh <USER>@<REMOTE_MACHINE> 'cd <TEMP_DIR>/aix/<TARGET_NAME>; sudo java -jar ../snowagent.jar scan'