networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Thu Aug 16, 2012 1:37 pm 
Offline
New Member
New Member

Joined: Tue Dec 20, 2011 1:05 am
Posts: 24
Certs: CCNA, Sec+
I use the event manager to output information to syslog using automated show commands. Here is an example below:

Code:
event manager applet Show_OSPF
 event timer watchdog time 300
 action 1 cli command "enable"
 action 2 cli command "show ip ospf neighbor"
 action 3 syslog priority informational msg "$_cli_result"


In my environment, we use many of these. They work great for our usage, but I would like to NOT see the output in the terminal if I am trying to use debug commands.

Is there a way to accomplish this?

Things I have looked for, but have been unable to find information on:
Changing the logging level of debug output to informational or something lower than informational.
Stopping the EEM from printing output to the terminal, but still allowing debug output to print to the terminal.

Is this possible without Tcl?


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 2:15 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Feb 08, 2010 9:30 am
Posts: 1182
Location: Santiago, Chile
Certs: CCENT, CCNA,CCNP Route
Try to increase the loggin level.

Example: logging monitor notifications.


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 2:29 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2967
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
try
logging console ?

the ? will show you the options, 7 will show you down to debugg level

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 5:01 pm 
Offline
New Member
New Member

Joined: Tue Dec 20, 2011 1:05 am
Posts: 24
Certs: CCNA, Sec+
When you set the logging monitor/console level to 7 you get debug plus all the informational (level 6) and lower information. I'm trying to eliminate this output from printing to the terminal window while still allowing the debug output.


Sent from my Galaxy Nexus using Tapatalk 2


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 7:48 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 19, 2009 7:22 pm
Posts: 220
Location: VA
Certs: CCNP CCIP CCNA-S
Try using logging discriminator.

Code:
logging discriminator noconsole severity drops 5,6
logging console discriminator noconsole

This will not log sev 5 and 6 to the console and allow all others including sev 7 (debugging).

_________________
_______________________________________________________________________
There are 10 types of people in the world. Those who understand binary and those who don't.


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 8:06 pm 
Offline
New Member
New Member

Joined: Tue Dec 20, 2011 1:05 am
Posts: 24
Certs: CCNA, Sec+
Thanks, I'll try this tomorrow.

Sent from my Galaxy Nexus using Tapatalk 2


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 8:08 pm 
Offline
New Member
New Member

Joined: Tue Dec 20, 2011 1:05 am
Posts: 24
Certs: CCNA, Sec+
This will still allow the event manager output to reach syslog if it is suppressed from the console?

Sent from my Galaxy Nexus using Tapatalk 2


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 8:26 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 19, 2009 7:22 pm
Posts: 220
Location: VA
Certs: CCNP CCIP CCNA-S
Yes. Discriminator can be attached independently to console,monitor, or logging host.

_________________
_______________________________________________________________________
There are 10 types of people in the world. Those who understand binary and those who don't.


Top
 Profile  
 
PostPosted: Thu Aug 16, 2012 8:33 pm 
Offline
New Member
New Member

Joined: Tue Dec 20, 2011 1:05 am
Posts: 24
Certs: CCNA, Sec+
Nice. Thanks a billion.

Sent from my Galaxy Nexus using Tapatalk 2


Top
 Profile  
 
PostPosted: Sat Aug 18, 2012 5:10 pm 
Offline
New Member
New Member

Joined: Tue Dec 20, 2011 1:05 am
Posts: 24
Certs: CCNA, Sec+
Ok, so the IOS on the majority of our equipment is older than 12.4(11T). We're upgrading our platforms, but that won't happen for at least another 9 months. It's there a way to accomplish this on earlier IOS versions? Maybe change the debug level to 6 and informational to 7?

Sent from my Galaxy Nexus using Tapatalk 2


Top
 Profile  
 
PostPosted: Mon Aug 20, 2012 8:21 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 19, 2009 7:22 pm
Posts: 220
Location: VA
Certs: CCNP CCIP CCNA-S
ESM is the only other option that im aware of ... but that uses tcl.

_________________
_______________________________________________________________________
There are 10 types of people in the world. Those who understand binary and those who don't.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group