Console Output and Serial Terminals: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Line 1: Line 1:
== Serial Console On NST 2.13.0 ==
== Serial Console On NST 2.13.0 ==


Use the following command to manually enable the serial console on NST versions 2.x.x or above. This example will set the serial baud rate to: "'''57600'''" and use serial device: "'''/dev/ttyS0'''".
Use the following command to manually enable the serial console on NST versions 2.13.0 using upstart. This example will set the serial baud rate to: "'''57600'''" and use serial device: "'''/dev/ttyS0'''".
<div class="screen">
<div class="screen">
<div class="userInput"><span class="prompt">[root@probe ~]# </span>initctl emit --no-wait fedora.serial-console-available ttyS0 57600</div>
<div class="userInput"><span class="prompt">[root@probe ~]# </span>initctl emit --no-wait fedora.serial-console-available ttyS0 57600</div>
  <pre class="computerOutput">
  <pre class="computerOutput">
[root@probe ~]#
</pre>
</div>
== Serial Console On NST 2.15.0 orAbove ==
Use the following command to manually enable the serial console on NST versions 2.15.x or above using systemd. This example will autobaud and use serial device: "'''/dev/ttyS0'''".
<div class="screen">
<div class="userInput"><span class="prompt">[root@probe ~]# </span>systemctl start serial-getty@ttyS0.service</div>
<pre class="computerOutput">
[root@probe ~]#
</pre>
</div>
To get serial console status use:
<div class="screen">
<div class="userInput"><span class="prompt">[root@probe ~]# </span>systemctl status serial-getty@ttyS0.service</div>
<pre class="computerOutput">
serial-getty@ttyS0.service - Serial Getty on ttyS0
          Loaded: loaded (/lib/systemd/system/serial-getty@.service)
          Active: active (running) since Tue, 17 May 2011 16:59:56 -0400; 5min ago
        Main PID: 31524 (agetty)
          CGroup: name=systemd:/system/serial-getty@.service/ttyS0
                  └ 31524 /sbin/agetty -s ttyS0 115200 38400 9600
[root@probe ~]#  
[root@probe ~]#  
</pre>
</pre>
</div>
</div>

Revision as of 16:08, 17 May 2011

Serial Console On NST 2.13.0

Use the following command to manually enable the serial console on NST versions 2.13.0 using upstart. This example will set the serial baud rate to: "57600" and use serial device: "/dev/ttyS0".

[root@probe ~]# initctl emit --no-wait fedora.serial-console-available ttyS0 57600
[root@probe ~]# 

Serial Console On NST 2.15.0 orAbove

Use the following command to manually enable the serial console on NST versions 2.15.x or above using systemd. This example will autobaud and use serial device: "/dev/ttyS0".

[root@probe ~]# systemctl start serial-getty@ttyS0.service
[root@probe ~]# 

To get serial console status use:

[root@probe ~]# systemctl status serial-getty@ttyS0.service
serial-getty@ttyS0.service - Serial Getty on ttyS0
          Loaded: loaded (/lib/systemd/system/serial-getty@.service)
          Active: active (running) since Tue, 17 May 2011 16:59:56 -0400; 5min ago
        Main PID: 31524 (agetty)
          CGroup: name=systemd:/system/serial-getty@.service/ttyS0
                  └ 31524 /sbin/agetty -s ttyS0 115200 38400 9600
[root@probe ~]#