Unknown token on snmp.conf

Javier Chico <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Telefonica I+D
Message-ID <[email protected]>
Hello,

I've implemented a standalone agent and I want configure it to listen on
a specific port. The main() of my code looks like this:

init_snmp("tid-pgm");
init_master_agent();

I've created a tid-pgm.conf on $NETSNMP_INSTALLATION/share/snmp with
this line:

defaultPort 3020

And finally, here is the output when I execute the agent:

# ./agente
/usr/jcc/net-snmp/share/snmp/tid-pgm.conf: line 8: Warning: Unknown
token: defaultPort.
Error opening specified endpoint "udp:161"
tid-pgm snmp agent is up and running.

What's the problem?

Thanks in advance.





-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&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.