Zhongbin Yang wrote:
> Hi,
>    I try to use snmpwalk receive traps from SUN ct900 chassis. But I got 
> following error.
> zcydsd755ha:/ <103> (root) # /usr/sfw/bin/snmpwalk -v 2c -c public 
> 47.154.137.40 1.3.6.1.4.1.18568
> SNMPv2-SMI::enterprises.18568 = No Such Object available on this agent 
> at this OID

Hi,

You can use snmptrapd to receive and log traps. It looks like you are 
using a Solaris system, so try the following command to log and 
receive traps on port 1500:

# /usr/sfw/sbin/snmptrapd -f -P 1500

For more information on snmptrapd options, type 'man snmptrapd'.


Also, I believe you need to change your /etc/snmpd.conf file. The 
format of the trap2sink directive should be:

trap2sink HOST [COMMUNITY [PORT]]

The trap2sink directives in your /etc/snmpd.conf did not specify a 
COMMUNITY. Try the following:

        trap2sink 47.154.137.59 trapcom 1500
        trap2sink 47.154.137.60 trapcom 1500
        trap2sink 47.154.137.55 trapcom 1500
        trap2sink 47.154.137.56 trapcom 1500

Where 'trapcom' is just a community name I made up for this example.

Chris

...
> 
> #more /etc/snmpd.conf
...
> 
>       trap2sink 47.154.137.59 1500
>       trap2sink 47.154.137.60 1500
>       trap2sink 47.154.137.55 1500
>       trap2sink 47.154.137.56 1500


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to