#Is there a way to see who is logged in to the SSH/SP console?

1 messages · Page 1 of 1 (latest)

earnest palm
#

I just had the need to see if someone was logged in on the cluster via the SSH console... I tried "who" like on any linux/unix box, but apparently this has not been moved over from BSD yet? 😉
But is there a way to see this?... I have also tried "w" but this only works from the "systemshell" and shows noone logged in, which makes sense I guess...

placid crag
#

security session show

quartz rune
#

aye, that shows current logged in users, but if you are referring to 'was logged in' and now they aren't you need to enable auditing and/or syslogging to an external system

gaunt flare
#

Just rdfile the audit logs from the node shell.

#

(or you could cat and grep from systemshell)

#

pstejska_vsim_node*> rdfile /etc/log/mlog/audit.log
00000041.0265dedc 079603ee Wed Sep 04 2024 18:04:20 -05:00 [kern_audit:info:3743] 8503e80000c3f2d3 :: pstejska_vsim:http :: 10.216.33.135:36574 :: pstejska_vsim:admin :: GET /api/private/cli/vserver/cifs/server/security?fields=lm_compatibility_level%2Cvserver&ignore_unknown_fields=true&return_records=true :: Pending
00000041.0265dedd 079603ee Wed Sep 04 2024 18:04:20 -05:00 [kern_audit:info:3743] 8503e80000c3f2d3 :: pstejska_vsim:http :: 10.216.33.135:36574 :: pstejska_vsim:admin :: GET /api/private/cli/vserver/cifs/server/security?fields=lm_compatibility_level%2Cvserver&ignore_unknown_fields=true&return_records=true :: Success:
.....