<?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 Re: SAM in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562976#M371913</link>
    <description>So what is TERM set to before you run sam?&lt;BR /&gt;&lt;BR /&gt;How are you connecting to the server to run sam? &lt;BR /&gt;&lt;BR /&gt;# echo $TERM&lt;BR /&gt;# sam</description>
    <pubDate>Tue, 12 Jan 2010 16:20:46 GMT</pubDate>
    <dc:creator>TTr</dc:creator>
    <dc:date>2010-01-12T16:20:46Z</dc:date>
    <item>
      <title>SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562975#M371912</link>
      <description>hi all&lt;BR /&gt; i am facing a very dificult problem..i want to access the kernel configuration from sam,but when i when i go to sam and i try to access the kernel configuration option, it says,.....The environment variable TERM is not set or set to an unsupported terminal Exiting.&lt;BR /&gt;&lt;BR /&gt;Press &lt;RETURN&gt; to continue sam...&lt;BR /&gt;  cna some one please help me ?.....&lt;/RETURN&gt;</description>
      <pubDate>Tue, 12 Jan 2010 16:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562975#M371912</guid>
      <dc:creator>SHADRACH AMARH</dc:creator>
      <dc:date>2010-01-12T16:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562976#M371913</link>
      <description>So what is TERM set to before you run sam?&lt;BR /&gt;&lt;BR /&gt;How are you connecting to the server to run sam? &lt;BR /&gt;&lt;BR /&gt;# echo $TERM&lt;BR /&gt;# sam</description>
      <pubDate>Tue, 12 Jan 2010 16:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562976#M371913</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-01-12T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562977#M371914</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;export TERM=vt100&lt;BR /&gt;# pick a terminal type that works for you.&lt;BR /&gt;sam&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 12 Jan 2010 20:24:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562977#M371914</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-01-12T20:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562978#M371915</link>
      <description>&lt;!--!*#--&gt;You are seeing a very old problem with standard HP profiles. The profile checks if TERM is assigned a value at the start of the profile and if so, assumes that TERM makes sense to HP-UX tools like SAM. That is a very bad assumption as well as the fix to hardcode TERM=vt100. There are hundreds of terminals and emulators and HP-UX has a comprehensive database to handle all of them in /usr/lib/terminfo.&lt;BR /&gt; &lt;BR /&gt;To fix this problem, you must remove the defective code that looks like this:&lt;BR /&gt; &lt;BR /&gt;# Be sure that VUE does not invoke tty commands&lt;BR /&gt;   if [ ! "$VUE" ]; then&lt;BR /&gt;   # Set up the terminal:&lt;BR /&gt;        if [ "$TERM" = "" ]&lt;BR /&gt;        then&lt;BR /&gt;                eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;        else&lt;BR /&gt;                eval ` tset -s -Q `&lt;BR /&gt;        fi&lt;BR /&gt;        stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;        stty hupcl ixon ixoff&lt;BR /&gt;        tabs&lt;BR /&gt;        echo&lt;BR /&gt;        echo "Value of TERM has been set to \"$TERM\". "&lt;BR /&gt;        export TERM&lt;BR /&gt;        EDITOR=vi&lt;BR /&gt;        export EDITOR&lt;BR /&gt;   fi          # if !VUE&lt;BR /&gt; &lt;BR /&gt;= = = = = = = = = = = = &lt;BR /&gt; &lt;BR /&gt;And replace that code with:&lt;BR /&gt; &lt;BR /&gt;# Bypass interactive-only code&lt;BR /&gt;tty â  s&lt;BR /&gt;RTN=$?&lt;BR /&gt;if [ $RTN â  eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;# ID the terminal&lt;BR /&gt;   eval $(ttytype â  s)&lt;BR /&gt;&lt;BR /&gt;# In case we are on a GSP/MP that blocks ttytype,&lt;BR /&gt;# use resize to query the LINES and COLUMNS&lt;BR /&gt;   LINES=${LINES:-â  â  }&lt;BR /&gt;   [ â  $LINESâ   = â  â   ] &amp;amp;&amp;amp; eval $(resize)&lt;BR /&gt;&lt;BR /&gt;# Set stty and tabs&lt;BR /&gt;   stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff&lt;BR /&gt;   stty susp \^Z dsusp \^Y        &lt;BR /&gt;   tabs&lt;BR /&gt;&lt;BR /&gt;# Turn off the softkey labels 'cause they burn&lt;BR /&gt;# terminal screens and are annoying when editing&lt;BR /&gt;# or watching commands and data.&lt;BR /&gt;# (no effect for non-softkey terminals)&lt;BR /&gt;# Also send an sgr0 (end enhancements) in case it is ON&lt;BR /&gt;   echo "$(tput rmln)$(tput sgr0)\c"&lt;BR /&gt;&lt;BR /&gt;# Set user's shell to always timeout so forgotten logins will go away&lt;BR /&gt;# Change TMOUT to readonly to remind users how important this is.&lt;BR /&gt;# For development/deployment, this can be left as a writable variable&lt;BR /&gt;# that will require changing at each login..again, to remind users&lt;BR /&gt;# that leaving a session open is a security risk.&lt;BR /&gt;# To avoid a shell error from TMOUT set to readonly, check using the&lt;BR /&gt;#   shell readonly builtin for a list of readonly variables and&lt;BR /&gt;#   skip setting TMOUT if it is already readonly.&lt;BR /&gt;  STDTMOUT=6000&lt;BR /&gt;  if [ $(readonly | grep -c TMOUT) -eq 0 ]&lt;BR /&gt;  then&lt;BR /&gt;     export TMOUT=${TMOUT:-$STDTMOUT}           # undefined&lt;BR /&gt;     [ $TMOUT = 0 ] &amp;amp;&amp;amp; export TMOUT=$STDTMOUT   # defined as zero, set to $STDTMOUT&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;# Set HISTFILE and HISTSIZE&lt;BR /&gt;   export HISTFILE=${HISTFILE:-$HOME/.sh_history}  # if not set already&lt;BR /&gt;   export HISTSIZE=5000         # history file size&lt;BR /&gt;&lt;BR /&gt;# Set PS1 (customize as needed)&lt;BR /&gt;# PS1=â  ${PWD##*/} $â    (this shows current directory)&lt;BR /&gt;   [ $(id â  u) â  eq 0 ] &amp;amp;&amp;amp; PS1=â  # â   || PS1=â  $ â  &lt;BR /&gt;&lt;BR /&gt;# Clear any extra input lines that may be buffered&lt;BR /&gt;&lt;BR /&gt;   while :&lt;BR /&gt;   do&lt;BR /&gt;     ANS=$(line -t 1)&lt;BR /&gt;     ERR=$?&lt;BR /&gt;     [ $ERR -ne 0 ] &amp;amp;&amp;amp; break&lt;BR /&gt;   done&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;= = = = = = = = = = = = &lt;BR /&gt; &lt;BR /&gt;They key to your specific problem is the ttytype -s command. It will automatically figure out your terminal and set TERM, LINES, COLUMNS and ERASE. The rest of the code handles many future problems you may see with default profiles. Be sure to check /etc/profile as well as .profile in all user $HOME directories.</description>
      <pubDate>Wed, 13 Jan 2010 04:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562978#M371915</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-01-13T04:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562979#M371916</link>
      <description>&lt;!--!*#--&gt;Sorry about the Windows special characters in the second listing. Here is the clean version:&lt;BR /&gt; &lt;BR /&gt;# Bypass interactive-only code&lt;BR /&gt;tty â  s&lt;BR /&gt;RTN=$?&lt;BR /&gt;if [ $RTN â  eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;# ID the terminal&lt;BR /&gt;   eval $(ttytype â  s)&lt;BR /&gt; &lt;BR /&gt;# In case we are on a GSP/MP that blocks ttytype,&lt;BR /&gt;# use resize to query the LINES and COLUMNS&lt;BR /&gt;   LINES=${LINES:-â  â  }&lt;BR /&gt;   [ â  $LINESâ   = â  â   ] &amp;amp;&amp;amp; eval $(resize)&lt;BR /&gt;&lt;BR /&gt;# Set stty and tabs&lt;BR /&gt;   stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff&lt;BR /&gt;   stty susp \^Z dsusp \^Y        &lt;BR /&gt;   tabs&lt;BR /&gt; &lt;BR /&gt;# Turn off the softkey labels 'cause they burn&lt;BR /&gt;# terminal screens and are annoying when editing&lt;BR /&gt;# or watching commands and data.&lt;BR /&gt;# (no effect for non-softkey terminals)&lt;BR /&gt;# Also send an sgr0 (end enhancements) in case it is ON&lt;BR /&gt;&lt;BR /&gt;   echo "$(tput rmln)$(tput sgr0)\c"&lt;BR /&gt; &lt;BR /&gt;# Set user's shell to always timeout so forgotten logins will go away&lt;BR /&gt;# Change TMOUT to readonly to remind users how important this is.&lt;BR /&gt;# For development/deployment, this can be left as a writable variable&lt;BR /&gt;# that will require changing at each login..again, to remind users&lt;BR /&gt;# that leaving a session open is a security risk.&lt;BR /&gt; &lt;BR /&gt;# To avoid a shell error from TMOUT set to readonly, check using the&lt;BR /&gt;#   shell readonly builtin for a list of readonly variables and&lt;BR /&gt;#   skip setting TMOUT if it is already readonly.&lt;BR /&gt; &lt;BR /&gt;  STDTMOUT=6000&lt;BR /&gt;  if [ $(readonly | grep -c TMOUT) -eq 0 ]&lt;BR /&gt;  then&lt;BR /&gt;     export TMOUT=${TMOUT:-$STDTMOUT}           # undefined&lt;BR /&gt;     [ $TMOUT = 0 ] &amp;amp;&amp;amp; export TMOUT=$STDTMOUT   # defined as zero, set to $STDTMOUT&lt;BR /&gt;  fi&lt;BR /&gt; &lt;BR /&gt;# Set HISTFILE and HISTSIZE&lt;BR /&gt;   export HISTFILE=${HISTFILE:-$HOME/.sh_history}  # if not set already&lt;BR /&gt;   export HISTSIZE=5000                            # history file size&lt;BR /&gt; &lt;BR /&gt;# Set PS1 (customize as needed)&lt;BR /&gt;# PS1=â  ${PWD##*/} $â    (this shows current directory)&lt;BR /&gt;   [ $(id â  u) â  eq 0 ] &amp;amp;&amp;amp; PS1=â  # â   || PS1=â  $ â  &lt;BR /&gt; &lt;BR /&gt;# Clear any extra input lines that may be buffered&lt;BR /&gt;   while :&lt;BR /&gt;   do&lt;BR /&gt;     ANS=$(line -t 1)&lt;BR /&gt;     ERR=$?&lt;BR /&gt;     [ $ERR -ne 0 ] &amp;amp;&amp;amp; break&lt;BR /&gt;   done&lt;BR /&gt;fi</description>
      <pubDate>Wed, 13 Jan 2010 04:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562979#M371916</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-01-13T04:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562980#M371917</link>
      <description>&lt;!--!*#--&gt;One more time...&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# Bypass interactive-only code&lt;BR /&gt;tty -s&lt;BR /&gt;RTN=$?&lt;BR /&gt;if [ $RTN -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt; &lt;BR /&gt;# ID the terminal&lt;BR /&gt;   eval $(ttytype -s)&lt;BR /&gt; &lt;BR /&gt;# In case we are on a GSP/MP that blocks ttytype,&lt;BR /&gt;# use resize to query the LINES and COLUMNS&lt;BR /&gt;   LINES=${LINES:-""}&lt;BR /&gt;   [ "$LINES" = "" ] &amp;amp;&amp;amp; eval $(resize)&lt;BR /&gt; &lt;BR /&gt;# Set stty and tabs&lt;BR /&gt;   stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff&lt;BR /&gt;   stty susp \^Z dsusp \^Y        &lt;BR /&gt;   tabs&lt;BR /&gt; &lt;BR /&gt;# Turn off the softkey labels 'cause they burn&lt;BR /&gt;# terminal screens and are annoying when editing&lt;BR /&gt;# or watching commands and data.&lt;BR /&gt;# (no effect for non-softkey terminals)&lt;BR /&gt;# Also send an sgr0 (end enhancements) in case it is ON&lt;BR /&gt;&lt;BR /&gt;   echo "$(tput rmln)$(tput sgr0)\c"&lt;BR /&gt; &lt;BR /&gt;# Set user's shell to always timeout so forgotten logins will go away&lt;BR /&gt;# Change TMOUT to readonly to remind users how important this is.&lt;BR /&gt;# For development/deployment, this can be left as a writable variable&lt;BR /&gt;# that will require changing at each login..again, to remind users&lt;BR /&gt;# that leaving a session open is a security risk.&lt;BR /&gt; &lt;BR /&gt;# To avoid a shell error from TMOUT set to readonly, check using the&lt;BR /&gt;#   shell readonly builtin for a list of readonly variables and&lt;BR /&gt;#   skip setting TMOUT if it is already readonly.&lt;BR /&gt; &lt;BR /&gt;  STDTMOUT=6000&lt;BR /&gt;  if [ $(readonly | grep -c TMOUT) -eq 0 ]&lt;BR /&gt;  then&lt;BR /&gt;     export TMOUT=${TMOUT:-$STDTMOUT}           # undefined&lt;BR /&gt;     [ $TMOUT = 0 ] &amp;amp;&amp;amp; export TMOUT=$STDTMOUT   # defined as zero, set to $STDTMOUT&lt;BR /&gt;  fi&lt;BR /&gt; &lt;BR /&gt;# Set HISTFILE and HISTSIZE&lt;BR /&gt;   export HISTFILE=${HISTFILE:-$HOME/.sh_history}  # if not set already&lt;BR /&gt;   export HISTSIZE=5000                            # history file size&lt;BR /&gt; &lt;BR /&gt;# Set PS1 (customize as needed)&lt;BR /&gt;# PS1='${PWD##*/} $'  (this shows current directory)&lt;BR /&gt;   [ $(id -u) -eq 0 ] &amp;amp;&amp;amp; PS1="# " || PS1="$ "&lt;BR /&gt; &lt;BR /&gt;# Clear any extra input lines that may be buffered&lt;BR /&gt;   while :&lt;BR /&gt;   do&lt;BR /&gt;     ANS=$(line -t 1)&lt;BR /&gt;     ERR=$?&lt;BR /&gt;     [ $ERR -ne 0 ] &amp;amp;&amp;amp; break&lt;BR /&gt;   done&lt;BR /&gt;fi</description>
      <pubDate>Wed, 13 Jan 2010 04:08:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562980#M371917</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-01-13T04:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562981#M371918</link>
      <description>you can simply do as follows and I am sure it will work for you &lt;BR /&gt;&lt;BR /&gt;#TERM=vt100;export TERM&lt;BR /&gt;&lt;BR /&gt;#sam&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Jan 2010 07:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam/m-p/4562981#M371918</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-01-16T07:12:38Z</dc:date>
    </item>
  </channel>
</rss>

