<?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: Start/Stop Snmp after modification in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-snmp-after-modification/m-p/4992013#M422508</link>
    <description>Very nice reply Clay.  'Problem solved. I researched the /sbin/rc1.d nd rc2.d listings and wrote a script to execute the snmp stops and starts (my typing speed would have been to slow to execute it efficiently in real-time).  Everything worked wonderfully.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
    <pubDate>Thu, 20 Jul 2006 10:44:03 GMT</pubDate>
    <dc:creator>Glenn Mitchell_2</dc:creator>
    <dc:date>2006-07-20T10:44:03Z</dc:date>
    <item>
      <title>Start/Stop Snmp after modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-snmp-after-modification/m-p/4992011#M422506</link>
      <description>What is the proper way to Stop and Start the snmp agent?  I just modified the snmpd.conf files in /etc and in /etc/SnmpAgentd (to set the get-comunity-name to a value other than "public") and need to recycle the agent to allow the changes to take effect.&lt;BR /&gt;&lt;BR /&gt;There appear to be 6 scripts in the /sbin/init.d folder:&lt;BR /&gt;&lt;BR /&gt;SnmpMaster&lt;BR /&gt;SnmpHpunix&lt;BR /&gt;SnmpMib2&lt;BR /&gt;SnmpTrpDst&lt;BR /&gt;SnmpFddi&lt;BR /&gt;SnmpFddi4&lt;BR /&gt;&lt;BR /&gt;The only snmp process I have running (ps -ef) is snmpdm.&lt;BR /&gt;&lt;BR /&gt;I have an HP N4000 running HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;I gather from the man pages that the last one to stop, and the first one to start is the SnmpMaster script.  But what of the others???&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jul 2006 17:23:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-snmp-after-modification/m-p/4992011#M422506</guid>
      <dc:creator>Glenn Mitchell_2</dc:creator>
      <dc:date>2006-07-19T17:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop Snmp after modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-snmp-after-modification/m-p/4992012#M422507</link>
      <description>Ok, the answer is a little complicated but it will apply to anything started and stoped by rc so it's worth learning. The scripts found in /sbin/init.d are never used directly by rc; they are intended for manual use. The "real" work is done by the entries in /sbin/rcN.d where N is the run-level; these directories contain symbolic links to entries in /sbin/init.d. In almost all cases, if a service is started in run-level N is is stopped in run-level N - 1. SNMP is started in run-level 2 and stopped in run-level 1. &lt;BR /&gt;&lt;BR /&gt;Do an ls -l /sbin/rc1.d and find all the  links that begin with 'K' that link to your SNMP scripts in /sbin/init.d. &lt;BR /&gt;&lt;BR /&gt;You execute each of these in the lexical order listed (e.g. K201xxx before K303xxx);&lt;BR /&gt;you can execute either the files in /sbin/rc1.d/ or those in /sbin/init.d -- just do them in the order listed in the rc1.d directory. &lt;BR /&gt;&lt;BR /&gt;e.g. /sbin/rc1.d/K424SnmpFddi4 stop&lt;BR /&gt;&lt;BR /&gt;Now do all of those to stop SMNP. Some may actually do nothing but that's automatically taken care of by entries under /etc/rc.config.d.&lt;BR /&gt;&lt;BR /&gt;Now that has you stopped; you next do the same thing under /sbin/rc2.d and look for the S entries that match your SNMP scriots in init.d; you execute these in lexical order as well using "start" as a paramter. &lt;BR /&gt;&lt;BR /&gt;Now wasn't that complicated? That's why the next time you do this, you are going to write a script.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jul 2006 17:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-snmp-after-modification/m-p/4992012#M422507</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-07-19T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Start/Stop Snmp after modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-snmp-after-modification/m-p/4992013#M422508</link>
      <description>Very nice reply Clay.  'Problem solved. I researched the /sbin/rc1.d nd rc2.d listings and wrote a script to execute the snmp stops and starts (my typing speed would have been to slow to execute it efficiently in real-time).  Everything worked wonderfully.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Thu, 20 Jul 2006 10:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/start-stop-snmp-after-modification/m-p/4992013#M422508</guid>
      <dc:creator>Glenn Mitchell_2</dc:creator>
      <dc:date>2006-07-20T10:44:03Z</dc:date>
    </item>
  </channel>
</rss>

