<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic system logon message in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932386#M287526</link>
    <description>I am looking for scripting a logon message which would appear on console or telnet, ssh session showing "hostname" in bold/color characters and will show if the system is a production or dev/test system showing "production/Dev" in BOLD,big character size and blinking text.&lt;BR /&gt;&lt;BR /&gt;Does anyone has such thing in place?&lt;BR /&gt;&lt;BR /&gt;In OpenVMS it's possible and I want to do similar or more on HPUX.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
    <pubDate>Wed, 24 Jan 2007 16:00:59 GMT</pubDate>
    <dc:creator>rccmum</dc:creator>
    <dc:date>2007-01-24T16:00:59Z</dc:date>
    <item>
      <title>system logon message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932386#M287526</link>
      <description>I am looking for scripting a logon message which would appear on console or telnet, ssh session showing "hostname" in bold/color characters and will show if the system is a production or dev/test system showing "production/Dev" in BOLD,big character size and blinking text.&lt;BR /&gt;&lt;BR /&gt;Does anyone has such thing in place?&lt;BR /&gt;&lt;BR /&gt;In OpenVMS it's possible and I want to do similar or more on HPUX.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Wed, 24 Jan 2007 16:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932386#M287526</guid>
      <dc:creator>rccmum</dc:creator>
      <dc:date>2007-01-24T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: system logon message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932387#M287527</link>
      <description>You can modify the /etc/issue and configure the telnet daemon with -b option in /etc/inetd.conf to use that for initial welcome screen.&lt;BR /&gt;&lt;BR /&gt;I believe that you can do the same for ssh welcome and etc...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2007 16:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932387#M287527</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2007-01-24T16:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: system logon message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932388#M287528</link>
      <description>You can edit individual .profile settings or the /etc/profile to set things such as your prompt (eg. export PS1="$(uname -n)"). Edit your motd to specify whether the system is prod/dev, etc. You can use tput commands to set things such as bold/blinking typeset. Do a man on terminfo for the various options.</description>
      <pubDate>Wed, 24 Jan 2007 16:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932388#M287528</guid>
      <dc:creator>sparky_2</dc:creator>
      <dc:date>2007-01-24T16:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: system logon message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932389#M287529</link>
      <description>Get used to disappointment. While in principle, it would be possible to embed the terminal escape sequences in /etc/issue to blink -- the problem is which escape sequences. If you got it to work with one terminal model, you would have no assurance that this would work for another terminal sequence --- and it's much to early in the login sequence to know what kind of terminal you are using.&lt;BR /&gt;&lt;BR /&gt;A reasonable approach would do something like this:&lt;BR /&gt;&lt;BR /&gt;banner $(hostname) &amp;gt; myfile&lt;BR /&gt;banner "Prod" &amp;gt;&amp;gt; myfile&lt;BR /&gt;&lt;BR /&gt;cat myfile &amp;gt;&amp;gt; /etc/issue&lt;BR /&gt;&lt;BR /&gt;This would append the hostname and "Prod" in very large characters to the file /etc/issue. If, for exanmple, you then add -b /etc/issue to the telnetd command in /etc/inetd.conf and then do an inetd -c, you should see the banner.</description>
      <pubDate>Wed, 24 Jan 2007 16:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932389#M287529</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-01-24T16:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: system logon message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932390#M287530</link>
      <description>For ssh edit the "#Banner /some/path" line in the /opt/ssh/etc/sshd_config file to "Banner /etc/issue".&lt;BR /&gt;&lt;BR /&gt;For ftp add "-l -a" to the end of the ftp line in the /etc/inetd.conf file.&lt;BR /&gt;&lt;BR /&gt;For telnet add "-b /etc/issue" to the end of the telnet line in the /etc/inetd.conf file.&lt;BR /&gt;&lt;BR /&gt;For rlogin add "-l -B /etc/issue" to the end of the login line in the /etc/inetd.conf file.&lt;BR /&gt;&lt;BR /&gt;If you use CDE then add the following lines to /etc/dt/config/Xsession.d/0091.dthello:&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;dtstart_hello[0]="/usr/dt/bin/dthello -file /etc/issue &amp;amp;"&lt;BR /&gt;&lt;BR /&gt;Then run this command: &lt;BR /&gt;chmod 755 /etc/dt/config/Xsession.d/0091.dthello&lt;BR /&gt;&lt;BR /&gt;After all that change your /etc/issue file at will manually or with a script. Color, bold text, etc. depends on the term your using and would be placed into the issue file.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2007 16:36:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-logon-message/m-p/3932390#M287530</guid>
      <dc:creator>Doug Burton</dc:creator>
      <dc:date>2007-01-24T16:36:12Z</dc:date>
    </item>
  </channel>
</rss>

