Unix socket not deleted in a config master/subagent

"Arnaud BODENAN" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
To add some details:

When I start the master agent, 'ls -ltr master' gives:
srwxrwxr-x   1 arnboden rms            0 Aug 25 11:09 ../master=

When I start the subagent, the same command gives the same result:
srwxrwxr-x   1 arnboden rms            0 Aug 25 11:09 ../master=

Bu, I'm a bit confused with this parameter (agentxsocket). When must I use:
- a named socket?
- an address?

For security reasons, is it preferable to use named socket or address?

Thanks.

>From: "Arnaud BODENAN" <[email protected]>
>To: [email protected]
>Subject: Re: FW: Re: How can I extend a MIB with a subagentX
>Date: Thu, 24 Aug 2006 13:37:50 +0200
>
>I execute the command 'kill -15 PID' on the two servers
>
>For the master agent, I put in the configuration file the parameter:
>agentxsocket /home/arnboden/snmp/test/masterFile
>
>For the subagent, I set it dynamically in the code of the subagent:
>netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET,
>"/home/arnboden/snmp/test/masterFile");
>
>
> >From: "Dave Shield" <[email protected]>
> >To: "Arnaud BODENAN" <[email protected]>
> >CC: [email protected]
> >Subject: Re: FW: Re: How can I extend a MIB with a subagentX
> >Date: Thu, 24 Aug 2006 09:33:05 +0100
> >
> > > Unsuccessful test:
> > > I start the master agent => the file is created
> > > I start the subagent
> > > I stop the subagent
> > > I stop the master agent => the file is NOT deleted
> > >
> > > Do I have to do something specific in the code at the shutdown of the
> > > subagent?
> >
> >No - that ought to work OK.
> >How do you stop the two agents?   What's the command that you use?
> >
> >Dave
> >

_________________________________________________________________
Search from any web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!   http://get.live.com/toolbar/overview


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.