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

terminal monitor over ssh

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 4 Posters 1.3k 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.
  • I
    ipfftw
    last edited by Mar 8, 2023, 3:18 AM

    In cisco ios, you can issue a command "terminal monitor" to get output of the hardware console logged to SSH (vty).

    is there a similar command for pfsense? I want to see the output over ssh, like i can see when i plug in a vga monitor to the machine. Yes i know its logged to general log, but i want to view this real time without needing to reload a webpage.

    let me know
    thanks

    G I 2 Replies Last reply Mar 8, 2023, 8:03 AM Reply Quote 0
    • G
      Gertjan @ipfftw
      last edited by Mar 8, 2023, 8:03 AM

      @ipfftw

      The 'serial' or 'cable' connection only needs the serial connection to work.
      SSH, on the other hand, need the system to be up and running, all network interfaces set up, the entire IP stuff operational.

      When everything works fine, an SSH access, something you can do from the other side of the planet, and the serial connection, are identical.
      Although, serial, .... from the other side of the world .... you'll be needing some extra KVM setup.

      But the very moment something goes wrong, you'll be needing the serial cable, not the SSH. As SSH can't work, because 'no network interfaces'.

      I've a serial connection open, normally, as some server on my LAN has the serial cable connected to pfSense, and that connection is also logged to a file.
      I've just checked that log file, going back for months. Really, there isn't much in there.

      Boot sequences are logged in detail, something you can't see with SSH.

      @ipfftw said in terminal monitor over ssh:

      without needing to reload a webpage

      SSH is not a webpage.
      Install Putty, activate SSH on pfSense, and you'll be fine. It's equivalent to the serial connection for 99,9 % of all case.
      Serial is for the mayday days.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • I
        ipfftw @ipfftw
        last edited by Mar 10, 2023, 10:41 PM

        Well i thought i was being clear but i guess not. You make a lot of assumptions that are incorrect.

        Things such as the message "Re0 watchdog timeout" are logged to the console. They are not logged to ssh console session. Yes they are in the general log too, thats how i currently view them without vga connection to the pfsense. But i am looking for virtual console access from ssh.

        if youa re familiar with cisco switches, you can get it to output realtime messages to the console by entering the command "terminal mon" at the CLI. I was looking for an equivalent command.

        saying 99.9 is just ignorant. Because lots of logging type things like hardware failures are just spit out to the local vga console. in this case i am chasing an intermittent network card failure in very specific conditions and its handy just to log that to ssh instead of dedicating a whole monitor on my desk to monitoring for it.

        https://study-ccna.com/cisco-terminal-monitor/

        P G 2 Replies Last reply Mar 11, 2023, 2:01 PM Reply Quote 0
        • P
          provels @ipfftw
          last edited by Mar 11, 2023, 2:01 PM

          @ipfftw Well, at the risk of being called "ignorant", I offer

          tail -F /var/log/system.log
          

          Peder

          MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
          BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

          1 Reply Last reply Reply Quote 0
          • G
            Gertjan @ipfftw
            last edited by Mar 13, 2023, 7:44 AM

            @ipfftw said in terminal monitor over ssh:

            Because lots of logging type things like hardware failures are just spit out to the local vga console

            These only happen when you build a new system with new hardware to test, or hardware that is known to be bad.
            I've used realtek in the past, when 100 Mbit/sec was a thing. I've learned my lessons ;)

            Hardware can also start to fail, true.
            I've no serial access to my dedicated servers neither, as they are nearly 1000 miles away from me. 'urgent' system messages are relayed to me using constant 'munin' reporting, and email reporting.

            And yes :

            @provels said in terminal monitor over ssh:

            tail -F /var/log/system.log

            that's one I've shortcut aliased a long time ago as the system logs are the first thing I check before the morning coffee and news paper.
            On any system.

            Cisco : never actually seen or used one.

            Also, one of my local servers has a permanent Putty serial console logged in to pfSense, it is logging to file, so I can check and see what went wrong, if needed.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Mar 13, 2023, 1:08 PM

              Following the logs is as good as you'll get over SSH.

              Kernel message output can only go to a console, and SSH terminals are not eligible to be considered consoles in FreeBSD.

              Any tricks you could normally play with consoles with things like stty, conscontrol, or redirecting things in syslog won't work against SSH terminals.

              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!

              1 Reply Last reply Reply Quote 0
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received