Yang action for who command

hello, i would like if possible make the who command output available to other nb interfaces as well.
is there an action-Yang for it available, so that all interfaces have access to its output?
another way to do this, i was thinking to create an action/rpc myself and get the who command output from there (for example using tailf:exec calling “who” command and parsing the output, i am interested in user and source ip in particular), i thought if action yang for who command is available it might save some time

From your action callback, you can use MAAPI get_user_sessions() to get the session IDs and get_user_session() for each ID to get the user information. See the confd_lib_maapi(3) man page for C API details and the Python + Java docs.

1 Like