Prevent PAGP messages from showing up in diffs

Zhang, Anchi AZhang at
Wed Mar 6 15:26:08 UTC 2002

I think so:

log2# grep "set logging session disable" clogin 
            send "set logging session disable\r"

-----Original Message-----
From: Andrew Partan [mailto:asp at]
Sent: Wednesday, March 06, 2002 9:23 AM
To: Zhang, Anchi
Cc: rancid-discuss at
Subject: Re: Prevent PAGP messages from showing up in diffs

On Wed, Mar 06, 2002 at 09:18:15AM -0600, Zhang, Anchi wrote:
> "set logging session disable" will "disable the sending of system
> logging messages to the current login session."  How best should I add
> this command to rancid?

Are you using the latest bits?  clogin already has:
	send "set logging session disable\r"


    } elseif { $do_script } {
	# If the prompt is (enable), then we are on a switch and the
	# command is "set length 0"; otherwise its "term length 0".
	if [ regexp -- ".*> .*enable" "$prompt" ] {
	    send "set length 0\r"
	    send "set logging session disable\r"
	} else {
	    send "term length 0\r"

More information about the Rancid-discuss mailing list