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: How to identify the program listening in the given port
Viewed 2365 times since Mon, Jun 11, 2018
Part 2, Detailed diagnosis and troubleshooting
Viewed 2763 times since Tue, May 22, 2018
Restoring mksysb
Viewed 3442 times since Wed, May 30, 2018
0516-404 allocp: This system cannot fulfill the allocation request. [AIX]
Viewed 5086 times since Thu, Sep 20, 2018
How to check dual path in AIX
Viewed 13675 times since Fri, Jun 8, 2018
AIX 6.1: Extend VG 0516-1714 extendvg 0516-1254 extendvg
Viewed 4435 times since Fri, Jul 6, 2018
How To Mirror VG and Root VG
Viewed 3041 times since Mon, May 21, 2018
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 41220 times since Thu, Jun 21, 2018
sysdumpdev Command
Viewed 1775 times since Mon, Jul 16, 2018
How to mirror the rootvg in AIX?
Viewed 4964 times since Mon, May 21, 2018