Routing

last person joined: 5 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Command - "deactivate snmp traceoptions"

    Posted 11-14-2016 08:52

    Hi Anyone can explain the command "set snmp traceoptions file/flag"? or send a link here for Ex router?

     

    set snmp traceoptions file size 10m
    set snmp traceoptions file files 2
    set snmp traceoptions file world-readable
    set snmp traceoptions flag all
    set snmp traceoptions flag pdu

     

    Thank you



  • 2.  RE: Command - "deactivate snmp traceoptions"

     
    Posted 11-14-2016 10:47

    Hi,

     

    file - To specify properties [e.g size of file or files 2=number of files to keep when rotated] or name of the traceoptions file

    flag - To specify snmp properties that will be logged in the traceoptions debugging

     

    https://www.juniper.net/documentation/en_US/junos14.2/topics/reference/configuration-statement/traceoptions-edit-snmp.html

     

    Cheers,

    Ashvin



  • 3.  RE: Command - "deactivate snmp traceoptions"

    Posted 11-14-2016 12:09

    Thank you so much for your reply.

    If we use the command "deactivate snmp traceoptions" what would happen? I guess the below commands would lose function, and other functions of SNMP still exsit, right? 

    set snmp traceoptions file files 2

     

    set snmp traceoptions file size 10m

     

    set snmp traceoptions file world-readable

    set snmp traceoptions flag all

    set snmp traceoptions flag pdu



  • 4.  RE: Command - "deactivate snmp traceoptions"
    Best Answer

     
    Posted 11-14-2016 13:13

    Hi,

     

    'deactivate snmp traceoptions' would deactivate the traceoptions debugging functionality for snmp protocol.

    snmp would still operate.

     

    Cheers,

    Ashvin



  • 5.  RE: Command - "deactivate snmp traceoptions"

    Posted 11-14-2016 13:42

    Yes, I agree with you. I think the below five commands is relative with log file. When I add "decctivate snmp traceoption", these below five commands would lose their functionality, right? Thank you

     

    set snmp traceoptions file files 2
    set snmp traceoptions file size 10m
    set snmp traceoptions file world-readable
    set snmp traceoptions flag all
    set snmp traceoptions flag pdu



  • 6.  RE: Command - "deactivate snmp traceoptions"

     
    Posted 11-14-2016 13:50

     Hi,

     

    traceoptions would be inactive and since the rest are child of traceoptions hierarchy, they would be deactivated form the config too. Example:

    inactive: traceoptions {
        file test size 2m;
    }

    Cheers,

    Ashvin



  • 7.  RE: Command - "deactivate snmp traceoptions"

    Posted 11-14-2016 13:53

    Thank you Ashvin!