UT cli on LMS 3.2

Answered Question
Oct 1st, 2009

I have a script using ut cli commands to dump UT from LMS server to other server. however every time the script running the ut cli command, the copy of the dump csv file written on LMS server at /var/tmp directory. my question is how I can avoid that or any options to restrict to be written the copy of the csv file on /var/tmp? because I have to clean up this huge csv file manually from /var/tmp.thanks for in advance for any help.

I have this problem too.
0 votes
Correct Answer by Joe Clarke about 7 years 3 weeks ago

I filed CSCtc31905 to track this.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
yjdabear Thu, 10/01/2009 - 08:46

You can specify the output location as such: "/opt/CSCOpx/campus/bin/ut -cli -export ${source-directory}/${source-file} [other options]"

raindrop18 Thu, 10/01/2009 - 09:10

thanks for the response, actually the file is correctly exported to destination file. the problem is the copy of that exported file saved on LMS server /var/tmp directory. and I don't want that. I use the same script on on my old LMS 2.6 didn't copy and file on LMS server but on this new LMS 3.2 do that. here is the command I use from my other server to LMS server "system('/usr/local/bin/ssh [email protected]-server /opt/CSCOpx/campus/bin/ut -u XXX -p XXX -cli -query all -layout corp > /tmp/ut-data

yjdabear Thu, 10/01/2009 - 09:36

Doh, I overlooked the part about the "other server". So if I understand correctly, the "other server" is running the script that remotes (ssh) into the LMS server, and exports UT data to /tmp/ut-data of the "other server".

Now the question becomes: While you don't want UT data to be written to /var/tmp on the LMS server, is there another location on the LMS server that you don't mind letting that file sit temporarily?

Also, does the file in /var/tmp always have the same name?

raindrop18 Thu, 10/01/2009 - 09:57

thanks a lot we are on the same page now!!! I don't mind if the file sit temporarily on /var/tmp however temporary means for how long? I have a file written almost since LMS 3.2 installed which is more than 30 days and keep adding each day. regarding the question about"does the file in /var/tmp always have the same name" yes it has the same name always.so the question is for how long this temporary file stayed on /var/tmp ? is there any mecahnisim on LMS to clean up this temp file? or I need to schedule cron job on LMS server a /dev/null command to clean up /ver/tmp?


Joe Clarke Thu, 10/01/2009 - 10:05

This is a bug which is easily fixed. If you open a TAC service request, I can provide you with a patch.

raindrop18 Thu, 10/01/2009 - 10:14

thanks J. what is the bug number to refer to TAC ? or just refer your name to get the patch?


This Discussion