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

    TNSR Keyboard Layout (Question Mark Key)

    Scheduled Pinned Locked Moved TNSR
    7 Posts 2 Posters 1.6k Views
    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.
    • weehooeyW
      weehooey
      last edited by

      When typing in the clixon_cli the question mark is not being interpreted correctly.

      1. Login as user with sudo priv
      2. sudo -u tnsr clixon_cli
      3. Type dataplane dpdk dev ? and when pressing the ? it responds as if hitting the enter key.

      Typing ? with any other command in the clixon_cli, the ? behaves exactly as the enter key.

      Exit from the TNSR user and the question mark key behaves as expected in the VM.

      We have tried as the Linux user (not as TNSR):

      localectl set-keymap us-intl

      sudo dpkg-reconfigure keyboard-configuration

      We get the same behaviour at the console, ssh'ed in from both a Linux and Windows machine.

      The install media used:
      TNSR-DVD-Ubuntu-x86_64-22.02-1-Home-Lab.iso

      We have installed the Centos version in the past without issue.

      Any suggestions welcome.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        What are you seeing vs what is expected in the CLI output?

        It should look like this when you hit ?:

        tnsr(config)# dataplane dpdk dev ?
          0000:01:00.0          Co-processor: Intel Corporation Atom Processor C3000 Series QuickAssist Technology (rev 11)
          0000:03:00.0          Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
          0000:04:00.0          Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) ( Active Interface enp4s0 )
          0000:06:00.0          Ethernet controller: Intel Corporation Ethernet Connection X553 1GbE (rev 11)
          0000:06:00.1          Ethernet controller: Intel Corporation Ethernet Connection X553 1GbE (rev 11)
          0000:08:00.0          Ethernet controller: Intel Corporation Ethernet Connection X553 1GbE (rev 11)
          0000:08:00.1          Ethernet controller: Intel Corporation Ethernet Connection X553 1GbE (rev 11) ( Active Interface enp8s0f1 )
          default
        tnsr(config)#
        

        It does take you back to a prompt but shows the list of what parameters would go next first.

        If I press enter, I get this instead:

        tnsr(config)# dataplane dpdk dev
        CLI syntax error: "dataplane dpdk dev": Incomplete command
        

        What gets interpreted by the TNSR host when you press ? depends more on your local terminal settings on the client than on the TNSR host. By default it works fine for me from BSD, Linux, Windows, etc.

        Before trying to change how the TNSR environment is configured I'd check the terminal emulation settings on your client and other similar connection properties.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        weehooeyW 1 Reply Last reply Reply Quote 1
        • weehooeyW
          weehooey @jimp
          last edited by

          @jimp Thanks for the reply.

          It does look like the key is being registered but not displayed and it follows with an enter keypress. When I pressed ? at the end of the first line, it immediately replied with the output (as if I hit enter).

          fab0aa9c-683e-4af3-99cc-dc6de5c0e289-image.png

          My first thought was it was the client -- Linux Mint VM I use in the lab.

          I then connected using the Proxmox console access. Again, my thought was maybe something with how the Proxmox console was interpreting and sending the keystroke (used for both the VM and the console).

          So, I connected using a non-lab Windows (PowerShell/OpenSSH) physical machine that gets used daily to connect to many ssh hosts and it exhibited the exact same behaviour.

          The other part which is strange is the ? behaves correctly when logged in as the user but only does the unwanted behaviour in the clixon_cli.

          59b484cc-f4ef-4ebd-baa0-8ca51f9a8747-image.png

          Any suggestions for troubleshooting?

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            It looks like it's behaving correctly in your output to me.

            When you hit ? it should be doing what you show. It doesn't output ? in the CLI it triggers the CLI to print a list of help for what should come next in the command and then returns you to a fresh prompt.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            weehooeyW 1 Reply Last reply Reply Quote 1
            • weehooeyW
              weehooey @jimp
              last edited by

              @jimp your screencap shows the ? but mine does not.

              I would expect to have to hit enter after typing the ? -- is this a clixon thing? I do not recall this from the previous version of TNSR and I have not use clixon anywhere else.

              jimpJ 1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate @weehooey
                last edited by

                @weehooey said in TNSR Keyboard Layout (Question Mark Key):

                @jimp your screencap shows the ? but mine does not.

                I added it manually to indicate where I typed ?

                I would expect to have to hit enter after typing the ? -- is this a clixon thing? I do not recall this from the previous version of TNSR and I have not use clixon anywhere else.

                It's been like that since TNSR began, it's always output the help as soon as the user presses ?. I don't know if that is all clixon in general or specific to TNSR but seems more like clixon to me.

                If you hit Tab in some contexts it shows a list of next choices without going to a new line but not everything supports tab completion.

                tnsr(config)# data <tab>
                 buffers              cpu                  dpdk                 ethernet             ip6                  linux-cp             logging
                 memory               ping                 shell                statseg              traceroute
                tnsr(config)# dataplane dpd <tab>
                 blacklist                decimal-interface-names  dev                      iova-mode                log-level                no-multi-seg
                 no-pci                   no-tx-checksum-offload   tcp-udp-checksum         telemetry                uio-driver
                tnsr(config)# dataplane dpdk dev <tab>
                 0000:01:00.0         0000:03:00.0         0000:04:00.0         0000:06:00.0         0000:06:00.1         0000:08:00.0         0000:08:00.1
                 default
                

                Again I put <tab> where I hit the Tab key, note the space before it.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                weehooeyW 1 Reply Last reply Reply Quote 1
                • weehooeyW
                  weehooey @jimp
                  last edited by

                  @jimp Ah! Cool. Thank you -- I appreciate your patience.

                  Sorry for the false alarm.

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