Re: configuration files / loading a mib

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGbUrtnbyryqV20Tgqmzbari1ZNmY1GX4J7FZCsMwP=oPg@mail.gmail.com>
On 28 May 2012 13:46, Leandro Roggerone
<[email protected]> wrote:
> Im need to load an specific mib but I can not find snmp.conf
>                       ....  so I can not append the line:
> mibs BAYOUR-COM-MIB:UCD-SNMP-MIB

Just create it.
It's a simple text file, so use your favourite text editor,
and save it as   ~/.snmp/snmp.conf

But you probably want to use
   "mibs +BAYOUR-COM-MIB"
        instead.
(So that you load this MIB file *as well* as the default set,
rather than as the only MIB that's loaded)


> so I manualy created an empty file and put the line there

Where is "there"?

> so ... server sudenly stoped working,  i had to delete the file and restart service.
> I found this on snmp.log:
>
> Error opening specified endpoint "udp:161"
> Server Exiting with code 1

How did you restart the service?
As root, or a normal user?

What happens if you completely stop the agent,  check that it's not
still running,
and then start the agent again (rather than restarting it)?



> So .... How should I do to load a mib .... without the snmp.conf file ?

What exactly are you trying to do?

Dave

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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.