Forum Discussion

Thiyagu_163984's avatar
Thiyagu_163984
Icon for Nimbostratus rankNimbostratus
Jun 15, 2015

local port number on LTM for system configuratin backup (.UCS)

Hello All, Hope you are all good. What would be the port number on LTM used by a client to establish a session for running a script to take backup of LTM.

 

For example a script runs in client want to communicate with LTM for executing the commnad save /sys ucs /var/local/ucs/ and on which TCP/udp port number it talks to LTM?

 

Regards, Thiyagarajan

 

3 Replies

  • a bash script with tmsh commands you mean? In this case you connect with ssh (tcp/22)

     

  • Thanks a lot for your reply. Yeah it should be port number 22. I'm trying to find out a command to get the client IP address which is connected to LTM using SSH.

     

    Might be some options with Netstat and I could not get the correct parameter.

     

    Thanks a in advance for your help.

     

    Regards, Thiyagarajan

     

  • from your remote session you can run

    who am i | awk '{print $5}'

    or you can see current ssh sessions from netstat using

    netstat -tn | grep :22

    for a log of sessions try

    grep -i tty=ssh /var/log/audit

    cheers