<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.17097" name=GENERATOR><LINK
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"
rel=stylesheet></HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana size=2>
<H1 class=sectionedit6><A id=configuration_interface
name=configuration_interface>Configuration Interface</A></H1>
<DIV class=level1>
<P>The Transfer Manager is configured in the
<CODE>$ONE_LOCATION/etc/oned.conf</CODE> file, <A class=wikilink1
title=documentation:rel2.2:oned_conf
href="http://opennebula.org/documentation:rel2.2:oned_conf">see the Daemon
Configuration file</A>. Being flexible, the TM is always the same program, and
different configurations are achieved by changing the configuration file. This
file regulates the assignment between actions, like <CODE>CLONE</CODE> or
<CODE>LN</CODE>, and scripts, effectively changing the semantics of the actions
understood by the TM. </P><PRE class=code>TM_MAD = [
name = "tm_nfs",
executable = "one_tm",
arguments = "<tm-configuration-file>",
default = "<default-tm-configuration-file" ]</PRE>
<P>Current OpenNebula release contains two set of scripts for the two scenarios
described above, <CODE>Shared - NFS</CODE>
(<CODE>$ONE_LOCATION/etc/tm_nfs/tm_nfs.conf</CODE>) or the <CODE>Non Shared
<ACRONYM title="Secure Shell">SSH</ACRONYM></CODE> TM
(<CODE>$ONE_LOCATION/etc/tm_ssh/tm_ssh.conf</CODE>). Each different TM will have
their own directory inside <CODE>$ONE_LOCATION/etc</CODE>. </P>
<P>Lets see a sample line from the <CODE>Shared - NFS</CODE> configuration file:
</P><PRE class=code>...
CLONE = nfs/tm_clone.sh
...</PRE>
<P>Basically, the TM here is being told that whenever it receives a clone action
it should call the <CODE>tm_clone.sh</CODE> script with the received parameters.
For more information on modifying and extending these scripts see <SPAN
class=curid><A class=wikilink1 title=documentation:rel2.2:sm
href="http://opennebula.org/documentation:rel2.2:sm#customizing_and_extending">Customizing
and Extending</A></SPAN>. </P></DIV></FONT></DIV>
<DIV><FONT face=Verdana
size=2>==============================================</FONT></DIV>
<DIV>ask:</DIV>
<DIV>the "<SPAN class=curid><A class=wikilink1 title=documentation:rel2.2:sm
href="http://opennebula.org/documentation:rel2.2:sm#customizing_and_extending">Customizing
and Extending</A></SPAN>. " can't visit by browser?</DIV>
<DIV> </DIV>
<DIV>I may be to modify OpenNebula
underlying code Realize my function¡£</DIV>
<DIV>Can I add my own scripts eg£ºtm_mv_1.sh?,In case
of£¬ What I need to do things and
make its modification effect £¿</DIV>
<DIV> </DIV>
<DIV>Thanks£¡</DIV>
<DIV>Regars£¡</DIV>
<DIV>david<FONT face=Verdana color=#c0c0c0 size=2>2011-04-22 </FONT></DIV><FONT
face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>liudewei</SPAN>
</FONT></DIV></FONT><font face="monospace">---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</font></BODY></HTML>