15. Buffer Functions (Polling)


The procedures in this section are used to retrieve data that has been collected from the PBX. NetLink offers four different polling methods:

  1. Menu Driven: NetLink is contacted via modem or Console Port, and the Buffer Functions Menu is used to release data.

  2. Command Driven: NetLink is contacted via modem or Console Port, and ^Bxx commands are entered at the command prompt to release data:

  3. FTP Push: NetLink automatically downloads records via TCP/IP connection to your FTP server.

  4. FTP Server: an FTP client program is used to retrieve stored data from the NetLink unit on demand. In this case, the NetLink functions exactly like a standard FTP server.


15.1. Memory Partitions and Shared Data


After data is collected from the PBX, it is stored in NetLink's flash memory. Stored data can be retrieved via the Console Port, Modem Port, or Network Port. In order to prevent conflicts when two ports attempt to access the same data, partitions are set to temporarily grant "ownership" of a specific type of data to a specific port. For example, the Console Port may own all data received via PBX Port B, or the Modem Port may own all records that matched Alarm Filter 1.

When a partition is set for a specific command port, other command ports will not be able to access the partitioned data. For example, if the Console Port partition is set to include data received via PBX Port A, then the Modem Port will not be able to access this data until the partition is released.

These partitions also simplify the process of clearing data after it has been read. After downloading data from your command port partition, command ^B25 or the Item 5 in the Buffer Functions menu can be used to clear the partition. Note that records that are received after the partition is set will not be erased. Once a partition is set, it will remain in effect until the partition owner exits from command mode, or invokes one of the partition release commands.


See Graphic.
Figure 15.1:  Data Partitions and Files

15.1.1. Partitions and Files

When data is received from the PBX, NetLink sorts each record into one of nine possible "files". Records are sorted according to Data Type and Source Port. There are three Data Types; Standard Data (Non-Alarm Records), Records that match Alarm Filter 1, and Records that match Alarm Filter 2. There are also three source ports; PBX Port A, PBX Port B, and the AUX Port.

As shown in Figure 15.1, each file contains a specific data type received from a specific port. When a command port sets a partition, that port is granted ownership of one or more of these files. The File List screen (Status Displays, Item 2) can be used to determine which files are linked to each command port.

Note that these files are always "open"; new data is continually added to each file. When a partition is set, all records received up to that point will be available for reading or erasure. However, new records received after the partition is set will not be available until the partition is reset.

Note also that the "Store Alarm Data" option can be used to override the default storage location for alarm records. Using this option, alarm records for a selected port can be stored in the Alarm Files, in the Standard File (Non-Alarm), or in both the Alarm File and Non-Alarm File. This allows Alarm Records to be used for call accounting purposes only, alarm tracking only, or for both. The "Store Alarm Data" option is located in the configuration menus for PBX Port A, PBX Port B, and the AUX Port.


15.1.2. Setting the Partition

The following events will cause NetLink to set a data partition:

  1. Menu-Driven Read Session: When the Buffer Functions menu is used to release data, a partition will be set for the port that initiated the read session. This partition will include all data selected by the Read Session Parameters menu. For more information, please refer to Section 15.2.

  2. Command Driven Read Session: When command ^B01 is invoked, a partition will be set for the port that initiated the command. This partition will include all data specified by the ^B01 command arguments. For more information, please refer to Section 15.3.

  3. Set Partition Function: When the Set Partition function (Buffer Functions Menu) is performed, a partition will be set for the port that activated the function. This partition will include all data currently specified by the Read Session Parameters menu. If the Data Type and Source port have not been selected, the partition will include all data by default. For more information, please refer to Section 15.2.

  4. Command ^B00: When command ^B00 (Set Partition) is invoked with the proper arguments, a partition will be set for the port that invoked the command. This partition will include all data specified by the ^B00 command arguments. For more information, please refer to Section 15.3.1.

  5. FTP Push: When an FTP Push operation is in progress, a partition will be set which will include all files that were requested via the FTP Push Configuration menu. For more information, please refer to Section 15.4.

  6. FTP Server: When the FTP Server function is being used to retrieve files, a partition will be set which will include all files requested by the FTP client (e.g. WS FTP). For more information, please refer to Section 15.5.

    Notes:

    • Partitions remain in effect until the partition owner exits command mode, invokes one of the partition release commands, or sets a new partition.
    • Other ports are not allowed to access partitioned data until the partition is released.

15.1.3. Releasing the Partition

Any of the following events will release the partition:

  1. Exit Command Mode: When the Console Port, Modem Port, or Network Port exits from command mode, NetLink will release the partition for that port.

  2. Release Partition Function: When this function (Buffer Functions Menu) is performed, NetLink will release the partition for the port that invoked the command. For more information, please refer to Section 15.2.

  3. Release Remote Partition: (Supervisor Mode Only) This function can be used to release a partition that was established by another port. The Release Remote Partition function is available via the Buffer Functions menu, or by invoking command ^B76 with the proper arguments. For more information, please refer to the Command Reference Guide in Section 18.

  4. Command ^B00,R: When command ^B00 is invoked with the "R" argument (^B00,R), NetLink will release the partition for the port that invoked the command. For more information, please refer to Section 15.3.1.

  5. At the End of an FTP Push Session: When the FTP Push feature finishes sending the requested data, the partition that was set for the FTP Push feature will be released. For more information, please refer to Section 15.4.

  6. FTP Server Function: The partition that is set for the FTP Server function will be released when any of the following events occur:

    1. When the FTP client disconnects, the partition for the selected file will be released.

    2. After a file has been downloaded to the FTP client, the partition will be released if the file is deleted from NetLink's buffer memory, either by the Auto Delete function, or by the FTP client's delete function.

    3. When the FTP client is used to select a different file, the partition for a previously selected file (if any) will be released.



15.2. Menu Driven Data Release


NetLink offers four different methods for retrieving buffered data; menu driven data release, command driven data release, FTP Push and FTP Server data transfer. During menu driven data release, the Buffer Functions menu controls and configures the data release process. The menu driven procedure consists of the following three steps:

Note: Prior to reading data, the user must configure output options for the port that will drive the data release, as described in Section 4.4.

  1. Set Read Session Parameters: Use item 1 in the Buffer Functions menu to select desired data types, source port, and other options as described in Section 15.2.2.

  2. Set Partition: Use item 2 in the Buffer Functions menu to set the partition for your command port as described in Section 15.2.1.

  3. Begin Data Release: Use item 4 in the Buffer Functions menu to begin data release as described in Section 15.2.1.


15.2.1. The Buffer Functions Menu

After configuring the command port, go to the NetLink Main Menu, and type 2 [Enter] to display the Buffer Functions Menu (Figure 15.2.) The Buffer Functions menu offers the following options:

  1. Set Read Session Parameters: Selects Read Session parameters, including the Source Port, Data Type, Start Record, and Record Count. For more information on Read Session Parameters, please refer to Section 15.2.2.

  2. Set Partition: Sets the partition for the user's port according to currently selected Read Session Parameters. If Read Session Parameters have not been redefined, the partition for this port will include all records by default.

  3. Release Partition: Releases the port's partition, allowing other ports to access the formerly partitioned data.

  4. Enter "Read" Session: When this item is selected, NetLink will display a submenu before beginning data release. The following options are available:

    1. Start Data Output: To begin, press [Enter].

    2. Next Group (^B02): This is used when releasing groups of records as described in Section 15.2.2. For example, if Record Count is set at 10, NetLink will release a group of ten records and then pause. To release the next group, invoke command ^B02.


 
BUFFER FUNCTIONS: 

1. Set "Read" Session Parameters 
2. Set Partition 
3. Release Partition 
4. Enter "Read" Session 
5. Erase Partition Data 
6. Erase All Data 
7. Erase All Data & Clear Alarm Clue Counters 
8. Release Remote Partition 

Enter Selection, 
Press <ESC> to return to previous menu ... 

Figure 15.2:  Buffer Functions Menu


    1. Re-read Last Data Record (^B06): This option is used when releasing groups of records (Record Count) as described in Section 15.2.2. For example, if Record Count is set at 5, NetLink will release a group of five records and then pause. To resend this group, invoke command ^B06.

    2. Exit (^B30): To exit from data release mode and return to the Buffer Functions menu, invoke command ^B30.

      Notes:

      • When all specified records have been released, the "End Data" message is sent. If "Hold End Data" is enabled, a ^B02 command is required in order to release the End Data message and complete the data release procedure.
      • If "Data On ^B01" is disabled, a ^B02 command must be sent in order to begin the data release.
  1. Erase Partition Data: Erases all data in the current memory partition. NetLink will display a "Sure ?" prompt; if confirmation is given, all data in the partition will then be erased. Note that this function will not erase records received after the partition was set.

  2. Erase All Data: Erases all stored records, including records in partitions owned by other ports. Note that NetLink will not erase records that are currently being read by another port.

  3. Erase All Data & Clear Alarm Counters: Erases all stored records (including records in partitions owned by other ports), and resets all Alarm Clue Counters to zero.

    Note: Erased call records cannot be recovered.

  4. Release Remote Partition: (Supervisor Mode Only) Releases a partition established by another port. Allows access to data assigned to another port. Note that a remote partition cannot be released while another port is reading data from that partition.


 
SET "READ" SESSION PARAMETERS: 

1. Source Port: 	All 
2. Data Type: 		All 
3. Start Record: 	1 
4. Record Count: 	All 

Enter Selection, 
Press <ESC> to return to previous menu ... 

Figure 15.3:  Set Read Session Parameters Menu


15.2.2. Read Session Parameters

The Set Read Session Parameters submenu (Figure 15.3) is used to select options that are applied when data is released.

Note: If the port partition has not been set, values selected for the Source Port and Data Type options will determine the partition location. When a Read Session is initiated, or the Set Partition option is selected, the partition is set according to the Source Port and Data Type options.

  1. Source Port: NetLink can release all data, or only data received via a selected port. You may select PBX Port A, PBX Port B, the AUX Port, all three, or any combination.

  2. Data Type: Determines which type of data will be released. The following data types may be selected:

    1. All: Releases all data from the buffer, including both alarm data and non-alarm data.

    2. Standard (Non-Alarm): Release records that did not match an Alarm Clue.

    3. Alarm 1 (All): Release all data that matched any Alarm Clue defined for Alarm Filter 1.

    4. Alarm 1 (By Clue): Release records that matched a specific Alarm Clue for Alarm Filter 1.

    5. Alarm 2 (All): Release all data that matched any Alarm Clue defined for Alarm Filter 2.

    6. Alarm 2 (By Clue): Release records that matched a specific Alarm Clue for Alarm Filter 2.

    7. All Alarms: Release records that matched Alarm Filter 1 and records that matched Alarm Filter 2.

  3. Start Record: Determines the starting point for data release. For example, if Start Record is set at 153, the 153rd record in memory will be the first record released. Note that if a negative value is entered, NetLink will determine the starting point by counting backwards from the end of the records in the current partition. For example, if the Start Record is set at -10, NetLink will release the last ten records in the current partition.

  4. Record Count: Determines how many records are released in each group. For example, if Record Count is set at 20, NetLink will release 20 records and then pause. Invoke command ^B02 to release the next group.


15.3. Command Driven Data Release


Data can also be released by invoking Command ^B01. The ^B01 command line can include optional arguments which are used to release specific types of data. These arguments are similar to the options offered under the Set Read Session Parameters menu. The command driven procedure consists of the following steps:

Note: Prior to reading data, the user must select output options (Output Mode, Data on ^B01, etc.) for the port that will drive the data release, as described in Section 4.4.

  1. Release Data Partition: Use command ^B00 to release the current partition for your port. At the command prompt type ^B00,R and then press [Enter]. Other ^B00 command options are listed in Section 15.3.1.

    Notes:

    • The Release Remote Partition function (Supervisor Mode Only) can also be used to access data that has been assigned to another port. Please refer to command ^B76 in the Command Reference Guide (Section 18).
    • A remote partition cannot be released while another port is reading data from that partition.
  2. Begin Data Release: Invoke command ^B01 with the appropriate arguments to release the desired data. Section 15.3.2 describes the various arguments for command ^B01.

15.3.1. Command ^B00 (Set/Release Partition)

Command ^B00 can be used to set or release the partition prior to beginning command driven data release.

Notes:

Command ^B00 uses the following format:

^B00[,type][,source] or ^B00,R

Where:

,type    

Data Type: Offers the following options:

,D or ,STD

(Standard Data) Records that did not match an Alarm Filter Clue.

,A1 or A

Records that matched a Clue for Alarm Filter 1.

,A2           

Records that matched a Clue for Alarm Filter 2.

,ALM

Records that matched Alarm Filter 1 and records that matched Alarm Filter 2.

(Not Specified)

Include all data types.

,source

Source Port: Offers the following options:

,PA

Records received via PBX Port A.

,PB

Records received via PBX Port B.

,PX

Records received via AUX Port.

(Not Specified)

Records received from any of the three input ports.



Release Partition:
,R      

Release the current data partition. Cannot be combined with other ^B00 arguments.



Examples:
^B00,D     

Set partition to include all records that did not match an Alarm Clue, regardless of the Input Port that received them.

^B00,A1,PX

Set partition to include records that matched Alarm Filter 1, and were received via the AUX Port.

^B00,R

Release the current data partition.



15.3.2. The ^B01 Command Line

If the ^B01 command line does not include optional arguments, and no partitions have been set, command ^B01 will release all data by default.

Note: If the partition for your port has not been set, the ^B01 command arguments will set the partition location.

Command ^B01 offers the following options:

^B01[,type][,source][@n][,n]  [Enter]

Where:

,type    

Data Type: Offers the following options:

,A1 or ,A     

Records that matched a Clue from Alarm Filter 1.

,A2

Records that matched a Clue from Alarm Filter 2.

,ALM

Records that matched Alarm Filter 1 and records that matched Alarm Filter 2.

,STD or D

Standard (Non-Alarm) Records.

,"clue"

Clue Name: Release Alarm Records for clue. The Clue Name must be enclosed in quotation marks.



,source

Source Port: Offers the following options:

,PA

Records received via PBX Port A.

,PB

Records received via PBX Port B.

,PX

Records received via AUX Port.



@n Start Record (Offset): Releases records starting with the "nth" record.  For example, if ^B01@234 is entered, data release will start with the 234th record. If a negative value is entered, NetLink will determine the starting point by counting backwards from the end of the records in the current partition

,n Record Count: Releases records in groups of "n".  For example, if ^B01,20 is entered, NetLink will release groups of 20 records, and then pause until command ^B02 is sent..


Notes:


15.3.3. Command ^B01 Examples

As shown in the examples below, arguments can be combined in a single command line to further define the data release format.

Examples:


15.3.4. Other Commands Used During Data Release

The following commands are often used during command driven data release. For a complete listing of all available commands, please refer to Section 18.

  1. Site ID: To send the Site ID, type ^B03  [Enter].

  2. Display Current Alarm Record: Type ^B08  [Enter].

  3. Remaining Memory Space: To send a message that lists NetLink's remaining memory, type ^B21  [Enter].

  4. Set-Up Switches: To send a message that lists the current status of the Set-Up Switches, type ^B24  [Enter].

  5. Number of Stored Records: To list the number of records in the current partition, type ^B20 and press [Enter].

  6. Display Separator Line: To send a line of dashes, which can be used to separate downloaded data, type ^B26 and press [Enter].

  7. Continuous Binary Block Read: To initiate a continuous binary block read, invoke command ^B07. Blocks are sent continuously, without acknowledgment, and cannot be retransmitted during the read session. Data is sent in binary block format, regardless of the current output setting. All data type and source port arguments are available. For more information, please see Section 18.

    Note: Command ^B07 (Continuous Binary Block Read) should not be used while Auto Delete is enabled. If ^B07 is invoked while Auto Delete is enabled, the unit will erase data without waiting for reception to be acknowledged.

  8. Binary Information Block: To send a status information block in binary format, type ^B73 and press [Enter]. The information block includes the Site ID, time and date, Reason for Action, Partition Record Count, and Percent Full. Information is sent in binary block format, regardless of the current output mode setting.


15.4. Retrieving Data Using FTP Push


FTP Push capability allows the NetLink to automatically download stored call records via network to your FTP server.  Downloads can be performed on demand, according to a user-defined schedule, or according to a user-specified start time.

In order to use this feature, your installation must include the following:

To configure the FTP Push function, access the NetLink command mode as described in Section 18.1.  When the Main Menu appears, type 27 and press [Enter] to display the FTP Push Configuration menu as shown in Figure 15.4.


 
FTP PUSH CONFIGURATION:
 
FTP SERVER PARAMETERS 			ACTION PARAMETERS
 
1. Server Address: 	192.10.10.90    11. Read Session 
2. User Name: 		(undefined)     12. Push Action: 	On 
3. Password: 		(undefined)     13. Periodic Push: 	60 Min 
4. Account: 		(undefined)     14. Xmit Attempts: 	5 
5. Directory: 		(undefined)     15. Xmit Delay: 	5 Min 
   (Cont.): 				16. Auto Delete: 	On 
   (Cont.): 				17. Start Time:		17:00
6. File Name: 		3_27 
7. File Mode: 		Replace 
8. File Ext Inc: 	On
 
MISCELLANEOUS 
21. Force FTP Push 
22. Test FTP Push 
23. Stop FTP Push


Enter Selection, 
Press <ESC> to return to previous menu ... 

Figure 15.4:  FTP Push Configuration Menu


The FTP Push Configuration menu is used to select parameters that will be used when the NetLink transfers stored data to your FTP server. To define FTP Push parameters, key in the number for the desired item, press [Enter], then follow the instructions in the submenu that follows.  The FTP Push Configuration menu includes the following items:

FTP Server Parameters:

  1. Server Address:  The IP address of your FTP server (the address that will receive the transferred files). (Up to 15 characters, default = undefined).

  2. User Name:  The name that NetLink will use when accessing the FTP server. (Up to 16 characters, default = undefined).

  3. Password:  The password that NetLink will use when accessing the FTP server. (Up to 16 characters, default = undefined).

  4. Account:  The account name that will be used to access the FTP server.  (Up to 16 characters, default = undefined).

  5. Directory:  The FTP Server directory that will receive files sent from the NetLink. (Up to 48 characters, default = undefined).

    Note:  If several different NetLink units will be transferring data to the same FTP server, a unique directory / file name should be assigned to each unit.  This will prevent data from the various units from overwriting each other.

  6. File Name:  The first four characters of the file name that the FTP Push feature will assign to each "chunk" of data transferred from this unit. The complete file name will include these four characters, three characters which identify the source port, and one character which identifies the data type. If desired, NetLink can also append a sequentially numbered extension to each file name. For more information, please refer to Section 15.4.1.
    (Up to four characters, default = undefined).

    Note:  If several different units will be transferring data to the same FTP server, a unique file name / directory should be assigned to each unit.  This will prevent the the NetLink units from overwriting each other's data.

  7. File Mode:  If "Append" is selected, each data transfer will be added to the target file on the FTP server.  If "Replace" is selected, each data transfer will overwrite the target file. If the target file does not exist, then both Append and Replace will create a new file. (Default = Append).

  8. File Extension Increment: Enables / disables automatic sequential numbering of file names created by the FTP Push feature. When enabled, NetLink will append a sequentially numbered three digit file name extension (000 to 999), which will be incremented for each new file created by a successful data transfer. When disabled, the extension will not be incremented. (Default = Off).

Action Parameters:

  1. Read Session:  Specifies the type(s) of file that will be sent to the FTP server.  When PBX data is collected, NetLink sorts records according to the port where the data was received (PBX A, PBX B, or AUX), and the Alarm Filter matched.  The "Read Session" item allows you to select data based on these criteria, and determine the starting point by record number.  For more information, please refer to Section 15.1. The "Read Session Parameters" submenu includes the following items:

    1. Source Port:  Option 1 allows you to select records based on the NetLink port where they were received.  When selected, NetLink will display an additional submenu, which is used to toggle each port On or Off.  This item can be used to select one, two or all of the available source ports.  (Default = All).

      Example:  If PBX Port A and the AUX Port are both toggled "On", the FTP Push session will only send data received at PBX Port A or the AUX Port; data received via PBX Port B would not be sent.

    2. Data Type:  Allows you to choose records based on the Data Type.  When selected, NetLink will display a submenu, which is used to choose one of the following file types.  Note that only one file type can be selected at a time.  (Default = All).

      1. All:  Send all records, both Alarm and Non-Alarm.

      2. Standard (Non-Alarm):  Send only records that did not match a clue for Alarm Filter 1 or Alarm Filter 2.

      3. Alarm Filter 1 (All):  Send only records that matched any clue defined for Alarm Filter 1.

      4. Alarm Filter 1 (By Clue):  Send only records that matched a specific clue defined for Alarm Filter 1.

      5. Alarm Filter 2 (All):  Send only records that matched any clue defined for Alarm Filter 2.

      6. Alarm Filter 2 (By Clue):  Send only records that matched a specific clue defined for Alarm Filter 2.

      7. All Alarms:  Send all records that matched either Alarm Filter 1 or Alarm Filter 2.

      Notes:

      • When the "By Clue" options are selected, NetLink will prompt you to enter the clue name.  If an invalid clue name is entered, the prompt will be redisplayed.
      • When Data Type and Source Port are assigned, then the FTP Push function will own this partition while the data transfer is in progress.  Other users will not be able to read data from this partition until the FTP Push is complete and the FTP connection is terminated.  For example, if FTP Push is set to select Non-Alarm data (Data Type) received via PBX Port B (Source Port), then the Console Port will not be able to read Non-Alarm Data received via PBX Port B until FTP Push is complete and the partition is released.
    3. Start Record:  The starting point for data release.  Note that this value can be either positive or negative  (Default = 1).

      • Positive Numbers:  If a positive number is entered, the unit will count forward from the beginning of the selected group (Source Port / Data Type).  For example, if this value is "15",  NetLink will begin with the 15th record in the group.
      • Negative Numbers:  If a negative number is entered, NetLink will count backwards from the end of the records in the selected group.  For example if the Start Record is set at "-3", then NetLink will send the last three records in the selected group.
  2. Push Action:  Enables / disables the FTP Push operation.  After you have selected FTP Push parameters, make certain to set the Push Action to On.  The Push Action must be enabled in order for the FTP Push feature to function.    (Default = Off).

    Note:  If the Push Action feature is "Off", the selected FTP Push operation will not be performed.

  3. Periodic Push:  The amount of time that will elapse between FTP Push operations.  This allows you to schedule the FTP Push feature to regularly transfer data to your FTP Server.  For example, if the Periodic Push is set at 30 minutes, then every 30 minutes, the NetLink will automatically transfer stored data to your FTP Server.  (1 to 9,999 Minutes, Default = 1,440 Minutes / 24 Hours).

    Notes:

    • A periodic FTP Push operation will be delayed if targeted files are being accessed by another user at the time scheduled for data transfer.  NetLink will delay the periodic push until the partition is released, or the other user exits command mode.  If the delay lasts longer than the Xmit Delay period, the periodic push will be canceled.
    • A periodic push will not be performed if the specified files are empty (no data.)
  4. Xmit Attempts:  The number of times NetLink will attempt to retransmit data if the FTP operation fails.  (1 to 99 Attempts, Default = 5 Attempts).

    Note:  NetLink will not perform additional transmit attempts if the specified file(s) are empty, or if the Server Address, User Name, Password, or Account info have not been supplied.

  5. Xmit Delay:  The amount of time that will elapse between Transmit Attempts (Xmit Attempts).  (1 to 99 Min., Default = 5 Min.)

  6. Auto Delete:  Enables/Disables the Auto Delete function for FTP Push operations.  When enabled, NetLink will delete records from memory after the server acknowledges reception.  (Default = Off).

  7. Start Time: Specifies an exact start time for the next FTP Push operation as described in Section 15.4.2. (Default = undefined.)

Miscellaneous:

  1. Force FTP Push:  When selected, the unit will immediately perform an FTP Push using parameters entered at items one through 16.  If the partition (Source Port / Data Type) owned by the FTP Push feature is empty, NetLink will not attempt to connect to the Server.  A Forced FTP Push will not effect the Periodic Push schedule.

  2. Test FTP Push:  Sends test data in order to determine if FTP Parameters are correctly set.  If the Test FTP Push cannot establish a connection with the server, NetLink will display a message that describes the reason the test failed. (e.g. incorrect password).

    Note:  After you have selected new FTP Push parameters, it is recommended to use the "Test FTP Push" feature to make certain that newly defined parameters will work with your FTP server.

  3. Stop FTP Push:  Terminates any FTP Push operation in progress.  Note that when this item is selected, NetLink will immediately terminate a Periodic Push or Force FTP Push.


15.4.1. File Names Created by FTP Push

When the FTP Push feature is used, NetLink will assign a name to the file that receives the data. This file name will be based on the user-defined, base file name, the source port, and data type. If desired, file names can also include an automatically incremented three character extension. As shown in Figure 15.5, the filename consists of the following components:

Note: This file naming convention applies only to data transferred by the FTP Push feature. A different file naming convention is employed when data is transferred using the FTP Server. For more information, please refer to Section 15.5.3.

  1. File Name (Up to Four Characters):  The base file name defined via item 6 in the FTP Push Configuration menu.  If the file name is not defined, NetLink will use the first three characters of the Site ID message.  If the Site ID message is not defined, the letters "PNL" will be used.  Note that if the file name is less than four characters, the remaining characters in this field will not be used.

  2. Source Port (Up to Three Characters):  NetLink will enter from one to three characters to indicate which input port(s) originally received the data.  NetLink will enter an "A" for PBX Port A, "B" for PBX Port B, and/or "X" for the Aux Port.  If fewer than three source ports are indicated, the remaining characters in this field will not be used.

See Graphic.
Figure 15.5:  FTP Push File Names

  1. Data Type (One Character):  The selected Data Type (File Type).  NetLink will list the number for the data type selected at the FTP Push Configuration menu (see item 11 "Read Session").  These numbers are as follows:

    1. All: Both Alarm Records and Non-Alarm Records.

    2. Standard (Non-Alarm): Only Non-Alarm Records

    3. Alarm Filter 1 (All): All records that matched any clue defined for Alarm Filter 1.

    4. Alarm Filter 1 (By Clue): Only records that matched a specific clue defined for Alarm Filter 1.

    5. Alarm Filter 2 (All): All records that matched any clue defined for Alarm Filter 2.

    6. Alarm Filter 2 (By Clue): Only records that matched a specific clue defined for Alarm Filter 2.

    7. All Alarms: All records that matched any clue defined for either Alarm Filter 1 or Alarm Filter 2.

    For example, if Data Type is defined as "All" (item 1) then the file name will have a "1" in this field.

  2. File Extension (Three Characters; Optional):  NetLink can append a sequentially numbered (000 to 999) three digit extension.  This number will be incremented after each successful data transfer.  If the Data Type or Source Port are changed, the file extension will be reset to "000".

Examples:


15.4.2. FTP Push Start Time

The "Start Time" parameter in the FTP Push Configuration menu allows you to specify an exact start time for an FTP Push operation. The Start Time is indicated using 24 hour (military clock) format. Note that the FTP Push operation specified by the FTP Push Start Time will be performed in addition to any Periodic Push actions that are defined, and that after the FTP Push Start Time elapses, additional Periodic Pushes will be scheduled relative to this user defined Start Time.

For example, assume that the periodic push value is 120 minutes (two hours.) Normally, NetLink might perform a periodic push at 1:30, 3:30, 5:30 and etc. However, if the FTP Push Start Time is then set at 4:00, NetLink will perform the 1:30 and 3:30 periodic pushes according to the previous schedule, but will then perform an additional FTP push at 4:00 (as specified by the FTP Push Start Time), the timer will then be reset, and the next periodic push will not occur until 6:00 (two hours after the start time,) and additional periodic pushes would be scheduled for two hour intervals after the FTP Push Start Time.

Providing that all FTP Server parameters are defined, and the real-time clock has been accurately set, the FTP Push Start Time will cause the unit to perform one FTP Push at the specified start time, and then reset the timer for Periodic Push operations. Once the FTP Push Start Time is selected, it will be applied once during the next 24 hour period, and that Start Time will effectively be established as the new "zero hour" for timing future periodic push operations.

Note: Although the FTP Push Start Time will normally only be observed once during the 24 hour period after it is first set, the FTP Push Start Time will also apply when any of the following events occur:


 
FTP SERVER CONFIGURATION
 
FTP SERVER PARAMETERS 
1. User Name: 	    (undefined) 
2. Password: 	    (undefined) 
3. Filename: 	    (undefined) 
4. Auto Delete:     Off 
5. Audit Trail:     Off 

MISCELLANEOUS 
11. Stop FTP Session

Enter Selection, 
Press <ESC> to return to previous menu ... 

Figure 15.6:  FTP Server Configuration Menu (Defaults Shown)


15.5. The FTP Server Feature


The FTP Server feature enables the NetLink unit to function like a standard FTP server. You can connect to the NetLink using the FTP client program of your choice, and then select and retrieve files. In order to use this feature, your installation must include the following components:


15.5.1. Configuring the FTP Server Feature

To configure the FTP Server function, access command mode as described in Section 18.1. From the Main Menu, type 28 and press [Enter] to display the FTP Server Configuration menu (Figure 15.6). This menu is used to define parameters that will be employed when a user attempts to create an FTP connection with the NetLink unit. To define FTP Server Parameters, key in the number for the desired item, press [Enter], then follow the instructions in the submenus. The FTP Server Configuration menu includes the following items:

FTP Server Parameters:

  1. User Name: The name that a remote user will enter at their FTP program's connect menu or prompt in order to create an FTP connection to the NetLink unit. (Up to 16 Characters; Default = Undefined).

  2. Password: The password that a remote user will enter at their FTP program's connect menu or prompt in order to create an FTP connection to the NetLink unit. (Up to 16 Character; Default = Undefined).

  3. Filename: The first four characters of the filename that the FTP Server function will assign to each category of data stored in buffer memory. The complete filename will consist of these four characters, one character which indicates the source port, and two characters which indicate the data type. For more information, see Section 15.5.3. (Up to four characters; Default = Undefined).

    Note: If you are using the FTP Server function to retrieve data from several different NetLink units, a unique file name should be assigned to each unit. This will prevent the data from one unit from overwriting data from another unit.

  4. Auto Delete: Enables / Disables the Auto Delete function for FTP Server operations. When enabled, NetLink will delete records from buffer memory after your FTP client acknowledges reception. (Default = Off).

    Notes:

    • When Auto Delete is enabled, NetLink will only delete records after your FTP client acknowledges reception. If the data transfer is aborted or interrupted, the Auto Delete Function will not delete records from memory.
    • When Auto Delete is enabled, the unit will not display a prompt before deleting records from buffer memory.
  5. Audit Trail: Enables / Disables the Audit Trail for FTP Server operations. When enabled, NetLink will create a log which lists all FTP connections, including the duration of the connection, password entered, and status at disconnection. (Default = Off).

Miscellaneous:

  1. Stop FTP Session: Aborts any FTP session currently in progress.


15.5.2. Retrieving Data Using FTP Server

Since the FTP Server feature will function with a variety of different FTP clients (e.g. DOS FTP, WS FTP, etc.), the exact procedure will differ slightly depending on the client used. Although this section describes the general concept for transferring data using the DOS FTP client, note that the general concept can also be applied to other FTP clients.

Note: When the FTP Server feature retrieves data, records cannot be selected according to the alarm clue matched.

  1. From the DOS prompt at your remote PC, type FTP ipaddress and press [Enter] (where ipaddress is the IP address assigned to the NetLink unit). Note that the NetLink's IP address is set using the Network Parameters menu as described in Section 4.4.5.

  2. The FTP Server (NetLink) will acknowledge that a connection has been made, and that the NetLink FTP server is ready. The FTP client will then prompt you to enter your username. Key in your username and then press [Enter]. Note that the username is defined using the FTP Server Configuration menu as described in Section 15.5.1.

  3. If the valid username is entered, the FTP Server will return a message which indicates that the username was accepted. The DOS FTP client will then prompt you to enter your password. Key in your password and press [Enter]. Note that the password is defined using the FTP Server Configuration menu as described in Section 15.5.1.

  4. If the valid password is entered, the FTP Server will return a message which indicates that the login was accepted, and the FTP client will display the "FTP>" prompt.

    Note: NetLink will allow three attempts to enter a correct user name or password.

  5. At the "FTP>" prompt, type dir and press [Enter]. The FTP Server (NetLink) will return a directory listing which indicates the names and status of the various files which contain the buffered call data.

    1. Each file will contain a specific type of data, received from a specific NetLink input port (e.g. PBX Port A). The name of each file indicates the Data Type and Source Port for all records contained in the file. For more information on file names for the FTP Server function, please refer to Section 15.5.3.

    2. The directory listing will also indicate the number of records in each file, and the "Free" status of each file. Any file which is currently partitioned to another user will be listed as "Locked".

  6. Refer to the displayed file names, and select the file which contains the data that you need to retrieve. At the "FTP>" prompt, type get filename and press [Enter] (where filename is the name of the file which contains the data that you need).

  7. The FTP Server (NetLink) will return a series of response messages, and the selected file will be transferred to the current directory on your remote PC. To retrieve additional files, repeat step 6 above.

  8. When you have finished retrieving files, type bye and press [Enter]. The FTP connection will be terminated.



 
c:\data\ ftp 192.168.100.236 
Connected to 192.168.100.236. 
220 NetLink FTP server ready. 
User (192.168.100.236: (none)): WTI 
331 User name okay, need password 
Password: 
230 Login accepted. 
ftp> dir 
200 PORT command successful. 
150 Opening data connection. 
File 		Records  Status 
testAST 	   1172  Locked 
testAA1 	    990  Locked 
testAA2 	      0  Free 
testBST 	   1133  Locked 
testBA1 	    706  Locked 
testBA2 	      0  Free 
testXST 	   1432  Free 
testXA1 	      0  Free 
testXA2 	    970  Free 
226 Transfer complete. 
ftp: 350 bytes received in 0.16 Seconds 2.19 Kbytes/sec. 
ftp> get testXST 
200 PORT command successful. 
150 Opening data connection. 
226 Transfer complete. 
ftp: 107400 bytes received in 29.33 Seconds 3.66 Kbytes/sec. 
ftp> bye 
221 Goodbye 
c:\data\ 

Figure 15.7:  FTP Server Example


FTP Server Example:

Figure 15.7 shows the commands and responses that might result when a DOS FTP client connects to the NetLink FTP Server, and retrieves a file named "testXST". In Figure 15.7, note that all commands entered by the user are shown in bold text.

  1. In the first line of Figure 15.7, the user invokes the FTP command at the DOS prompt, specifying the IP address for the NetLink unit. Two response messages are then displayed to acknowledge the connection, and indicate that the server is ready.

  2. The DOS FTP client then prompts for a username. The user keys in the username "WTI" and presses [Enter]. The FTP server responds with a message that verifies that the username was valid.

  3. Next, the FTP client prompts the user to enter the password. The user keys in the password and then presses [Enter]. The FTP server then verifies that the Login was accepted. Note that the password is not echoed back to the FTP client, and is therefore not shown in this example.

  4. When the FTP client displays the "ftp>" prompt, the user keys in the dir command and presses [Enter] to display the names of the files that are available for retrieval. The dir command also displays the number of records in each file, and the Locked/Free status of each file. Files that are listed as "Locked" are currently partitioned by another user.

  5. In this example, the user wishes to retrieve the file that contains standard, non-alarm (ST) records that were received via the Auxiliary Port (X). Therefore, the name of the file that must be retrieved is "testXST". For more information on file naming conventions for the FTP server function, please refer to cSection 15.5.3. The user then checks the dir listing, locates the desired file, and checks to make certain that it is free.

  6. At the "ftp>" prompt, the user keys in the "get testXST" command to retrieve the desired file. Several response messages are displayed to indicate that the PORT command was successful, the data connection was opened, and that the transfer is complete. The FTP speed statistics are then listed. At this point, the file "testXST" has been downloaded to the resident directory on the user's PC.

  7. The FTP client displays the "ftp>" prompt again, and the user types "bye" and presses [Enter] to terminate the FTP session. This command is followed by a response message which indicates that the connection was successfully terminated.


15.5.3. File Names for the FTP Server Function

When your FTP program connects to the NetLink unit, it will display a series of file names. Each file name denotes the type of data stored in the corresponding file. The file names generated by the FTP server function are based on the user-selected basic file name, the source port that collected the data, and the data type. As shown in the example in Figure 15.8, the file name will consist of the following components.

Note: This file naming convention applies only to the FTP Server function. A different convention is used when data is transferred using FTP Push. For more information, please refer to Section 15.4.1.

  1. File Name (Up to Four Characters):  The base file name that is defined via item number 3 in the FTP Server Configuration menu. If the file name is not defined, NetLink will use the first three characters of the Site ID message.  If the Site ID message has not been defined, NetLink will use the letters "PNL".  Note that if the defined file name is less than four characters long, then NetLink will not use the remaining characters in this field.


See Graphic.
Figure 15.8:  FTP Server File Names

  1. Source Port (One Character):  NetLink will enter one character to indicate the port which originally received this data; the letter "A" indicates PBX Port A, "B" indicates PBX Port B, and "X" indicates the AUX Port. Note that files created by the FTP Server Function will only contain data from one input port.

  2. Data Type (Two Characters):   NetLink will list one of three different data types: ST indicates that the file contains Standard (Non-Alarm) data, A1 indicates that the file contains records that matched Alarm Filter 1, and A2 indicates that the file contains records that matched Alarm Filter 2.


Examples:


15.5.4. Commands Supported by FTP Server

The FTP Server function supports the following FTP commands.


15.5.5. Response Messages Generated by the FTP Server Function

The FTP Server function will send the following messages in response to commands issued by the FTP client:

Positive Preliminary Reply
150 Opening data connection.

Positive Completion Reply
200 Type set to A.
200 Type set to I.
200 PORT command successful.
200 NOOP command successful.
214 Syntax: ABOR (abort operation)
214 Syntax: DELE <sp> filename
214 Syntax: HELP [<sp> <string>]
214 Syntax: LIST (return file list)
214 Syntax: NOOP (no operation)
214 Syntax: PASS <sp> password
214 Syntax: PORT <sp> h1, h2, h3, h4, p1, p2
214 Syntax: PWD (return current directory)
214 Syntax: QUIT (terminate service)
214 Syntax: RETR <sp> filename
214 Syntax: SYST (get type of OS)
214 Syntax: TYPE <sp> [A | I]
214 Syntax: USER <sp> username
214 Syntax: XPWD (return current directory)
214 The following commands are currently supported:
    ABOR DELE HELP LIST NOOP PASS PORT
    PWD QUIT RETR SYST TYPE USER XPWD
214 Direct comments to root.
215 UNIX Type: WTI Server: "NetLink" OS: "WTIOS"
220 NetLink FTP server ready.
221 Goodbye.
226 Transfer complete.
226 Abort successful.
230 Login accepted.
250 DELE command successful.
257 "/" is current directory.

Positive Intermediate Reply
331 User name okay, need password.

Transient Negative Completion Reply
421 Too many attempts, closing control connection.
425 Can't open data connection.
426 Can't build data connection: Connection refused.
426 Transfer aborted. Data connection closed.

Permanent Negative Completion Reply
500 Invalid userid/password.
500 Syntax error (command unrecognized).
501 Syntax error (invalid argument).
502 Unknown help command.
530 Please login with USER and PASS.
530 Already logged in.
530 TYPE is not supported.
550 File can't be retrieved, partition set by other port.
550 File can't be deleted, partition is not set.
553 File doesn't exist.
553 File is empty.



15.6. The Auto Delete Function


When the Auto Delete option is enabled, NetLink will delete data from internal memory immediately after the polling device acknowledges reception

Notes:



15.7. Zmodem Data Release Mode


When using Zmodem to release data, make certain your communications program (e.g. ProComm) is set to prompt for a new file name when downloaded data is stored. This will prevent the communications program from accidentally overwriting data from the previous download. When NetLink's Auto Delete function is enabled, the "prompt for filename" option also prevents the unit from deleting unread data when ProComm's crash recovery feature is enabled.