Question: I've just started to use Netconf server and I want to play with it.
I installed *OpenYuma* as netconf server, and for a client I would use the provided *yangcli* as a first approach.

My problem is that I cannot use **filtering** in get commands, since in the tutorials and docs are not any usable example, only previously written (outer) xml files are used, which are not shown in these docs.

I know that there are two types of filtering : *subtree* and *xpath*.
I do not care, which should be used, I only want to use one of them properly.

If I type *get* in *yangcli*, I get a lot of data.
In this case, I only want to get the *memInfo* part with all the *leafs*.

Please supplement/correct my command!!!

***yangcli>get filter=('xpath','memInfo') ???***

This command does not throw any errors, but only empty data object is received.
Thanks

Answer: 
`FileLen` returns a long data type. This can be a value from -2,147,483,648 to 2,147,483,647. 

So with that command you won't be able to do it. LotusScript is quite an old language and still based on 32bit systems (late 90's). 

You could use LS2J to have Java get the file size and pass it back to LotusScript, but you may hit other limitations on variable sizes. 

Here is an example I did that works: 

1. Created a Java class as follows.

```
import java.io.File;

public class FileSizeHelper {

    public static String getFileSize(String filename) { 

        File file = new File(filename);
        return "" + file.length();

    }
}

```

2. Create a directory c:\notes\test and put the FileSizeHelper.class file into it. 

3. Edit the Notes.ini and add the following line. 

```
JavaUserClasses=c:\notes\test

```

4. Restart your Notes client. Open designer and create a LotusScript agent as follows: 

```
Option Public
Option Declare

UseLSX "*javacon"
Sub Initialize

    dim mySession as New JavaSession()
    Dim myClass As Variant
    Dim myObject As variant
    Dim answer As String

    Set myClass = mySession.Getclass("FileSizeHelper")
    Set myObject = myClass.createObject

    answer = myClass.getFileSize("<PUT FILENAME HERE>")

    MsgBox answer

End Sub

```

5. Change `<PUT FILENAME HERE>` to the path to the file you want to get the file size off. It will follow the Java convention on referencing a file. e.g. "C:\\temp\\test.txt", "/temp/test.txt". 

When you run it, it should show a string of the file size.
In LotusScript the range for Long is between -2,147,483,648 and 2,147,483,647. That is 2 GB in Bytes.

There is a workaround to get the length for files <4GB, files bigger than that can not be measured with Filelen. The workaround (taken from [this german site](http://www.vbarchiv.net/tipps/tipp_886-dateigroesse-fuer-dateien-groesser-als-2gb-ermitteln.html) would be:

```
Public Function FileSize(ByVal sFile As String) As Currency
  ' Get size of file, 
  ' Works until size of 4GB
  Dim nSize As Long

  On Error Resume Next
  If Dir$(sFile) <> "" Then
    nSize = FileLen(sFile)
    If Err.Number <> 0 Then
      ' Error: Possible size > 4GB
      FileSize = 2147483648# + 2147483648#
    Else
      If nSize < 0 Then
    ' File is larger than 2GB!
        FileSize = 2147483648# + (2147483648# - Abs(nSize))
      Else
        FileSize = nSize
      End If
    End If
  Else
    ' If file not found
    ' give back -1 as value
    FileSize = -1
  End If
  On Error Goto 0
End Function

```

Unfortunately I do not know -and could not find- a method to go over 4GB...