Quantcast
Channel: All Ethernet Switching posts
Viewing all articles
Browse latest Browse all 10307

Re: syslog and SNMP traps failing

$
0
0

Hello

 

Please check this working configuration and match with your scenario.

 

syslog {

        user * {

            any emergency;

        }

        host rivest {

            any notice;

            authorization any;

            interactive-commands any;

        }

        file messages {

            any notice;

            authorization info;

            archive size 1m files 5;

        }

        file interactive-commands {

            interactive-commands any;

            archive size 1m files 5;

        }

        file default-log-messages {

            any critical;

            archive size 1m files 5;

        }

        file syslog-changes {

            change-log any;

            archive size 1m files 5;

 

snmp {

    description Juniper-Switch;

    location "2nd Floor User Switch";

    contact "TAC";

    v3 {

        usm {

            local-engine {

                user Juniperems {

                    authentication-md5 {

                        authentication-key "xxx"; ## SECRET-DATA

                    }

                    privacy-des {

                        privacy-key "xxxx"; ## SECRET-DATA

                    }

                }

            }

        }

        vacm {

            security-to-group {

                security-model usm {

                    security-name ParaM1 {

                        group EMS;

                    }

                }

            }

            access {

                group EMS {

                    default-context-prefix {

                        security-model usm {

                            security-level authentication {

                                read-view EMS_VIEW;

                            }

                        }

                    }

                }

            }

        }

        target-address TAddr1 {

            address 192.168.1.100; port 161;

            target-parameters ParaM1;

        }

        target-parameters ParaM1 {

            parameters {

                message-processing-model v3;

                security-model usm;

                security-level authentication;

                security-name ParaM1;

            }

        }

        snmp-community Mi3bns32 {

            security-name ParaM1;

        }

    }

    view EMS_VIEW {

        oid 1.*;

    }

    client-list EMS {

        192.168.1.0/24;

        10.34.50.0/24;

        0.0.0.0/0 {

            restrict;

        }

community ParaM1 {

        authorization read-only;

        client-list-name EMS;

    }

    community "Fruk21!@" {

        authorization read-only;

        client-list-name EMS;

    }

    trap-group ParaM1 {

        categories {

            authentication;

            chassis;

            remote-operations;

            routing;

            startup;

            rmon-alarm;

            vrrp-events;

            configuration;

        }

        targets {

            192.168.1.100;

            10.34.50.100;

        }

 


Viewing all articles
Browse latest Browse all 10307

Trending Articles