CLI command to view interface configuration

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

CLI command to view interface configuration

L1 Bithead

Hi All,

 

I am trying to query a FW configuration from script using CLI.

Is there a CLI command that shows a particular interface configuration ?

 

Thank you.

1 accepted solution

Accepted Solutions

Cyber Elite
Cyber Elite

from configuration mode:

 

reaper@myNGFW> configure 
Entering configuration mode
[edit]     
reaper@myNGFW# show network interface ethernet ethernet1/2

(if you leave away the ethernet1/X, you will get the output for all interfaces)

 

you can change the output type to set, json or XML:

reaper@myNGFW> set cli config-output-format 
  default   default 
  json      json 
  set       set 
  xml       xml 
Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

View solution in original post

5 REPLIES 5

Community Team Member

Hi @ArpadMolnar,

 

Are you looking for this command ?

 

admin@PA-VM> show interface ethernet1/1

This command will spit out the configuration for the specified interface together with some additional counter information.

 

Cheers !

-Kiwi.

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

Cyber Elite
Cyber Elite

from configuration mode:

 

reaper@myNGFW> configure 
Entering configuration mode
[edit]     
reaper@myNGFW# show network interface ethernet ethernet1/2

(if you leave away the ethernet1/X, you will get the output for all interfaces)

 

you can change the output type to set, json or XML:

reaper@myNGFW> set cli config-output-format 
  default   default 
  json      json 
  set       set 
  xml       xml 
Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

Thank you Kiwi, not exactly.

Thank you reaper. It's a pity that this output can not be retieved without entering configuration mode.

it can

 

reaper@myNGFW> show config running xpath devices/entry[@name="localhost.localdomain"]/network/interface/ethernet/entry[@name="ethernet1/2"]

 

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization
  • 1 accepted solution
  • 60768 Views
  • 5 replies
  • 0 Likes
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!