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: Script to check if all paths are consistent and available
Viewed 4058 times since Tue, Jun 12, 2018
AIX -- extending Logical Volumes online
Viewed 3621 times since Tue, Mar 12, 2019
Install and configure yum on AIX
Viewed 5562 times since Thu, Feb 21, 2019
Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 3132 times since Thu, Sep 20, 2018
Mirroring the rootvg Volume Group for AIX
Viewed 5090 times since Mon, May 21, 2018
Topics: PowerHA / HACMP, Storage Adding a new volume group to an active PowerHA resource group
Viewed 3534 times since Mon, Jun 3, 2019
Install and configure GNU’s screen on AIX
Viewed 10182 times since Thu, Feb 21, 2019
How to install filesets/software in aix?
Viewed 7378 times since Mon, Jul 8, 2019
Mount CD/DVD & ISO image in AIX 6.1
Viewed 4867 times since Tue, Jul 17, 2018
Undocumented AIX command lquerypv
Viewed 4615 times since Mon, Jul 16, 2018