none
SCOM agent doesn't want install on AIX without root privileges

    Question

  • My issue about SCOM agent at the IBM AIX 7.1

     When I’m trying to discover with non root account.  I’m got next message:

    Agent installation operation was not successful

    Failed to install kit. Exit code: 126

    Standard Output:

    Standard Error: ksh: /usr/sbin/installp: 0403-006 Execute permission denied.

    If I’m trying to modify user privileges in sudoers file or run application from root security context all operations was been success.

    The text below provides content of /etc/sudoers:

    #--------------------------------------------------------------------------------

    #General requirements

    Defaults:scomu !requiretty

    #Agent maintenance (discovery, install, uninstall, upgrade, restart, cert signing)

    scomu ALL=(root) NOPASSWD: /bin/sh -c cp /tmp/scomu/scx.pem /etc/opt/microsoft/scx/ssl/scx.pem; rm -rf /tmp/scx-scomu; /opt/microsoft/scx/bin/tools/scxadmin -restart

    scomu ALL=(root) NOPASSWD: /bin/sh -c sh /tmp/scomu/GetOSVersion.sh; EC=$?; rm -rf /tmp/scx- scomu; exit $EC

    scomu _PA ALL=(root) NOPASSWD: /bin/sh -c cat /etc/opt/microsoft/scx/ssl/scx.pem

    scomu ALL=(root) NOPASSWD: /bin/sh -c /usr/sbin/installp -u scx

    scomu ALL=(root) NOPASSWD: /usr/bin/sh -c gzip -dqf /tmp/scomu/scx-1.[0-9].[0-9]-[0-9][0-9][0-9].aix.[0-9].ppc.lpp.gz;/usr/sbin/installp -a -d /tmp/scx-scomu /scx-1.[0-9].[0-9]-[0-9][0-9][0-9].aix.[0-9].ppc.lpp scx; EC=$?; cd /tmp; rm -rf /tmp/scx- scomu;exit $EC

    #Log file monitoring

    scomu ALL=(root) NOPASSWD: /opt/microsoft/scx/bin/scxlogfilereader -p

    scomu ALL=(root) NOPASSWD: /usr/sbin/installp

    #--------------------------------------------------------------------------------

     

    Which content I must add to sudoers for correct a behavior of SCOM installation and discovery agent?



    • Edited by xeon22 Thursday, March 23, 2017 7:36 AM
    Wednesday, March 22, 2017 1:29 PM

All replies