vty script ad 'dq'
Add a pseudo level to the vty script to hush some of the debug level logging
This commit is contained in:
parent
87e8738104
commit
1cbc1bdf88
1 changed files with 32 additions and 0 deletions
|
@ -18,12 +18,17 @@
|
||||||
# Requires expect, available on most distributions.
|
# Requires expect, available on most distributions.
|
||||||
|
|
||||||
set host localhost
|
set host localhost
|
||||||
|
set quiet 0
|
||||||
set vty [lindex $argv 0]
|
set vty [lindex $argv 0]
|
||||||
set lf [lindex $argv 1]
|
set lf [lindex $argv 1]
|
||||||
set all [lindex $argv 2]
|
set all [lindex $argv 2]
|
||||||
set h [lindex $argv 3]
|
set h [lindex $argv 3]
|
||||||
if { $lf < 0 } { set lf 1 }
|
if { $lf < 0 } { set lf 1 }
|
||||||
if { $all < 0 } { set all notice }
|
if { $all < 0 } { set all notice }
|
||||||
|
if { $all == "dq" } {
|
||||||
|
set all debug
|
||||||
|
set quiet 1
|
||||||
|
}
|
||||||
if { $h > 0 } { set host 127.0.0.2 }
|
if { $h > 0 } { set host 127.0.0.2 }
|
||||||
|
|
||||||
switch $vty {
|
switch $vty {
|
||||||
|
@ -117,6 +122,33 @@ switch $vty {
|
||||||
expect "#"
|
expect "#"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if { $quiet==1 } {
|
||||||
|
|
||||||
|
# These levels are very noisy at debug:
|
||||||
|
send "logging level lctrl info\r"
|
||||||
|
expect "#"
|
||||||
|
send "logging level lmi info\r"
|
||||||
|
expect "#"
|
||||||
|
send "logging level linp info\r"
|
||||||
|
expect "#"
|
||||||
|
send "logging level lgsup notice\r"
|
||||||
|
expect "#"
|
||||||
|
send "logging level lsccp info\r"
|
||||||
|
expect "#"
|
||||||
|
send "logging level lss7 info\r"
|
||||||
|
expect "#"
|
||||||
|
send "logging level lm3ua info\r"
|
||||||
|
expect "#"
|
||||||
|
send "logging level lsua info\r"
|
||||||
|
expect "#"
|
||||||
|
|
||||||
|
switch $vty {
|
||||||
|
msc {
|
||||||
|
send "logging level smpp info\r"
|
||||||
|
expect "#"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
send "logging filter all $lf\r"
|
send "logging filter all $lf\r"
|
||||||
expect "#"
|
expect "#"
|
||||||
interact
|
interact
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue