Forum Discussion

vigyu's avatar
vigyu
Icon for Altocumulus rankAltocumulus
Jan 17, 2020

show real port number

Hello!

I would like to see the real port numbers in tmsh with list security firewall policy command.

        ports {

          facsys-ntp {

            app-service none

            description none

          }

facsys-ntp service name means 2514 port number.

  • Hi vigyu and PeteWhite, this can be done by setting the cli global settings service to number:

     

    tmsh modify cli global-settings service number

     

  • Hi vigyu and PeteWhite, this can be done by setting the cli global settings service to number:

     

    tmsh modify cli global-settings service number

     

  • From Bash prompt:

    grep facsys-ntp /etc/services

    This is used to change port numbers to names.