What exactly do these commands do?

set ag-server enable
set ip auto-dialout enable
set ip telnet raw-mode enable
set serial s0 auto-dialout enable
set serial s0 raw-dialout enable
set serial s0 auto-dialout-protocol telnet


RESPONSE:

Auto dialout is the same as setting up the module to be a listen TCP server

Set ag-server enable
Set ip auto-dialout enable
These two commands enable the module so it will listen on an IP port. This is how it allows the tactical software to connect from the network.

set ip telnet raw-mode enable
set serial s0 auto-dialout enable
set serial s0 raw-dialout enable
These commands will setup the TCP connection to use RAW socket mode only.

set serial s0 auto-dialout-protocol telnet This command tells the module to listen on TCP (not UDP)