TrafficFilter



TrafficFilter - this is root object of NetCom object model. Via this object you can have access to all adapters of server and to all rules and manage of them.

 

VBScript example of using:

 

'netcom.dll contains 'NetCom.Remote' object.

 

Dim Remote, TrafficFilter, S, V

 

Set Remote = CreateObject("NetCom.Remote")

 

With Remote

       .Host = "192.168.0.1"

       .Port = 42566

       .UserName = "Administrator"

       .Password = "mypass"

       Set TrafficFilter = .CreateRoot

 

       With TrafficFilter

               'Show service version

               V = .Version

               S = "Routix NetCom service version: " & V(0) & "." & V(1) & "." & V(2) & "." & V(3)

 

               If .IsFreeware Then

                       S = S & ", Freeware"

               Else

                       S = S & ", Registered"

               End If

 

               WScript.Echo S

 

               'Add version record to the system event log

               .LogInfo(S)

       End With

 

End With

 

Set TrafficFilter = Nothing

Remote.Disconnect

Set Remote = Nothing