
Diego> do i have to specify that i want to load a config file smi.conf Diego> or is it parsed upon initializacion (calling smiInit(NULL); Diego> would serve), i say this because if i put the mibs into the Diego> config file and comment the smiLoadModule lines the program Diego> fails to retrieve the nodes.
From the smi_config man page:
int smiInit(const char *tag); [...] The smiInit() function should be the first SMI function called in an application. It initializes its internal structures. If tag is not NULL, the global configuration file and (on UNIX systems) a user configuration file are read implicitly, if existent. All global statements and those statements with a tag (a ``tag: '' prefix) that matches the tag argument are executed. (see also CONFIGUĀ RATION FILES below). smiInit() returns zero on success, or otherwise a negative value.
So, you probably want to use smiInit("") or smiInit("<my_app>").
-frank -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.