SD_GET_SEATS(3) sd_get_seats SD_GET_SEATS(3)NAME
sd_get_seats, sd_get_sessions, sd_get_uids - Determine available seats, sessions and logged in users
SYNOPSIS
#include <systemd/sd-login.h>
int sd_get_seats(char*** seats);
int sd_get_sessions(char*** sessions);
int sd_get_uids(char*** sessions);
DESCRIPTION
sd_get_seats() may be used to determine all currently available local seats. Returns a NULL terminated array of seat identifiers. The
returned array and all strings it references need to be freed with the libc free(3) call after use. Note that instead of an empty array
NULL may be returned and should be considered equivalent to an empty array.
Similar, sd_get_sessions() may be used to determine all current login sessions.
Similar, sd_get_uids() may be used to determine all Unix users who currently have login sessions.
RETURN VALUE
On success sd_get_seats(), sd_get_sessions() and sd_get_uids() return the number of entries in the arrays. On failure, these calls return a
negative errno-style error code.
NOTES
The sd_get_seats(), sd_get_sessions() and sd_get_uids() interfaces are available as shared library, which can be compiled and linked to
with the libsystemd-login pkg-config(1) file.
SEE ALSO systemd(1), sd-login(7), sd_session_get_seat(3)AUTHOR
Lennart Poettering <lennart@poettering.net>
Developer
systemd 10/07/2013 SD_GET_SEATS(3)
Check Out this Related Man Page
SD_GET_SEATS(3) sd_get_seats SD_GET_SEATS(3)NAME
sd_get_seats, sd_get_sessions, sd_get_uids - Determine available seats, sessions and logged in users
SYNOPSIS
#include <systemd/sd-login.h>
int sd_get_seats(char*** seats);
int sd_get_sessions(char*** sessions);
int sd_get_uids(char*** sessions);
DESCRIPTION
sd_get_seats() may be used to determine all currently available local seats. Returns a NULL terminated array of seat identifiers. The
returned array and all strings it references need to be freed with the libc free(3) call after use. Note that instead of an empty array
NULL may be returned and should be considered equivalent to an empty array.
Similar, sd_get_sessions() may be used to determine all current login sessions.
Similar, sd_get_uids() may be used to determine all Unix users who currently have login sessions.
RETURN VALUE
On success sd_get_seats(), sd_get_sessions() and sd_get_uids() return the number of entries in the arrays. On failure, these calls return a
negative errno-style error code.
NOTES
The sd_get_seats(), sd_get_sessions() and sd_get_uids() interfaces are available as shared library, which can be compiled and linked to
with the libsystemd-login pkg-config(1) file.
SEE ALSO systemd(1), sd-login(7), sd_session_get_seat(3)AUTHOR
Lennart Poettering <lennart@poettering.net>
Developer
systemd 10/07/2013 SD_GET_SEATS(3)
Hi,
We have a generic login id :- ship1 .
There can be any number of sessions for this login ID. I'm working on a way to log off idle sessions ( not logins) . I searched the forum and found
TMOUT. Is it at login level or session level ? ( looks like it is at login level)
But I added it to... (2 Replies)
Hi! I'm currently using AIX 4.3 and would like to know where can i find to see that there's a restriction on the number of login times a user can have. Example, I want to see whether user A has only 1 login while user B can have 2 logins (without logging off the first one).
Would I be able to... (7 Replies)
Hi,
1-in vmstat commande line, in reply, which column is the more important to look and verify if server is very slow ?
2-how can I see how many sessions are opened with the same login ?
Many thanks before. (2 Replies)
I m need of something useful to reduce my n number of login sessions to save my time.
Scenario :
I will login 40+ servers daily with ip address. i hv generated ssh key gens in order to avoid passwords.
what i need is :
when i click a terminal, i need these 40 servers logged in... (1 Reply)
Hi,
Could you please advice on the following query:
There are 2 users on a unix box:
1. aaaa
2. bbbb
I open 2 putty sessions and login with the above 2 users.
Then I type the following using the aaaa user to chat with bbbb.
talk bbbb
or
talk bbbb@hostname
Result: the screen goes... (4 Replies)
Hi,
On my system, I have about 75 users. Some uers have two or three sessions on the same systems. when I do w, it shows all the sessions. Is there any way to find only the users and not worry about how many sessions. For example: you can see sshe has four connection. I only want to know... (5 Replies)
Hello,
What will be the effect of environment variable, when mulitple sessions are opened by same login?
Following code snippet is part of a shell script.
Environment : HP-UX B.11.31 U ia64
For Example
EXECUTION_DIR=`pwd`/
EXECUTION_DIR_RT=${EXECUTION_DIR}RT/
export... (4 Replies)