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 host localhost
|
||||||
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]
|
||||||
if { $lf < 0 } { set lf 1 }
|
if { $lf < 0 } { set lf 1 }
|
||||||
|
if { $all < 0 } { set all notice }
|
||||||
set host localhost
|
set host localhost
|
||||||
|
|
||||||
switch $vty {
|
switch $vty {
|
||||||
|
@ -71,15 +73,23 @@ send "logging print file basename last\r"
|
||||||
expect "#"
|
expect "#"
|
||||||
send "logging print extended-timestamp 1\r"
|
send "logging print extended-timestamp 1\r"
|
||||||
expect "#"
|
expect "#"
|
||||||
send "logging level set-all notice\r"
|
send "logging level set-all $all\r"
|
||||||
expect "#"
|
expect "#"
|
||||||
|
|
||||||
# Customise logging configuration per daemon here:
|
# Customise logging configuration per daemon here:
|
||||||
switch $vty {
|
switch $vty {
|
||||||
msc {
|
hlr {
|
||||||
send "logging level mm info\r"
|
send "logging level mslookup debug\r"
|
||||||
expect "#"
|
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 "#"
|
expect "#"
|
||||||
}
|
}
|
||||||
sg {
|
sg {
|
||||||
|
|
|
@ -172,6 +172,12 @@ class rhizo_base::osmocom {
|
||||||
source => 'puppet:///modules/rhizo_base/systemd/osmo-mgw-msc.service',
|
source => 'puppet:///modules/rhizo_base/systemd/osmo-mgw-msc.service',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/usr/local/bin/vty':
|
||||||
|
source => 'puppet:///modules/rhizo_base/vty',
|
||||||
|
owner => 'root',
|
||||||
|
mode => '0755',
|
||||||
|
}
|
||||||
|
|
||||||
service { [ 'osmo-stp', 'osmo-hlr', 'osmo-bsc',
|
service { [ 'osmo-stp', 'osmo-hlr', 'osmo-bsc',
|
||||||
'osmo-msc', 'osmo-mgw',
|
'osmo-msc', 'osmo-mgw',
|
||||||
'osmo-sgsn', 'osmo-sip-connector' ]:
|
'osmo-sgsn', 'osmo-sip-connector' ]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue