AIX - echo service in inetd.conf

AIX25 used Ask the Experts™
How do I check if echo (tcp/udp) services is running?
Also, what is a clean way of using chsubserver to comment out and stop echo services  in inetd.conf?
Finally, is this syntax correct to comment out echo in inetd.conf (if, there is no way to use chsubserver command)? sed 's/^echo/#&/'
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
1) Check

lssrc -ls inetd |grep echo

lssrc -t echo

The latter command will say "active" even if just one of the two possible protocols (tcp resp. udp) is enabled.


chsubserver -d -v echo-p tcp -r inetd
chsubserver -d -v echo-p udp -r inetd

inetd is refreshed (this is what "-r inetd" is for)

3) Correct, but since AIX's sed cannot edit files in place you must use a temporary file inbetween:

sed 's/^echo/#&/' /etc/inetd.conf >/tmp/inetd.conf.tmp && mv /tmp/inetd.conf.tmp /etc/inetd.conf

Here you must restart inetd explicitly for the changes to take effect:

refresh -s inetd


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial