so I'll indirectly answer this question and hopefully this will rock your world. # show will display the candidate configuration, but by default, it's in XML format. so _outside_ of configure mode (for some reason), run the following command: set cli config-output-format set that will set the show output to set commands. now when you run show in configure mode, you will see each entry in a clear, easy to use CLI syntax. You can actually use the service parameter to see just the services. admin@PA-220# show service
set service service-https-mgmt protocol tcp port 4443
set service service-ssh protocol tcp port 22
set service service-plex protocol tcp port 32400 not only does this show you all the custom services (note the predefined service-http and service-https are not displayed), but it gives you the exact syntax to add additional ones via the CLI. If you have a lot of services, you can also supplement the command with | match <filter> at the end so it shows only matching service objects. admin@PA-220# show service | match "tcp port 22"
set service service-ssh protocol tcp port 22 so to answer your questions, if you create a service object with the same name as an existing one, it will let you and just overwrite the existing object's values. if you create a new service object with a different name but the same protocol/port, it also well let you. my sage advice is to keep it simple and develop an administrative policy so that service objects are simply named for their protocol/port, such as tcp_22. using app names like I have before helps read better, but unless I also plan to have a service-sftp object, I'm just going to create a lot of unncessary 'duplicate' objects.
... View more