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
Script to show Total, Free and Used Memory on AIX
Viewed 4328 times since Thu, Nov 29, 2018
AIX alt_disk_copy
Viewed 11176 times since Sun, Jun 30, 2019
Do you Know These 5 Use of V$session View ?
Viewed 160979 times since Thu, Jun 21, 2018
AIX Replacing a failed disk (rootvg)
Viewed 10567 times since Tue, Jul 17, 2018
Install and configure GNU’s screen on AIX
Viewed 10765 times since Thu, Feb 21, 2019
AIX NFS Version 4 configuration over Kerberos inter-realm setup
Viewed 5860 times since Wed, Jun 27, 2018
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 11947 times since Wed, May 22, 2019
Install and configure yum on AIX
Viewed 5842 times since Thu, Feb 21, 2019
AIX Commands Related to Boot and Init Process
Viewed 6435 times since Tue, Apr 16, 2019
How to enable Large Pages for a specific user on AIX?
Viewed 3993 times since Thu, Nov 29, 2018