Skip to main content
Hermine
Explorer
May 25, 2022
Solved

command

  • May 25, 2022
  • 3 replies
  • 3454 views

hello, how to run a single line command?
example: config sys interface | edit port1 | full show

Best answer by ntaneja

Hi @Hermine,

 You can try below command on the device and check:
show full-configuration system interface port1

 

Thanks

3 replies

ntaneja
Staff & Editor
ntanejaAnswer
Staff & Editor
May 26, 2022

Hi @Hermine,

 You can try below command on the device and check:
show full-configuration system interface port1

 

Thanks

Hermine
HermineAuthor
Explorer
May 26, 2022

Thanks

Yurisk
SuperUser
SuperUser
May 26, 2022

You cannot use more than 1 pipe, but for looking at the configs you really don't need to - 

show sys int port1

show full system interface port1

show full system interface grep -f port1

yurisk.info - all things Fortinet blog, no ads
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!