AFP548

Don’t get AFP connected user list via ssh

Hi there, I try connecting to my AFP file server (no matter if it's running 10.6.8 or 10.7.2) using ssh to ask for a list of connected users: [code]ssh root@server.local 'serveradmin command afp:command = getConnectedUsers' [/code] When I issue the command above, the reply only includes the first user connected to the server. This looks like this: [code]afp:state = "RUNNING" afp:usersArray:_array_index:0:state = 1 afp:usersArray:_array_index:0:ipAddress = "10.0.2.6" afp:usersArray:_array_index:0:name = "test1" afp:usersArray:_array_index:0:loginElapsedTime = 136 afp:usersArray:_array_index:0:sessionID = 16 afp:usersArray:_array_index:0:serviceType = "afp" afp:usersArray:_array_index:0:minsToDisconnect = 0 afp:usersArray:_array_index:0:lastUseElapsedTime = 7 afp:usersArray:_array_index:0:disconnectID = 0 afp:usersArray:_array_index:0:sessionType = "tcp" afp:usersArray:_array_index:0:flags = 0 afp:timeStamp = "2011-11-07 11:00:32 +0100"[/code] When I run the same command on the server (again as root), I get the list of all connected users: [code]afp:state = "RUNNING" afp:usersArray:_array_index:0:lastUseElapsedTime = 36 afp:usersArray:_array_index:0:minsToDisconnect = 0 afp:usersArray:_array_index:0:sessionType = "tcp" afp:usersArray:_array_index:0:state = 1 afp:usersArray:_array_index:0:serviceType = "afp" afp:usersArray:_array_index:0:ipAddress = "10.0.2.6" afp:usersArray:_array_index:0:sessionID = 16 afp:usersArray:_array_index:0:loginElapsedTime = 40 afp:usersArray:_array_index:0:disconnectID = 0 afp:usersArray:_array_index:0:name = "andre" afp:usersArray:_array_index:0:flags = 1 afp:usersArray:_array_index:1:lastUseElapsedTime = 23 afp:usersArray:_array_index:1:minsToDisconnect = 0 afp:usersArray:_array_index:1:sessionType = "tcp" afp:usersArray:_array_index:1:state = 1 afp:usersArray:_array_index:1:serviceType = "afp" afp:usersArray:_array_index:1:ipAddress = "10.0.2.7" afp:usersArray:_array_index:1:sessionID = 22 afp:usersArray:_array_index:1:loginElapsedTime = 24 afp:usersArray:_array_index:1:disconnectID = 0 afp:usersArray:_array_index:1:name = "andre" afp:usersArray:_array_index:1:flags = 1 afp:timeStamp = "2011-11-07 10:06:12 +0000"[/code] Does anyone have an idea, why the same command piped through ssh returns a different output from the locally invoked command? Piping something like 'cat /var/log/system.log' through ssh gives me the full output of the command, so I guess this must be a limitation of serveradmin. Any input would be highly appreciated. Kind regards, André
Exit mobile version