|
Re: exec cache?: msg#00248network.net-snmp.user
Hi Vaclay, I had same environment. So, I tested. The OS, configure options, version of net-snmp and results are follows. It seems that the cache functionality correctly worked in net-snmp 5.0.9 with SunOS5.8 . thank you, --- takumi kadode -------------------------------------------------- # uname -a SunOS chi1 5.8 Generic_108528-21 sun4u sparc SUNW,Ultra-5_10 -------------------------------------------------- [configure] ./configure \ --with-openssl=/usr/local/ssl \ --with-default-snmp-version=1 \ --with-sys-contact=xxx \ --with-sys-location=Unknown \ --with-logfile=/var/log/snmpd.log \ --with-persistent-directory=/var/net-snmp -------------------------------------------------- [/usr/local/etc/snmp/snmpd.conf] rocommunity public exec MyDate /usr/bin/date -------------------------------------------------- # /usr/local/bin/snmpwalk -c public -v 1 localhost UCD-SNMP-MIB::versionTag.0 UCD-SNMP-MIB::versionTag.0 = STRING: 5.0.9 -------------------------------------------------- # date ; /usr/local/bin/snmpwalk -c public -v 1 localhost enterprises.ucdavis.extTable Sat Jan 24 01:37:04 JST 2004 UCD-SNMP-MIB::extIndex.1 = INTEGER: 1 UCD-SNMP-MIB::extNames.1 = STRING: MyDate UCD-SNMP-MIB::extCommand.1 = STRING: /usr/bin/date UCD-SNMP-MIB::extResult.1 = INTEGER: 0 UCD-SNMP-MIB::extOutput.1 = STRING: Sat Jan 24 01:37:05 JST 2004 UCD-SNMP-MIB::extErrFix.1 = INTEGER: 0 UCD-SNMP-MIB::extErrFixCmd.1 = STRING: # date ; /usr/local/bin/snmpwalk -c public -v 1 localhost enterprises.ucdavis.extTable Sat Jan 24 01:37:12 JST 2004 UCD-SNMP-MIB::extIndex.1 = INTEGER: 1 UCD-SNMP-MIB::extNames.1 = STRING: MyDate UCD-SNMP-MIB::extCommand.1 = STRING: /usr/bin/date UCD-SNMP-MIB::extResult.1 = INTEGER: 0 UCD-SNMP-MIB::extOutput.1 = STRING: Sat Jan 24 01:37:05 JST 2004 UCD-SNMP-MIB::extErrFix.1 = INTEGER: 0 UCD-SNMP-MIB::extErrFixCmd.1 = STRING: # date ; /usr/local/bin/snmpwalk -c public -v 1 localhost enterprises.ucdavis.extTable Sat Jan 24 01:37:15 JST 2004 UCD-SNMP-MIB::extIndex.1 = INTEGER: 1 UCD-SNMP-MIB::extNames.1 = STRING: MyDate UCD-SNMP-MIB::extCommand.1 = STRING: /usr/bin/date UCD-SNMP-MIB::extResult.1 = INTEGER: 0 UCD-SNMP-MIB::extOutput.1 = STRING: Sat Jan 24 01:37:05 JST 2004 UCD-SNMP-MIB::extErrFix.1 = INTEGER: 0 UCD-SNMP-MIB::extErrFixCmd.1 = STRING: # date ; /usr/local/bin/snmpwalk -c public -v 1 localhost enterprises.ucdavis.extTable Sat Jan 24 01:37:19 JST 2004 UCD-SNMP-MIB::extIndex.1 = INTEGER: 1 UCD-SNMP-MIB::extNames.1 = STRING: MyDate UCD-SNMP-MIB::extCommand.1 = STRING: /usr/bin/date UCD-SNMP-MIB::extResult.1 = INTEGER: 0 UCD-SNMP-MIB::extOutput.1 = STRING: Sat Jan 24 01:37:05 JST 2004 UCD-SNMP-MIB::extErrFix.1 = INTEGER: 0 UCD-SNMP-MIB::extErrFixCmd.1 = STRING: -------------------------------------------------- At 22:00 04/01/23, Vaclav Vobornik wrote: >> > exec MyDate /usr/bin/date >> > in my snmpd.conf >> OK - I've just set up exactly the same command. >> (Except using "/bin/date") >> > but every smtpget command returns new actual date/time stamp. >> Strange - I get the same value for ~30s, just as expected. >> >> That's with 5.0.9 on a Linux box. >> What release & architecture are you using? > >hmmmm.... > ># uname -a >SunOS sundat 5.8 Generic_108528-23 sun4u sparc SUNW,UltraAX-i2 > >NET-SNMP version: 5.1 compiled with: >'--prefix=/export/home/snmp/smagent' \ >'--with-default-snmp-version=3' \ >'--with-logfile=/var/log/snmpd.log' \ >'--with-persistent-directory=/var/net-snmp' > >root@sundat:/export/home/snmp/smagent# bin/snmpget -O n -v 1 -c public >localhost 1.3.6.1.4.1.2021.8.1.101.2 >.1.3.6.1.4.1.2021.8.1.101.2 = STRING: Fri Jan 23 13:43:26 MET 2004 >root@sundat:/export/home/snmp/smagent# bin/snmpget -O n -v 1 -c public >localhost 1.3.6.1.4.1.2021.8.1.101.2 >.1.3.6.1.4.1.2021.8.1.101.2 = STRING: Fri Jan 23 13:43:30 MET 2004 >root@sundat:/export/home/snmp/smagent# bin/snmpget -O n -v 1 -c public >localhost 1.3.6.1.4.1.2021.8.1.101.2 >.1.3.6.1.4.1.2021.8.1.101.2 = STRING: Fri Jan 23 13:43:35 MET 2004 >root@sundat:/export/home/snmp/smagent# bin/snmpget -O n -v 1 -c public >localhost 1.3.6.1.4.1.2021.8.1.101.2 >.1.3.6.1.4.1.2021.8.1.101.2 = STRING: Fri Jan 23 13:43:40 MET 2004 > >snmpd is running as root and there is no file .snmp-exec-cache anywhere (as >defined in include/net-snmp/net-snmp-config.h) > > >Any suggestions? > >Vaclav Vobornik > > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >Net-snmp-users mailing list >Net-snmp-users@xxxxxxxxxxxxxxxxxxxxx >Please see the following page to unsubscribe or change other options: >https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Net-snmp-users mailing list Net-snmp-users@xxxxxxxxxxxxxxxxxxxxx Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | example code for a table with one object as Index: 00248, Mohan Mohankumar |
|---|---|
| Next by Date: | RE: UCD-DISKIO and fiber/EMC disk: 00248, Steve Ferguson |
| Previous by Thread: | Re: exec cache?i: 00248, Robert Story |
| Next by Thread: | example code for a table with one object as Index: 00248, Mohan Mohankumar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |