IBM Support

Sudo causes timeouts on AIX

Troubleshooting


Problem

lsof or other commands time out when run via sudo on AIX

Symptom

The following error occurs when discovering an AIX server:

CTJTD0317E An error occurred. CTJTP0323E CTJTP0322E Unable to get port
map because the following command fails: [sudo lsof -Di -nP -i | awk
'{print $2, $5, $9, $10}' | sort -k 2 | uniq -f 1]:OsException:
CTJTP1140E The Command
[LC_ALL=en_US.ISO8859-1;LANG=en_US.ISO8859-1;export LANG LC_ALL;sudo lsof -Di -nP -i | awk '{print $2, $5, $9, $10}' | sort -k 2 | uniq -f 1]
failed in session
ssh2:/HostAuthcom.collation.platform.security.auth.HostAuth[taddmsvc][XXXXX]/null@10.10.100.16: timed out after 240.091 seconds..

And the sensor log shows the following:

2012-11-30 18:44:57,038 DiscoverManager [DiscoverWorker-2] GenericServerSensor-10.238.208.149 DEBUG session.SshSessionClient-
Executed command
[PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/etc:/usr/sbin;L C_ALL=en_US.ISO8859-1;LANG=en_US.ISO8859-1;export LANG LC_ALL;sudo lsof -Di -nP -i | awk '{print $2, $5, $9, $10}' | sort -k 2 | uniq -f 1] on session ssh2:/HostAuthcom.collation.platform.security.auth.HostAuth[taddmsvc][XXXXX]/null@10.238.208.149
2012-11-30 18:48:56,959 DiscoverManager [DiscoverWorker-2]
GenericServerSensor-10.238.208.149 DEBUG
session.VeryAbstractSessionClient - readAsString:
java.io.IOException: InputStreamPipe closed
at com.mindbright.util.InputStreamPipe.read(Unknown Source)
at java.io.InputStream.read(InputStream.java:113)
at
sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:354)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:252)
at java.io.InputStreamReader.read(InputStreamReader.java:212)
at java.io.BufferedReader.fill(BufferedReader.java:157)
at java.io.BufferedReader.readLine(BufferedReader.java:320)
at java.io.BufferedReader.readLine(BufferedReader.java:383)
at
com.collation.platform.session.VeryAbstractSessionClient.readAsString(Ve
ryAbstractSessionClient.java:350)

[{"Product":{"code":"SSPLFC","label":"Tivoli Application Dependency Discovery Manager"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"}],"Version":"7.2;7.1.2;7.2.1","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
17 June 2018

UID

swg21623232