<?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: tcpip script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605027#M823892</link>
    <description>Hi Shiv,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do the following..&lt;BR /&gt;&lt;BR /&gt;#script /tmp/info.txt&lt;BR /&gt;Script started, file is /tmp/info.txt&lt;BR /&gt;&lt;BR /&gt;#egrep 'maxfiles|maxfiles_lim' /stand/system&lt;BR /&gt;&lt;BR /&gt;#ndd -get /dev/tcp tcp_conn_request_max&lt;BR /&gt;&lt;BR /&gt;#ndd -get /dev/tcp tcp_ip_abort_interval&lt;BR /&gt;#exit&lt;BR /&gt;Script done, file is /tmp/info.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Aug 2005 15:50:28 GMT</pubDate>
    <dc:creator>Ranjith_5</dc:creator>
    <dc:date>2005-08-16T15:50:28Z</dc:date>
    <item>
      <title>tcpip script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605026#M823891</link>
      <description>Dear Sirs,&lt;BR /&gt;&lt;BR /&gt;I want know a script so that the output of the below mentioned commands gets recorded in a file:&lt;BR /&gt;&lt;BR /&gt;egrep 'maxfiles|maxfiles_lim' /stand/system&lt;BR /&gt;&lt;BR /&gt;ndd -get /dev/tcp tcp_conn_request_max&lt;BR /&gt;&lt;BR /&gt;ndd -get /dev/tcp tcp_ip_abort_interval&lt;BR /&gt;&lt;BR /&gt;Appreciate if anyone can suggest the script ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Tue, 16 Aug 2005 15:47:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605026#M823891</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-08-16T15:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: tcpip script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605027#M823892</link>
      <description>Hi Shiv,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do the following..&lt;BR /&gt;&lt;BR /&gt;#script /tmp/info.txt&lt;BR /&gt;Script started, file is /tmp/info.txt&lt;BR /&gt;&lt;BR /&gt;#egrep 'maxfiles|maxfiles_lim' /stand/system&lt;BR /&gt;&lt;BR /&gt;#ndd -get /dev/tcp tcp_conn_request_max&lt;BR /&gt;&lt;BR /&gt;#ndd -get /dev/tcp tcp_ip_abort_interval&lt;BR /&gt;#exit&lt;BR /&gt;Script done, file is /tmp/info.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Aug 2005 15:50:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605027#M823892</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-16T15:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: tcpip script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605028#M823893</link>
      <description>Put the stuff between the rows of *'s in a file:&lt;BR /&gt;&lt;BR /&gt;*********&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;grep maxfiles /stand/system &amp;gt;&amp;gt; /var/tmp/yourfile&lt;BR /&gt;echo "" &amp;gt;&amp;gt; /var/tmp/yourfile&lt;BR /&gt;ndd -get /dev/tcp tcp_conn_request_max &amp;gt;&amp;gt; /var/tmp/yourfile&lt;BR /&gt;echo "" &amp;gt;&amp;gt; /var/tmp/yourfile&lt;BR /&gt;ndd -get /dev/tcp tcp_ip_abort_interval &amp;gt;&amp;gt; /var/tmp/yourfile&lt;BR /&gt;&lt;BR /&gt;**********&lt;BR /&gt;&lt;BR /&gt;Save the file as something like myscript.sh and make it executable (chmod 700 myscript.sh).&lt;BR /&gt;&lt;BR /&gt;Now run it:&lt;BR /&gt;&lt;BR /&gt;# ./myscript.sh&lt;BR /&gt;&lt;BR /&gt;When it finishes look at the file /var/tmp/yourfile&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Aug 2005 15:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605028#M823893</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-08-16T15:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: tcpip script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605029#M823894</link>
      <description>actually what you are asking is pretty simple. &lt;BR /&gt;&lt;BR /&gt;MYLOGFILE=somefilename&lt;BR /&gt;date &amp;gt;&amp;gt; $MYLOGFILE&lt;BR /&gt;egrep 'maxfiles|maxfiles_lim' /stand/system &amp;gt;&amp;gt; $MYLOGFILE&lt;BR /&gt;ndd -get /dev/tcp tcp_conn_request_max &amp;gt;&amp;gt; $MYLOGFILE&lt;BR /&gt;ndd -get /dev/tcp tcp_ip_abort_interval &amp;gt;&amp;gt; $MYLOGFILE&lt;BR /&gt;echo "--------------------------------------" &amp;gt;&amp;gt; $MYLOGFILE  #separator line&lt;BR /&gt;&lt;BR /&gt;just put all of the above into a file called mytcpipscript, &lt;BR /&gt;&lt;BR /&gt;chmod 755 mytcpipscript&lt;BR /&gt;&lt;BR /&gt;and if you want to run it lets say every hour, add the following into your crontab:&lt;BR /&gt;&lt;BR /&gt;00 * * * * * /path/to/mytcpipscript&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
      <pubDate>Tue, 16 Aug 2005 15:54:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605029#M823894</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-08-16T15:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: tcpip script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605030#M823895</link>
      <description>You could also use command grouping and direct stdout to a file i.e.&lt;BR /&gt;&lt;BR /&gt;# (&lt;BR /&gt;&amp;gt; egrep 'maxfiles|maxfiles_lim' /stand/system;&lt;BR /&gt;&amp;gt; ndd -get /dev/tcp tcp_conn_request_max;&lt;BR /&gt;&amp;gt; ndd -get /dev/tcp tcp_ip_abort_interval&lt;BR /&gt;) &amp;gt; outfile&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Aug 2005 16:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605030#M823895</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-16T16:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: tcpip script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605031#M823896</link>
      <description>Hi Shiv,&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;echo "Max_Files"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "*************"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;egrep 'maxfiles|maxfiles_lim' /stand/system&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "\n\n"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "tcp_conn_request_max"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "*************************"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;ndd -get /dev/tcp tcp_conn_request_max&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo Abort_Interval"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo ""************************"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;ndd -get /dev/tcp tcp_ip_abort_interval&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "******************* NEXT *********************\n"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above is tested and OK. You may put this in cron and use it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Tue, 16 Aug 2005 16:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605031#M823896</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-16T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: tcpip script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605032#M823897</link>
      <description>Matter of fact use the one below as it reports on the parameters and their values:&lt;BR /&gt;&lt;BR /&gt;# (&lt;BR /&gt;&amp;gt; egrep 'maxfiles|maxfiles_lim' /stand/system;&lt;BR /&gt;&amp;gt; echo "tcp_conn_request_max:   \c";                &lt;BR /&gt;&amp;gt; ndd -get /dev/tcp tcp_conn_request_max;&lt;BR /&gt;&amp;gt; echo "tcp_ip_abort_interval:   \c";&lt;BR /&gt;&amp;gt; ndd -get /dev/tcp tcp_ip_abort_interval;&lt;BR /&gt;&amp;gt; ) &amp;gt; outfile&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Aug 2005 16:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605032#M823897</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-16T16:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: tcpip script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605033#M823898</link>
      <description>Hi Shiva,&lt;BR /&gt;&lt;BR /&gt;Sorry No pts for my last post...There was some typing mistake.&lt;BR /&gt;&lt;BR /&gt;the following will work for you with the time stamp.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;date&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo ""&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "Max_Files"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "*************"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;egrep 'maxfiles|maxfiles_lim' /stand/system&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo ""&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "tcp_conn_request_max"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "*************************"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;ndd -get /dev/tcp tcp_conn_request_max&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo ""&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "Abort_Interval"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "************************"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;ndd -get /dev/tcp tcp_ip_abort_interval&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo ""&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;echo "******************* NEXT *********************\n"&amp;gt;&amp;gt;/tmp/info.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Tue, 16 Aug 2005 16:20:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpip-script/m-p/3605033#M823898</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-16T16:20:29Z</dc:date>
    </item>
  </channel>
</rss>

