snmp-server enable traps command

Is "snmp-server enable traps" command necessary to send traps if the command "snmp-server host 192.168.1.1 CISCOTRAP" command is used?

 

I have seen INE examples that use both global and host command and the host command without the global command.

Comments

  • Is "snmp-server enable traps" command necessary to send traps if the command "snmp-server host 192.168.1.1 CISCOTRAP" command is used?

     

     


    Yes, it's needed. Without snmp enable traps, IOS will not send the trap evevn though snmp host is configured. You can check out CCO cmd ref to confirm ;)
    Hth

  • Is "snmp-server enable traps" command necessary to send traps if the command "snmp-server host 192.168.1.1 CISCOTRAP" command is used?

     

    Hi PinGorilla,

    snmp-server enable traps enables  the router to send  all SNMP traps. (just check show run after executing snmp-server enable traps command). If you want to send the particular trap to  host, use following command.

    R1(config)#snmp-server host 1.1.1.1 <community name> <trap name>

    First you should enable the trap using snmp-server enable traps <trap name> and to send particular enabled traps use snmp-server host <ip> <community name> <trap_name> command.

    HAPPY STUDY

    [:D]

     

Sign In or Register to comment.