Re: [one-users] Can I add my own scripts ?

2011-04-27 Thread Carlos Martín Sánchez
Hi,

This guide might help you:
http://opennebula.org/documentation:rel2.2:sd

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/4/22 liudewei liude...@neusoft.com

  Configuration Interface

 The Transfer Manager is configured in the $ONE_LOCATION/etc/oned.conffile, see
 the Daemon Configuration 
 filehttp://opennebula.org/documentation:rel2.2:oned_conf.
 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 CLONE or LN, and scripts,
 effectively changing the semantics of the actions understood by the TM.

 TM_MAD = [
 name   = tm_nfs,
 executable = one_tm,
 arguments  = tm-configuration-file,
 default= default-tm-configuration-file ]

 Current OpenNebula release contains two set of scripts for the two
 scenarios described above, Shared - NFS (
 $ONE_LOCATION/etc/tm_nfs/tm_nfs.conf) or the Non Shared SSH TM (
 $ONE_LOCATION/etc/tm_ssh/tm_ssh.conf). Each different TM will have their
 own directory inside $ONE_LOCATION/etc.

 Lets see a sample line from the Shared - NFS configuration file:

 ...
 CLONE   = nfs/tm_clone.sh
 ...

 Basically, the TM here is being told that whenever it receives a clone
 action it should call the tm_clone.sh script with the received parameters.
 For more information on modifying and extending these scripts see Customizing
 and 
 Extendinghttp://opennebula.org/documentation:rel2.2:sm#customizing_and_extending.

 ==
 ask:
 the Customizing and 
 Extendinghttp://opennebula.org/documentation:rel2.2:sm#customizing_and_extending.
  can't visit by browser?

 I may be to modify OpenNebula underlying code  Realize my function。
 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 ?

 Thanks!
 Regars!
 david2011-04-22
 --
 liudewei

 ---
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying attachment(s)
 is intended only for the use of the intended recipient and may be
 confidential and/or privileged of
 Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
 of this communication is
 not the intended recipient, unauthorized use, forwarding, printing,
 storing, disclosure or copying
 is strictly prohibited, and may be unlawful.If you have received this
 communication in error,please
 immediately notify the sender by return e-mail, and delete the original
 message and all copies from
 your system. Thank you.

 ---

 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Can I add my own scripts ?

2011-04-21 Thread liudewei
Configuration Interface
The Transfer Manager is configured in the $ONE_LOCATION/etc/oned.conf file, see 
the Daemon Configuration file. 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 
CLONE or LN, and scripts, effectively changing the semantics of the actions 
understood by the TM. 
TM_MAD = [
name   = tm_nfs,
executable = one_tm,
arguments  = tm-configuration-file,
default= default-tm-configuration-file ]
Current OpenNebula release contains two set of scripts for the two scenarios 
described above, Shared - NFS ($ONE_LOCATION/etc/tm_nfs/tm_nfs.conf) or the Non 
Shared SSH TM ($ONE_LOCATION/etc/tm_ssh/tm_ssh.conf). Each different TM will 
have their own directory inside $ONE_LOCATION/etc. 
Lets see a sample line from the Shared - NFS configuration file: 
...
CLONE   = nfs/tm_clone.sh
...
Basically, the TM here is being told that whenever it receives a clone action 
it should call the tm_clone.sh script with the received parameters. For more 
information on modifying and extending these scripts see Customizing and 
Extending. 
==
ask:
the Customizing and Extending.  can't visit by browser?

I may be to modify OpenNebula underlying code  Realize my function。
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 ?

Thanks!
Regars!
david2011-04-22 



liudewei 
---
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential 
and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, 
disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this 
communication in error,please 
immediately notify the sender by return e-mail, and delete the original message 
and all copies from 
your system. Thank you. 
---
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org