Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    New Technical Resource! Mastering the TNSR® Command Line Interface (CLI)

    TNSR Announcements
    3
    3
    408
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mwatch Administrator
      last edited by mwatch

      In the age of automation, CLI remains crucial for network engineers. TNSR software router offers an industry-standard CLI, making it easy for experienced engineers to configure and troubleshoot.

      Here is a new technical resource to help anyone master the TNSR Command Line Interface (CLI).

      Read Now: https://www.netgate.com/resources/mastering-the-tnsr-command-line-interface-cli

      M 1 Reply Last reply Reply Quote 0
      • M mwatch pinned this topic on
      • M
        michmoor LAYER 8 Rebel Alliance @mwatch
        last edited by

        @mwatch

        There is a configuration database but is there anyway to make the candidate configuration -- the candidate -- until you confirm (commit confirm) changes to make it running?
        In Arista this is called 'configure session'. You can have this be your default way of entering the cli until you commit which is flexible.
        Juniper has this baked in as part of the configuration process

        Having the running configuration be active on any changes is a bit scary.
        To me it seems like the bits are there to make this work with the configuration database.

        Is there an ability to pipe 'grep' as well? Case insensitive.

        show running | grep wan
        

        It seems the matching parameters are case sensitive which isn't great. Junos handles this in the background when you

        show configuration | display set | match wan
        

        Lastly, is there a way to 'section; similar to Arista or IOS/NXOS where any line matching what you are looking for will bring up that block of configuration?

        show run section bgp
        

        Firewall: NetGate,Palo Alto-VM,Juniper SRX
        Routing: Juniper, Arista, Cisco
        Switching: Juniper, Arista, Cisco
        Wireless: Unifi, Aruba IAP
        JNCIP,CCNP Enterprise

        fractal_boyF 1 Reply Last reply Reply Quote 0
        • fractal_boyF
          fractal_boy @michmoor
          last edited by

          @michmoor no to "commit confirm" of a candidate config. In TNSR CLI when you type exit you commit your change. Please test your changes in a lab environment before running them on production.

          Please read the article there is an answer to almost all your questions.
          "| match" instead of "| grep". You can match using regex.

          show running | match wan
          

          matching parameters is case-sensitive.

          regarding the "section" you can do something like this:

          show run bgp
          

          to display BGP configuration.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.