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
AIX 0516-404 allocp: This system cannot fulfill the allocation
Viewed 2923 times since Thu, Sep 20, 2018
A Unix Utility You Should Know About: lsof
Viewed 1638 times since Tue, Apr 16, 2019
0516-404 allocpThis system cannot fulfill the allocation
Viewed 9708 times since Thu, Sep 20, 2018
AIX hangs on boot? How to debug boot process on AIX systems
Viewed 8293 times since Thu, Feb 21, 2019
IP configuration in AIX
Viewed 2254 times since Tue, Jul 17, 2018
AIX Undocumented AIX command lquerypv
Viewed 3233 times since Tue, Jul 17, 2018
https://www.ibm.com/developerworks/learn/aix/index.html
Viewed 10776 times since Wed, May 30, 2018
n a perfect world....rootvg would always reside on hdisk0
Viewed 1937 times since Thu, Jun 6, 2019
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 8318 times since Wed, May 22, 2019
AIX, Security, System Admin↑ Fix user accounts
Viewed 4314 times since Fri, Apr 19, 2019