Re: Net-snmp-users Digest, Vol 10, Issue 7
"zaman L" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 3/2/07, [email protected] < [email protected]> wrote: > > Send Net-snmp-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Net-snmp-users digest..." > > > Today's Topics: > > 1. Re: configuring net-snmp from source (Dave Shield) > 2. RE: configuring net-snmp from source (Adam Bell) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 2 Mar 2007 12:44:38 +0000 > From: "Dave Shield" <[email protected]> > Subject: Re: configuring net-snmp from source > To: "zaman L" <[email protected]> > Cc: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 02/03/07, zaman L <[email protected]> wrote: > > ./snmpd -f -Lo -x udp:127.0.0.1:161 /tmp/snmp.skt > > No - that's wrong. > The -x option is used to specify an *AgentX* socket. > So the agent is now listening for AgentX connections > on the standard SNMP port, and listening for SNMP > connections on the named socket /tmp/snmp.skt > > This won't work. > > > > But there is no SNMP agent listening after I checked it with netstat > -ultnp > > tcp 0 0 127.0.0.1:53 0.0.0.0:* > LISTEN 16670/named > > tcp 0 0 127.0.0.1:953 0.0.0.0:* > LISTEN 16670/named > > tcp 0 0 ::1:53 :::* LISTEN 16670/named > > tcp 0 0 ::1:953 :::* LISTEN 16670/named > > udp 0 0 127.0.0.1:161 0.0.0.0:* 14434/snmpd > > > > As you can see from the last line , snmpd is not in listening mode. > > That's because it's a UDP-based server, not TCP. > > Though you've started it in a very strange manner (see above) > > > > Please somebody help me in starting the agent so that it > > responds to the snmp commands. > > Try the following: > > - Shut down the agent > - Run "netstat -ultmp" > Is there *anything* listed with port "161" ? > > If so, then stop. > > - Run "snmpd -f -Lo -c /path/to/your/snmpd.conf" > > That worked . It is responding to the SNMP commands . Thanks a Lot. regards... zaman > > > > ------------------------------ > > Message: 2 > Date: Fri, 2 Mar 2007 08:29:47 -0500 > From: Adam Bell <[email protected]> > Subject: RE: configuring net-snmp from source > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset="us-ascii" > > I was mislead by this display when I ran snmpd also, since the UDP > protocol > is used, a LISTEN state is not displayed. > It looks like your snmpd is running > > Good luck. > > _____ > > From: [email protected] > [mailto:[email protected]] On Behalf Of zaman L > Sent: Friday, March 02, 2007 6:43 AM > To: [email protected] > Subject: Re: configuring net-snmp from source > > > > so you can do 1 of 2 things (choose one) > > a) run snmpd like this: # ./snmpd -f -Lo -c /path/to/your/snmpd.conf > > > I tried that but it gives me the same error. Then I tried > with > > ./snmpd -f -Lo -x udp:127.0.0.1:161 > <http://127.0.0.1:161/> /tmp/snmp.skt > > Then there is no error and it displays the message > > NET-SNMP 5.4 > > But there is no SNMP agent listening after I checked it > with > netstat -ultnp > > The following is the output as displayed by netstat > -ultnp > > Active Internet connections (only servers) > Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name > tcp 0 0 127.0.0.1:53 <http://127.0.0.1:53/> > 0.0.0.0:* LISTEN 16670/named > tcp 0 0 127.0.0.1:953 <http://127.0.0.1:953/> > 0.0.0.0:* LISTEN 16670/named > tcp 0 0 ::1:53 :::* > LISTEN 16670/named > tcp 0 0 ::1:953 :::* > LISTEN 16670/named > udp 0 0 127.0.0.1:161 <http://127.0.0.1:161/> > 0.0.0.0:* 14434/snmpd > > > As you can see from the last line , snmpd is not in listening mode. > > > Please somebody help me in starting the agent so that it responds to the > snmp commands. > > With Thanks and Regards > > > > > On 3/2/07, zaman L <[email protected] <mailto:[email protected]> > > wrote: > > so you can do 1 of 2 things (choose one) > > a) run snmpd like this: # ./snmpd -f -Lo -c /path/to/your/snmpd.conf > > I tried that but it gives me the same error. Then I tried > with > > ./snmpd -f -Lo -x udp:127.0.0.1:161 > <http://127.0.0.1:161> /tmp/snmp.skt > > Then there is no error and it displays the message > > NET-SNMP 5.4 > > But there is no SNMP agent listening after I checked it > with > netstat -ultnp > > The following is the output as displayed by netstat > -ultnp > > Active Internet connections (only servers) > Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name > tcp 0 0 127.0.0.1:53 <http://127.0.0.1:53> > 0.0.0.0:* LISTEN 16670/named > tcp 0 0 127.0.0.1:953 <http://127.0.0.1:953> > 0.0.0.0:* LISTEN 16670/named > tcp 0 0 ::1:53 :::* > LISTEN 16670/named > tcp 0 0 ::1:953 :::* > LISTEN 16670/named > udp 0 0 127.0.0.1:161 <http://127.0.0.1:161> > 0.0.0.0:* 14434/snmpd > > > As you can see from the last line , snmpd is not in listening mode. > > > Please somebody help me in starting the agent so that it responds to the > snmp commands. > > > > With thanks and Regards > > > > > > > > > > On 3/1/07, Joao Miguel Ferreira < <mailto: > [email protected]> > [email protected]> wrote: > > > > > > > 1) go to that directory an execute the agent like this: > > > > # ./snmpd -f -Lo > > > > -f: the agent does not fork() away from the tty > > -Lo: the agent logs its activity to stdout > > > > check to see if it prints any messages related to the config > > files.... > > > > I tried that and it gives the following message > > > > > > Error opening specified endpoint " " > > Server Exiting with code 1 > > May be this is related to the config file... > > > > > > > > > > > 2) do a # ls -la /etc/snmp/ to see if the snmpd.conf is there > > > > the snmpd.conf file is present in /usr/local/share/snmp/ > > > > read this manual: man snmpd.... > > at the end you will find: > > > ---------------------------------------------------------------------------- > CONFIGURATION FILES > snmpd checks for the existence of and parses the following files: > > /etc/snmp/snmp.conf > Common configuration for the agent and applications. See > snmp.conf(5) for details. > > /etc/snmp/snmpd.conf > > /etc/snmp/snmpd.local.conf > Agent-specific configuration. See snmpd.conf(5) for > details. These files are optional and may be used to configure access > control, trap generation, subagent protocols and much else > besides. > > In addition to these two configuration files > in /etc/snmp, the agent will read any files with the names snmpd.conf > and > snmpd.local.conf in a colon separated path specified in the > SNMPCONFPATH environment variable. > > /usr/share/snmp/mibs/ > The agent will also load all files in this directory as > MIBs. It will not, however, load any file that begins with a '.' > or descend into subdirectories. > --------------------------------------------------------- > > so you can do 1 of 2 things (choose one) > > a) run snmpd like this: # ./snmpd -f -Lo -c /path/to/your/snmpd.conf > > > I tried that but it gives me the same error. Then I tried > with > > ./snmpd -f -Lo -x udp:127.0.0.1:161 > <http://127.0.0.1:161> /tmp/snmp.skt > > Then there is no error and it displays the message > > NET-SNMP 5.4 > > But there is no SNMP agent listening after I checked it > with > netstat -ultnp > > The following is the output as displayed by netstat > -ultnp > > Active Internet connections (only servers) > Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name > tcp 0 0 127.0.0.1:53 <http://127.0.0.1:53> > 0.0.0.0:* LISTEN 16670/named > tcp 0 0 127.0.0.1:953 <http://127.0.0.1:953> > 0.0.0.0:* LISTEN 16670/named > tcp 0 0 ::1:53 :::* > LISTEN 16670/named > tcp 0 0 ::1:953 :::* > LISTEN 16670/named > udp 0 0 127.0.0.1:161 <http://127.0.0.1:161> > 0.0.0.0:* 14434/snmpd > > > As you can see from the last line , snmpd is not in listening mode. > > > Please somebody help me in starting the agent so that it responds to the > snmp commands. > > With Thanks and Regards > > > > > > > > b) try completing the instalation with # make install... I guess this > will copy the config files to /etc/snmp/ and the agent will > automatically find thgem there (# ./snmpd -f -Lo) > > > hope this helps. > > jmf > > > > > > > > With thanks and Regards > > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > &p=sourceforge&CID=DEVDEV > > _______________________________________________ Net-snmp-users mailing > list [email protected] > <mailto:[email protected]> Please see the following > page > to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > <https://lists.sourceforge.net/lists/listinfo/net-snmp-users> > > > > > > > > The information contained in this electronic mail transmission may be > privileged and confidential, and therefore, protected from disclosure. If > you have received this communication in error, please notify us immediately > by replying to this message and deleting it from your computer without > copying or disclosing it. > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > Net-snmp-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > > > End of Net-snmp-users Digest, Vol 10, Issue 7 > ********************************************* > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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