Routing
Highlighted
Routing

Command - "deactivate snmp traceoptions"

[ Edited ]
‎11-14-2016 08:51 AM

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

6 REPLIES 6
Highlighted
Routing

Re: Command - "deactivate snmp traceoptions"

‎11-14-2016 10:47 AM

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/trace...

 

Cheers,

Ashvin

Highlighted
Routing

Re: Command - "deactivate snmp traceoptions"

[ Edited ]
‎11-14-2016 12:09 PM

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

Highlighted
Routing
Solution
Accepted by topic author eesunj
‎11-14-2016 01:53 PM

Re: Command - "deactivate snmp traceoptions"

‎11-14-2016 01:12 PM

Hi,

 

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

snmp would still operate.

 

Cheers,

Ashvin

Highlighted
Routing

Re: Command - "deactivate snmp traceoptions"

[ Edited ]
‎11-14-2016 01:41 PM

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

Highlighted
Routing

Re: Command - "deactivate snmp traceoptions"

‎11-14-2016 01:50 PM

 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

Highlighted
Routing

Re: Command - "deactivate snmp traceoptions"

‎11-14-2016 01:53 PM

Thank you Ashvin!