Get NSS Pool Info

0 Likes

This perl script lists detailed information about the NSS pool such as mount point, size, nds name, pool state creation time, etc.
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:

linuxGetPoolInfo.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 linuxGetPoolInfo.pl POOL_NAME <enter>

Where POOL_NAME is the name of an NSS Pool.



Example: perl linuxGetPoolInfo.pl NSSPOOL <enter>



Sample output:


grep57:/a # perl linuxGetPoolInfo.pl NSS
file is now open
File Name: </_admin/Manage_NSS/manage.cmd
Request Sent: <virtualIO><datastream name="command"/></virtualIO><nssRequest><pool><getPoolInfo><poolName>NSS</poolName></getPoolInfo></pool></nssRequest>
<nssReply>
<pool>
<getPoolInfo>
<basicInfo>
<poolName>NSS</poolName><mountPoint>/opt/novell/nss/mnt/.pools/NSS</mountPoint><ndsPoolName>.CN=grep57_NSS_POOL.O=sms.T=GREPTREE.</ndsPoolName><ndsPoolGUID>30c7c660-32e5-01db-80-30-001422328d9d</ndsPoolGUID><poolGUID>2fa65e68-32e5-01db-80-00-8e8139c5a492</poolGUID><poolState>active</poolState><nameSpaces value="1073839188">Long Unix DataStream </nameSpaces>
<blockSize>4096</blockSize><size>1047527424</size><usedSize>116318208</usedSize><createdTime value="1167837831">Jan 3, 2007 8:23:51 am</createdTime>
<modifiedTime value="1167837831">Jan 3, 2007 8:23:51 am</modifiedTime>
<lssType>ZLSS</lssType></basicInfo>
<salvageInfo>
<freeableSize>87715840</freeableSize><nonFreeableSize>0</nonFreeableSize></salvageInfo>
<attributeInfo>
<supportedAttributes value="251"><persistentFeatures/><shared/><verify/><rebuild/><multipleVolumes/><snapshot/><msap/></supportedAttributes>
<enabledAttributes value="185"><persistentFeatures/><verify/><rebuild/><multipleVolumes/><msap/></enabledAttributes>
</attributeInfo>
<volumeInfo>
<volumeName>NSS1</volumeName>
</volumeInfo>
<deletedVolumeInfo>
</deletedVolumeInfo>
<segmentInfo>
<segment>
<deviceName>sda</deviceName><segmentName>sda1</segmentName><deviceID>sda</deviceID><segmentID>sda1</segmentID><offset>95</offset><size>1048559616</size>
</segment>
</segmentInfo>
<result value="0"><description>success</description></result>
</getPoolInfo>
</pool>
<result value="0"><description>zOK</description></result>
</nssReply>

Labels:

Collateral
Comment List
Related
Recommended