Example of plugin development setup

Technical documentation
September 22, 2009

In the example below we will be demonstrating a procedure on how to setup development of UPS plugin.

NexentaStor plugins can be created in UNIX shell logged in as 'root'. Using the following NMC commands to simplify UNIX shell access:

nmc$ option expert_mode=1 -s

nmc$ option bang_confirm=0 -s

Now you can enter UNIX shell:

nmc$ !bash

As far as development process is concerned one can do the following to facilitate it (using any NexentaStor installation):

1) Install Mercurial software:

apt-get install mercurial

2) Clone plugin repositories:

cd /root

hg clone https://hg.nexentastor.org/ups

3) Setup links, so NMS will notice new plugins on restart:

ln -s /root/ups/nms-ups /var/lib/nza/plugins/nms/nms-ups

ln -s /root/ups/nmc-ups /var/lib/nza/plugins/nmc/nmc-ups

4) Restart NMS:

svcadm restart nms

Downloads