Mailing List Archive

CatOS session log message during rancid operation
Hi,

not sure if this was discussed before.
Once in a while I get such diffs from our Catalyst5500's (CatOS):

@@ -522,8 +522,9 @@
set spantree portfast 3/1-24 enable
!
#module 4 : 24-port 10/100BaseTX Ethernet
set vlan 103 4/22-23
+ 2004 Jan 13 13:32:03 IDT +03:00 %PAGP-5-PORTTOSTP:Port 8/19 joined
bridge port 8/19


this happens because by default logging session is enabled.
it needs to be disabled per session with "set logging session disable"
not sure where is the best place to add it, thought you can advice ....


Yuval
CatOS session log message during rancid operation [ In reply to ]
On 13.01.2004 13:10 Yuval Ben-Ari wrote:
> Once in a while I get such diffs from our Catalyst5500's (CatOS):
>
> @@ -522,8 +522,9 @@
> set spantree portfast 3/1-24 enable
> !
> #module 4 : 24-port 10/100BaseTX Ethernet
> set vlan 103 4/22-23
> + 2004 Jan 13 13:32:03 IDT +03:00 %PAGP-5-PORTTOSTP:Port 8/19 joined
> bridge port 8/19
>
>
> this happens because by default logging session is enabled.
> it needs to be disabled per session with "set logging session disable"
> not sure where is the best place to add it, thought you can advice ....

The recommendation is to disable logging on telnet as well as on console
(see
http://www.cisco.com/en/US/products/hw/switches/ps663/products_tech_note09186a0080094713.shtml
for a comprehensive description)


HTH, Arnold
CatOS session log message during rancid operation [ In reply to ]
As I said it can only be disabled per session, on next login it is
enabled again.
Do you know a way to permanently disable session logging ?
CatOS session log message during rancid operation [ In reply to ]
On 13.01.2004 16:01 Yuval Ben-Ari wrote:

> As I said it can only be disabled per session, on next login it is
> enabled again.
> Do you know a way to permanently disable session logging ?


set logging telnet disable

should do,
Arnold
CatOS session log message during rancid operation [ In reply to ]
no such command.
the command "set logging session disable" works but for that session
only.
CatOS is 5.5(19)
Was just wondering were is the correct place to add this command.

Yuval
CatOS session log message during rancid operation [ In reply to ]
> no such command.
> the command "set logging session disable" works but for that session
> only.
> CatOS is 5.5(19)
> Was just wondering were is the correct place to add this command.

This is in RANCID 2.2.2 already - look near the bottom of clogin for:

} 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"
}

did this code go missing in more recent versions?

Terry Kennedy http://www.tmk.com
terry at tmk.com New York, NY USA
CatOS session log message during rancid operation [ In reply to ]
On Tue, Jan 13, 2004 at 12:52:10PM -0500, Terry Kennedy wrote:
> This is in RANCID 2.2.2 already - look near the bottom of clogin for:
>
> } 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"
> }
>
> did this code go missing in more recent versions?

Nope; its still there.
--asp
CatOS session log message during rancid operation [ In reply to ]
your'e right, I have this line, and yet get session logs slip into
rancid diffs sometimes.
I will try to debug it further .....

Thanks,