Prevent PAGP messages from showing up in diffs

Andrew Partan asp at partan.com
Wed Mar 6 15:23:04 UTC 2002


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"

	--asp

    } 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