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


---

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

**Status:** accepted
**Milestone:** 5.1.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:** Sun Nov 01, 2015 09:36 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 opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to