Change in libosmocore[master]: Add expect script: 'vty' for easy access to all vtys

Harald Welte gerrit-no-reply at
Wed Apr 24 08:42:25 UTC 2019

Harald Welte has posted comments on this change. ( )

Change subject: Add expect script: 'vty' for easy access to all vtys

Patch Set 1:

The more "canonical" way for the port numbers part is of course to add them to /etc/services so that you can do something like "telnet localhost osmo-msc".  I used to do that.  However,adding records to that file during package installation isn't very elegant, and there is no /etc/services.d or something along those lines.

Another approach would be to write a NSS module (see which would either have a compiled-in list of service name/port mappings, or (even better) parse the /etc/osmocom/osmo*.cfg files to create those mappings from the config files. In that case you would automatically get aliases for the port numbers that you configured.

Yet another approach is to use to create an osmocom-extended telnet client program which would have capabilities specific to the osmcoom vty, including finding the port numbers from the config files (or compiled-in defaults) and issue the VTY commands for logging, etc. using some local commands, maybe prefixed by @.

To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ice4532be7cb3139da29cb9d84dd4769e8d826dfa
Gerrit-Change-Number: 13756
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Whyte <keith at>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at>
Gerrit-CC: Harald Welte <laforge at>
Gerrit-CC: Vadim Yanitskiy <axilirator at>
Gerrit-Comment-Date: Wed, 24 Apr 2019 08:42:25 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list