Command line function to see NS Layer
This commit is contained in:
parent
149014be19
commit
27241a8300
1 changed files with 4 additions and 0 deletions
|
@ -95,3 +95,7 @@ pdp () {
|
||||||
pdpc () {
|
pdpc () {
|
||||||
expect -c 'spawn -noecho telnet 0 4245; expect >; send enable\r; expect #; send "show pdp-context all\r"; expect #' | grep "PDP Address" | grep -v invalid | wc -l
|
expect -c 'spawn -noecho telnet 0 4245; expect >; send enable\r; expect #; send "show pdp-context all\r"; expect #' | grep "PDP Address" | grep -v invalid | wc -l
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ns () {
|
||||||
|
expect -c 'spawn -noecho telnet 0 4245; expect >; send enable\r; expect #; send "show ns\r"; expect #' | grep ALIVE;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue