There are lots of dsl_cpe_pipe.sh commands to experiment with.
For G.INP / ReTx specifically, there are:
rtsg - ReTxStatisticsGet - takes one number, 0=near end, 1=far end
pmrtctg - PM_ReTxCountersTotalGet - takes one number, 0=near end, 1=far end
bitswap stats:
osg - OlrStatisticsGet - takes one number, 0=upstream, 1=downstream
There's fpsg which is like g997fpsg but gives some of the other framing numbers. For some of the commands that require two numbers, perhaps varying the first number, which specifies the "channel", might give the figures for different things? I don't think anything besides 0 works, but it might be worth trying 1 or 2 anyway.