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
/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                 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.


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]> 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
/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                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.


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 < [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
/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                 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.


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&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
>
>
>

-------------------------------------------------------------------------
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

Reply via email to