<?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: finding info in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951386#M290307</link>
    <description>Hi Khilari,&lt;BR /&gt;There are many ways through which you will get information about memory.Following are some commonly preferred ways:&lt;BR /&gt;1]glance --&amp;gt; by using glance command you can check for the memory.&lt;BR /&gt;2]swapinfo --&amp;gt;swapinfo prints information about device and file system paging space&lt;BR /&gt; By default, swapinfo prints to standard output a two line header as shown here, followed by one line per paging area: &lt;BR /&gt;o/p--&amp;gt;&lt;BR /&gt;        Kb      Kb      Kb      PCT   &lt;BR /&gt;TYPE   AVAIL   USED    FREE    USED &lt;BR /&gt;      &lt;BR /&gt;&lt;BR /&gt; START/      Kb &lt;BR /&gt; LIMIT   RESERVE PRI     NAME &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3]dmesg --&amp;gt;gives you physical,available &amp;amp; lockable memory in kbytes&lt;BR /&gt;&lt;BR /&gt;4]print_manifest&lt;BR /&gt;&lt;BR /&gt;5]machinfo --&amp;gt; provides another mechanism for reporting the amount of physical memory.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Reshma</description>
    <pubDate>Mon, 26 Feb 2007 11:44:00 GMT</pubDate>
    <dc:creator>Reshma Malusare</dc:creator>
    <dc:date>2007-02-26T11:44:00Z</dc:date>
    <item>
      <title>finding info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951382#M290303</link>
      <description>Hi guys, i wanted to know how do u get to know how much memory an hp-ux system has. And also for network interface how do u find the speed and also if its duplex or not.Also, just want to confirm that the default route means the gateway right?. And lastly,  netmask ffff8000 means 255.255.128.0 ?&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 26 Feb 2007 11:15:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951382#M290303</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2007-02-26T11:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: finding info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951383#M290304</link>
      <description>HI Khilari,&lt;BR /&gt;&lt;BR /&gt;U can use swapinfo command to view your memory in hpux.&lt;BR /&gt;&lt;BR /&gt;same time you can use print_manifest to view complete machine configuration. &lt;BR /&gt;&lt;BR /&gt;Note this option only works if ignite is installed. Try it out.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;satish</description>
      <pubDate>Mon, 26 Feb 2007 11:20:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951383#M290304</guid>
      <dc:creator>Satish Prajapati</dc:creator>
      <dc:date>2007-02-26T11:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: finding info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951384#M290305</link>
      <description>&lt;BR /&gt;Ther are several ways to get the info you want&lt;BR /&gt;&lt;BR /&gt;SAM &lt;BR /&gt;Glance&lt;BR /&gt;dmesg&lt;BR /&gt;&lt;BR /&gt;all the above will give you a part of the info you want&lt;BR /&gt;&lt;BR /&gt;You can also download and run sysinfo from the attached site.  It will give you all of the info you want, plus more, in a nicely fornatted report&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&amp;amp;description=on&amp;amp;term=sysinfo&amp;amp;Search=Search" target="_blank"&gt;http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&amp;amp;description=on&amp;amp;term=sysinfo&amp;amp;Search=Search&lt;/A&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:21:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951384#M290305</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2007-02-26T11:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: finding info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951385#M290306</link>
      <description>You can use glance and go into the memory section (by bpressing m) to get the phyiscal memory &lt;BR /&gt;&lt;BR /&gt;&amp;amp; yes netmask ffff8000 means 255.255.128.0&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Feb 2007 11:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951385#M290306</guid>
      <dc:creator>gstonian</dc:creator>
      <dc:date>2007-02-26T11:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: finding info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951386#M290307</link>
      <description>Hi Khilari,&lt;BR /&gt;There are many ways through which you will get information about memory.Following are some commonly preferred ways:&lt;BR /&gt;1]glance --&amp;gt; by using glance command you can check for the memory.&lt;BR /&gt;2]swapinfo --&amp;gt;swapinfo prints information about device and file system paging space&lt;BR /&gt; By default, swapinfo prints to standard output a two line header as shown here, followed by one line per paging area: &lt;BR /&gt;o/p--&amp;gt;&lt;BR /&gt;        Kb      Kb      Kb      PCT   &lt;BR /&gt;TYPE   AVAIL   USED    FREE    USED &lt;BR /&gt;      &lt;BR /&gt;&lt;BR /&gt; START/      Kb &lt;BR /&gt; LIMIT   RESERVE PRI     NAME &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3]dmesg --&amp;gt;gives you physical,available &amp;amp; lockable memory in kbytes&lt;BR /&gt;&lt;BR /&gt;4]print_manifest&lt;BR /&gt;&lt;BR /&gt;5]machinfo --&amp;gt; provides another mechanism for reporting the amount of physical memory.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Reshma</description>
      <pubDate>Mon, 26 Feb 2007 11:44:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951386#M290307</guid>
      <dc:creator>Reshma Malusare</dc:creator>
      <dc:date>2007-02-26T11:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: finding info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951387#M290308</link>
      <description>Here's a script for lancards:&lt;BR /&gt;&lt;BR /&gt;# cat /usr/local/bin/lancards&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# script to check speed and settings of lan cards&lt;BR /&gt;PATH=/usr/sbin:/usr/bin&lt;BR /&gt;ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`&lt;BR /&gt;for i in $ppas&lt;BR /&gt;do&lt;BR /&gt;printf "Card at PPA %s - " $i&lt;BR /&gt;ipa=`ifconfig lan${i} 2&amp;gt;/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assigned")}else{printf("%s ",ip)}}'`&lt;BR /&gt;printf "IP Address: %15s- " "$ipa"&lt;BR /&gt;lanadmin -x $i 2&amp;gt;/dev/null | awk '{$1="";printf("%s",$0)}'&lt;BR /&gt;echo ""&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and one for memory:&lt;BR /&gt;&lt;BR /&gt;# cat /usr/local/bin/hpmem&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# Taken from the HP/UniGraphics FAQ&lt;BR /&gt;# You must be ROOT to execute this since it uses adb to&lt;BR /&gt;# examine the running kernel&lt;BR /&gt;#&lt;BR /&gt;GetKernelSymbol()&lt;BR /&gt;{&lt;BR /&gt;echo "$1/D" | \&lt;BR /&gt;adb $hpux /dev/kmem | \&lt;BR /&gt;tr "\012" " " | \&lt;BR /&gt;awk -F: '{print $3}'|\&lt;BR /&gt;read kval&lt;BR /&gt;}&lt;BR /&gt;hpux=/hp-ux&lt;BR /&gt;rev=$(uname -r | cut -d. -f2)&lt;BR /&gt;if ((rev &amp;gt; 9)); then hpux=/stand/vmunix ;fi&lt;BR /&gt;/bin/uname -a&lt;BR /&gt;# if 11iv2 or higher - get cpu this way&lt;BR /&gt;ver=$(uname -r | cut -d. -f3)&lt;BR /&gt;if ((ver &amp;gt; 22)); then&lt;BR /&gt;  kval=`echo "processor_count/D" | adb /stand/vmunix /dev/kmem |tail -1|awk -F: '{print $2}'  `&lt;BR /&gt;else&lt;BR /&gt;  GetKernelSymbol "processor_count"&lt;BR /&gt;fi&lt;BR /&gt;print CPU Count: $kval&lt;BR /&gt;GetKernelSymbol "itick_per_tick"&lt;BR /&gt;let speed=kval/10000&lt;BR /&gt;print CPU Speed: $speed MHz&lt;BR /&gt;if ((rev &amp;gt; 10)); then&lt;BR /&gt;  print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit&lt;BR /&gt;  print Kernel Support: `getconf KERNEL_BITS`-bit&lt;BR /&gt;  GetKernelSymbol "memory_installed_in_machine"&lt;BR /&gt;else&lt;BR /&gt;  GetKernelSymbol "physmem"&lt;BR /&gt;fi&lt;BR /&gt;# if 11iv2 or higher - get memory this way&lt;BR /&gt;ver=$(uname -r | cut -d. -f3)&lt;BR /&gt;if ((ver &amp;gt; 22)); then&lt;BR /&gt;  kernel=$(/usr/sbin/kcpath -x)&lt;BR /&gt;  hexval=$(echo "phys_mem_pages/A" | adb  $kernel /dev/kmem|tail +2|awk '{print $2}')&lt;BR /&gt;  REAL_MEM=$(echo ${hexval}=D|adb)&lt;BR /&gt;  mb=$(expr ${REAL_MEM} / 256)&lt;BR /&gt;else&lt;BR /&gt;  let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;fi&lt;BR /&gt;print RAM Size: $mb MB&lt;BR /&gt;GetKernelSymbol "bufpages"&lt;BR /&gt;let mb=kval*4/1024 # convert pages to MB&lt;BR /&gt;print bufpages: $mb MB&lt;BR /&gt;GetKernelSymbol "maxuprc"&lt;BR /&gt;print maxuprc: $kval&lt;BR /&gt;GetKernelSymbol "maxvgs"&lt;BR /&gt;print maxvgs: $kval&lt;BR /&gt;GetKernelSymbol "maxfiles"&lt;BR /&gt;print maxfiles: $kval&lt;BR /&gt;GetKernelSymbol "max_thread_proc"&lt;BR /&gt;print max_thread_proc: $kval&lt;BR /&gt;GetKernelSymbol "nfile"&lt;BR /&gt;print nfile: $kval&lt;BR /&gt;GetKernelSymbol "nproc"&lt;BR /&gt;print nproc: $kval&lt;BR /&gt;GetKernelSymbol "ninode"&lt;BR /&gt;print ninode: $kval&lt;BR /&gt;GetKernelSymbol "vfd_cw"&lt;BR /&gt;print shmmax: $kval&lt;BR /&gt;GetKernelSymbol "shmmni"&lt;BR /&gt;print shmmni: $kval&lt;BR /&gt;GetKernelSymbol "dbc_max_pct"&lt;BR /&gt;print dbc_max_pct: $kval&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or you can compile the attached c program called memdetail.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Feb 2007 12:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951387#M290308</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-02-26T12:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: finding info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951388#M290309</link>
      <description>Hi,&lt;BR /&gt;to get memeory info you can use this Perl script from EACH user:&lt;BR /&gt;&lt;BR /&gt;# To get RAM size in KB&lt;BR /&gt;perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L");&lt;BR /&gt;syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0);&lt;BR /&gt;print "RAM=".int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))."\n";'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;netmask ffff8000 means 255.255.128.0&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2007 07:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951388#M290309</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-02-27T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: finding info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951389#M290310</link>
      <description>Hi,&lt;BR /&gt;Please read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; on how to reward any useful answers given to your questions.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2007 09:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-info/m-p/3951389#M290310</guid>
      <dc:creator>Reshma Malusare</dc:creator>
      <dc:date>2007-02-27T09:03:41Z</dc:date>
    </item>
  </channel>
</rss>

