I can agree with your point - that these can be expensive to query.
However...

1) I only query the prtdiag/prtconf MIBs once a day for automated
inventory (and VERY occassionally manually), so it's really not THAT
expensive. I'm looking at the idprom, etc.

2) With the "ps" command, the hrSWRunTable doesn't provide the user that
is running the process or the parent process id. It's the difference
between checking that root is running "syslog-ng" as a child of init and
some user is running "more syslog-ng.conf" - which used to trigger my
alert systems all the time.

3) These are working like a champ across my production network (over 100
hosts) with net-snmp 5.0.7 on Solaris 7 and on one earlier test system
with net-snmp 5.0.4pre1 on Solaris 9. It's hard to justify gutting the
existing production setup and changing all the homegrown scripts that
use them.

-- 
"Computer science is as much about computers as 
        astronomy is about telescopes" -- Edsger Dijkstra 
--------------------------------------------------------- 
Anthony Tonns, UNIX Administrator - [EMAIL PROTECTED] 

  

> -----Original Message-----
> From: Bruce Shaw [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 28, 2004 4:37 PM
> To: Anthony Tonns; [EMAIL PROTECTED]
> Subject: RE: agent hung up running "exec" process
> 
> Prtdiag can be pretty expensive in terms of resources and 
> returns a lot of
> irrelevant stuff.  Unfortunately, I haven't found the API's 
> to deliver it
> any other way, but I'm still looking.  I found another clue today.
> Prtconf delivers stuff available in HOST-RESOURCES-MIB and 
> UCD-SNMP-MIB.
> Ps-au delivers stuff available in HOST-RESOURCES-MIB.
> 
> >exec .1.3.6.1.4.1.2021.50 prtdiag /usr/platform/sun4u/sbin/prtdiag -v
> >exec .1.3.6.1.4.1.2021.51 prtconf /usr/sbin/prtconf -pv
> >exec .1.3.6.1.4.1.2021.52 ps /usr/bin/ps -ae -o user,pid,ppid,args
> 
> Given all three are extremely verbose, perhaps workaround 
> could be found for
> them and only query on the stuff you absolutely have to have 
> using execs.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to