How do I enter multiple hosts to the destination field on the CLI

Announcements

ATTENTION Customers, All Partners and Employees: The Customer Support Portal (CSP) will be undergoing maintenance and unavailable on Saturday, November 7, 2020, from 11 am to 11 pm PST. Please read our blog for more information.

Reply
Highlighted
L1 Bithead

How do I enter multiple hosts to the destination field on the CLI

HI

When I look at the security policy configuration on the CLI, I see that policies that were configured using the GUI appear in the following syntax:

destination [ HOST1 HOST2];

But when trying to configure a new policy like so I get invalid syntax::

[edit]

firewall#  edit rulebase security

[edit rulebase security]

firewall# edit rules TESTRULE

[edit rulebase security rules TESTRULE]

firewall# set destination [HOST1 HOST2]

So can someone tell me, what's the trick?

Thanks


Accepted Solutions
Highlighted
L5 Sessionator

I tried this and worked, I think you missed the space after '['

[edit rulebase security rules TESTRULE]

firewall# set destination [ HOST1 HOST2 ]


***Please do mark helpful/correct answers

View solution in original post


All Replies
Highlighted
L5 Sessionator

Just do

set destination HOST1

set destination HOST2

Highlighted
L1 Bithead

ugh!  I was afraid of that.....

Is there no other way?

Highlighted
L5 Sessionator

I tried this and worked, I think you missed the space after '['

[edit rulebase security rules TESTRULE]

firewall# set destination [ HOST1 HOST2 ]


***Please do mark helpful/correct answers

View solution in original post

Highlighted
L1 Bithead

THAT'S IT!!!!!

The space made all the difference!

Thanks for the help.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!