- **Milestone**: 5.1.FC --> 5.2.FC


---

** [tickets:#1218] Incorporate SAM command line tool into opensaf repository**

**Status:** accepted
**Milestone:** 5.2.FC
**Labels:** command line tool easy integration for the new user 
**Created:** Wed Nov 19, 2014 09:56 AM UTC by Mathi Naickan
**Last Updated:** Mon Apr 11, 2016 10:03 PM UTC
**Owner:** Mathi Naickan


HansFeldt had named and created the prototype for the 'SAM' tool under the 
opensaf-tools repository within the project.

One functionality originally planned is available today as a prototype and it 
helps the enduser with some simple commands to integrate an application to 
OpenSAF.

SAM can be used in the bigger goal for OpenSAF to come up with a full fledged 
CLI that would hide any strenous SAF terminology and provides a minimal set of 
commands to configure, deploy and monitor their application in OpenSAF.

This ticket is a placeholder to move the SAM tool protoype from the 
opensaf-tools repo to the opensaf main repo and to continue reusing and adding 
stuff.
The opensaf-tools also contain the 'imm-om' python package which helps with a 
lot of utility(IMM iterators, CCB helpers) for imm access.

For eg:- "
from pyosaf.immom import SearchIterator
for obj in SearchIterator():
     print obj.dn
"

Example of how the subset CLI commands can be used are as below:
# create program/software related entities
./amf-cstype create demo1-svc ATTR1
./amf-cstype create demo2-svc ATTR2
./amf-comptype create --saaware --osaf-cmd /opt/amf_demo/amf_demo_script demo1
./amf-comptype create --saaware --osaf-cmd /opt/amf_demo/amf_demo_script demo2
./amf-comptype provides -c one-active-or-one-standby demo1 demo1-svc
./amf-comptype provides -c one-active-or-one-standby demo2 demo2-svc

# service composition
./amf-svctype create demo-svc
./amf-svctype provides demo-svc demo1-svc demo2-svc

# query
./amf-comptype list
./amf-comptype list demo1
./amf-cstype list
./amf-cstype list demo2-svc
./amf-svctype list
./amf-svctype list demo-svc

immfind | grep demo

# cleanup
./amf-svctype delete demo-svc
./amf-comptype delete demo1 demo2
./amf-cstype delete demo1-svc demo2-svc



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to