Server-Side JavaScript Example 3
List Enumeration Using RMAGetNthProperty()
Mount Points
| File System | Mount Point |
var s = "" ;
var listIndex = 0 ;
var listName = RMAGetNthProperty( "config.FSMount", listIndex );
// GetNthProperty returns null asked for a property number greater then the length of the list
while ( listName )
{
// test whether "listName" is actually a sublist (of FSMount)
if ( RMAGetNthProperty( listName, 0 ) )
{
var mountPoint = RMAGetPropertyValue( listName + ".MountPoint" );
if ( mountPoint )
{
s = "| " +
listName +
" | " +
mountPoint +
" |
\n" ;
RMAOutput( s );
}
}
listName = RMAGetNthProperty( "config.FSMount", ++listIndex );
}