Discussion:
[Libstoragemgmt-devel] [PATCH] Document: Add manpage for SMI-S plugin.
Gris Ge
2014-11-24 13:06:05 UTC
Permalink
* Auto-tool files updated.
* RPM SPEC file updated.
* The manpage of SMI-S plugin is named with it's binary file name
smispy_lsmplugin.
* The manpage contains:
* URI explanation.
* Supported Hardwares. (With quick notes)
* Known issues.
* Test for 'make dist' and 'make rpm' passed.

Signed-off-by: Gris Ge <***@redhat.com>
---
configure.ac | 1 +
doc/man/Makefile.am | 2 +-
doc/man/smispy_lsmplugin.1.in | 155 +++++++++++++++++++++++++++++++++++++++
packaging/libstoragemgmt.spec.in | 1 +
4 files changed, 158 insertions(+), 1 deletion(-)
create mode 100644 doc/man/smispy_lsmplugin.1.in

diff --git a/configure.ac b/configure.ac
index a96cedb..9de1dee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,6 +205,7 @@ AC_OUTPUT(libstoragemgmt.pc \
doc/Makefile \
doc/man/lsmcli.1 \
doc/man/lsmd.1 \
+ doc/man/smispy_lsmplugin.1 \
doc/doxygen.conf \
tools/Makefile \
tools/udev/Makefile \
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index 17abcee..d9e915d 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -1,2 +1,2 @@
-notrans_dist_man1_MANS = lsmcli.1 lsmd.1
+notrans_dist_man1_MANS = lsmcli.1 lsmd.1 smispy_lsmplugin.1

diff --git a/doc/man/smispy_lsmplugin.1.in b/doc/man/smispy_lsmplugin.1.in
new file mode 100644
index 0000000..37260fc
--- /dev/null
+++ b/doc/man/smispy_lsmplugin.1.in
@@ -0,0 +1,155 @@
+.TH LSMCLI "1" "November 2014" "lsmcli @VERSION@" "libStorageMgmt"
+.SH NAME
+smispy_lsmplugin -- LibstorageMgmt SMI-S Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt SMI-S Plugin allows LibstorageMgmt user to manage storage
+array (like EMC VNX/VMAX, NetApp ONTAP, HDS AMS, LSI MegaRAID and etc) via
+SNIA SMI-S standard. The 'smispy_lsmplugin' executable file is for
+LibstorageMgmt daemon to execute when get requests.
+
+.SH URI
+To use this plugin, LibstorageMgmt should set their URI to this format:
+.nf
+
+ # HTTP connection
+ smispy://<username>@<smis_provder_host>:<port>?<uri_parameters>
+
+ # HTTPS connection
+ smispy+ssl://<username>@<smis_provder_host>:<port>?<uri_parameters>
+
+.fi
+
+.TP
+\fBusername\R
+
+The \fBusername\fR is the SMI-S provider user account.
+
+.TP
+\fBsmispy_lsmplugin\R
+
+The \fBsmis_provder_host\fR is the SMI-S provider's IP address or DNS name.
+
+.TP
+\fBport\R
+
+By default, SMI-S plugin is using \fB5988\fR port for HTTP connection and
+\fB5989\fR port for HTTPS connection. You can skip this in URI if your
+SMI-S provider is using default ports.
+
+For non-defaults ports, The SELinux might stop the SMI-S plugin to make
+network connection.
+
+.TP
+\fBuri_parameters\fR
+These URI parameters are supported by this plugin:
+
+.RS 7
+.TP
+\fBnamespace=<name_space>\fR
+This URI parameter is for LSI MegaRAID and NetApp E-Series only.
+Please check 'Supported Hardwares' sections for detail.
+
+.TP
+\fBsystem=<system_id>\fR
+For those SMI-S provider which support multi-systems(Example EMC ECIM),
+this URI parameter could be used to limit network communication for
+specified system only. The \fBsystem_id\fR is the ID if the system:
+ * \fBlsm.System.id\fR (Python API)
+ * \fBlsm_system_id_get()\fR (C API)
+ * \fBlsmcli list --systems\fR (lsmcli command line)
+
+.TP
+\fBno_ssl_verify=yes\fR
+This URI parameter is for HTTPS connection only. With this URI parameter,
+the SMI-S plugin will not validate SMI-S provider's server SSL.
+It's often used for self-signed CA environment, but it's strongly suggested to
+remove this URI parameter and install self-signed CA properly.
+
+.SH Supported Hardwares
+The LibstorageMgmt SMI-S plugin is based on 'Block Services Package' profile
+, SNIA SMI-S 1.4 or above. Any storage system implemented that profile
+might be support. Detailed support status could be query via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+This is a short list of tested arrays:
+
+.TP
+ * EMC VNX, CLARiiON, VMAX, Symmetrix
+
+A dedicate server running EMC SMI-S provider(aka ECIM) is required.
+The user account passing to LibstorageMgmt should be the user account define
+in ECIM, not the administrator account of the array.
+
+.TP
+ * HP 3PAR
+
+The SMI-S provider for the HP 3PAR Disk Storage Systems is integrated and
+delivered with the storage array firmware.
+
+.TP
+ * Dot Hill AssuredSAN
+The SMI-S provider is integrated and delivered with the storage array.
+
+.TP
+ * NetApp ONTAP
+
+A dedicate server running NetApp ONTAP SMI-S provider is required.
+
+.TP
+ * NetApp E-Series
+The SMI-S provider is integrated and delivered with the storage array
+firmware.
+
+The URI parameter 'namespace=root/lsiarray13' is required. Example URI:
+.nf
+ smispy+ssl://***@e-smi:5989?namespace=root/lsiarray13
+.fi
+
+.TP
+ * HDS VSP
+
+The SMI-S provider for HDS VSP is integrated and delivered with the storage
+array firmware.
+
+.TP
+ * HDS AMS
+A dedicate server running the Hitachi Device Manager SMI-S Provider is
+required.
+
+.TP
+ * LSI MegaRAID
+The server with MegaRAID card must install and setup LSI MegaRAID SMI-S
+provider before using LibstorageMgmt SMI-S plugin.
+
+The URI parameter 'namespace=root/LsiMr13' is also required. Example URI:
+.nf
+ smispy+ssl://***@lsip?namespace=root/LsiMr13
+.fi
+
+.SH Known issues
+.TP
+ * Cannot create or edit access group of EMC VNX/CLARiiON.
+
+EMC VNX/CLARiiON requires WWNN(World Wide Node Name) of initiator defined
+on access group create or edit call, while LibstorageMgmt currently does not
+support that. Please use EMC vendor specific tool to do so.
+
+.TP
+ * No VPD83 information of HDS AMS Volumes.
+
+Currently, HDS AMS SMI-S provider does not expose NAA VPD83 information yet.
+
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
diff --git a/packaging/libstoragemgmt.spec.in b/packaging/libstoragemgmt.spec.in
index d7f132d..86201c9 100644
--- a/packaging/libstoragemgmt.spec.in
+++ b/packaging/libstoragemgmt.spec.in
@@ -418,6 +418,7 @@ fi
%defattr(-,root,root,-)
%doc README COPYING.LIB
%{_mandir}/man1/lsmcli.1*
+%{_mandir}/man1/smispy_lsmplugin.1*
%{_mandir}/man1/lsmd.1*
%{_libdir}/*.so.*
%{_bindir}/lsmcli
--
1.8.3.1
Gris Ge
2014-11-24 13:23:46 UTC
Permalink
Post by Gris Ge
* Auto-tool files updated.
* RPM SPEC file updated.
* The manpage of SMI-S plugin is named with it's binary file name
smispy_lsmplugin.
* URI explanation.
* Supported Hardwares. (With quick notes)
* Known issues.
* Test for 'make dist' and 'make rpm' passed.
This is just a demo patch. If it looks good, I can add manpages for
every plugins.

Thank you in advance for patch review.
Best regards.
--
Gris Ge
Gris Ge
2014-11-27 09:22:49 UTC
Permalink
* Added manpage for these plugin binaries:
nstor_lsmpluging
ontap_lsmpluging
sim_lsmpluging
simc_lsmpluging
smispy_lsmpluging
targetd_lsmpluging

* Auto-tool files updated.
* RPM SPEC file updated by adding these manpage to their own rpm sub-package.

Changes in V2:
* Add the all plugin manpages.
* Remove known issue and detail support status section from smispy_lsmpluging
manpage.

Signed-off-by: Gris Ge <***@redhat.com>
---
configure.ac | 6 +++
doc/man/Makefile.am | 10 ++++-
doc/man/nstor_lsmplugin.1.in | 52 ++++++++++++++++++++++++
doc/man/ontap_lsmplugin.1.in | 59 ++++++++++++++++++++++++++++
doc/man/sim_lsmplugin.1.in | 45 +++++++++++++++++++++
doc/man/simc_lsmplugin.1.in | 41 +++++++++++++++++++
doc/man/smispy_lsmplugin.1.in | 85 ++++++++++++++++++++++++++++++++++++++++
doc/man/targetd_lsmplugin.1.in | 53 +++++++++++++++++++++++++
packaging/libstoragemgmt.spec.in | 6 +++
9 files changed, 356 insertions(+), 1 deletion(-)
create mode 100644 doc/man/nstor_lsmplugin.1.in
create mode 100644 doc/man/ontap_lsmplugin.1.in
create mode 100644 doc/man/sim_lsmplugin.1.in
create mode 100644 doc/man/simc_lsmplugin.1.in
create mode 100644 doc/man/smispy_lsmplugin.1.in
create mode 100644 doc/man/targetd_lsmplugin.1.in

diff --git a/configure.ac b/configure.ac
index a96cedb..1875ec9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,6 +205,12 @@ AC_OUTPUT(libstoragemgmt.pc \
doc/Makefile \
doc/man/lsmcli.1 \
doc/man/lsmd.1 \
+ doc/man/sim_lsmplugin.1 \
+ doc/man/simc_lsmplugin.1 \
+ doc/man/smispy_lsmplugin.1 \
+ doc/man/ontap_lsmplugin.1 \
+ doc/man/targetd_lsmplugin.1 \
+ doc/man/nstor_lsmplugin.1 \
doc/doxygen.conf \
tools/Makefile \
tools/udev/Makefile \
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index 17abcee..136cf45 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -1,2 +1,10 @@
-notrans_dist_man1_MANS = lsmcli.1 lsmd.1
+notrans_dist_man1_MANS = lsmcli.1 lsmd.1 \
+ sim_lsmplugin.1 \
+ simc_lsmplugin.1 \
+ smispy_lsmplugin.1 \
+ ontap_lsmplugin.1 \
+ targetd_lsmplugin.1 \
+ nstor_lsmplugin.1
+
+

diff --git a/doc/man/nstor_lsmplugin.1.in b/doc/man/nstor_lsmplugin.1.in
new file mode 100644
index 0000000..99f484b
--- /dev/null
+++ b/doc/man/nstor_lsmplugin.1.in
@@ -0,0 +1,52 @@
+.TH NSTOR_LSMPLUGIN "1" "November 2014" "NSTOR_LSMPLUGIN @VERSION@" "libStorageMgmt"
+.SH NAME
+nstor_lsmplugin -- LibstorageMgmt Targetd Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt Nstor Plugin allows LibstorageMgmt user to manage
+NexentaStor 3.x storage array.
+.br
+The 'nstor_lsmplugin' executable file is for LibstorageMgmt daemon to
+execute when client user requests Nstor plugin.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # HTTP connection
+ nstor://<username>@<nstor_mgm_ip>
+
+ # HTTPS connection
+ nstor+ssl://<username>@<nstor_mgm_ip>
+
+.fi
+No URI parameter is supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account with 'Can_use_restapi' permission.
+
+.TP
+\fBnstor_mgm_ip\fR
+
+The \fBnstor_mgm_ip\fR is the management IP address or DNS name of
+NexentaStor.
+
+.SH Supported Hardware
+NexentaStor 3.x is supported.
+Detailed support status can be queried via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
diff --git a/doc/man/ontap_lsmplugin.1.in b/doc/man/ontap_lsmplugin.1.in
new file mode 100644
index 0000000..3f8a6f1
--- /dev/null
+++ b/doc/man/ontap_lsmplugin.1.in
@@ -0,0 +1,59 @@
+.TH ONTAP_LSMPLUGIN "1" "November 2014" "ONTAP_LSMPLUGIN @VERSION@" "libStorageMgmt"
+.SH NAME
+ontap_lsmplugin -- LibstorageMgmt ONTAP Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt ONTAP Plugin allows LibstorageMgmt user to manage NetApp ONTAP
+storage arrays.
+The 'ontap_lsmplugin' executable file is for LibstorageMgmt daemon to execute
+when client user requests ONTAP plugin.
+
+This plugin require NetApp ONTAP storage array enable these options:
+
+ options httpd.enable on
+ options httpd.admin.enable on
+
+This options is require for HTTPS connection:
+
+ options httpd.admin.ssl.enable on
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # HTTP connection
+ ontap://<username>@<ontap_filer_ip>
+
+ # HTTPS connection
+ ontap+ssl://<username>@<ontap_filer_ip>
+
+.fi
+No URI parameter is supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account with administration privilege.
+
+.TP
+\fBontap_filer_ip\fR
+
+The \fBontap_filer_ip\fR is the NetApp ONTAP filer IP address or DNS name.
+
+.SH Supported Hardware
+NetApp ONTAP 8.x is supported.
+Detailed support status can be queried via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
diff --git a/doc/man/sim_lsmplugin.1.in b/doc/man/sim_lsmplugin.1.in
new file mode 100644
index 0000000..57530b4
--- /dev/null
+++ b/doc/man/sim_lsmplugin.1.in
@@ -0,0 +1,45 @@
+.TH SIM_LSMPLUGIN "1" "November 2014" "SIM_LSMPLUGIN @VERSION@" "libStorageMgmt"
+.SH NAME
+sim_lsmplugin -- LibstorageMgmt Simulator Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt Simulator Plugin is for develop or test only which simulator
+a full featured storage array based on a state file(
+by default storing state data into '/tmp/lsm_sim_data').
+
+This plugin is written in pure Python which is also a LibstorageMgmt Python
+plugin demonstration.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ sim://?<uri_parameters>
+
+.fi
+No password is required for this plugin.
+
+.TP
+\fBuri_parameters\fR
+This URI parameter is supported by this plugin:
+
+.RS 7
+.TP
+\fBstatefile=<state_file_path>\fR
+Define a file to store simulator array state data. Example URI:
+.nf
+ \fBsim://?statefile=/tmp/other_lsm_sim_data\fR
+.fi
+
+.SH Supported Hardware
+N/A
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
diff --git a/doc/man/simc_lsmplugin.1.in b/doc/man/simc_lsmplugin.1.in
new file mode 100644
index 0000000..5810f3e
--- /dev/null
+++ b/doc/man/simc_lsmplugin.1.in
@@ -0,0 +1,41 @@
+.TH SIMC_LSMPLUGIN "1" "November 2014" "SIMC_LSMPLUGIN @VERSION@" "libStorageMgmt"
+.SH NAME
+simc_lsmplugin -- LibstorageMgmt Simulator C Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt Simulator C Plugin is for develop or test only which simulator
+a memory based full featured storage array.
+
+Storage state of this plugin is memory based and will be eliminated once
+the LibstorageMgmt session is closed.
+
+Since every command of lsmcli is a standalone LibstorageMgmt session, when
+using this plugin via lsmcli, user will not be able to query out newlly
+created resources(volume, access group). In that case, the
+LibstorageMgmt Simulator Plugin \fBsim_lsmplugin(1)\fR is suggested.
+
+This plugin is written in pure C code which is also a LibstorageMgmt C
+plugin demonstration.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ simc://
+
+.fi
+No password is required for this plugin.
+No URI parameter is supported by this plugin.
+
+.SH Supported Hardware
+N/A
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1), \fBsim_lsmplugin\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
diff --git a/doc/man/smispy_lsmplugin.1.in b/doc/man/smispy_lsmplugin.1.in
new file mode 100644
index 0000000..8c4f802
--- /dev/null
+++ b/doc/man/smispy_lsmplugin.1.in
@@ -0,0 +1,85 @@
+.TH SMISPY_LSMPLUGIN "1" "November 2014" "SMISPY_LSMPLUGIN @VERSION@" "libStorageMgmt"
+.SH NAME
+smispy_lsmplugin -- LibstorageMgmt SMI-S Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt SMI-S Plugin allows LibstorageMgmt user to manage storage
+arrays like: EMC VNX/VMAX, HDS AMS and LSI MegaRAID etc. via
+SNIA SMI-S standard. The 'smispy_lsmplugin' executable file is for
+LibstorageMgmt daemon to execute when client user requests SMI-S plugin.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # HTTP connection
+ smispy://<username>@<smis_provder_host>:<port>?<uri_parameters>
+
+ # HTTPS connection
+ smispy+ssl://<username>@<smis_provder_host>:<port>?<uri_parameters>
+
+.fi
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the SMI-S provider user account.
+
+.TP
+\fBsmis_provder_host\fR
+
+The \fBsmis_provder_host\fR is the SMI-S provider's IP address or DNS name.
+
+.TP
+\fBport\fR
+
+By default, SMI-S plugin will use port \fB5988\fR for HTTP connection and
+port \fB5989\fR for HTTPS connection. You can skip this in URI if your
+SMI-S provider is using default ports.
+
+For non-default ports, SELinux will likely prevent the SMI-S plugin from making
+a network connection.
+
+.TP
+\fBuri_parameters\fR
+These URI parameters are supported by this plugin:
+
+.RS 7
+.TP
+\fBnamespace=<name_space>\fR
+This URI parameter is for LSI MegaRAID and NetApp E-Series only.
+
+.TP
+\fBsystem=<system_id>\fR
+For those SMI-S providers which support multi-systems(Example EMC ECIM),
+this URI parameter can be used to limit network communication for
+specified system only. The \fBsystem_id\fR is the ID of the system:
+ * \fBlsm.System.id\fR (Python API)
+ * \fBlsm_system_id_get()\fR (C API)
+ * \fBlsmcli list --systems\fR (lsmcli command line)
+
+.TP
+\fBno_ssl_verify=yes\fR
+This URI parameter is for HTTPS connections only. With this URI parameter,
+the SMI-S plugin will not validate SMI-S provider's server SSL certificate.
+It's often used for self-signed CA environment, but it's strongly suggested to
+remove this URI parameter and install self-signed CA properly.
+
+.SH Supported Hardware
+The LibstorageMgmt SMI-S plugin is based on 'Block Services Package' profile
+, SNIA SMI-S 1.4 or later. Any storage system which implements that profile
+may be supported. Detailed support status can be queried via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
diff --git a/doc/man/targetd_lsmplugin.1.in b/doc/man/targetd_lsmplugin.1.in
new file mode 100644
index 0000000..bcdd2e5
--- /dev/null
+++ b/doc/man/targetd_lsmplugin.1.in
@@ -0,0 +1,53 @@
+.TH TARGETD_LSMPLUGIN "1" "November 2014" "TARGETD_LSMPLUGIN @VERSION@" "libStorageMgmt"
+.SH NAME
+targetd_lsmplugin -- LibstorageMgmt Targetd Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt Targetd Plugin allows LibstorageMgmt user to manage
+Linux targetd iSCSI target.
+.br
+The 'targetd_lsmplugin' executable file is for LibstorageMgmt daemon to
+execute when client user requests targetd plugin.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # HTTP connection
+ targetd://<username>@<targetd_server_ip>
+
+ # HTTPS connection
+ targetd+ssl://<username>@<targetd_server_ip>
+
+.fi
+No URI parameter is supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account configured in targetd configuration
+file.
+
+.TP
+\fBtargetd_server_ip\fR
+
+The \fBtargetd_server_ip\fR is the IP address or DNS name of server running
+targetd daemon.
+
+.SH Supported Hardware
+Linux targetd 0.7.1 or later version.
+Detailed support status can be queried via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
diff --git a/packaging/libstoragemgmt.spec.in b/packaging/libstoragemgmt.spec.in
index d7f132d..87cea08 100644
--- a/packaging/libstoragemgmt.spec.in
+++ b/packaging/libstoragemgmt.spec.in
@@ -423,6 +423,7 @@ fi
%{_bindir}/lsmcli
%{_bindir}/lsmd
%{_bindir}/simc_lsmplugin
+%{_mandir}/man1/simc_lsmplugin.1*

%if 0%{?with_systemd}
%{_unitdir}/libstoragemgmt.service
@@ -465,6 +466,7 @@ fi
%{python_sitelib}/lsm/lsmcli/data_display.*
%{python_sitelib}/lsm/lsmcli/cmdline.*
%{_bindir}/sim_lsmplugin
+%{_mandir}/man1/sim_lsmplugin.1*

%files -n %{libstoragemgmt}-smis-plugin
%defattr(-,root,root,-)
@@ -481,6 +483,7 @@ fi
%{python_sitelib}/lsm/plugin/smispy/smis_vol.*
%{python_sitelib}/lsm/plugin/smispy/smis_ag.*
%{_bindir}/smispy_lsmplugin
+%{_mandir}/man1/smispy_lsmplugin.1*

%files -n %{libstoragemgmt}-netapp-plugin
%defattr(-,root,root,-)
@@ -489,6 +492,7 @@ fi
%{python_sitelib}/lsm/plugin/ontap/na.*
%{python_sitelib}/lsm/plugin/ontap/ontap.*
%{_bindir}/ontap_lsmplugin
+%{_mandir}/man1/ontap_lsmplugin.1*

%files -n %{libstoragemgmt}-targetd-plugin
%defattr(-,root,root,-)
@@ -496,6 +500,7 @@ fi
%{python_sitelib}/lsm/plugin/targetd/__init__.*
%{python_sitelib}/lsm/plugin/targetd/targetd.*
%{_bindir}/targetd_lsmplugin
+%{_mandir}/man1/targetd_lsmplugin.1*

%files -n %{libstoragemgmt}-nstor-plugin
%defattr(-,root,root,-)
@@ -503,6 +508,7 @@ fi
%{python_sitelib}/lsm/plugin/nstor/__init__.*
%{python_sitelib}/lsm/plugin/nstor/nstor.*
%{_bindir}/nstor_lsmplugin
+%{_mandir}/man1/nstor_lsmplugin.1*

%files udev
%defattr(-,root,root,-)
--
1.8.3.1
Tony Asleson
2014-12-02 23:19:57 UTC
Permalink
Hi Gris,

Overall I think these look good, patch with edit suggestions posted to
development list.

Some overall comments:

- Some trailing white space, please remove that
- I'm thinking we should package each man page with it's respective
plug-in.
- Document default port numbers for each plugin to allow users the
ability to configure firewall settings.

Your thoughts?

Thanks,
Tony
Post by Gris Ge
nstor_lsmpluging
ontap_lsmpluging
sim_lsmpluging
simc_lsmpluging
smispy_lsmpluging
targetd_lsmpluging
* Auto-tool files updated.
* RPM SPEC file updated by adding these manpage to their own rpm sub-package.
* Add the all plugin manpages.
* Remove known issue and detail support status section from smispy_lsmpluging
manpage.
---
configure.ac | 6 +++
doc/man/Makefile.am | 10 ++++-
doc/man/nstor_lsmplugin.1.in | 52 ++++++++++++++++++++++++
doc/man/ontap_lsmplugin.1.in | 59 ++++++++++++++++++++++++++++
doc/man/sim_lsmplugin.1.in | 45 +++++++++++++++++++++
doc/man/simc_lsmplugin.1.in | 41 +++++++++++++++++++
doc/man/smispy_lsmplugin.1.in | 85 ++++++++++++++++++++++++++++++++++++++++
doc/man/targetd_lsmplugin.1.in | 53 +++++++++++++++++++++++++
packaging/libstoragemgmt.spec.in | 6 +++
9 files changed, 356 insertions(+), 1 deletion(-)
create mode 100644 doc/man/nstor_lsmplugin.1.in
create mode 100644 doc/man/ontap_lsmplugin.1.in
create mode 100644 doc/man/sim_lsmplugin.1.in
create mode 100644 doc/man/simc_lsmplugin.1.in
create mode 100644 doc/man/smispy_lsmplugin.1.in
create mode 100644 doc/man/targetd_lsmplugin.1.in
diff --git a/configure.ac b/configure.ac
index a96cedb..1875ec9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,6 +205,12 @@ AC_OUTPUT(libstoragemgmt.pc \
doc/Makefile \
doc/man/lsmcli.1 \
doc/man/lsmd.1 \
+ doc/man/sim_lsmplugin.1 \
+ doc/man/simc_lsmplugin.1 \
+ doc/man/smispy_lsmplugin.1 \
+ doc/man/ontap_lsmplugin.1 \
+ doc/man/targetd_lsmplugin.1 \
+ doc/man/nstor_lsmplugin.1 \
doc/doxygen.conf \
tools/Makefile \
tools/udev/Makefile \
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index 17abcee..136cf45 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -1,2 +1,10 @@
-notrans_dist_man1_MANS = lsmcli.1 lsmd.1
+notrans_dist_man1_MANS = lsmcli.1 lsmd.1 \
+ sim_lsmplugin.1 \
+ simc_lsmplugin.1 \
+ smispy_lsmplugin.1 \
+ ontap_lsmplugin.1 \
+ targetd_lsmplugin.1 \
+ nstor_lsmplugin.1
+
+
diff --git a/doc/man/nstor_lsmplugin.1.in b/doc/man/nstor_lsmplugin.1.in
new file mode 100644
index 0000000..99f484b
--- /dev/null
+++ b/doc/man/nstor_lsmplugin.1.in
@@ -0,0 +1,52 @@
+.SH NAME
+nstor_lsmplugin -- LibstorageMgmt Targetd Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt Nstor Plugin allows LibstorageMgmt user to manage
+NexentaStor 3.x storage array.
+.br
+The 'nstor_lsmplugin' executable file is for LibstorageMgmt daemon to
+execute when client user requests Nstor plugin.
+
+.SH URI
+.nf
+
+ # HTTP connection
+
+ # HTTPS connection
+
+.fi
+No URI parameter is supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account with 'Can_use_restapi' permission.
+
+.TP
+\fBnstor_mgm_ip\fR
+
+The \fBnstor_mgm_ip\fR is the management IP address or DNS name of
+NexentaStor.
+
+.SH Supported Hardware
+NexentaStor 3.x is supported.
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+
+.SH AUTHOR
diff --git a/doc/man/ontap_lsmplugin.1.in b/doc/man/ontap_lsmplugin.1.in
new file mode 100644
index 0000000..3f8a6f1
--- /dev/null
+++ b/doc/man/ontap_lsmplugin.1.in
@@ -0,0 +1,59 @@
+.SH NAME
+ontap_lsmplugin -- LibstorageMgmt ONTAP Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt ONTAP Plugin allows LibstorageMgmt user to manage NetApp ONTAP
+storage arrays.
+The 'ontap_lsmplugin' executable file is for LibstorageMgmt daemon to execute
+when client user requests ONTAP plugin.
+
+
+ options httpd.enable on
+ options httpd.admin.enable on
+
+
+ options httpd.admin.ssl.enable on
+
+.SH URI
+.nf
+
+ # HTTP connection
+
+ # HTTPS connection
+
+.fi
+No URI parameter is supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account with administration privilege.
+
+.TP
+\fBontap_filer_ip\fR
+
+The \fBontap_filer_ip\fR is the NetApp ONTAP filer IP address or DNS name.
+
+.SH Supported Hardware
+NetApp ONTAP 8.x is supported.
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+
+.SH AUTHOR
diff --git a/doc/man/sim_lsmplugin.1.in b/doc/man/sim_lsmplugin.1.in
new file mode 100644
index 0000000..57530b4
--- /dev/null
+++ b/doc/man/sim_lsmplugin.1.in
@@ -0,0 +1,45 @@
+.SH NAME
+sim_lsmplugin -- LibstorageMgmt Simulator Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt Simulator Plugin is for develop or test only which simulator
+a full featured storage array based on a state file(
+by default storing state data into '/tmp/lsm_sim_data').
+
+This plugin is written in pure Python which is also a LibstorageMgmt Python
+plugin demonstration.
+
+.SH URI
+.nf
+
+ sim://?<uri_parameters>
+
+.fi
+No password is required for this plugin.
+
+.TP
+\fBuri_parameters\fR
+
+.RS 7
+.TP
+\fBstatefile=<state_file_path>\fR
+.nf
+ \fBsim://?statefile=/tmp/other_lsm_sim_data\fR
+.fi
+
+.SH Supported Hardware
+N/A
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+
+.SH AUTHOR
diff --git a/doc/man/simc_lsmplugin.1.in b/doc/man/simc_lsmplugin.1.in
new file mode 100644
index 0000000..5810f3e
--- /dev/null
+++ b/doc/man/simc_lsmplugin.1.in
@@ -0,0 +1,41 @@
+.SH NAME
+simc_lsmplugin -- LibstorageMgmt Simulator C Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt Simulator C Plugin is for develop or test only which simulator
+a memory based full featured storage array.
+
+Storage state of this plugin is memory based and will be eliminated once
+the LibstorageMgmt session is closed.
+
+Since every command of lsmcli is a standalone LibstorageMgmt session, when
+using this plugin via lsmcli, user will not be able to query out newlly
+created resources(volume, access group). In that case, the
+LibstorageMgmt Simulator Plugin \fBsim_lsmplugin(1)\fR is suggested.
+
+This plugin is written in pure C code which is also a LibstorageMgmt C
+plugin demonstration.
+
+.SH URI
+.nf
+
+ simc://
+
+.fi
+No password is required for this plugin.
+No URI parameter is supported by this plugin.
+
+.SH Supported Hardware
+N/A
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1), \fBsim_lsmplugin\fR(1)
+
+.SH BUGS
+Please report bugs to
+
+.SH AUTHOR
diff --git a/doc/man/smispy_lsmplugin.1.in b/doc/man/smispy_lsmplugin.1.in
new file mode 100644
index 0000000..8c4f802
--- /dev/null
+++ b/doc/man/smispy_lsmplugin.1.in
@@ -0,0 +1,85 @@
+.SH NAME
+smispy_lsmplugin -- LibstorageMgmt SMI-S Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt SMI-S Plugin allows LibstorageMgmt user to manage storage
+arrays like: EMC VNX/VMAX, HDS AMS and LSI MegaRAID etc. via
+SNIA SMI-S standard. The 'smispy_lsmplugin' executable file is for
+LibstorageMgmt daemon to execute when client user requests SMI-S plugin.
+
+.SH URI
+.nf
+
+ # HTTP connection
+
+ # HTTPS connection
+
+.fi
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the SMI-S provider user account.
+
+.TP
+\fBsmis_provder_host\fR
+
+The \fBsmis_provder_host\fR is the SMI-S provider's IP address or DNS name.
+
+.TP
+\fBport\fR
+
+By default, SMI-S plugin will use port \fB5988\fR for HTTP connection and
+port \fB5989\fR for HTTPS connection. You can skip this in URI if your
+SMI-S provider is using default ports.
+
+For non-default ports, SELinux will likely prevent the SMI-S plugin from making
+a network connection.
+
+.TP
+\fBuri_parameters\fR
+
+.RS 7
+.TP
+\fBnamespace=<name_space>\fR
+This URI parameter is for LSI MegaRAID and NetApp E-Series only.
+
+.TP
+\fBsystem=<system_id>\fR
+For those SMI-S providers which support multi-systems(Example EMC ECIM),
+this URI parameter can be used to limit network communication for
+ * \fBlsm.System.id\fR (Python API)
+ * \fBlsm_system_id_get()\fR (C API)
+ * \fBlsmcli list --systems\fR (lsmcli command line)
+
+.TP
+\fBno_ssl_verify=yes\fR
+This URI parameter is for HTTPS connections only. With this URI parameter,
+the SMI-S plugin will not validate SMI-S provider's server SSL certificate.
+It's often used for self-signed CA environment, but it's strongly suggested to
+remove this URI parameter and install self-signed CA properly.
+
+.SH Supported Hardware
+The LibstorageMgmt SMI-S plugin is based on 'Block Services Package' profile
+, SNIA SMI-S 1.4 or later. Any storage system which implements that profile
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+
+.SH AUTHOR
diff --git a/doc/man/targetd_lsmplugin.1.in b/doc/man/targetd_lsmplugin.1.in
new file mode 100644
index 0000000..bcdd2e5
--- /dev/null
+++ b/doc/man/targetd_lsmplugin.1.in
@@ -0,0 +1,53 @@
+.SH NAME
+targetd_lsmplugin -- LibstorageMgmt Targetd Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt Targetd Plugin allows LibstorageMgmt user to manage
+Linux targetd iSCSI target.
+.br
+The 'targetd_lsmplugin' executable file is for LibstorageMgmt daemon to
+execute when client user requests targetd plugin.
+
+.SH URI
+.nf
+
+ # HTTP connection
+
+ # HTTPS connection
+
+.fi
+No URI parameter is supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account configured in targetd configuration
+file.
+
+.TP
+\fBtargetd_server_ip\fR
+
+The \fBtargetd_server_ip\fR is the IP address or DNS name of server running
+targetd daemon.
+
+.SH Supported Hardware
+Linux targetd 0.7.1 or later version.
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+
+.SH AUTHOR
diff --git a/packaging/libstoragemgmt.spec.in b/packaging/libstoragemgmt.spec.in
index d7f132d..87cea08 100644
--- a/packaging/libstoragemgmt.spec.in
+++ b/packaging/libstoragemgmt.spec.in
@@ -423,6 +423,7 @@ fi
%{_bindir}/lsmcli
%{_bindir}/lsmd
%{_bindir}/simc_lsmplugin
+%{_mandir}/man1/simc_lsmplugin.1*
%if 0%{?with_systemd}
%{_unitdir}/libstoragemgmt.service
@@ -465,6 +466,7 @@ fi
%{python_sitelib}/lsm/lsmcli/data_display.*
%{python_sitelib}/lsm/lsmcli/cmdline.*
%{_bindir}/sim_lsmplugin
+%{_mandir}/man1/sim_lsmplugin.1*
%files -n %{libstoragemgmt}-smis-plugin
%defattr(-,root,root,-)
@@ -481,6 +483,7 @@ fi
%{python_sitelib}/lsm/plugin/smispy/smis_vol.*
%{python_sitelib}/lsm/plugin/smispy/smis_ag.*
%{_bindir}/smispy_lsmplugin
+%{_mandir}/man1/smispy_lsmplugin.1*
%files -n %{libstoragemgmt}-netapp-plugin
%defattr(-,root,root,-)
@@ -489,6 +492,7 @@ fi
%{python_sitelib}/lsm/plugin/ontap/na.*
%{python_sitelib}/lsm/plugin/ontap/ontap.*
%{_bindir}/ontap_lsmplugin
+%{_mandir}/man1/ontap_lsmplugin.1*
%files -n %{libstoragemgmt}-targetd-plugin
%defattr(-,root,root,-)
@@ -496,6 +500,7 @@ fi
%{python_sitelib}/lsm/plugin/targetd/__init__.*
%{python_sitelib}/lsm/plugin/targetd/targetd.*
%{_bindir}/targetd_lsmplugin
+%{_mandir}/man1/targetd_lsmplugin.1*
%files -n %{libstoragemgmt}-nstor-plugin
%defattr(-,root,root,-)
@@ -503,6 +508,7 @@ fi
%{python_sitelib}/lsm/plugin/nstor/__init__.*
%{python_sitelib}/lsm/plugin/nstor/nstor.*
%{_bindir}/nstor_lsmplugin
+%{_mandir}/man1/nstor_lsmplugin.1*
%files udev
%defattr(-,root,root,-)
Gris Ge
2014-12-03 08:54:48 UTC
Permalink
Post by Tony Asleson
Hi Gris,
Hi Tony,
Post by Tony Asleson
Overall I think these look good, patch with edit suggestions posted to
development list.
Thanks for corrections.
Post by Tony Asleson
- Some trailing white space, please remove that
Done
Post by Tony Asleson
- I'm thinking we should package each man page with it's respective
plug-in.
Done in V2 patch.
Post by Tony Asleson
- Document default port numbers for each plugin to allow users the
ability to configure firewall settings.
Added new section 'FIREWALL RULES' to indicate the default network
access requirements.
Better word?
Post by Tony Asleson
Your thoughts?
Thanks,
Tony
V3 patch sent.

Please kindly review it again.

Thank you very much.
Best regards.
--
Gris Ge
Gris Ge
2014-12-03 08:55:10 UTC
Permalink
* Added manpage for these plugin binaries:
nstor_lsmpluging
ontap_lsmpluging
sim_lsmpluging
simc_lsmpluging
smispy_lsmpluging
targetd_lsmpluging

* Auto-tool files updated.
* RPM SPEC file updated by adding these manpage to their own rpm sub-package.

Changes in V2:
* Add the all plugin manpages.
* Remove known issue and detail support status section from smispy_lsmpluging
manpage.

Changes in V3:
* Merged Tony's patch into this.(Detailed changes listed below)
* Changed capital binary name in manpage title to lower case.
* Updated date from November to December.
* Fixed some typo and grammar issues.
* Added port URI argument to nstor_lsmplugin manpage.
* New section 'FIREWALL RULES' to indicate which default network access
requirement for each plugin.
* Added Tony and his email into 'AUTHOR' section.
* Removed white space.

Signed-off-by: Gris Ge <***@redhat.com>
Signed-off-by: Tony Asleson <***@redhat.com>
---
configure.ac | 6 +++
doc/man/Makefile.am | 9 +++-
doc/man/nstor_lsmplugin.1.in | 64 ++++++++++++++++++++++++++++
doc/man/ontap_lsmplugin.1.in | 64 ++++++++++++++++++++++++++++
doc/man/sim_lsmplugin.1.in | 57 +++++++++++++++++++++++++
doc/man/simc_lsmplugin.1.in | 42 +++++++++++++++++++
doc/man/smispy_lsmplugin.1.in | 91 ++++++++++++++++++++++++++++++++++++++++
doc/man/targetd_lsmplugin.1.in | 64 ++++++++++++++++++++++++++++
packaging/libstoragemgmt.spec.in | 6 +++
9 files changed, 401 insertions(+), 2 deletions(-)
create mode 100644 doc/man/nstor_lsmplugin.1.in
create mode 100644 doc/man/ontap_lsmplugin.1.in
create mode 100644 doc/man/sim_lsmplugin.1.in
create mode 100644 doc/man/simc_lsmplugin.1.in
create mode 100644 doc/man/smispy_lsmplugin.1.in
create mode 100644 doc/man/targetd_lsmplugin.1.in

diff --git a/configure.ac b/configure.ac
index a96cedb..1875ec9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,6 +205,12 @@ AC_OUTPUT(libstoragemgmt.pc \
doc/Makefile \
doc/man/lsmcli.1 \
doc/man/lsmd.1 \
+ doc/man/sim_lsmplugin.1 \
+ doc/man/simc_lsmplugin.1 \
+ doc/man/smispy_lsmplugin.1 \
+ doc/man/ontap_lsmplugin.1 \
+ doc/man/targetd_lsmplugin.1 \
+ doc/man/nstor_lsmplugin.1 \
doc/doxygen.conf \
tools/Makefile \
tools/udev/Makefile \
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index 17abcee..c085f80 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -1,2 +1,7 @@
-notrans_dist_man1_MANS = lsmcli.1 lsmd.1
-
+notrans_dist_man1_MANS = lsmcli.1 lsmd.1 \
+ sim_lsmplugin.1 \
+ simc_lsmplugin.1 \
+ smispy_lsmplugin.1 \
+ ontap_lsmplugin.1 \
+ targetd_lsmplugin.1 \
+ nstor_lsmplugin.1
diff --git a/doc/man/nstor_lsmplugin.1.in b/doc/man/nstor_lsmplugin.1.in
new file mode 100644
index 0000000..39d39f1
--- /dev/null
+++ b/doc/man/nstor_lsmplugin.1.in
@@ -0,0 +1,64 @@
+.TH nstor_lsmplugin "1" "December 2014" "nstor_lsmplugin @VERSION@" "libStorageMgmt"
+.SH NAME
+nstor_lsmplugin -- LibstorageMgmt nstor plugin
+
+.SH DESCRIPTION
+LibstorageMgmt nstor plugin allows user to manage NexentaStor 3.x
+storage software [1]. The 'nstor_lsmplugin' executable file is for libStorageMgmt
+daemon to execute when client user specifies nstor plugin in the URI.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # HTTP connection
+ nstor://<username>@<nstor_server>:<port>
+
+ # HTTPS connection
+ nstor+ssl://<username>@<nstor_server>:<port>
+
+.fi
+No additional URI parameters are supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account with 'Can_use_restapi' permission.
+
+.TP
+\fBnstor_server\fR
+
+The \fBnstor_server\fR is IP address or DNS name of
+NexentaStor server.
+
+.TP
+\fBport number\fR
+
+The \fBport number\fR is the listening port of the nexenta server REST API.
+The default port of 2000 is used if none is supplied on the URI.
+
+For non-default ports, SELinux will likely prevent the SMI-S plugin from making
+a network connection.
+
+.SH SUPPORTED SOFTWARE
+NexentaStor 3.x is supported.
+Detailed support status can be queried via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH FIREWALL RULES
+By default, this plugin requires the access to the nstor array's TCP 2000 port.
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1), [1] http://nexentastor.org
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
+.br
+Tony Asleson \fI<***@redhat.com>\fR
diff --git a/doc/man/ontap_lsmplugin.1.in b/doc/man/ontap_lsmplugin.1.in
new file mode 100644
index 0000000..704bad4
--- /dev/null
+++ b/doc/man/ontap_lsmplugin.1.in
@@ -0,0 +1,64 @@
+.TH ontap_lsmplugin "1" "December 2014" "ontap_lsmplugin @VERSION@" "libStorageMgmt"
+.SH NAME
+ontap_lsmplugin -- LibstorageMgmt ONTAP Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt ontap plugin allows user to manage NetApp ONTAP storage arrays.
+The 'ontap_lsmplugin' executable file is for libStorageMgmt daemon to execute
+when client specifies ontap plugin in the URI
+
+This plugin requires NetApp ONTAP storage array to enable these options:
+
+ options httpd.enable on
+ options httpd.admin.enable on
+
+This options is required for HTTPS connection:
+
+ options httpd.admin.ssl.enable on
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # HTTP connection
+ ontap://<username>@<ontap_filer>
+
+ # HTTPS connection
+ ontap+ssl://<username>@<ontap_filer>
+
+.fi
+No additional URI parameters are supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account with administration privilege.
+
+.TP
+\fBontap_filer_ip\fR
+
+The \fBontap_filer_ip\fR is the NetApp ONTAP filer IP address or DNS name.
+
+.SH Supported Hardware
+NetApp ONTAP 8.x is supported.
+Detailed support status can be queried via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH FIREWALL RULES
+This plugin requires the access to the NetApp ONTAP Filer's TCP 80 port for
+HTTP connection and TCP 443 port for HTTPS connection.
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
+.br
+Tony Asleson \fI<***@redhat.com>\fR
diff --git a/doc/man/sim_lsmplugin.1.in b/doc/man/sim_lsmplugin.1.in
new file mode 100644
index 0000000..ccf16e8
--- /dev/null
+++ b/doc/man/sim_lsmplugin.1.in
@@ -0,0 +1,57 @@
+.TH sim_lsmplugin "1" "December 2014" "sim_lsmplugin @VERSION@" "libStorageMgmt"
+.SH NAME
+sim_lsmplugin -- LibStorageMgmt simulator python plugin
+
+.SH DESCRIPTION
+LibstorageMgmt simulator plugin is for development or test use only. The plugin
+simulates an array which supports most features of the library. State is stored
+in a file, default is '/tmp/lsm_sim_data'. The 'sim_lsmplugin' executable file is
+for libStorageMgmt daemon to execute when client user specifies sim plugin in
+the URI.
+
+This plugin is written in pure Python and is intended to be an example of a
+python plugin for the library.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # All that is required
+ sim://
+
+ # Optional statefile
+ sim://?statefile=<file path and name>
+
+.fi
+No password is required for this plugin.
+
+
+.TP
+\fBstatefile\fR
+
+Use specified file to store simulator state data. Example URI:
+.nf
+ \fBsim://?statefile=/tmp/other_lsm_sim_data\fR
+.fi
+
+The statefile is stored via python
+pickle module. From the python docs:
+
+"The pickle module is not intended to be secure against
+erroneous or maliciously constructed data. Never unpickle data received
+from an untrusted or unauthenticated source."
+
+.SH FIREWALL RULES
+This plugin requires not network access.
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
+.br
+Tony Asleson \fI<***@redhat.com>\fR
diff --git a/doc/man/simc_lsmplugin.1.in b/doc/man/simc_lsmplugin.1.in
new file mode 100644
index 0000000..dec7b59
--- /dev/null
+++ b/doc/man/simc_lsmplugin.1.in
@@ -0,0 +1,42 @@
+.TH simc_lsmplugin "1" "December 2014" "simc_lsmplugin @VERSION@" "libStorageMgmt"
+.SH NAME
+simc_lsmplugin -- LibstorageMgmt Simulator C Plugin
+
+.SH DESCRIPTION
+LibStorageMgmt simulator C plugin is for development use. The plugin simulates
+an array which supports most features of the library. The simulator is memory
+based, state will be discarded once the plugin exits. The 'simc_lsmplugin'
+executable file is for the libStorageMgmt daemon to execute when client user
+specifies simc plugin in the URI.
+
+Since every command of lsmcli is a standalone libStorageMgmt session, this
+plugin is essentially useless for this purpose. In this use case, the
+libStorageMgmt simulator plugin \fBsim_lsmplugin(1)\fR is suggested.
+
+This plugin is written in pure C and is intended to be an example of a
+C plugin for the library.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ simc://
+
+.fi
+No password is required for this plugin.
+No URI parameters are supported by this plugin.
+
+.SH FIREWALL RULES
+This plugin requires not network access.
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1), \fBsim_lsmplugin\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
+.br
+Tony Asleson \fI<***@redhat.com>\fR
diff --git a/doc/man/smispy_lsmplugin.1.in b/doc/man/smispy_lsmplugin.1.in
new file mode 100644
index 0000000..b4b9019
--- /dev/null
+++ b/doc/man/smispy_lsmplugin.1.in
@@ -0,0 +1,91 @@
+.TH smispy_lsmplugin "1" "December 2014" "smispy_lsmplugin @VERSION@" "libStorageMgmt"
+.SH NAME
+smispy_lsmplugin -- LibstorageMgmt SMI-S Plugin
+
+.SH DESCRIPTION
+LibstorageMgmt SMI-S Plugin allows LibstorageMgmt user to manage storage
+arrays like: EMC VNX/VMAX, HDS AMS and LSI MegaRAID etc. via
+SNIA SMI-S standard. The 'smispy_lsmplugin' executable file is for
+LibstorageMgmt daemon to execute when client user requests SMI-S plugin.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # HTTP connection
+ smispy://<username>@<smis_provder_host>:<port>?<uri_parameters>
+
+ # HTTPS connection
+ smispy+ssl://<username>@<smis_provder_host>:<port>?<uri_parameters>
+
+.fi
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the SMI-S provider user account.
+
+.TP
+\fBsmis_provder_host\fR
+
+The \fBsmis_provder_host\fR is the SMI-S provider's IP address or DNS name.
+
+.TP
+\fBport\fR
+
+By default, SMI-S plugin will use port \fB5988\fR for HTTP connection and
+port \fB5989\fR for HTTPS connection. You can skip this in URI if your
+SMI-S provider is using default ports.
+
+For non-default ports, SELinux will likely prevent the SMI-S plugin from making
+a network connection.
+
+.TP
+\fBuri_parameters\fR
+These URI parameters are supported by this plugin:
+
+.RS 7
+.TP
+\fBnamespace=<name_space>\fR
+This URI parameter is for LSI MegaRAID and NetApp E-Series only.
+
+.TP
+\fBsystem=<system_id>\fR
+For those SMI-S providers which support multi-systems(Example EMC ECIM),
+this URI parameter can be used to limit network communication for
+specified system only. The \fBsystem_id\fR is the ID of the system:
+ * \fBlsm.System.id\fR (Python API)
+ * \fBlsm_system_id_get()\fR (C API)
+ * \fBlsmcli list --systems\fR (lsmcli command line)
+
+.TP
+\fBno_ssl_verify=yes\fR
+This URI parameter is for HTTPS connections only. With this URI parameter,
+the SMI-S plugin will not validate SMI-S provider's server SSL certificate.
+It's often used for self-signed CA environment, but it's strongly suggested to
+remove this URI parameter and install self-signed CA properly.
+
+.SH Supported Hardware
+The LibstorageMgmt SMI-S plugin is based on 'Block Services Package' profile
+, SNIA SMI-S 1.4 or later. Any storage system which implements that profile
+may be supported. Detailed support status can be queried via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH FIREWALL RULES
+By default, this plugin requires access to the SMI-S provider's TCP 5988 port
+for HTTP conenction and TCP 5989 port for HTTPS connection.
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1)
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
+.br
+Tony Asleson \fI<***@redhat.com>\fR
diff --git a/doc/man/targetd_lsmplugin.1.in b/doc/man/targetd_lsmplugin.1.in
new file mode 100644
index 0000000..2f8dd77
--- /dev/null
+++ b/doc/man/targetd_lsmplugin.1.in
@@ -0,0 +1,64 @@
+.TH targetd_lsmplugin "1" "December 2014" "targetd_lsmplugin @VERSION@" "libStorageMgmt"
+.SH NAME
+targetd_lsmplugin -- libStorageMgmt targetd plugin
+
+.SH DESCRIPTION
+LibStorageMgmt targetd plugin allows user to manage storage using
+the targetd storage API [1]. The 'targetd_lsmplugin' executable file is for
+libStorageMgmt daemon to execute when client user specifies targetd plugin in
+the URI.
+
+.SH URI
+To use this plugin, users should set their URI to this format:
+.nf
+
+ # HTTP connection
+ targetd://<username>@<targetd_server>:<port number>
+
+ # HTTPS connection
+ targetd+ssl://<username>@<targetd_server>:<port number>
+
+.fi
+No additional URI parameters are supported by this plugin.
+
+.TP
+\fBusername\fR
+
+The \fBusername\fR is the user account configured in targetd configuration
+file.
+
+.TP
+\fBtargetd_server\fR
+
+The \fBtargetd_server\fR is the IP address or DNS name of server running
+targetd daemon.
+
+.TP
+\fBport number\fR
+
+The \fBport number\fR is the listening port of the targetd daemon. The default
+port of 18700 is used if none is supplied on the URI.
+
+.SH SUPPORTED SOFTWARE
+Linux targetd 0.7.1 or later version.
+Detailed support status can be queried via:
+
+ * \fBlsm.Client.capabilities()\fR (Python API)
+ * \fBlsm_capabilities()\fR (C API)
+ * \fBlsmcli capabilities\fR (lsmcli command line).
+
+.SH FIREWALL RULES
+By default, this plugin requires access to the targetd server's TCP 18700
+port.
+
+.SH SEE ALSO
+\fBlsmcli\fR(1), \fBlsmd\fR(1), [1] https://github.com/agrover/targetd
+
+.SH BUGS
+Please report bugs to
+\fI<libstoragemgmt-***@lists.sourceforge.net>\fR
+
+.SH AUTHOR
+Gris Ge \fI<***@redhat.com>\fR
+.br
+Tony Asleson \fI<***@redhat.com>\fR
diff --git a/packaging/libstoragemgmt.spec.in b/packaging/libstoragemgmt.spec.in
index d7f132d..87cea08 100644
--- a/packaging/libstoragemgmt.spec.in
+++ b/packaging/libstoragemgmt.spec.in
@@ -423,6 +423,7 @@ fi
%{_bindir}/lsmcli
%{_bindir}/lsmd
%{_bindir}/simc_lsmplugin
+%{_mandir}/man1/simc_lsmplugin.1*

%if 0%{?with_systemd}
%{_unitdir}/libstoragemgmt.service
@@ -465,6 +466,7 @@ fi
%{python_sitelib}/lsm/lsmcli/data_display.*
%{python_sitelib}/lsm/lsmcli/cmdline.*
%{_bindir}/sim_lsmplugin
+%{_mandir}/man1/sim_lsmplugin.1*

%files -n %{libstoragemgmt}-smis-plugin
%defattr(-,root,root,-)
@@ -481,6 +483,7 @@ fi
%{python_sitelib}/lsm/plugin/smispy/smis_vol.*
%{python_sitelib}/lsm/plugin/smispy/smis_ag.*
%{_bindir}/smispy_lsmplugin
+%{_mandir}/man1/smispy_lsmplugin.1*

%files -n %{libstoragemgmt}-netapp-plugin
%defattr(-,root,root,-)
@@ -489,6 +492,7 @@ fi
%{python_sitelib}/lsm/plugin/ontap/na.*
%{python_sitelib}/lsm/plugin/ontap/ontap.*
%{_bindir}/ontap_lsmplugin
+%{_mandir}/man1/ontap_lsmplugin.1*

%files -n %{libstoragemgmt}-targetd-plugin
%defattr(-,root,root,-)
@@ -496,6 +500,7 @@ fi
%{python_sitelib}/lsm/plugin/targetd/__init__.*
%{python_sitelib}/lsm/plugin/targetd/targetd.*
%{_bindir}/targetd_lsmplugin
+%{_mandir}/man1/targetd_lsmplugin.1*

%files -n %{libstoragemgmt}-nstor-plugin
%defattr(-,root,root,-)
@@ -503,6 +508,7 @@ fi
%{python_sitelib}/lsm/plugin/nstor/__init__.*
%{python_sitelib}/lsm/plugin/nstor/nstor.*
%{_bindir}/nstor_lsmplugin
+%{_mandir}/man1/nstor_lsmplugin.1*

%files udev
%defattr(-,root,root,-)
--
1.8.3.1
Loading...