ExportUtility Help LIT1201952
ExportUtility Help LIT1201952
Concepts
Export Utility Related Documentation
Table 1 lists documentation related to Export Utility.
Table 1: Export Utility Documentation
For Information On See Document LIT Number
Metasys System Requirements Metasys System Extended Architecture Overview LIT-1201527
Technical Bulletin
Demand Limiting Load Rolling (DLLR) DLLR Technical Bulletin LIT-12011288
ADS/ADX Installation ADS, ADX, and SCT Installation and Upgrade LIT-12011521
1
Instructions Wizard
ADS-Lite Installation ADS-Lite Installation and Upgrade Wizard
1 LIT-12011688
Help
Alarms Alarm and Event Management section of the LIT-1201793
2
How to Extract Data in Multiple Formats Metasys Export Utility Help LIT-1201952
2
Export Utility License Activation Software License Activator Technical Bulletin LIT-1201654
Metasys Advanced Reporting System Metasys Advanced Reporting System Help LIT-12011312
2
1 Our computer platform and memory recommendations are not meant to imply that older or slower machines are not usable.
Refer to the Network and IT Guidance for the BAS Professional Technical Bulletin (LIT-12011279) for more information regarding
computer/server recommendations.
Scheduler
You may schedule data collection at a predefined time (for example, every day at 1:00 A.M.). The Scheduler
component maintains a schedule file with the following information: encrypted Web Services authentication details,
Export Utility definition file name, date, time, and interval. The Scheduler reads the Export Utility definition file
whenever a schedule is defined or an existing schedule is modified.
For scheduling, the computer must remain connected to the network while data is being extracted from the engine
or server.
Note: Export Utility does not support writing reports to network drives on Novell® client computers.
Recommendations
When you extract audit data:
• Use the scheduling service to extract the data at a time when the Metasys system is not busy (for example,
during off-peak hours when users are not logged on to the system).
• Do not schedule the extraction of data near the engine’s ADS Delivery Time because this time is when the engine
transfers its information to the server. By default, each engine’s ADS Delivery Time is 12:15 A.M.
• Choose the Annotations export attribute only when necessary, as this attribute requires additional time to retrieve
data.
Important: Do not rename these sheets. Changing the names of the sheets breaks the references within the VBA
code. The example files do not work properly if these references are broken.
Each DLLR example files contain the following Excel sheets:
Energy Report
This sheet displays the DLLR energy report output/chart after you run the report.
Daily Data
This sheet contains a numerical representation of the data displayed on the Energy Report sheet in 1-day increments.
Data by Minute
This sheet contains a numerical representation of the data displayed on the Energy Report sheet in 1-minute
increments.
Configuration
This sheet allows you to configure the DLLR energy report parameters. See Configuring the DLLR Example Files.
Example DLLR Energy Report Output
The DLLR example files output a DLLR energy report similar to the one shown in Figure 1.
The example files offer visual indication if the DLLR energy report interval you request is more than one month. This
invalid report interval is identified by the Report End Date highlighted in red (Figure 3).
Figure 3: Invalid Report Interval
Detailed Procedures
Logging on to the Metasys System through Export Utility
This procedure allows you to open Export Utility and log on to the Metasys system to access data.
Figure 4 displays two pieces of important information in the bottom bar on the screen: result of the logon attempt
appears on the left side, and the privileges assigned to the user currently logged on appears on the right side. If a
logon attempt fails, contact your Metasys system administrator. See Table 4 for details.
2. Enter the name or IP address of the Site Director and the Metasys system user name and password. (Passwords
are case sensitive.)
Note: If your IT department uses a port other than Port 80 (default), enter a colon followed by the port number
after the Site Director IP address (for example, 172.17.13.233:8080). If you do not enter a port number,
the default port is used (Port 80).
Note: If the time on your computer is out of synchronization with the server by more than 5 minutes, you cannot
log on to Export Utility. Adjust the time to match the server and try again. For information on time
synchronization, refer to the Time Management section of the Metasys system Help (LIT-1201793).
3. Click Log In. When the connection is successful, Continue becomes active. For information on the status bar
at the bottom of the Log In screen, see Table 4.
Table 4: Access - User Privileges
User Privilege Meaning
Access You need to enter the Site Director and logon information, then click Log In.
Access Denied Your logon attempt fails for a reason other than those listed in this table and
the error message Log in to Metasys failed appears.
View Audit Only You can view audit data only.
Metasys Account Expired Your Metasys system account is expired and the error message Log in to
Metasys failed appears.
Metasys Account Disabled Your Metasys system account is disabled and the error message Log in
to Metasys failed appears.
Metasys Account Locked Your Metasys system account is locked and the error message Log in to
Metasys failed appears.
View All You can view all Metasys system information and export all trend, alarm, and
audit data.
3. Select one of the frequently used intervals from the drop-down menu using information in Table 5.
1 Frequently Used Intervals are relative. For instance, if you choose Last Month, the UI shows the last month relative to the
current month. If scheduled, however, the Scheduler determines Last Month at runtime.
4. Click the Advanced tab (Figure 7) if you wish to narrow the date/time range chosen on the Basic tab. Select or
clear days of the week check boxes for which you wish to extract the data. Narrow the time for which Export
Utility extracts data using the drop-down menus for the Start and End Time fields (from 12:00 A.M. to the present
time), as defined by the system clock of the computer running Export Utility. For example, if the computer uses
the 24 hour clock (military time), make sure you click the 24 Hrs field in the Time section of the Advanced tab.
Example: To extract data only for the operating hours of a building, change the Start Time to 8:00 A.M. and the
End Time to 5:00 P.M.
2. On the Advanced tab, select a desired attribute filtering option from the drop-down menu. The attributes are
based on the Metasys system Object Name.
3. Specify the filtering criteria for each reference point for the corresponding Value field.
Note: The value field supports wildcards (*). For example, set up a filter of Field Point = *-T to extract all trends
on temperature (-T) points.
4. Add a new filter row by entering a value for the last filter. (Click Remove Filter to remove the current row of
filtering.)
5. Add the following relational operators to narrow the filtering criteria in the expression: AND, OR, NOT.
Figure 9 shows filtering to return trend data for all objects on any NIE engine, on the N1 Migration1 trunk, and
on the UNT-004 controller, that are trended on the Present Value attribute.
9. Click Next. The Export Output Selection Screen appears. Proceed to Selecting File Formats for Output.
Selecting Alarm and/or Audit Data
See Performance Considerations for extracting audit data before you begin.
The Alarm/Audit Data Selection screen has three main options for extracting data: Alarm, Audit, and Both.
1. Click Alarm.
2. If desired, click Get All Alarms to extract data for all available alarms. (This disables all filtering options.)
3. On the Basic tab, click the Point Selection tab. Click the individual devices and/or points in the Alarm Point
Selection pane for which you wish to have the data exported, and click Add. The devices/points that you select
appear in the Export Data for the following points... pane.
Note: Choose at least one object on the Point Selection tab to ensure that output files contain some data.
4. On the Basic tab, click the Alarm Selection tab. Using Table 7, select one or more types of alarms whose data
you wish to export for the devices/points chosen on the Point Selection tab.
Note: Select at least one alarm data type on the Alarm Selection tab to ensure that output files contain some
data.
5. Click the Advanced tab, and select a desired reference point filtering option from the drop-down menu using
Table 8.
Table 8: Alarm Attributes for Filtering
Attribute Description
Alarm Object Select this option to filter on the alarm object’s name path reference.
For example, select Alarm Object and type *ZN-T in the Value field to extract all data
on alarm objects that end with ZN-T, or zone temperatures.
Alarm Value Select this option to filter on the alarm value using the relational operand that becomes
enabled.
For example, select Alarm Value >= and place 80 in the Value field to extract data on
only those alarms greater than or equal to 80.
Alarm Text Select this option to filter on alarm text as defined in the Metasys system alarm
messages.
For example, in the Metasys system, place the word critical in the alarm text for your
most critical alarms, then select Alarm Text here from the drop-down menu and type
*critical* in the Value field to extract data with that text in the alarms.
6. Specify the filtering criteria for each reference point for the corresponding value field. See Example Expressions.
Note: The Value field supports wildcards (*).
7. Add a new filter row by entering a value for the last filter. (Click Remove Filter to remove the current row of
filtering.)
8. Add the following relational operators using Table 9 to narrow the filtering criteria in the expression: AND, OR,
NOT. (Relational operators only apply in this case to Alarm Value.)
Table 9: Relational Operators
Relational Operator Meaning
= Equal to
!= Not equal to
>= Greater than or equal to
<= Less than or equal to
> Greater than
< Less than
Note: This figure represents an advanced alarm filter that would return data for all alarm objects ending in -T
(all temperatures) that were in alarm at a value of 80 degrees or higher, but did not include the word
Non-Critical in its Alarm Text.
9. After you complete filters on the Advanced tab, click OK. The Basic tab appears with the filter results in the right
pane.
10. Select the desired Alarm Export attributes according to Table 10. These attributes appear as column headings
for the output files. The default column headings are Date, Time, and Value.
Table 10: Alarm Export Attributes
Attribute Meaning
1 Displays the unique reference name for the alarm object that is the full path name of
Name Path Reference
the Metasys system All Items View.
For example, WeCare4U:AC1/N2 Trunk 1.UNT-1.DA-T.Present Value
1 Displays the alarm object names.
Object Name
For example, DA-T.
Acknowledge Req Displays whether or not the alarms required acknowledgment (True/False).
Acknowledge Status Displays the status indicating if an alarm was acknowledged (True/False).
Object Value Displays the alarm object value (for example, 98).
Object Units Displays the alarm object value units of measure (for example, deg F).
11. Click Next. The Output Selection screen appears. Proceed to Selecting File Formats for Output.
Selecting Audit Data
For Audit selection, the Basic tab has two subtabs: Audit Selection and User Selection.
Consider the following when selecting users:
• Make sure that you are logged on to the Site Director (from the Log In screen). If you are logged on to another
supervisory device, you may not be accessing the correct user list.
• The default Metasys system user name is MetasysSysAgent, and this user account cannot be deleted. This
account is typically used by a Johnson Controls® representative.
• IntraComputer is the default Metasys system user that supervisory devices use to communicate with the Site
Director. The most common audit entry for IntraComputer is User Password Changed when supervisory devices
change their internal passwords for Metasys system security. Check the Metasys system Audit Viewer for other
types of entries and select this user as necessary.
• The [Blank User Name] option can be selected for retrieving audit entries that were associated to no user. For
instance, audit entries related to a supervisory device resetting, such as Startup, are entered without a user
assigned. Check the Metasys system Audit Viewer for other types of these entries, and select this non-user as
necessary.
To select audit data:
1. Click Audit.
2. Click Get All Audits if you wish to extract data for all available audits. (This option disables all filtering options.)
3. Click the User Selection tab (Figure 16). All users that appear in the User Selection list box are the users defined
in the Metasys system of the supervisory device that you are logged onto.
4. Click users in the left pane, and click Add. The selected users appear in the Export Data for the following
users pane.
5. On the Basic tab, click the Audit Selection tab (Figure 17). Using information in Table 11, select one or more of
the check boxes to extract the desired audit data.
Note: Choose at least one action type on the Audit Selection tab (Figure 17) or output files do not contain any
data.
6. On the Advanced tab, select optional audit filtering options from the drop-down menu using the information in
Table 12.
7. Specify the filtering criteria for each reference point for the corresponding value field.
Note: The value field supports wildcards (*).
8. Add a new filter row by entering a value for the last filter. (Click Remove Filter to remove the current row of
filtering.)
9. Add the following relational operators to narrow the filtering criteria in the expression: AND, OR, NOT. (Relational
operators appear only for Previous and Post Values.)
Note: Audit Filter Example 1 represents an advanced audit filter that extracts data for all audit entries from
Extended Application and Data Servers (ADXs) (ADX must be part of the Item Name), for all nighttime
operators (assuming each nighttime operator’s username began with an N), with acknowledged alarms.
Note: Audit Filter Example 2 is an advanced audit filter that extracts data for all audit entries with an Audit
Description of Sample Interval, for trends that previously had values less than or equal to 300 seconds,
and were changed to a value of less than 300 seconds. You could set up this filter to ensure that
employees changed the trend samples above 5 minutes as instructed. If the output file did not extract
any data, the employees followed the instructions.
10. After you complete filters on the Advanced tab, click OK. The Basic tab appears with the filter results in the
Export Data for the following users pane.
11. Select the desired Audit Export attributes using the information in Table 13. These attributes appear as column
headings for the output files. The default column headings are Date, Time, and Value.
Table 13: Audit Export Attributes
Attribute Meaning
Audit Type Displays the audit types which correspond with the Class Level column in the Metasys
system Audit Viewer. For example, User Action and Critical System Event.
Audit Type App Displays the audit type application which corresponds with the Origin Application column
in the Metasys system Audit Viewer. For example, Device Manager, MCE, and System
Security.
User Displays the Metasys system users.
Action Type Displays the action types. For example, Command, Write, and Subsystem.
Audit Description Displays the audit descriptions which are defined by the Metasys system. For example,
User Login Successful, Download, and Operator Override.
Status Displays the audit entry status (for example, OK).
Previous Value Displays the previous values. For example, if a user changes the name of an engine
from NAE to NAE-1, NAE appears in this column.
1 For Microsoft Access output files, text entries are limited to 255 characters. If the number of characters is greater than
255, ... appears at the end of the cell. See the Performance Considerations section.
12. Click Next. The Output Selection screen appears. Proceed to Selecting File Formats for Output.
Example Expressions
Alarm
The following are example expressions for filtering alarms:
1. First row of criteria: ‘Alarm Object (Name Path Reference)’ and ‘Floor*’
2. Select all of the desired file format types using the information in Table 14.
Note: If you do not have Microsoft Excel or Microsoft Access software installed, these selections are unavailable
and appear dimmed.
Table 14: File Format Output Types
Type Extension Description
Tab Delimited Text File .txt Data is presented in a text document separated by tabs and
carriage returns.
1 .xls Data is presented in columns and rows.
Microsoft Excel
Hypertext Markup Language .htm Data is presented in columns and rows.
Comma Separated Value .csv Data is presented in a text document separated by commas
and carriage returns. The document can be viewed in Microsoft
Excel.
2 .mdb Data is presented in record sets in a table of a database.
Microsoft Access
Extensible Markup Language .xml Data is presented as separate tags.
1 Do not have the Microsoft Excel application running while exporting data to this file format. Doing so may cause errors. If
you do not have Microsoft Excel software installed, this selection is unavailable and appears dimmed.
2 For Microsoft Access output files, text entries are limited to 255 characters; if greater than 255 characters, then ... appears
at the end of the cell. See the Performance Considerations section. If you do not have Microsoft Access software installed,
this selection is unavailable and appears dimmed.
3. If desired, click the Advanced tab to select different destinations and/or file names for each selected output file
format. Click OK to save and return to the Basic tab.
For example, to save all files on the local hard disk, except for the HTML file, click the corresponding Browse
button, and select the desired network drive with the name Trends.html instead of the common file name Monthly
Trend Report.
Note: It is not necessary to change anything on the Advanced tab.
Note: The directory path, including the file name, is limited to a maximum of 260 characters for an export to be
successful. For Microsoft Excel, this path is limited to 218 characters. If the path exceeds these limits,
the report does not export.
4. Click Next. The Export Summary and Save Definition File screen (Figure 22) appears with all of the selected
information for the Export Utility Definition file.
Figure 22: Export Summary and Save Definition File Screen
2. Type a unique Schedule Name to identify this schedule in the Export Utility Scheduler. The Scheduler does not
allow two different schedules with the same name or two identical schedules with different names.
3. Select the schedule intervals for how often you wish to have the data exported using the information in Table
15. Select days and times from the drop-down menus for which the schedule runs. Options change on the screen
depending on the interval you choose.
Table 15: Schedule Intervals
Interval Description
One Time This type of schedule runs only once as you have defined.
Daily Selections range from every day to every 31st day.
Weekly Selections range from every week to every 52nd week. You can select the day the schedule
runs that week.
Monthly By Date Selections range from every month to every 12th month. You can select the day the schedule
runs from day 1 to day 31 of the month.
Monthly By Day Selections range from every month to every 12th month. You can select the day the schedule
runs from the first day type of the month until the 4th day type of the month. For example, the
user can select the schedule to run every month on the 2nd Friday of the month.
Yearly By Date Selections range from every year to every 12th year. You can select the month and day of
the year that the schedule runs.
1 If you access the Scheduler by right-clicking the Export Utility icon in the system tray, you cannot access this functionality.
See Figure 52 for the available options.
3. Click Exit.
Schedules are saved in the Scheduler queue. See Modifying an Existing Schedule to make changes to an existing
schedule.
2. On the Export Definition Selection screen (Figure 25), click Edit Existing Definition and click OK. The second
Export Existing Definition screen appears.
Figure 25: Export Existing Definition Screen
3. Click Browse and open the Export Utility definition file. By default, the location appears that was chosen for
definition files during installation.
4. Click Modify Definition and click Next. The Export Time Duration screen appears with the existing values.
5. Modify the values according to Creating a New Export Utility Definition.
Note: You cannot change a Trend definition to an Alarm/Audit and vice versa.
2. On the Export Definition Selection screen, click Edit Existing Definition and click OK. The Export Definition
Selection screen appears.
3. Click Browse and open the Export Utility definition file.
4. Click Export Data and click Next. The Data to Export screen appears.
2. Select the MSEAExportDLL reference check box, and click OK. The MSEAExportDLL reference now appears
in the Object Browser (Figure 27), and it is available for use. For information on VBA classes, see Table 18.
Note: In the Classes pane, if you click MEUDataExtractor, the items in Table 19 appear in the Members pane
to the right.
In Windows 7 OS, Windows Server 2008 R2 OS, and Windows Server 2008 OS, browse to
C:\ProgramData\Johnson Controls\MetasysIII\MEU\DLL Examples and open Billing Report Example.xls.
2. Customize the report to meet your needs.
Using the DLLR Example Files
Use the DLLR example files in the following order:
1. Create DLLR trends in your Metasys system. See Creating DLLR Trends.
2. Create the Export Utility Definition file. See Creating the Export Utility Definition (EUD) File.
3. Configure the DLLR example file. See Configuring the DLLR Example Files.
4. Run the report. See Running DLLR Reports.
5. View the report. See Viewing DLLR Reports.
6. Schedule the reports, if desired. See Scheduling DLLR Energy Reports in Windows XP.
Creating DLLR Trends
The DLLR example files read and display data from these DLLR object trend extensions.
To create DLLR trends, in the Site Management Portal UI, add trend extensions to the following attributes of the
DLLR object (Figure 28):
• Energy Rate: energy rate that DLLR is currently reading. Use 1-minute intervals for the extension.
• Active Demand Limit: current target that DLLR is trying to maintain. Use Change of Value (COV) for the
extension, and the DLLR example files fill in any gaps in the data.
• Unc Interval Demand: uncontrolled demand that shows what the demand would have been had DLLR not shed
any loads. Use 1-minute intervals for the extension.
• Amount Shed: current amount of energy that DLLR is shedding. Use 1-minute intervals for the extension.
4. Click Next.
5. In the Data Type Selection box, select Trend.
Figure 32: Data Type Selection Box
6. Click Next. The Export Summary and Save Definition File screen appears.
10. Click Next. The Export Summary and Save Definition File screen appears.
11. Review your selections (Export Summary and Save Definition File Screen).
Figure 35: Export Summary and Save Definition File Screen
12. Click Next to save the definition file. The Data to Export screen appears.
13. Choose to Export Now (to ensure if you are retrieving the appropriate date) or close the application using the
X button.
Custom Dates Select FALSE from the drop-down list if you selected Last Month as your interval. Select
TRUE if you selected Choose Date as your interval.
Note: The DLLR example files support only the Last Month or Choose Date for
Frequently Used Intervals (see Creating the Export Utility Definition (EUD) File).
Note: When Custom Dates is set to TRUE and the DLLR energy report is run (either
automatically or via the Run Report button), the Export Utility Definition file is
modified by the software to reflect the Report Start and End Dates.
Auto Upgrade Custom Dates If Custom Dates is set to TRUE, you can choose to automatically update the Custom
Date ranges (Report Start Date and Report End Date).
If Auto Upgrade Custom Dates is set to TRUE, each time the DLLR example files are
opened, the Report End Date + 1 month + 1 day is compared to the current date. If the
current date is equal to or greater than the Report End Date + 1 month + 1 day, the Report
Start and End Dates are increased by the number of month's difference between the
Report End Date and the current date.
IF (Report End Date + 1 month + 1 day) <= (Today's Date) THEN
Report Start Date = Report Start Date + (Today's Month - Report
End Date's Month) month(s)
Report End Date = Report End Date + (Today's Month - Report End
Date's Month) month(s)
END IF
2 When Custom Dates is set to FALSE, the Report Start Date automatically displays the
Report Start Date
first day of the last month. When Custom Dates is set to TRUE, choose a date using the
button.
Note: Do not manually edit this field as a formula handles the automation.
2 When Custom Dates is set to FALSE, the Report End Date automatically displays the
Report End Date
last day of the last month. When Custom Dates is set to 'TRUE', choose a date using the
button.
Note: Do not manually edit this field because a formula handles the automation.
Initial Active Demand Limit The value entered here is used to fill any gaps in data resulting from a COV Trend sample
rate. For example, if three targets are used throughout the day, On-Peak, Off-Peak, and
Semi-Peak, the Initial Active Demand Limit would be used to fill in the target from the
previous day. So, for the first day, Initial Active Demand Limit appears for each minute
until the first sample was retrieved. This method is only necessary when using a COV
trend sample rate for the Active Demand Limit.
1 For descriptions that mention drop-down lists, click the cell where you would like to make a selection. The drop-down arrow
then appears to the left of the cell.
2 The Report Start Date and Report End Date fields use the Microsoft Calendar control. These instructions assume that this
control has been installed and registered already when you installed Microsoft Office software.
5. Give the task a meaningful name (for example, Monthly DLLR Energy Report), then select monthly for the
interval (Figure 39). Click Next.
Figure 39: Task Name and Timing
6. Select the time and day information as appropriate (Figure 40). For example, if your DLLR energy report is
based on a Custom Date range of mm/09/yy - mm/08/yy, then choose the task to run on Day 9. Click Next.
8. Select Open advanced properties for this task when I click Finish (Figure 42). Click Finish.
9. When the Advanced Properties box appears (Figure 43), click the Task tab.
10. Modify the Run entry by adding the path and file name of the DLLR example, in quotations, after the link provided.
For example, when using Excel 2007 software with the DLLR_Excel 2007.xlsm file on a computer running the
Windows XP OS or Windows Server 2003 R2 OS, the Run statement should be the following, where the added
text is bold (Figure 43).
"C:\Documents and Settings\All Users\Start Menu\Programs\Microsoft Office\Microsoft
Office Excel 2007.lnk" "C:\Documents and Settings\All Users\Application Data\Johnson
Controls\MetasysIII\MEU\DLL Examples\DLLR_Excel 2007.xlsm"
4. The Trigger window appears (Figure 45). Select Monthly for the trigger. Click Next.
5. The Monthly window appears (Figure 46). Select the time and day information as appropriate. For example, if
your DLLR energy report is based on a Custom Date range of mm/09/yy - mm/08/yy, then choose the task to
run on Day 9. Click Next.
6. The Start a Program window appears (Figure 47). In the Program/script field, choose the directory path of the
appropriate Excel software from the file system. In the Add Arguments field, add the directory path of the DLLR
example in quotations. Click Next.
7. The Summary window appears (Figure 48). Verify the details of the task. Select Open the Properties dialog
for this task when I click Finish. Click Finish. The Properties dialog box appears (Figure 49).
8. In the Properties dialog box, select Run whether the user is logged on or not. Click Change User or Group…
if you would like to run the task as a different user.
10. A credentials window appears and prompts for the user's credentials. Enter your Windows credentials and click
OK.
Note: This option appears dimmed when the Scheduler service is already
running.
Stop Scheduler Stops the Scheduler service. The system tray icon border is red.
Note: This option appears dimmed and is not accessible when the
Scheduler service is not running.
Figure 52: Scheduler - View Only Access from System Tray Icon
Troubleshooting
Error Messages, Problems, and the Error Log
Error messages either appear as a dialog box when running the Export Now! portion of Export Utility or as entries
in the Error Log.
Tip: When using the Scheduler, check the Error Log regularly.
Building Efficiency
507 E. Michigan Street, Milwaukee, WI 53202
Metasys® and Johnson Controls® are registered trademarks of Johnson Controls, Inc.
All other marks herein are the marks of their respective owners. © 2013 Johnson Controls, Inc.