NW Remove Pool Snapshot

0 Likes

This Perl script deletes a pool snapshot.


This script has been designed to be run on NetWare.


The API set can be downloaded from http://developer.novell.com/wiki/index.php/Virtual_File_Services_for_NetWare.



The Perl script requires the name of the snapshot to be removed as input. It requires that NSS be installed and an NSS pool be present.



It is intended to be used as a sample script for developers that may want to use the VFS API set to view and manage storage.



How to Use the file:



NWRemovePoolSnapshot.pl is a Perl script. So Perl must be installed and running on the NetWare server that this file is being loaded on. NSS must be installed to get the VFS support.



To run the perl script type:



perl NWRemovePoolSnapshot.pl SNAP_NAME <enter>


Where SNAP_NAME is the name of the new snapshot pool.



Example:



perl NWRemovePoolSnapshot NSSPOOL_SNAP <enter>


Sample output:



file is now open.
File Name: <_ADMIN:ManageNSS/manage.cmd
Request Sent: <virtualIO><datastream name=\"command\"/></virtualIO>
<nssRequest><pool><removePoolSnapshot><snapName>$snapName
</snapName></removePoolSnapshot></pool></nssRequest>
<nssReply>
<pool>
<removePoolSnapshot>
<result value="0"><description>success</description></result>
</removePoolSnapshot>
</pool>
<result value="0"><description>zOK</description></result>
</nssReply>

Labels:

How To-Best Practice
Collateral
Comment List
Anonymous
Related Discussions
Recommended