<?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: netstat -rn, static route add script  ..? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826481#M87736</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I agree with Sri.  If I were going to write a script to help with this problem, I would write one that would go the opposite direction.  I would check the netconf file against the output of netstat -rn and have it e-mail me if there were any routes in use that weren't in the netconf file.  Then I could investigate them, add them if needed, and punish the offenders who added routes without updating netconf correctly.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Oct 2002 20:23:41 GMT</pubDate>
    <dc:creator>John Poff</dc:creator>
    <dc:date>2002-10-15T20:23:41Z</dc:date>
    <item>
      <title>netstat -rn, static route add script  ..?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826478#M87733</link>
      <description>Hi everyone .. well let me start by telling everyone the issue here..&lt;BR /&gt;&lt;BR /&gt;We have a server with a ton of static network routes and they get added and no one keeps track of what was added. The server had to be rebooted and of course the routes were not added back in. &lt;BR /&gt;&lt;BR /&gt;I am aware that we can add routes in /etc/rc.configd/netconf .. and if netconf cant hold them add another start up script to add the routes.&lt;BR /&gt;&lt;BR /&gt;But I was thinkig if there was a way to set up a scrit via cron that would do a netstat -rn .. get all the junk out and some how turn the netstat -rn into a route add script with the correct values and route add net statements that can be ran manualy if the box is rebooted. &lt;BR /&gt;&lt;BR /&gt;~ Richard&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Oct 2002 19:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826478#M87733</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-10-15T19:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -rn, static route add script  ..?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826479#M87734</link>
      <description>&lt;BR /&gt;Richard,&lt;BR /&gt;&lt;BR /&gt;Write it in perl, but better yet, have people use the script to add entries into the netconf file, that way it survives the reboot.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 15 Oct 2002 19:25:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826479#M87734</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-15T19:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -rn, static route add script  ..?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826480#M87735</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;You can write a script to capture netstat -rn output and dump the contents into a script using awk constructs. &lt;BR /&gt;&lt;BR /&gt;While the subnets can be easily captured from netstat output, the challenge will be to determine the netmasks.&lt;BR /&gt;&lt;BR /&gt;I would suggest not to work hard on getting it scripted. As a system administrator, you will need to keep track of what you do. While adding the route, make sure you also add it to a file so that you can simply excute the file after reboot. You can put it in the startup to automate during the boot. If you have many static routes, modifying netconf may be cumbersome.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 15 Oct 2002 20:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826480#M87735</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-10-15T20:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -rn, static route add script  ..?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826481#M87736</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I agree with Sri.  If I were going to write a script to help with this problem, I would write one that would go the opposite direction.  I would check the netconf file against the output of netstat -rn and have it e-mail me if there were any routes in use that weren't in the netconf file.  Then I could investigate them, add them if needed, and punish the offenders who added routes without updating netconf correctly.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Oct 2002 20:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826481#M87736</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-10-15T20:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -rn, static route add script  ..?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826482#M87737</link>
      <description>Hi Richard&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is better to set it once in the netconf file as this is place where the sytem reads during startup . why do u want to  do the work again and again .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can look at this document which is comprehensive in this aspect :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docId=200000049791567" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docId=200000049791567&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastav</description>
      <pubDate>Tue, 15 Oct 2002 20:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826482#M87737</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-10-15T20:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: netstat -rn, static route add script  ..?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826483#M87738</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt; A variation on Harry's theme....write a wrapper around the route command that not only executes the actual route add/delete, but that adds/deletes the entries to/from the netconf file as well.&lt;BR /&gt; But, Sridhar &amp;amp; John are correct as well i.e. SAs are supposed to document *whatever* is changed on a system &amp;amp; a route change is certainly one of them.&lt;BR /&gt;&lt;BR /&gt;My 2 cents,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 15 Oct 2002 20:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/netstat-rn-static-route-add-script/m-p/2826483#M87738</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-10-15T20:36:18Z</dc:date>
    </item>
  </channel>
</rss>

