Topic
  • 5 replies
  • Latest Post - ‏2013-09-26T21:59:16Z by cd3lgado
Thomas.gch
Thomas.gch
3 Posts

Pinned topic AIX 7100-02-02-1316 how to disable SNMP server

‏2013-05-13T10:44:28Z |

Hello .

Need to disable SNMP Server on AIX 7.1.

modified following lines in /etc/rc.tcpip

 #start /usr/sbin/snmpd "$src_running"

 #start /usr/sbin/snmpmibd "$src_running"

and rebooted the whole system.

Afterwards the snmpd is still alive :

ps -eaf |grep snmp
    root 4718744 3866834   0 07:51:50      -  0:00 /usr/sbin/snmpd
 

Where is the other place to switch off the snmpd permaanentely, means that it is no longer started after boot.

Thankx in advance .

Thomas

  • biblio93
    biblio93
    7 Posts

    Re: AIX 7100-02-02-1316 how to disable SNMP server

    ‏2013-05-13T16:58:57Z  

     

    hi

     

    What is the result off the command:

    lssrc -a | grep snmpd

    if started (on line)

    stopsrc -s snmpd

    But the # of the command of the /etc/rc.tcpip would must off the services ???

     

     

  • Thomas.gch
    Thomas.gch
    3 Posts

    Re: AIX 7100-02-02-1316 how to disable SNMP server

    ‏2013-05-15T07:57:20Z  
    • biblio93
    • ‏2013-05-13T16:58:57Z

     

    hi

     

    What is the result off the command:

    lssrc -a | grep snmpd

    if started (on line)

    stopsrc -s snmpd

    But the # of the command of the /etc/rc.tcpip would must off the services ???

     

     

    Hello .

    Here is the output :

    bash-4.2# lssrc -a |grep snmp
     snmpd            tcpip            4653204      active
     snmpmibd         tcpip                         inoperative

    bash-4.2# oslevel -s
    7100-02-02-1316

     

    And the /etc/rc.tcpip shows:

    # Start up the Simple Network Management Protocol (SNMP) daemon
    #start /usr/sbin/snmpd "$src_running"

    # Start up the hostmibd daemon
    #start /usr/sbin/hostmibd "$src_running"

    # Start up the snmpmibd daemon
    #start /usr/sbin/snmpmibd "$src_running"

    # Start up the aixmibd daemon
    #start /usr/sbin/aixmibd "$src_running"



    But after reboot the snmpd is active .

     stopsrc -s snmpd put it into state 'inoperative'

    But my question is, how can we disable snmpd , so that it does not start after reboot .


     

  • GarlandJoseph
    GarlandJoseph
    167 Posts

    Re: AIX 7100-02-02-1316 how to disable SNMP server

    ‏2013-05-15T15:31:48Z  

    Hello .

    Here is the output :

    bash-4.2# lssrc -a |grep snmp
     snmpd            tcpip            4653204      active
     snmpmibd         tcpip                         inoperative

    bash-4.2# oslevel -s
    7100-02-02-1316

     

    And the /etc/rc.tcpip shows:

    # Start up the Simple Network Management Protocol (SNMP) daemon
    #start /usr/sbin/snmpd "$src_running"

    # Start up the hostmibd daemon
    #start /usr/sbin/hostmibd "$src_running"

    # Start up the snmpmibd daemon
    #start /usr/sbin/snmpmibd "$src_running"

    # Start up the aixmibd daemon
    #start /usr/sbin/aixmibd "$src_running"



    But after reboot the snmpd is active .

     stopsrc -s snmpd put it into state 'inoperative'

    But my question is, how can we disable snmpd , so that it does not start after reboot .


     

    Comment out the start of snmp daemon in /etc/rc.tcpip

  • seanhleahy
    seanhleahy
    1 Post

    Re: AIX 7100-02-02-1316 how to disable SNMP server

    ‏2013-07-19T20:09:58Z  

    Rename the file: /opt/ibm/icc/cimom/bin/startdirsnmpd

    This script will restart snmp despite having it commented out in /etc/rc.tcpip

  • cd3lgado
    cd3lgado
    66 Posts

    Re: AIX 7100-02-02-1316 how to disable SNMP server

    ‏2013-09-26T21:59:16Z  

    Hi

     

    I have the same problem. Looks like this program is part of the director subsystem that starts from inittab. I have commented out the cimservices entry in inittab.

     

    root@localhost /borrar >ls -ld /opt/ibm/icc/cimom/bin/startdirsnmpd
    -r-xr-x---    1 root     system         2298 Jul 05 2012  /opt/ibm/icc/cimom/bin/startdirsnmpd
    root@localhost /borrar >ps -ef | grep -i cim
        root 4390978 5111884   0 15:58:20      -  0:00 /opt/freeware/cimom/pegasus/bin/cimssys platform_agent
        root 5308582 5111884   0 15:58:20      -  0:00 /opt/freeware/cimom/pegasus/bin/cimssys cimsys
        root 5374124       1   0 15:58:20      -  0:00 /opt/ibm/director/cimom/bin/tier1slp
        root 6291672       1   0 15:58:28      -  0:02 [cimserve]
        root 7340256       1   0 15:58:21      -  0:00 /opt/freeware/cimom/pegasus/bin/CIM_diagd
        root 7602422       1   0 15:58:40      -  0:00 /opt/freeware/cimom/pegasus/bin/cimprovagt 0 14 17 root SLPProviderModule
        root 8454178       1   0 15:58:42      -  0:00 /usr/bin/cimlistener
    root@localhost /borrar >lsitab -a | grep -i ci
    #cimservices:2:once:/usr/bin/startsrc -s cimsys >/dev/null 2>&1

     

    HTH