Connecting from a Terminal
One can connect to the Network Manager from a terminal,
e.g., using openssl s_client, to manually send requests to the Network
Manager. So that you do not have to enter a request in the
very-specific JSON representation of the Client Format, the following syntax
can be used instead.
Connecting from a terminal is only convenient when connecting as a
Client. A Service must enter
the full JSON representation of the Service Format when it sends a response.
Some tips for connecting as a Client:
To identify as a
CliententerclientTo identify as a
Clientwith the nameMy Nameenterclient My NameTo request something from the Network
Manageruse the following formatManager <attribute> [<arguments>, [<keyword_arguments>]]For example, to request the
identityof the NetworkManagerenterManager identityor, as a shortcut for requesting the
identityof theManager, you only need to enteridentityTo check if a user with the name
n.bohrexists in the database of registered users enterManager users_table.is_user_registered n.bohrNote
Most requests that are for the Network
Managerto execute require that the request comes from aClientthat is connected to the NetworkManageras an administrator. Your login credentials will be checked (requested from you) before the NetworkManagerexecutes the request. See theusercommand in MSL-Network CLI Documentation for more details on how to become an administrator.To request something from a
Serviceuse the following format<service> <attribute> [<arguments>, [<keyword_arguments>]]Attention
Although you can send requests to a
Servicein the following manner there is no way to block the request if theServicehas already met the restriction for the maximum number ofClient's that can be linked with theServiceto send requests to it. Therefore, you should only do the following if you are certain that theServicehas not reached its maximumClientlimit. To test if thisClientlimit has been reached enterlink <service>, for example,link BasicMathand see if you get aPermissionErrorin the response before you proceed to send requests to theService.For example, to request the addition of two numbers from the BasicMath Service enter
BasicMath add 4 10or
BasicMath add x=4 y=10To request the concatenation of two strings from a
ModifyString.concat(s1, s2)Service, but with theModifyStringServicebeing namedString Editoron the NetworkManagerenter"String Editor" concat s1="first string" s2="second string"
To disconnect from the Network
Managerenterdisconnector
exit