comments in cli

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

comments in cli

L4 Transporter

Hi

 

I have a text file with PANOS command line arguments (set) what character defines a comment line ?

 

is there one ?

10 REPLIES 10

Maybe???

 

Switch to scripting mode. In scripting mode, you can copy and paste commands from a text file directly into the CLI. Although you can do this without scripting-mode enabled (up to 20 lines). If you cut-and-paste a block of text into the CLI, examine the output of the lines you pasted. If you see lines that are truncated or generate errors, you may have to re-paste a smaller section of text, or switch to scripting-mode admin@PA-3060> set cli scripting-mode on

Hi

 

This seems a little silly - unable to allocate a character for comments. makes script files lot better by adding documentation to the script file.

 

Seems like very basic sort of stuff

 

A

is it possible that the comment would be similar to Juniper (both FreeBSD) and would use the same type of comments found in .xml (see below)

 

I agree with Alex, seems silly that such a character doesn't exist, but with Palo's constant desire to do everything via GUI I guess that makes some sense. 

 

Palo folks can you please comment and let us know if below syntax is correct?

 

<!-- this is a comment -->

 

No go...

Unknown command: <!--

i agree that a no comment character is a stupid omission on PA's part. common guys, put a comment character like #, ! or something into the config mode in CLI.

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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!