Improve vty command
This commit is contained in:
parent
dca1111f81
commit
3226b22502
1 changed files with 21 additions and 8 deletions
|
@ -21,9 +21,10 @@ set host localhost
|
|||
set vty [lindex $argv 0]
|
||||
set lf [lindex $argv 1]
|
||||
set all [lindex $argv 2]
|
||||
set h [lindex $argv 3]
|
||||
if { $lf < 0 } { set lf 1 }
|
||||
if { $all < 0 } { set all notice }
|
||||
set host localhost
|
||||
if { $h > 0 } { set host 127.0.0.2 }
|
||||
|
||||
switch $vty {
|
||||
e1 { set port 4269 }
|
||||
|
@ -41,6 +42,10 @@ switch $vty {
|
|||
ggsn { set port 4260 }
|
||||
hnbgw { set port 4261 }
|
||||
stp { set port 4239 }
|
||||
mob { set port 4247 }
|
||||
bts { set port 4241 }
|
||||
trx { set port 4237 }
|
||||
pcu { set port 4240 }
|
||||
|
||||
osmo-hlr { set port 4258 } ; # Same but with full names of osmo-daemons:
|
||||
osmo-bsc { set port 4242 }
|
||||
|
@ -84,21 +89,29 @@ switch $vty {
|
|||
expect "#"
|
||||
}
|
||||
msc {
|
||||
send "logging level mm debug\r"
|
||||
send "logging level db debug\r"
|
||||
expect "#"
|
||||
send "logging level cc debug\r"
|
||||
send "logging level lsms debug\r"
|
||||
expect "#"
|
||||
send "logging level msc info\r"
|
||||
send "logging level mm info\r"
|
||||
expect "#"
|
||||
send "logging level lglobal debug\r"
|
||||
expect "#"
|
||||
}
|
||||
mgw {
|
||||
send "logging level lmib error\r"
|
||||
expect "#"
|
||||
send "logging level lglobal notice\r"
|
||||
expect "#"
|
||||
send "logging level rtp error\r"
|
||||
expect "#"
|
||||
send "logging level e1 error\r"
|
||||
expect "#"
|
||||
}
|
||||
sg {
|
||||
send "logging level set-all error\r"
|
||||
send "logging level mm error\r"
|
||||
expect "#"
|
||||
send "logging level mm fatal\r"
|
||||
expect "#"
|
||||
send "logging level lglobal fatal\r"
|
||||
send "logging level lglobal error\r"
|
||||
expect "#"
|
||||
send "logging level gprs info\r"
|
||||
expect "#"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue