IBM Support

How to enable debugging for inetd

Question & Answer


Question

How can I enable inetd logging/tracing?

Answer

For inetd logging/tracing you can use the following steps:

1) Edit the /etc/syslog.conf file and add this line:
*.debug /tmp/syslog.out

2) Create the syslog out file
# touch /tmp/syslog.out

3) Refresh syslogd
# refresh -s syslogd

4) Restart inetd in debug mode
# stopsrc -s inetd
# startsrc -s inetd -a "-d"

5) Generate inetd messages, such as by telneting to the system

6) Check the syslog.out file for inetd messages

Once done with debugging, here's how to clean up:

1) Make sure to remove the following entry from the /etc/syslog.conf:

*.debug /tmp/syslog.out

2) Refresh the syslogd:

# refresh -s syslogd

3) Restart inetd normally:

# stopsrc -s inetd
# startsrc -s inetd


[{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Network communications","Platform":[{"code":"PF002","label":"AIX"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

More support for:
AIX

Software version:
Version Independent

Operating system(s):
AIX

Document number:
629771

Modified date:
17 June 2018

UID

isg3T1024334

Manage My Notification Subscriptions