Update vty script
Also install it on split stack system
This commit is contained in:
parent
d8e9820d62
commit
69aca48f7e
2 changed files with 20 additions and 4 deletions
|
@ -20,7 +20,9 @@
|
|||
set host localhost
|
||||
set vty [lindex $argv 0]
|
||||
set lf [lindex $argv 1]
|
||||
set all [lindex $argv 2]
|
||||
if { $lf < 0 } { set lf 1 }
|
||||
if { $all < 0 } { set all notice }
|
||||
set host localhost
|
||||
|
||||
switch $vty {
|
||||
|
@ -71,15 +73,23 @@ send "logging print file basename last\r"
|
|||
expect "#"
|
||||
send "logging print extended-timestamp 1\r"
|
||||
expect "#"
|
||||
send "logging level set-all notice\r"
|
||||
send "logging level set-all $all\r"
|
||||
expect "#"
|
||||
|
||||
# Customise logging configuration per daemon here:
|
||||
switch $vty {
|
||||
msc {
|
||||
send "logging level mm info\r"
|
||||
hlr {
|
||||
send "logging level mslookup debug\r"
|
||||
expect "#"
|
||||
send "logging level cc info\r"
|
||||
}
|
||||
msc {
|
||||
send "logging level mm debug\r"
|
||||
expect "#"
|
||||
send "logging level cc debug\r"
|
||||
expect "#"
|
||||
send "logging level msc info\r"
|
||||
expect "#"
|
||||
send "logging level lglobal debug\r"
|
||||
expect "#"
|
||||
}
|
||||
sg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue