sonriks
asked on
sudosh - where is the sudosh user session id?
I see 3 separate files logged as a result of a user running sudosh
./baja10/user1-user1-scrip t-13171617 43-uzzVVVV 1111XXXXX
./baja10/user1-user1-time- 1317161743 -uzzVVVV11 11XXXXX
./baja10/user1-user1-input -131716174 3-uzzVVVV1 111XXXXX
The sudosh-replay command is looking for something else, some other type of file apparently.
When I do a "sudosh-replay" without any arguments to see the available sessions, I get the following message:
baja7:/home/users/sudoshlo gs#: sudosh-replay
No sessions are logged in /home/users/sudoshlogs/baj a7
What format do the session files have, and what are the 3 files above used for?
*script*
*time*
*input*
Do I have sudosh misconfigured?
./baja10/user1-user1-scrip
./baja10/user1-user1-time-
./baja10/user1-user1-input
The sudosh-replay command is looking for something else, some other type of file apparently.
When I do a "sudosh-replay" without any arguments to see the available sessions, I get the following message:
baja7:/home/users/sudoshlo
No sessions are logged in /home/users/sudoshlogs/baj
What format do the session files have, and what are the 3 files above used for?
*script*
*time*
*input*
Do I have sudosh misconfigured?
ASKER
I am logged on as root.
The tree for sudosh logs: /home/users/sudoshlogs/$se rvername (it's a nas share)
The "baja10" dir has files for all users that use sudosh on that server., i.e.
./baja10/user1-user1-scrip t-13171617 43-uzzVVVV 1111XXXXX
./baja10/user1-user1-time- 1317161743 -uzzVVVV11 11XXXXX
./baja10/user1-user1-input -131716174 3-uzzVVVV1 111XXXXX
When I run the command "sudosh-replay -d baja10" from /home/users/sudoshlogs dir, I get the following output
Date Duration From To ID
==== ======== ==== == ==
09/27/2011 18:15:43 36s rbhatia rbhatia rbhatia-rbhatia-1317161743 -uzzVVVV11 11XXXXX
Usage: sudosh-replay ID [MULTIPLIER] [MAXWAIT]
See 'sudosh-replay -h' for more help.
Example: sudosh-replay rbhatia-rbhatia-1317161743 -uzzVVVV11 11XXXXX 1 2
The output of the "sudosh-replay -d baja10" returns
rbhatia-rbhatia-1317161743 -uzzVVVV11 11XXXXX
but I don't see that file in the baja10 dir. Instead what I see are 3 files
rbhatia-rbhatia-time-13171 61743-uzzV VVV1111XXX XX
rbhatia-rbhatia-input-1317 161743-uzz VVVV1111XX XXX
rbhatia-rbhatia-script-131 7161743-uz zVVVV1111X XXXX
So how do I run the command in the example above
Example: sudosh-replay rbhatia-rbhatia-1317161743 -uzzVVVV11 11XXXXX 1 2
if I can't find the argument "rbhatia-rbhatia-131716174 3-uzzVVVV1 111XXXXX 1 2"
The tree for sudosh logs: /home/users/sudoshlogs/$se
The "baja10" dir has files for all users that use sudosh on that server., i.e.
./baja10/user1-user1-scrip
./baja10/user1-user1-time-
./baja10/user1-user1-input
When I run the command "sudosh-replay -d baja10" from /home/users/sudoshlogs dir, I get the following output
Date Duration From To ID
==== ======== ==== == ==
09/27/2011 18:15:43 36s rbhatia rbhatia rbhatia-rbhatia-1317161743
Usage: sudosh-replay ID [MULTIPLIER] [MAXWAIT]
See 'sudosh-replay -h' for more help.
Example: sudosh-replay rbhatia-rbhatia-1317161743
The output of the "sudosh-replay -d baja10" returns
rbhatia-rbhatia-1317161743
but I don't see that file in the baja10 dir. Instead what I see are 3 files
rbhatia-rbhatia-time-13171
rbhatia-rbhatia-input-1317
rbhatia-rbhatia-script-131
So how do I run the command in the example above
Example: sudosh-replay rbhatia-rbhatia-1317161743
if I can't find the argument "rbhatia-rbhatia-131716174
What you see with "sudosh-replay -d ..." is the ID of the session, not a filename.
filenames are composed of the ID and an inserted part "time"/"input"/"script"
Simply run the command suggested by sudosh-replay.
wmp
filenames are composed of the ID and an inserted part "time"/"input"/"script"
Simply run the command suggested by sudosh-replay.
wmp
ASKER
No such session message
************************** ******
baja7:/home/users/sudoshlo gs#: sudosh-replay -d baja10
Date Duration From To ID
==== ======== ==== == ==
09/28/2011 10:40:20 26m40s akohojka akohojka akohojka-akohojka-13172208 20-bggCCCC iiiiEEEEE
Usage: sudosh-replay ID [MULTIPLIER] [MAXWAIT]
See 'sudosh-replay -h' for more help.
Example: sudosh-replay akohojka-akohojka-13172208 20-bggCCCC iiiiEEEEE 1 2
baja7:/home/users/sudoshlo gs#: sudosh-replay akohojka-akohojka-13172208 20-bggCCCC iiiiEEEEE 1 2
[replay.c, line 316]: sudosh-replay: no such session: akohojka-akohojka-13172208 20-bggCCCC iiiiEEEEE
baja7:/home/users/sudoshlo gs#: sudosh-replay baja10/akohojka-akohojka-1 317220820- bggCCCCiii iEEEEE 1 2
[replay.c, line 316]: sudosh-replay: no such session: baja10/akohojka-akohojka-1 317220820- bggCCCCiii iEEEEE
baja7:/home/users/sudoshlo gs#:
**************************
baja7:/home/users/sudoshlo
Date Duration From To ID
==== ======== ==== == ==
09/28/2011 10:40:20 26m40s akohojka akohojka akohojka-akohojka-13172208
Usage: sudosh-replay ID [MULTIPLIER] [MAXWAIT]
See 'sudosh-replay -h' for more help.
Example: sudosh-replay akohojka-akohojka-13172208
baja7:/home/users/sudoshlo
[replay.c, line 316]: sudosh-replay: no such session: akohojka-akohojka-13172208
baja7:/home/users/sudoshlo
[replay.c, line 316]: sudosh-replay: no such session: baja10/akohojka-akohojka-1
baja7:/home/users/sudoshlo
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It took a little back and forth, but I finally have all the info. Again, wmp has come through for me!
Those are the recordings of input/output, keyboard input, and timing information, respectively.
Did you issue "sudosh-replay" when logged in as the same user who recorded the sessions?
The location of the logfiles is user-dependent ($HOME).
To replay recordings from a given directory use sudosh-replay with the "-d logdir" option.
wmp