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
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 8809 times since Tue, Jun 4, 2019
Configuration of AIX Fast Connect and SMBFS
Viewed 9262 times since Mon, Jun 18, 2018
Useful AIX commands
Viewed 10551 times since Sun, Jun 17, 2018
IBM AIX commands you should not leave home without
Viewed 7696 times since Mon, Jun 11, 2018
Using the AIX splitvg command
Viewed 4866 times since Mon, Jun 3, 2019
NTLMSSP, SPN and AIX CIFS
Viewed 8704 times since Fri, Jun 15, 2018
7 Tips – Tuning Command Line History in Bash
Viewed 6192 times since Fri, Jul 5, 2019
A Change to the SMT Mode Default in POWER9
Viewed 6105 times since Fri, Jan 18, 2019
AIX Creating EtherChannel Devices from Command Line
Viewed 4524 times since Mon, Jun 3, 2019
System Admin Mirrorvg without locking the volume group
Viewed 3616 times since Mon, May 21, 2018