Hi Munassar,
Please have a look at the gwmon output below.
Gateway monitor, connected to csa-sis-dev / sapgw00
Connection table (Used: 3, Connected: 3)
--------------------------------------------------------------------------------
NO CLIENT(LU/TP) USER STATE SDEST CONVID PROT WP LAST REQ
--------------------------------------------------------------------------------
000 csa-sis-/sapgw00 PRMOHAN7 CONNECTED csa-sis- 94481448 INT -- Wed Jan 29 15:24:44 2014
009 csa-sis-/sapgw00 PRMOHAN7 CONNECTED csa-sis- 98258820 INT -- Tue Feb 4 11:17:58 2014
003 csa-sis-/jstart daaadm CONNECTED <Java Rf 77385044 INT -- Wed Feb 5 10:50:26 2014
q - quit
m - menue
-->
Since, it is coming as a table with menu driven program options of Q and M, it is difficult to write a script for it as it wont come out of the table loop automatically.
Regards,
Jag