<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>The UNIX and Linux Forums - AIX</title>
		<link>http://www.unix.com/</link>
		<description><![CDATA[AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.]]></description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 22:41:20 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>5</ttl>
		<image>
			<url>http://solaris.unix.com/images/misc/rss.jpg</url>
			<title>The UNIX and Linux Forums - AIX</title>
			<link>http://www.unix.com/</link>
		</image>
		<item>
			<title>How to read the latest file name in adirectory.</title>
			<link>http://www.unix.com/aix/124275-how-read-latest-file-name-adirectory-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 19:49:32 GMT</pubDate>
			<description>Hello all, 
  
In a shell script, I need to get the name of the latest file which was created in a directory. i.e. I have the following directory. 
 
Code: 
--------- 
/tmp/public/logs/ 
--------- 
  
In this directory, I want to get the latest file that was created. Can you give me a hint as how...</description>
			<content:encoded><![CDATA[<div>Hello all,<br />
 <br />
In a shell script, I need to get the name of the latest file which was created in a directory. i.e. I have the following directory.<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">/tmp/public/logs/</code><hr />
</div>In this directory, I want to get the latest file that was created. Can you give me a hint as how can I get the latest file, based on timestamp?<br />
 <br />
Thanks in advance...</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>haroon_a</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124275-how-read-latest-file-name-adirectory.html</guid>
		</item>
		<item>
			<title><![CDATA[kill -3 <PID> ... where the output file goes?]]></title>
			<link>http://www.unix.com/aix/124273-kill-3-pid-where-output-file-goes-new-post.html</link>
			<pubDate>Fri, 20 Nov 2009 18:03:53 GMT</pubDate>
			<description><![CDATA[Hi all, 
  
I am generating the coredump of my JBoss, and by default it puts it in to a particular directory. i.e. JBOSS_HOME/. I would like this output file to be created, lets say in /tmp/dump/. 
  
I tried the following: 
  
 
Code: 
--------- 
kill -3 9404940>/tmp/dump/out.txt]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
 <br />
I am generating the coredump of my JBoss, and by default it puts it in to a particular directory. i.e. JBOSS_HOME/. I would like this output file to be created, lets say in /tmp/dump/.<br />
 <br />
I tried the following:<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">kill -3 9404940&gt;/tmp/dump/out.txt</code><hr />
</div>But it created /tmp/dump/out.txt with 0 KB, and yet it created the dump file in JBOSS_HOME/ directory.<br />
 <br />
Can you please let me know how can I have kill -3 to create the core dump file in the desired location?<br />
 <br />
Thanks,</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>haroon_a</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124273-kill-3-pid-where-output-file-goes.html</guid>
		</item>
		<item>
			<title>Upgrade from AIX 5.3 to 6.1</title>
			<link>http://www.unix.com/aix/124122-upgrade-aix-5-3-6-1-a-new-post.html</link>
			<pubDate>Thu, 19 Nov 2009 08:18:38 GMT</pubDate>
			<description><![CDATA[Hello Folks, 
i am facing some weired issues. 
case is like this :- 
initially i was on AIX 5.3  
i have installed filesets related to my application and those were in APPLY state.(COMMIT is set as NO) 
Then i have taken lslpp -l|  grep -i <apps name> 
in that i confirmed whether the filesets are...]]></description>
			<content:encoded><![CDATA[<div>Hello Folks,<br />
i am facing some weired issues.<br />
case is like this :-<br />
initially i was on AIX 5.3 <br />
i have installed filesets related to my application and those were in APPLY state.(COMMIT is set as NO)<br />
Then i have taken lslpp -l|  grep -i &lt;apps name&gt;<br />
in that i confirmed whether the filesets are in APPLIED state or not. They were in APPLIED state. I have created some data.<br />
Now i upgraded the system (5.3) to aix 6.1 and after upgradation  i checked the lslpp o/p the it was showing the same filesets (which were in APPLIED state in 5.3) in COMMITED state.<br />
<br />
Because of this i am not able to add new filesets even though using &quot;OVERWRITE option which is set as YES.&quot;<br />
<br />
Any pointers why this is happening ?<br />
ideally the filesets should be in APPLIED state.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>harsh_mulay</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124122-upgrade-aix-5-3-6-1-a.html</guid>
		</item>
		<item>
			<title>lvm</title>
			<link>http://www.unix.com/aix/124119-lvm-new-post.html</link>
			<pubDate>Thu, 19 Nov 2009 07:57:42 GMT</pubDate>
			<description>Hi. 
  
can anyone define about VGDA,VGSA,and quorum in aix..</description>
			<content:encoded><![CDATA[<div>Hi.<br />
 <br />
can anyone define about VGDA,VGSA,and quorum in aix..</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>sumathi.k</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124119-lvm.html</guid>
		</item>
		<item>
			<title>Problem in ftpying the datasets containing comp values to AIX from mainframe</title>
			<link>http://www.unix.com/aix/124039-problem-ftpying-datasets-containing-comp-values-aix-mainframe-new-post.html</link>
			<pubDate>Wed, 18 Nov 2009 11:20:08 GMT</pubDate>
			<description>Hi, 
 
When i am trying to ftp COBOL generated data sets which contain comp values to AIX in ASCII mode. the comp values are getting corrupted. If i ftp the data set in binary mode it is working properly, but for this i have to change some compiler options in the COBOL. Also if i want to use the...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
When i am trying to ftp COBOL generated data sets which contain comp values to AIX in ASCII mode. the comp values are getting corrupted. If i ftp the data set in binary mode it is working properly, but for this i have to change some compiler options in the COBOL. Also if i want to use the data set outside a COBOL program for any calculations i am unable to use it as it is in binary.<br />
<br />
Thanks.<br />
Somasekhar Gajjala.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>sekhar gajjala</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124039-problem-ftpying-datasets-containing-comp-values-aix-mainframe.html</guid>
		</item>
		<item>
			<title>Kill IDLE Process using script !!!</title>
			<link>http://www.unix.com/aix/124015-kill-idle-process-using-script-new-post.html</link>
			<pubDate>Wed, 18 Nov 2009 06:33:24 GMT</pubDate>
			<description>Dear Friends , 
  I am using DB2 database in AIX 5.3 server . In my server some IDLE process are generated after several times which I need to kill it manually each and every time . 
  
The process I query like following : 
  
 
Code: 
--------- 
root@bagpuss $ ps auxw|sort -r +3|head -10 
USER    ...</description>
			<content:encoded><![CDATA[<div>Dear Friends ,<br />
  I am using DB2 database in AIX 5.3 server . In my server some IDLE process are generated after several times which I need to kill it manually each and every time .<br />
 <br />
The process I query like following :<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">root@bagpuss $ ps auxw|sort -r +3|head -10<br />
USER&nbsp; &nbsp; &nbsp; PID&nbsp;  %CPU&nbsp; %MEM&nbsp;  SZ&nbsp; RSS&nbsp; &nbsp; TTY STAT&nbsp; STIME&nbsp; TIME&nbsp;  COMMAND<br />
sharon&nbsp;  1658958&nbsp; 0.1&nbsp; 9.0 218016 214804 - A&nbsp; &nbsp; &nbsp; Sep 13 38:16 db2agent (idle) 0<br />
dpf&nbsp; &nbsp; &nbsp; 1036486&nbsp; 0.0&nbsp; 1.0 14376 14068&nbsp;  - A&nbsp; &nbsp; &nbsp; Sep 17&nbsp; 3:10 db2hmon 0<br />
sharon&nbsp;  1822932&nbsp; 0.0&nbsp; 1.0 12196 11608&nbsp;  - A&nbsp; &nbsp; &nbsp; Sep 12&nbsp; 6:41 db2hmon 0<br />
dpf&nbsp; &nbsp; &nbsp; 1011760&nbsp; 0.0&nbsp; 0.0 9264&nbsp; 9060&nbsp; &nbsp; - A&nbsp; &nbsp; &nbsp; Sep 17&nbsp; 3:03 db2hmon 3<br />
dpf&nbsp; &nbsp; &nbsp; 1532116&nbsp; 0.0&nbsp; 0.0 9264&nbsp; 9020&nbsp; &nbsp; - A&nbsp; &nbsp; &nbsp; Sep 17&nbsp; 3:04 db2hmon 2<br />
dpf&nbsp; &nbsp; &nbsp;  786672&nbsp; 0.0&nbsp; 0.0 9264&nbsp; 8984&nbsp; &nbsp; - A&nbsp; &nbsp; &nbsp; Sep 17&nbsp; 3:02 db2hmon 5<br />
dpf&nbsp; &nbsp; &nbsp; 1077470&nbsp; 0.0&nbsp; 0.0 9264&nbsp; 8968&nbsp; &nbsp; - A&nbsp; &nbsp; &nbsp; Sep 17&nbsp; 3:03 db2hmon 1<br />
dpf&nbsp; &nbsp; &nbsp; 1269798&nbsp; 0.0&nbsp; 0.0 9248&nbsp; 9044&nbsp; &nbsp; - A&nbsp; &nbsp; &nbsp; Sep 17&nbsp; 2:50 db2hmon 4<br />
db2inst1&nbsp; 454756&nbsp; 0.0&nbsp; 0.0 9012&nbsp; 7120&nbsp; &nbsp; - A&nbsp; &nbsp; &nbsp; Jul 19&nbsp; 0:52 db2sysc 0</code><hr />
</div> <br />
Now , I want to create a script which helps me to find out the IDLE process and Kill that process automatically using PID. <br />
 <br />
Would anybody help me to give a sample script to do it ?<br />
 <br />
I am grateful to you . Waiting for Kind reply ... ....</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>shipon_97</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124015-kill-idle-process-using-script.html</guid>
		</item>
		<item>
			<title>Temporarily disabling unused ethernet adapter</title>
			<link>http://www.unix.com/aix/124009-temporarily-disabling-unused-ethernet-adapter-new-post.html</link>
			<pubDate>Wed, 18 Nov 2009 05:16:52 GMT</pubDate>
			<description><![CDATA[Hi,  
  
         In our AIX 5.2 server , we have one unused ethernet adapter which doesn't have cable connection .  For this interface , we are getting alerts in errpt .  
  
       Could you suggesthow to stop this alert ? And sametime i would like to keep this device in ODM .  
  
      Is there...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
 <br />
         In our AIX 5.2 server , we have one unused ethernet adapter which doesn't have cable connection .  For this interface , we are getting alerts in errpt . <br />
 <br />
       Could you suggesthow to stop this alert ? And sametime i would like to keep this device in ODM . <br />
 <br />
      Is there anyway to change the state of device from &quot;Available&quot; to &quot;Stopped&quot; ?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>sekarsamy</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/124009-temporarily-disabling-unused-ethernet-adapter.html</guid>
		</item>
		<item>
			<title>Performance and paging problems</title>
			<link>http://www.unix.com/aix/123998-performance-paging-problems-new-post.html</link>
			<pubDate>Tue, 17 Nov 2009 23:05:52 GMT</pubDate>
			<description><![CDATA[... a disk drive to be 100% busy? 
 
hdisk0 100.0    1.3K  342.7     1.3K   22.0   PgspIn     651  % Noncomp  75.5 
hdisk1  100.0     1.3K  320.2     1.2K   20.0   PgspOut        6  % Client   75.5 
 
It's really slowing down performance on my system and I would like to know what is causing this. 
...]]></description>
			<content:encoded><![CDATA[<div>... a disk drive to be 100% busy?<br />
<br />
hdisk0 100.0    1.3K  342.7     1.3K   22.0   PgspIn     651  % Noncomp  75.5<br />
hdisk1  100.0     1.3K  320.2     1.2K   20.0   PgspOut        6  % Client   75.5<br />
<br />
It's really slowing down performance on my system and I would like to know what is causing this.<br />
<br />
A point in the right direction would be appreciated.<br />
<br />
thanks.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>bbbngowc</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/123998-performance-paging-problems.html</guid>
		</item>
		<item>
			<title>To see vhost on VIOS after creating an HMC profile</title>
			<link>http://www.unix.com/aix/123892-see-vhost-vios-after-creating-hmc-profile-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 23:24:32 GMT</pubDate>
			<description>I created a profile in HMC for a new LPAR and activated it but not yet installed AIX. 
  
Is there a step to make this new LPAR available as vhostX from the VIO server after creating and activating an HMC profile? 
  
I already shared the CD-ROM device from the HMC profile. 
  
Thanks. 
  
  
-...</description>
			<content:encoded><![CDATA[<div>I created a profile in HMC for a new LPAR and activated it but not yet installed AIX.<br />
 <br />
Is there a step to make this new LPAR available as vhostX from the VIO server after creating and activating an HMC profile?<br />
 <br />
I already shared the CD-ROM device from the HMC profile.<br />
 <br />
Thanks.<br />
 <br />
 <br />
- Steve</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>learner1</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/123892-see-vhost-vios-after-creating-hmc-profile.html</guid>
		</item>
		<item>
			<title>tcpdump fails at AIX 5.2</title>
			<link>http://www.unix.com/aix/123852-tcpdump-fails-aix-5-2-a-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 12:25:26 GMT</pubDate>
			<description><![CDATA[While executing tcpdump , i am getting following error.  
  
tcpdump: BIOCSETIF: en0: Do not specify an existing file. 
  
I checked with truss , and i able to see kioctl system is failed with "EEXIST" 
  
============================================== 
  
Message from truss output...]]></description>
			<content:encoded><![CDATA[<div>While executing tcpdump , i am getting following error. <br />
 <br />
tcpdump: BIOCSETIF: en0: Do not specify an existing file.<br />
 <br />
I checked with truss , and i able to see kioctl system is failed with &quot;EEXIST&quot;<br />
 <br />
==============================================<br />
 <br />
Message from truss output<br />
--------------------------<br />
open(&quot;/dev/bpf0&quot;, O_RDONLY) = 3<br />
kioctl(3, -2145369492, 0x2FF22A18, 0x00000000) Err#17 EEXIST<br />
 <br />
================================================<br />
 <br />
I searched on this forum itself and i couldn't find anything. <br />
 <br />
Note : My customer wants to use tcpdump and not interested in iptrace .</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>sekarsamy</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/123852-tcpdump-fails-aix-5-2-a.html</guid>
		</item>
		<item>
			<title>AIX 6.1 - openssh - problem</title>
			<link>http://www.unix.com/aix/123789-aix-6-1-openssh-problem-new-post.html</link>
			<pubDate>Sun, 15 Nov 2009 19:31:33 GMT</pubDate>
			<description>Hello, 
 
I am new in aix unix. First i install openssl - success, next step i try install openssh when i put command *geninstall -Y -d /myssh openssh.base* i have this message: 
 
 
---Quote--- 
Validating RPM package selections ...                                            
                     ...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am new in aix unix. First i install openssl - success, next step i try install openssh when i put command <b>geninstall -Y -d /myssh openssh.base</b> i have this message:<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				Validating RPM package selections ...                                           <br />
                                                                                <br />
Please wait...                                                                  <br />
+-----------------------------------------------------------------------------+ <br />
                          RPM  Error Summary:                                   <br />
+-----------------------------------------------------------------------------+ <br />
The following packages were requested for installation                          <br />
but are not valid RPM packages:                                                 <br />
openssh.base
			
			<hr />
		</td>
	</tr>
	</table>
</div>What is the problem?<br />
Thanks for help.<br />
Sorry for my bad english i still learning.<font color="#738fbf"><br />
<br />
<font size="1">---------- Post updated at 22:31 ---------- Previous update was at 16:17 ----------</font><br />
<br />
</font>OK problem solved.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>bieszczaders</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/123789-aix-6-1-openssh-problem.html</guid>
		</item>
		<item>
			<title>etc/passwd</title>
			<link>http://www.unix.com/aix/123704-etc-passwd-new-post.html</link>
			<pubDate>Fri, 13 Nov 2009 15:31:50 GMT</pubDate>
			<description><![CDATA[Is there any way to allow users to access the etc/passwd file for commands like whoami but not be able to read the file?  If I don't put a user in the security group and change the permissions on the etc/passwd file to 640 (rw-r-----) the users can login but the whoami command doesn't work for...]]></description>
			<content:encoded><![CDATA[<div>Is there any way to allow users to access the etc/passwd file for commands like whoami but not be able to read the file?  If I don't put a user in the security group and change the permissions on the etc/passwd file to 640 (rw-r-----) the users can login but the whoami command doesn't work for them.  If I give other the read permission whoami works but the user can also read the file.  I want user to be able to run the whoami command but not see what is in the /etc/passwd file.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>daveisme</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/123704-etc-passwd.html</guid>
		</item>
		<item>
			<title>AIX platform: network interface list</title>
			<link>http://www.unix.com/aix/123685-aix-platform-network-interface-list-new-post.html</link>
			<pubDate>Fri, 13 Nov 2009 11:23:45 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am trying to list all the interface present in the given system. 
Here is sample program. 
i.e. cat 1.c 
 
#include <sys/types.h> 
#include <sys/socket.h> 
#include <sys/ioctl.h> 
#include <sys/dlpi.h>]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to list all the interface present in the given system.<br />
Here is sample program.<br />
i.e. cat 1.c<br />
<br />
#include &lt;sys/types.h&gt;<br />
#include &lt;sys/socket.h&gt;<br />
#include &lt;sys/ioctl.h&gt;<br />
#include &lt;sys/dlpi.h&gt;<br />
#include &lt;net/if.h&gt;<br />
/*#include &lt;sys/sockio.h&gt;*/<br />
#include &lt;unistd.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;strings.h&gt;<br />
#include &lt;<acronym title="Error Number">errno</acronym>.h&gt;<br />
#include &lt;netdb.h&gt;<br />
<br />
<br />
void num_of_interfaces(void);<br />
<br />
<br />
void<br />
in_getaddr(char *s, struct sockaddr *saddr)<br />
{<br />
        struct sockaddr_in *sin = (struct sockaddr_in *) saddr;<br />
        struct hostent *hp;<br />
       struct netent *np;<br />
        int error;<br />
        char str[BUFSIZ];<br />
<br />
        (void) memset(sin, 0, sizeof (*sin));<br />
        (void) strncpy(str, s, sizeof(str));<br />
<br />
        hp = getipnodebyname(str, AF_INET, 0, &amp;error);<br />
        if (!hp) {<br />
                        perror(&quot;getipnodebyname&quot;);<br />
                        return;<br />
                 }<br />
        freehostent(hp);<br />
<br />
        sin-&gt;sin_family = AF_INET;<br />
        (void) memcpy(&amp;sin-&gt;sin_addr, hp-&gt;h_addr, hp-&gt;h_length);<br />
}<br />
<br />
void num_of_interfaces()<br />
{<br />
<br />
        struct ifreq lifr;<br />
        int n;<br />
        char *buf;<br />
        int s = socket(AF_INET, SOCK_DGRAM, 0);<br />
        //struct ifnum lifn;<br />
        struct ifconf lifc;<br />
        struct ifreq *lifrp;<br />
        struct ifreq lifrl;    /* Local lifreq struct */<br />
        int numifs;<br />
        unsigned bufsize;<br />
   //     int64_t lifc_flags = LIFC_NOXMIT;<br />
<br />
  //      lifn.lifn_family = AF_UNSPEC;<br />
 //       lifn.lifn_flags = lifc_flags;<br />
//        if (ioctl(s, SIOCGLIFNUM, (char *)&amp;lifn) &lt; 0) {<br />
                /* Could not determine number of interfaces */<br />
          //      exit(2);<br />
         //}<br />
         numifs = 10;<br />
       //  printf(&quot;numifs is %d\n&quot;,numifs);<br />
         bufsize = numifs * sizeof (struct ifreq);<br />
         if ((buf = (char *)malloc(bufsize)) == NULL) {<br />
                      /* out of memory */<br />
                      close(s);<br />
                      exit(1);<br />
         }<br />
        memset(buf, 0, sizeof(bufsize));<br />
<br />
        // lifc.ifc_family = AF_UNSPEC;<br />
       //  lifc.ifc_flags = lifc_flags;<br />
         lifc.ifc_len = bufsize;<br />
         lifc.ifc_buf = buf;<br />
<br />
<br />
         if (ioctl(s, SIOCGIFCONF, (char *)&amp;lifc) &lt; 0) {<br />
                      free(buf);<br />
                      exit(1);<br />
          }<br />
          lifrp = lifc.ifc_req;<br />
<br />
          for (n = numifs ; n &gt; 0; n--, lifrp++) {<br />
<br />
                      (void) close(s);<br />
                      if (s == -1) {<br />
                              exit(1);<br />
                      }<br />
                      /* print the name of the interface */<br />
                      printf(&quot;%s\n&quot;,  lifrp-&gt;ifr_name);<br />
              }<br />
              if (buf != NULL)<br />
                      free(buf);<br />
}<br />
<br />
int<br />
main (int argc, char *argv[])<br />
{<br />
        int errors = 0,choice=0;<br />
        choice=atoi(argv[1]);<br />
        if (choice == 0)<br />
        num_of_interfaces();<br />
        return 0;<br />
}<br />
<br />
output:<br />
bash-3.00$ ./a.out 0<br />
en0<br />
<br />
<br />
Actual machine has 4 interface but it is listing first one only.<br />
Pls let me know what could be the problem.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>jgobbur</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/123685-aix-platform-network-interface-list.html</guid>
		</item>
		<item>
			<title>Check that memory page is filled by zeros when a process gets it in first time</title>
			<link>http://www.unix.com/aix/123579-check-memory-page-filled-zeros-when-process-gets-first-time-new-post.html</link>
			<pubDate>Fri, 13 Nov 2009 07:01:08 GMT</pubDate>
			<description><![CDATA[I have to check whether AIX fills physical memory pages by zeros when they are given for a new process (or may be when they are freed from an address space, but it's hardly probable). 
 
In other words when a process gets a new memory page, this one must be cleaned. 
 
I've solved this issue for...]]></description>
			<content:encoded><![CDATA[<div>I have to check whether AIX fills physical memory pages by zeros when they are given for a new process (or may be when they are freed from an address space, but it's hardly probable).<br />
<br />
In other words when a process gets a new memory page, this one must be cleaned.<br />
<br />
I've solved this issue for Solaris using DTrace.<br />
I found out that in Solaris memory pages are cleaned by pagezero routine.<br />
So using entry and return probes of fbt provider in DTrace and getting input and output of the functions which are used in pagezero implementation I achieved my goal.<br />
<br />
And now I have to solve the same task in AIX.<br />
As I understand the source code of AIX is closed and that way which was used in Solaris isn't fit.<br />
<br />
First of all could you tell me how can I translate the virtual address which was gotten from malloc to the physical address?<br />
<br />
I thought it's possible to do using kdb and its tr command.<br />
But when I type the next command in kdb:<br />
   (0)&gt; tr 0x20001878<br />
i get the next result:<br />
   WARNING: 0000000020001878 invalid sid<br />
where 0x20001878 is the address which was gotten from malloc, and sid - segment identifier.<br />
May be it's because the main purpose of kdb is debugging of kernel extension and my actions are wrong?<br />
<br />
My system: AIX 6.1 powerpc<font color="#738fbf"><br />
<br />
<font size="1">---------- Post updated 11-13-09 at 04:01 PM ---------- Previous update was 11-12-09 at 04:56 PM ----------</font><br />
<br />
</font>Ok. One more question.<br />
How can I get dump of whole computer's main memory (physical memory)?<br />
Does AIX include some utility like memdump?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>sokolovm</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/123579-check-memory-page-filled-zeros-when-process-gets-first-time.html</guid>
		</item>
		<item>
			<title>How to find time difference between 2 timestamps?</title>
			<link>http://www.unix.com/aix/123662-how-find-time-difference-between-2-timestamps-new-post.html</link>
			<pubDate>Fri, 13 Nov 2009 04:57:21 GMT</pubDate>
			<description><![CDATA[HI All, 
  
can some one please help me how to fine the difference between two time stamps say 
  
a= Nov 10, 2009 9:21:25 AM 
b= Nov 10, 2009 10:21:25 AM 
  
I want to find difference between the a & b 
  
I googled and tried with some options but no luck.]]></description>
			<content:encoded><![CDATA[<div>HI All,<br />
 <br />
can some one please help me how to fine the difference between two time stamps say<br />
 <br />
a= Nov 10, 2009 9:21:25 AM<br />
b= Nov 10, 2009 10:21:25 AM<br />
 <br />
I want to find difference between the a &amp; b<br />
 <br />
I googled and tried with some options but no luck.<br />
 <br />
My OS is AIX</div>

]]></content:encoded>
			<category domain="http://www.unix.com/aix/">AIX</category>
			<dc:creator>bandlan9</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/aix/123662-how-find-time-difference-between-2-timestamps.html</guid>
		</item>
	</channel>
</rss>
