Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
lessing
New Contributor

Remove IP Address from a Group via CLI command

Hi,

 

I want to remove an IP Address from a Group and them delete that IP via CLI command, I try with the command exclude member but after exclude the member does not permit to delete the IP via CLI.

 

There is a way to do that via CLI?.

 

Regards,

1 Solution
lobstercreed
Valued Contributor

Perhaps I'm misunderstanding you because I don't think there is an "exclude" command where I'm talking about, but if you mean an address group (config firewall addrgrp), the command to add members to the group is "append member <address name>" and the command to remove members from the group is "unselect member <address name>"

 

If this is the only reference to that address, then you should be able to switch config modes to config firewall address and then "delete <address name>"

View solution in original post

2 REPLIES 2
lobstercreed
Valued Contributor

Perhaps I'm misunderstanding you because I don't think there is an "exclude" command where I'm talking about, but if you mean an address group (config firewall addrgrp), the command to add members to the group is "append member <address name>" and the command to remove members from the group is "unselect member <address name>"

 

If this is the only reference to that address, then you should be able to switch config modes to config firewall address and then "delete <address name>"

lessing

Hi,

 

Works with that commands.

Thank you.

Regards,

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors