I had never used the -t option before. And I see some dangers - on my system - right away. (Other than perhaps with smit.) In other words - great question!

On my system I have two entries for telnet - one from AIX, and one I tcp_wrap.
I double commented out the AIX standard version, and stopped the wrapped one with
stopsrc -t telnet and this is what I ended up with in /etc/inetd.conf
# grep telnet /etc/inetd.conf
## telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a
#telnet stream tcp nowait root /usr/local/bin/tcpd telnetd -a
On a
startsrc -s telnet directly after this I got:
# grep telnet /etc/inetd.conf
# telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a
telnet stream tcp nowait root /usr/local/bin/tcpd telnetd -a
Notice - one comment character is gone from both lines. I would have to delete the line, or change the keyword - telnet - to stay alive.
So much for the behavior of
startsrc/stopsrc -t telnet.
Now the problem with the port number. The three commands AIX provides for manipulating SRC subsystems are:
mkssys,
chssys and
rmssys. Unfortunately there is not an
lsssrc.
So, the alturnative is to go to the OBJDIR - or /etc/objrepos and grep in the SRC ODM files for telnet.
# grep -c telnet SRC*
SRCextmeth:0
SRCnotify:0
SRCodmlock:0
SRCsubsvr:1
SRCsubsys:0
# odmget SRCsubsvr | grep telnet
sub_type = "telnet"
# odmget -q sub_type="telnet" SRCsubsvr
SRCsubsvr:
sub_type = "telnet"
subsysname = "inetd"
sub_code = 23
In an ideal world I would know the chssys command needed to make the change. In this case I would probably make the change using odmchange. I'll leave that to you - but dont hesitate to ask for assistence if you have never used odmget, odmchange, odmdelete, etc..
Michael