AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

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

  • 1.  AIX 7100-02-02-1316 how to disable SNMP server

    Posted Mon May 13, 2013 06:44 AM

    Originally posted by: Thomas.gch


    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



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

    Posted Mon May 13, 2013 12:59 PM

    Originally posted by: biblio93


     

    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 ???

     

     



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

    Posted Wed May 15, 2013 03:57 AM

    Originally posted by: Thomas.gch


    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 .


     



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

    Posted Wed May 15, 2013 11:32 AM

    Originally posted by: GarlandJoseph


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



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

    Posted Mon February 04, 2019 05:51 AM

    Originally posted by: Parshuram Choudhari


    In /etc/rc.tcpip, comment out the sendmail entry: chrctcp -d snmpmibd-



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

    Posted Fri July 19, 2013 04:10 PM

    Originally posted by: seanhleahy


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

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



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

    Posted Thu September 26, 2013 05:59 PM

    Originally posted by: cd3lgado


    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