AIX, System Admin↑ The chrctcp command

The chrctcp command in not documented in AIX, but you can still use it to do nice things, especially when you are scripting. Some examples are:

To enable xntpd in /etc/rc.tcpip, and to start xntpd:

# chrctcp -S -a xntpd

To disable xntpd in /etc/rc.tcpip, and to stop xntpd:

# chrctcp -S -d xntpd

To enable xntpd in /etc/rc.tcpip, but not start xntpd:

# chrctcp -a xntpd

To disable xntpd in /etc/rc.tcpip, but to not stop xntpd:

# chrctcp -d xntpd

So, instead of manually editing /etc/rc.tcpip, you can use chrctcp to enable (uncomment), disable (comment) some services, and start and stop them in a single command.

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
10 AIX Commands to Add to Your Toolbox
Viewed 6267 times since Sat, May 19, 2018
AIX disk queue depth tuning for performance
Viewed 17849 times since Thu, Jan 16, 2020
AIX: How to set automatic logoff (only for terminals)
Viewed 3916 times since Mon, Jun 11, 2018
0516-404 allocpThis system cannot fulfill the allocation
Viewed 10818 times since Thu, Sep 20, 2018
How to set Kernel Parameters in AIX ?
Viewed 16823 times since Tue, Jul 2, 2019
AIX Errpt - Diag - Alog
Viewed 4759 times since Wed, Mar 20, 2019
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 5028 times since Fri, Jun 8, 2018
IBM AIX commands you should not leave home without
Viewed 8146 times since Mon, Jun 11, 2018
Using splitvg in AIX to make a copy of a volume group
Viewed 9946 times since Mon, Jun 3, 2019
AIX -- extending Logical Volumes online
Viewed 3688 times since Tue, Mar 12, 2019