Tool

dgiles's picture
tool
Reads:

3100

Score:
0
0
 
Comments:

0

NW Stop Event Epoch

(View Disclaimer)

license: 
Free

This perl script will stop the current Event File List (EFL) Event Epoch for a specified NSS volume.

It uses the Virtual File Services (Originally called Virtual File Services for NetWare) which were ported over to Linux. The SDK for this API set can be downloaded from http://developer.novell.com/wiki/index.php/Virtual_File_Services_for_NetWare. The objective of the tool is to add a trustee to a file using XML as specified in the VFS for NetWare specification. 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:

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

To run the perl script type:

perl linuxStopEventEpoch.pl VOLUME_NAME <enter>

Where VOLUME_NAME is the name of the NSS volume where the active EFL Epoch is to be stopped.

The user will be prompted to type in one of the 37 digit Epoch Numbers displayed above the prompt. Type in one of the active Epochs or the utility will fail, then press enter.

Example:

perl NWStopEventEpoch.pl VOL1 <enter>

A sample output would be the following

SERVER: perl NWStopEventEpoch.pl NSS1 file is now open+<_ADMIN:/Manage_NSS/Volume/NSS1/FileEvents.xml <nssRequest><fileEventList><listEpochs/></fileEventList></nssRequest>
 <nssReply>
 <fileEventList> 
<listEpochs> 
<activeEpochs> 
<epoch value="e5d831be-7680-01db-80-00-bd1cd5b47e57"/> 
</activeEpochs> 
<usedEpochs> 
<epoch value="e5d831be-7680-01db-80-00-bd1cd5b47e57"/> 
</usedEpochs> 
<result value="0"><description>success</description></result> 
</listEpochs>
 </fileEventList> 
</nssReply>

Choose an epoch to stop and type in the complete 37 letter code including dashes.

e5d831be-7680-01db-80-00-bd1cd5b47e57 +</_admin/Manage_NSS/Volume/NSS1/FileEvents.xml <nssRequest><fileEventList><stopEventEpoch epochNumber="e5d831be-7680-01db-80-00-bd1cd5b47e57"/></fileEventList></nssRequest>
 <nssReply> 
<fileEventList> 
<stopEventEpoch>
 <epoch value="e5d831be-7680-01db-80-00-bd1cd5b47e57"/> 
<result value="0"><description>success</description></result> 
</stopEventEpoch>
 </fileEventList> 
</nssReply>
AttachmentSize
NWStopEventEpoch.zip1.25 KB

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell