Skip to main content
Sun_G_Rah
New Member
July 8, 2024
Question

CLI Command to Show how many Objects in Existing Address Group

  • July 8, 2024
  • 1 reply
  • 2554 views

Hello Fortinet Folks!

 

Is there a CLI Command that shows how many address objects are currently a member of an existing address group?  

 

I know I can view this from the GUI, but I'm just looking for a faster way of verifying if I've already reached my maximum address object members on a given address group, so I can either use a different group or create a new one.

 

TIA!

 

 

1 reply

AEK
SuperUser
SuperUser
July 9, 2024

Hello

show firewall addrgrp <AddrGrpName>

This command will show you the members of your address group, but you still need to count them.

AEK
Sun_G_Rah
Sun_G_RahAuthor
New Member
July 11, 2024

Thanks for the reply.  I know about that command, but is there a command that can show the number of members (just the count) just like what's highlighted on the attached from the GUI.Capture.PNG

AEK
SuperUser
SuperUser
July 11, 2024

I don't know such feature in CLI, but I'd do it in a very simple way, by copying the output of the command and past it in notepad or other, and the editor will show the number of the last line.

AEK