RE: SNMP SET of sysLocation and sysContact
Doroubo Doroubo <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Dave, I already made a work around on my problem. I thank you very much for your help. I really learned a lot. What I did was read the psyslocation and psyscontact in /var/net-snmp/snmpd.conf and update my snmpd.conf defined in SNMPCONFPATH before my application starts again using the script. Regards, Ed > Date: Tue, 13 Jul 2010 15:51:05 +0100 > Subject: Re: SNMP SET of sysLocation and sysContact > From: [email protected] > To: [email protected] > CC: [email protected] > > On 13 July 2010 15:31, Doroubo Doroubo <[email protected]> wrote: > > I am running a script to run my application upon boot-up. My script > > contains the following: > > > > ================================ > > #!/bin/bash > > > > export ZSNMPPATH=/zsnmp/sbin > > export MIBDIRS=/zsnmp/share/snmp/mibs > > export SNMPCONFPATH=/zsnmp/share/snmp:. > > export ZSNMPCONFPATH=/zsnmp/share/snmp > > export MIBS=+ZANDAR-ARM-MIB > > > > ./zsnmp_agent& > > ================================ > > > > The zsnmp_agent, which is my application (a subagent) calls via system call > > "/zsnmp/sbin/snmpd -x tcp:localhost:4030" to start snmpd. > > Why not simply start the master agent first (from within the script), > and then start the subagent once this is up and running? > It feels somewhat contrary to have the subagent responsible for > invoking the master agent. > > > > This resets the syslocation/syscontact that was already saved in > > /var/net-snmp/snmpd.conf. I find this weird. When I just call > > "/zsnmp/sbin/snmpd -x tcp:localhost:4030", it doesn' affect my saved values. > > Boggle. > I've no idea what might be happening here. > There's obviously something strange about the environment > set up by your subagent application. > > All I can suggest is that you try to separate the two, > and invoke them independently. If it behaves itself when > run by hand, it's more likely to behave when started from > the script, rather than by the subagent application. > > Dave _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ 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