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
View mksysb content & restore individual files
Viewed 1927 times since Tue, Jul 17, 2018
How do I analyze and debug core files on AIX
Viewed 6589 times since Thu, Feb 21, 2019
0516-787 extendlv: Maximum allocation for logical volume error
Viewed 9005 times since Tue, Mar 12, 2019
Mirroring session (TTY) on AIX using portmir
Viewed 9423 times since Thu, Feb 21, 2019
How to clear/clean/erase/delete/reset network adapter configuration on AIX?
Viewed 12598 times since Thu, Nov 29, 2018
Using Shell Redirection: All About the Here-Doc
Viewed 10351 times since Wed, May 30, 2018
AIX routing - How Do I Compare ODM with the Current Routing Table?
Viewed 2690 times since Mon, Jul 29, 2019
replacing (hot-swap) failed disk in rootvg
Viewed 9240 times since Thu, Sep 20, 2018
How to Investigate a System Reboot
Viewed 4650 times since Mon, Jul 16, 2018
Recovery AIX system when hang on boot (554 code error).
Viewed 16320 times since Thu, Feb 21, 2019