Operating System - HP-UX
1826127 Members
4686 Online
109690 Solutions
New Discussion

SNMP process mib2agt, how to get rid of?

 
SOLVED
Go to solution
Karl-Johan Halléni
Occasional Advisor

SNMP process mib2agt, how to get rid of?

HP-UX 11.00.
There is a process called mib2agt running and is allocating a lot of memory.
On one server about 65Mb on another 250Mb.
I know this process have something to do with SNMP, which we do not need to use.

How do I make the process mib2agt to NOT start automatically when I boot the system?

When the process mib2agt wont be loaded, will other processes files miss the mib2agt, if so where/what do I have to config?

Thank you in advance for your excellent help as always.
10 REPLIES 10
Rainer von Bongartz
Honored Contributor
Solution

Re: SNMP process mib2agt, how to get rid of?

karl-johan,

dont't be to sure you wont't need snmp.

For example: if you are using Hardware Monitoring with EMS (and you should do) you rely on snmp to let EMS get the status of your hardware.

EMS just came to my mind when talking about snmp, but there may be more applications that will need it.

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Carlos Fernandez Riera
Honored Contributor

Re: SNMP process mib2agt, how to get rid of?

Karl-Johan Halléni
Occasional Advisor

Re: SNMP process mib2agt, how to get rid of?

I'm 100% sure we wont need it.

We are only doing surveillance with ping command to see that the server is alive. SNMP is not needed in this case.

We want to optimize the sever as much as possible and get rid of as many processes as possible (that we don't need).
Karl-Johan Halléni
Occasional Advisor

Re: SNMP process mib2agt, how to get rid of?

Oki, I see there is a bug causing the memory leak.

Back to my original question, is it possible to make this process not to start when I boot the system, if so, how?

Otherwise I guess I'll just have to patch it and keep it on the system anyway, even if it is not used at all.
Steven Sim Kok Leong
Honored Contributor

Re: SNMP process mib2agt, how to get rid of?

Hi,

# mv /sbin/rc2.d/S565SnmpMIB2 /sbin/rc2.d/s565SnmpMIB2

This will prevent the mib2agt from being loaded during system startup.

Hope this helps. Regards.

Steven Sim Kok Leong
S.K. Chan
Honored Contributor

Re: SNMP process mib2agt, how to get rid of?

Go to /etc/rc.config.d and edit
SnmpMib2 file to disable the start up.
"0" to disable it.
Steven Sim Kok Leong
Honored Contributor

Re: SNMP process mib2agt, how to get rid of?

Hi,

Sorry, S565SnmpMIB2 should be S565SnmpMib2.

# mv /sbin/rc2.d/S565SnmpMib2 /sbin/rc2.d/s565SnmpMib2

This will prevent mib2agt from starting up.

To stop the mib2agt immediately, execute

# /sbin/rc2.d/S565SnmpMib2 stop

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: SNMP process mib2agt, how to get rid of?

Hi,

Slip of mind. Instead of disabling the startup script, the cleaner method would be to set SNMP_MIB2_START=0 in /etc/rc.config.d/SnmpMib2 configuration file.

Hope this helps. Regards.

Steven Sim Kok Leong
John Payne_2
Honored Contributor

Re: SNMP process mib2agt, how to get rid of?

mib2agt has a known memory leak. For HPUX 11.0 Patch PHSS_23670 corrects the memory leak, and I believe that the snmp vul. fix patch PHSS_26138 has superceeded it.

If you at least put PHSS_23670 on the system, the memory leak will go away...

(The patches do not require reboot...)

Hope it helps

John
Spoon!!!!
Uday_S_Ankolekar
Honored Contributor

Re: SNMP process mib2agt, how to get rid of?

Hi,

This is a well known problem but the patch can control this.
Does NOT required a reboot
Install this patch
Patch # PHSS_23670

Goodluck,

-USA..
Good Luck..