Hi,Will the script be able to invoke other commands to glean specific information about the system? Say something as simple as "ls -l /dev/dsk/*s2" or "dladm show-link" or perhaps even "cfgadm -alv"?
Ethan Quach said the following on 04/30/10 11:23 AM:
On 04/28/10 07:25, Jan Damborsky wrote:Hi Ethan, it looks pretty good - I have only couple of questions/comments. Thank you, Jan 5.2.5 I am wondering if we might need to support 'commit' as well, especially with respect to 5.2.6.2. Or would be the changes automatically flushed to the resultant manifest ? At which point ?When the script finishes execution, the DMM will always issue a validate, to check validity, and a commit, to output the resultant manifest, so its not needed through aimanifest.5.2.6.1 Could you please elaborate more on the problem we are going to solve by running derivation script as aiuser ? It is not quite obvious why this mechanism is needed.The purpose of this functionality is to dynamically build the derived manifest based on system attributes, and we are restricting access of the script to essentially be able to do that. This functionality is not meant to provide for a open "begin phase" to generically do anything. So the design here is that script will have 'read-only' access to the system, with very restricted 'write' access.5.2.6.2 In 5.2.5 it is mentioned that derivation script needs the running environment to be established by the consumer (e.g. determining name of resultant manifest and exposing it via environment variable). How it will work for purposes of testing ? Will it be up to user to take care of those steps ?Yes the user has to take care of an extra step, and I forgot to document that in 5.2.6.2 We will expose the environment variable name, AI_MANIFEST, that aimanifest consumes. User can set this manually, and test # export AI_MANIFEST=/tmp/foo # ./script thanks, -ethanOn 04/24/10 04:47 AM, Ethan Quach wrote:I have posted a revision to the derived manifest design. (I've removed the pieces about an interactive manifest CLI on the server side, as that needs to be a separate design.)http://hub.opensolaris.org/bin/download/Project+caiman/DerivedManifests/DerivedManifestsDesignSpec.pdfPlease review. Comments appreciated. thanks, -ethan _______________________________________________ caiman-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/caiman-discuss_______________________________________________ caiman-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
--
~~~~~~~\o/~~~~~~~
Cheers,
Jon.
{-%]
========
If you always do what you've always done, you'll always get what you've always
gotten.
- Anon.
--------
When someone asks you, "Penny for your thoughts," and you put your two cents
in, what happens to the other penny?
- G. Carlin (May 12, 1937 - June 22, 2008)
========
<<attachment: jon_aimone.vcf>>
_______________________________________________ caiman-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

