<?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: collecting basic information from OS in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450524#M496533</link>
    <description>&lt;P&gt;It depends on your understanding of "basic information".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider to try ignite's "print_manifest".&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2014 08:52:04 GMT</pubDate>
    <dc:creator>Torsten.</dc:creator>
    <dc:date>2014-04-17T08:52:04Z</dc:date>
    <item>
      <title>collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450514#M496532</link>
      <description>&lt;P&gt;I am in progres of collecting basic OS information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I refered to the nickel script,but it was last modified on 2006.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any nickel script that was modified recently ?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 08:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450514#M496532</guid>
      <dc:creator>tempsample</dc:creator>
      <dc:date>2014-04-17T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450524#M496533</link>
      <description>&lt;P&gt;It depends on your understanding of "basic information".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider to try ignite's "print_manifest".&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 08:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450524#M496533</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2014-04-17T08:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450562#M496534</link>
      <description>&lt;P&gt;Hi Torsten,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first let me check with nickel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a small doubt in nickel script working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after executing nickel,each output are saved in a seperate file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some thing like crontab -l,cmviewcl,lvdisplay . each has its own seperate output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I need to have all in a single output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some thing like in the attachement with the name "sample output"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in which line&amp;nbsp; the modification is needed in nickel script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 09:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450562#M496534</guid>
      <dc:creator>tempsample</dc:creator>
      <dc:date>2014-04-17T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450694#M496535</link>
      <description>&lt;P&gt;Try CFG2HTML:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cfg2html.com/" target="_blank"&gt;http://cfg2html.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The download for HP-UX is at the bottom of the page. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CFG2HTML output is in one single large file.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 13:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6450694#M496535</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2014-04-17T13:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6451316#M496536</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if [ ! -x $PLUGINS/get_ministat.sh ]&lt;BR /&gt;then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; banner "Error"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Installation Error, the plug-in directory is missing or execution bit is not set"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "You MUST install cfg2html via swinstall or tar xvf"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Plugin-Dir = $PLUGINS"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 5&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want those plugins to be installed . just I want the script to be placed as a normal execution script in server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what all are the changes need to done to solve this problem.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 08:24:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6451316#M496536</guid>
      <dc:creator>tempsample</dc:creator>
      <dc:date>2014-04-18T08:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6451494#M496537</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;I don't want those plugins to be installed .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why not? &amp;nbsp;Those plugins are what enables CFG2HTML to gather iformation about the server. &amp;nbsp;Without them you will not get what you require.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 13:44:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6451494#M496537</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2014-04-18T13:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6452048#M496538</link>
      <description>&lt;P&gt;Not sure why you included some pictures of a Linux screen. HP-UX is not Linux (or AIX or Solaris, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cfg2html is a single script. But like most collectors of information there are many additional commands to be run and formatted. Whether these commands are additional scripts is irrelevant.&amp;nbsp; If you install it with swinstall, then you can run the complete tool with a single command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now ministat is just the summary at the top of the listing.&lt;/P&gt;&lt;P&gt;If that is all you want, then just run it (after installing all of cfg2html):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/cfg2html/plugins/get_ministat.sh&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It is one of many useful scripts that are part of the cfg2html package.&lt;/P&gt;&lt;P&gt;If you want a different output, you can modify the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want just the summary in order to collect server details, you can use hostinfo which is attached.&lt;/P&gt;&lt;P&gt;It looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;##       Hostname:           atl1
##       HP-UX version:      11.23
##       HP model:           9000/800/L1500-6x
##       Product Number:     A6797B
##       Processor cores     2
##       Processor speed:    650 Mhz
##       System memory:      4.096 GB
##       Serial Number:      SGH4235LNV

or blades:

##       Hostname:           bladei2
##       HP-UX version:      11.31
##       HP model:           ia64 hp Integrity BL860c i2
##       Product Number:     AD399A
##       Processor cores     16
##       Processor speed:    1600 Mhz
##       System memory:      98.202 GB
##       Serial Number:      USE123AYMA

or for vPars:


##       vPar environment:   "vpar0"
##       Hostname:           atl5vp0
##       HP-UX version:      11.31
##       HP model:           9000/800/rp7410
##       Product Number:     A6752A
##       Processor cores     1 (nPar total = 4)
##       Processor speed:    875 Mhz
##       System memory:      2.048 GB
##       Serial Number:      USR43216XD&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use this script as a replacement for /etc/motd so it shows at every login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2014 01:34:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6452048#M496538</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2014-04-20T01:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6452824#M496539</link>
      <description>&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have atatched my basic design .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to add other details below to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;from the attachement :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after to this line I have to add other details&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;section "1.System Hardware Specifications"&lt;BR /&gt;&amp;lt;br&amp;gt;&lt;BR /&gt;subsection "1.1 Server product and Model"&lt;BR /&gt;echo " "&lt;BR /&gt;echo&amp;nbsp; "Model&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : `model`" &amp;gt;&amp;gt; $PAGEDETAIL&lt;BR /&gt;echo&amp;nbsp; "System Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : `uname -n`" &amp;gt;&amp;gt; $PAGEDETAIL&lt;BR /&gt;echo&amp;nbsp; "Operating System Name&amp;nbsp;&amp;nbsp; : `uname -s`" &amp;gt;&amp;gt; $PAGEDETAIL&lt;BR /&gt;echo&amp;nbsp; "OS version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : `uname -r`" &amp;gt;&amp;gt; $PAGEDETAIL&lt;BR /&gt;echo&amp;nbsp; "Kernel version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : `getconf KERNEL_BITS`" &amp;gt;&amp;gt; $PAGEDETAIL&lt;BR /&gt;echo&amp;nbsp; "OS Base Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : `swlist | grep -i oe`" &amp;gt;&amp;gt; $PAGEDETAIL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------&amp;gt; from your example from hostinfo script related to&amp;nbsp;## Product number:&lt;/P&gt;&lt;P&gt;## look for Original and Current Product Number&lt;BR /&gt;## I2 or I4 must use cprop&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [[ $IA24 = false ]]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROD="$(echo "$CSTMTXT" | grep -e "Current Product Number" | awk '{print $NF}')"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [[ "$PROD" = "" || "$PROD" = "N/A" ]]&amp;nbsp; &amp;amp;&amp;amp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROD="$(echo "$CSTMTXT" | grep -e "Original Product Number" | awk '{print $NF}')"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPROP="$(/opt/propplus/bin/cprop -summary -c "System Summary")"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROD="$(echo "$CPROP" | awk '/Product Number/{print $NF}')"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;## Product number from file&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; PROD="$(awk -F: '/prod/{print $NF}' $HOSTINFOTXT)"&lt;BR /&gt;&amp;nbsp; echo "##&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product Number:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $PROD"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How Can I add those to my script in attachement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 13:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6452824#M496539</guid>
      <dc:creator>tempsample</dc:creator>
      <dc:date>2014-04-21T13:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6457314#M496540</link>
      <description>&lt;P&gt;The script has a lot of code to handle a very wide range (some 20 years of HP-UX versions) of code. Rather than explain all the different variations and how to obtain details without being root, I will just show the code to run on just the supported versions of HP-UX, that is 11.11 and later. It appears that you are just looking for the Product Number so here is code to provide it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[[ "$(uname -m)" = "ia64" ]] &amp;amp;&amp;amp; IA64=true || IA64=false
CSTMTXT="$(echo "sc product system;il" | cstm 2&amp;gt;&amp;amp;1)"
if [[ $IA64 = false ]]
then
   PROD="$(echo "$CSTMTXT" | grep -e "Current Product Number" | awk '{print $NF}')"
   [[ "$PROD" = "" || "$PROD" = "N/A" ]]  &amp;amp;&amp;amp;
      PROD="$(echo "$CSTMTXT" | grep -e "Original Product Number" | awk '{print $NF}')"
else
   CPROP="$(/opt/propplus/bin/cprop -summary -c "System Summary")"
   PROD="$(echo "$CPROP" | awk '/Product Number/{print $NF}')"
fi

echo "$PROD"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 02:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6457314#M496540</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2014-04-25T02:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6465676#M496541</link>
      <description>&lt;P&gt;I am running system with security type standard and trusted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to acheive two points .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first point :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;script needs to check if system is using standard or trusted,then it need to list the user that don't expire.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for trusted ,Is my understanding is correct&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;P&gt;for i in `cat /etc/passwd|cut -f1 -d:`&lt;BR /&gt;&amp;nbsp;do&lt;BR /&gt;&amp;nbsp;if [ 'getprpw -l mintm=0,exptm=0,lftm=0,expwarn=0 $i `]&amp;nbsp;&amp;nbsp;&amp;nbsp; ----&amp;gt; I think here i am making mistake.&lt;BR /&gt;&amp;nbsp;then&lt;BR /&gt;&amp;nbsp;echo "passwd never expire for user&amp;nbsp; $i:"&lt;BR /&gt;&amp;nbsp;fi&lt;BR /&gt;&amp;nbsp;done&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;for standard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;passwd -sa $i&amp;nbsp; ---&amp;gt; but in this output How&amp;nbsp; can I list the Non -expire user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I check for both trusted and standard type in a single script ?&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 11:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6465676#M496541</guid>
      <dc:creator>tempsample</dc:creator>
      <dc:date>2014-05-05T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: collecting basic information from OS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6470638#M496542</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you can getsysinfo script provided by HP , look in the attachement.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 14:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/collecting-basic-information-from-os/m-p/6470638#M496542</guid>
      <dc:creator>boukari</dc:creator>
      <dc:date>2014-05-09T14:19:53Z</dc:date>
    </item>
  </channel>
</rss>

