IBM Support

IZ65390: DISCOVERY HP NOT WORKING FINE DUE TO LSOF TIMEOUT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Lsof command time out on customer env. Customer can not change
    time out for lsof command becaus it is hard code in sensor.
    Time out for lsof command need to be it configurable.
    Additionally customer may see error:
    .
    ERROR os.HpUxOs - CTJTP0322E Unable to get port map because the
    following command fails: [sudo lsof -nP -i -C | awk '{print $2,
    $9, $10}' | sort -k 2 | uniq -f 1]
    .
    Lsof command time out on customer env. Customer can not change
    time out for lsof command becaus it is hard code in sensor.
    Time out for lsof command need to be it configurable.
    Additionally customer may see error:
    .
    ERROR os.HpUxOs - CTJTP0322E Unable to get port map because the
    following command fails: [sudo lsof -nP -i -C | awk '{print $2,
    $9, $10}' | sort -k 2 | uniq -f 1]
    .
    com.collation.platform.os.OsException: CTJTP1140E The Command
    [LC_ALL=C; LANG=C;export LANG LC_ALL;sudo lsof -nP -i -C | awk
    '{print $2, $9, $10} ' | sort -k 2 | uniq -f 1] failed in
    session ssh2:/HostAuthcom.collation
    .platform.security.auth.HostAuth[taddm][XXXXX]/null@10.2.72.59:2
    153:  timed out after 240.474 seconds.                at
    com.collation.platform.os.OsException.wrap(OsException.java:74)
     at
    com.collation.platform.os.UnixOs.executeCommand(UnixOs.java:124)
     at com.collation.platform.os.OsCmd.execute(OsCmd.java:60)
     at
    com.collation.platform.os.UnixOs.getPortMap(UnixOs.java:2162)
     at
    com.collation.platform.os.AbstractOs.buildProcessPortMap(Abstrac
    tOs.java:339)
     at
    com.collation.platform.os.AbstractOs.buildProcessPortMap(Abstrac
    tOs.
    java:314)
     at
    com.collation.platform.os.AbstractOs.getTcpPortMap(AbstractOs.ja
    va:1141)
     at com.ibm.cdb.discover.sensor.app.genericserver.
    GenericServerSensor.discoverServers(GenericServerSensor.java:131
    )
     at com.ibm.cdb.discover.sensor.app.genericserver.
    GenericServerSensor.discover(GenericServerSensor.java:107)
     at
    com.collation.discover.engine.AgentRunner.run(AgentRunner.java:1
    55)
     at
    com.collation.discover.engine.DiscoverEngine.processWorkItem(Dis
    coverEngine.java:1409)
     at
    com.collation.discover.engine.DiscoverEngine$DiscoverWorker.run(
    DiscoverEngine.java:951)
    .
    Caused by:
    com.collation.platform.session.SessionClientException:
    CTJTP1140E The Command [LC_ALL=C;LANG=C;export LANG LC_ALL;sudo
    lsof -nP -i -C | awk '{print $2, $9, $10}' | sort -k 2 | uniq -f
    1] failed in session
    ssh2:/HostAuthcom.collation.platform.security.auth.HostAuth[tadd
    m][XXXXX ]/null@10.2.72.59:2153:  timed out after 240.474
    seconds.
     at
    com.collation.platform.session.SshSessionClient.executeCommand1(
    SshSessionClient.java:352)
     at
    com.collation.platform.session.SshSessionClient$SshExecRetry.
    callback(SshSessionClient.java:173)
     at
    com.collation.platform.session.SshRetry.call(SshRetry.java:80)
     at
    com.collation.platform.session.SshSessionClient.executeCommand(S
    shSessionClient.java:202)
     at
    com.collation.platform.session.AbstractSessionClient.executeComm
    and(AbstractSessionClient.java:123)
     at
    com.collation.platform.session.SessionClientPool.executeCommand(
    SessionClientPool.java:230)
     at
    com.collation.platform.os.UnixOs.executeCommand(UnixOs.java:122)
    

Local fix

Problem summary

  • Time out for lsof command need to be
    configurable. Additionally in log we may see error: . ERROR
    os.HpUxOs - CTJTP0322E
    Unable to get port map because the following command fails:
    [sudo lsof -nP -i -C
    | awk '{print $2, $9, $10}' | sort -k 2 | uniq -f 1] . Lsof
    command time out.
    

Problem conclusion

  • The fix for this APAR is contained in the following
    maintenance packages:
    | Fix Pack | 7.1.2.0-TIV-ITADDM-FP0006
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ65390

  • Reported component name

    APP DEPENDENCY

  • Reported component ID

    5724N5500

  • Reported release

    712

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-11-17

  • Closed date

    2009-12-29

  • Last modified date

    2009-12-29

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    APP DEPENDENCY

  • Fixed component ID

    5724N5500

Applicable component levels

  • R712 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSPLFC","label":"Tivoli Application Dependency Discovery Manager"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"712","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 December 2009