{"id":2497,"date":"2013-10-14T08:46:50","date_gmt":"2013-10-14T00:46:50","guid":{"rendered":"http:\/\/rmohan.com\/?p=2497"},"modified":"2013-10-14T08:46:50","modified_gmt":"2013-10-14T00:46:50","slug":"redirecting-the-server-console-to-the-serial-port-using-linux-operating-system","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2497","title":{"rendered":"Redirecting the Server Console to the Serial Port Using Linux Operating System:"},"content":{"rendered":"<div>Although the server\u2019s ILOM has a redirection feature that allows you to do this, you can also redirect the server console to the serial port by doing the following for either Red Hat (RHEL) or Suse (SLES):<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159959\"><\/a>1. Add the following line in\u00a0<kbd>\/etc\/inittab<\/kbd>\u00a0file (for SLES, this line might already exist but be commented out. If so, simply remove the &#8220;<kbd>#<\/kbd>&#8221; at the beginning of the line):<\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159960\"><\/a><kbd>s0:12345:respawn:\/sbin\/agetty -L 9600 ttyS0 vt102<\/kbd><\/div>\n<div><kbd>\u00a0<\/kbd><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159961\"><\/a>2. Add the following line in the\u00a0<kbd>\/etc\/securetty<\/kbd>\u00a0file:<\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159962\"><\/a><kbd>ttyS0<\/kbd><\/div>\n<div><kbd>\u00a0<\/kbd><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159963\"><\/a>3. Change the\u00a0<kbd>\/etc\/grub.conf<\/kbd>\u00a0file as described below.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159964\"><\/a>a. Comment the line that begins with\u00a0&#8220;<kbd>splashimage<\/kbd>\u00a0&#8230;&#8221;,\u00a0like this:<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159965\"><\/a><kbd># splashimage=(hd0,0)\/grub\/splash.xpm.gz<\/kbd><\/div>\n<div><kbd>\u00a0<\/kbd><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159966\"><\/a>b. Add\u00a0<kbd>console=ttyS0 console=tty0<\/kbd>\u00a0at the end of the line that starts with &#8220;&#8221;<kbd>kernel \/vmlinuz<\/kbd>\u00a0&#8230;, for example:<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159967\"><\/a><kbd>kernel \/vmlinuz-2.6.9 ro root=LABEL=\/ debug console=ttyS0,9600 console=tty0<\/kbd><\/div>\n<div><kbd>\u00a0<\/kbd><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159968\"><\/a>c. Optionally, to have the grub boot menu display at the serial console, add the following lines before the\u00a0<kbd>splashimage<\/kbd>\u00a0line:<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159969\"><\/a><kbd>serial --unit=0 --speed=9600<\/kbd><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/www.blogger.com\/blogger.g?blogID=66248173225209551\" name=\"50446376_pgfId-1159970\"><\/a><kbd>terminal --timeout=10 serial console<\/kbd><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Although the server\u2019s ILOM has a redirection feature that allows you to do this, you can also redirect the server console to the serial port by doing the following for either Red Hat (RHEL) or Suse (SLES): <\/p>\n<p>&nbsp;<\/p>\n<p> 1. Add the following line in \/etc\/inittab file (for SLES, this line might already exist but be [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2497"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2497"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2497\/revisions"}],"predecessor-version":[{"id":2498,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2497\/revisions\/2498"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}