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
Firmware Assisted Dump sysdump
Viewed 2228 times since Mon, Jul 16, 2018
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 4504 times since Wed, Jun 19, 2019
Setup private yum repository for AIX clients
Viewed 11488 times since Thu, Feb 21, 2019
AIX - How to get network speed and statistic of ethernet adapter in AIX
Viewed 14825 times since Fri, Jun 8, 2018
Practical Guide to AIX - network
Viewed 18010 times since Thu, Sep 20, 2018
Using Shell Redirection: All About the Here-Doc
Viewed 10575 times since Wed, May 30, 2018
Find out which port the daemon is using on AIX OS. (similar like command netstat -anp for Linux)
Viewed 11812 times since Thu, Feb 21, 2019
Installing a Interim Fix (APAR IV16587)
Viewed 3191 times since Tue, Jul 17, 2018
AIX Reviewing AIX Error and Boot Logs
Viewed 3266 times since Wed, Mar 20, 2019
Script to make mksysb backup from NIM to LPAR
Viewed 3827 times since Thu, Feb 21, 2019