SNMP protocol: How the NMS know the status of routers ,and How the NMS know if some alrams happen in routers,

Because NMS and routers are exchange information by using SNMP protocol. the status include the port information,version infromation,

link infromation,route protocol information,alram information and so on will be encapsulated into SNMP packets ,then NMS and router

will exchange the SNMP packets to konw the status of routes and alrams;

Switches are the same principle;

Configuration:

snmp-server trap-source 10.142.2.27 //Trap-source is the IP address in this router,

this ip address will be the source-ip of snmp packets in the router,router will use the IP exchange SNMP packets

with NMS,we always use loopback ip address;

snmp-server community bonaqua view AllView ro //Create the only-read community,community name is bonaqua ,the name should be the same with NMS's name

snmp-server community zte-life view AllView rw //Create the read-write community,community name is zte-life

snmp-server host 10.18.1.200 trap version 2c zte-life udp-port 162 //snmp-server host IP is NMS's ip address,config this, routers will know whom the

snmp packets will send to

snmp-server enable trap //enable the trap function,after config this ,router will give the information to NMS;

!

!

logging on //open alram log switch

logging buffer 200 //Set the alram buffer,default is 200

logging trap-enable informational //SNMP will send informational level alrams to NMS

------

------

Explain for alram level: Every alram has its' level ,such as BGP alrams have level 6(informational), temperature alrams have level 5(warnings)...

So routers will only send the Specified level alrams to NMS accorrding to the configuration of "logging trap-enable <level name> ";

Please check the Corresponding relationship of alram level and level name:

------

debugging (severity=8) |

informational (severity=7) |

notifications (severity=6) |

warnings (severity=5) |

errors (severity=4) |

------

if you config send level 7 ,"logging trap-enable informational" , it means router will send level 7,6,5,4 alrams to NMS;

if you config send level 6 ,"logging trap-enable notifications" , it means router will send level 6,5,4 alrams to NMS;

if you config send level 5 ,"logging trap-enable warnings" , it means router will send level 5,4 alrams to NMS;

......

And usually we offen use "logging trap-enable informational" to send level 7,6,5,4 alrams to NMS;

You can use "show logging alram ?"' to check the level of different alrams;