10-17-2023 02:45 AM
admin@ncs# who
Session User Context From Proto Date Mode
*3109 admin cli 127.0.0.1 console 09:15:39 operational
admin@ncs#
how do I get the user info who has logged in using Maapi API
10-17-2023 04:30 AM
Take a look at the get_user_session_identification and get_user_session_identification in the low level Maapi.
10-17-2023 04:37 AM - edited 10-17-2023 04:46 AM
If the MAAPI client starts a user session using any context other than the default "system" context, the user will be listed by, for example, the CLI "who" command. Example:
$ ncs_cmd -u admin -x my-maapi-context -c "mtrans; sleep 60" &
$ echo "who" | ncs_cli -u admin -C
Session User Context From Proto Date Mode
*416 admin cli 127.0.0.1 console 13:34:33 operational
415 admin my-maapi-context 127.0.0.1 tcp 13:34:30 config-terminal
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide