Skip to main content

is possible know how many sessions of cpanel is opened just NOW?? (sessions active/live)

Comments

5 comments

  • ZenHostingTravis
    Hi @000, Session files are stored in /var/cpanel/sessions/raw/ Each file contains information such as the IP address.
    0
  • 000
    Session files are stored in /var/cpanel/sessions/raw/ Each file contains information such as the IP address.

    Thanks master ZenHostingTravis logically I am no't expert in SHELL or admin servers. Can you please giveme a command to run from PUTTY and I get output similar to:current sessions oppeneds: 13 order moment IP USER APP first from 2 hours x sam cPanel second from 50 minutes y sem WHM third from 9 minutes z sim WebMail . . .
    I know this is very ambitiouse, but I say something similar :-D Many thanks
    0
  • cPRex Jurassic Moderator
    @000 - it may be as simple as this: ls -lah /var/cpanel/sessions/raw
    That will give you output that looks similar to the following: drwx------ 2 root root 65536 Dec 3 09:12 ./ drwx------ 5 root root 4096 Dec 3 09:27 ../ -rw------- 1 root root 566 Dec 3 08:50 user1:Zgf3qL6YfXzWCdTb -rw------- 1 root root 456 Dec 3 08:50 user2:Tys_z_zwaVA8JaHd
    with the username and timestamp listed.
    0
  • 000
    @000 - it may be as simple as this: ls -lah /var/cpanel/sessions/raw
    That will give you output that looks similar to the following: drwx------ 2 root root 65536 Dec 3 09:12 ./ drwx------ 5 root root 4096 Dec 3 09:27 ../ -rw------- 1 root root 566 Dec 3 08:50 user1:Zgf3qL6YfXzWCdTb -rw------- 1 root root 456 Dec 3 08:50 user2:Tys_z_zwaVA8JaHd
    with the username and timestamp listed.

    Run perfect master cPRex. I need that info to choice the best moment when I restart server and do some updates... not is possible include IP in output?
    0
  • cPRex Jurassic Moderator
    I don't have an easy way to include the IP in that output, unfortunately.
    0

Please sign in to leave a comment.