Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

[Imported] how to get a list of the all the dnp events brought back from an outstation for the last hour

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • [Imported] how to get a list of the all the dnp events brought back from an outstation for the last hour
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
95
BevanWeiss
Spock BevanWeiss
89
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2019-11-06 03:07 AM . Last Modified: ‎2023-05-03 12:29 AM

0 Likes
1
975
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2019-11-06 03:07 AM . Last Modified: ‎2023-05-03 12:29 AM

[Imported] how to get a list of the all the dnp events brought back from an outstation for the last hour

>>Message imported from previous forum - Category:ClearSCADA Software<<
User: Roughneck42, originally posted: 2018-12-07 19:40:36 Id:335
hi, new CS user here. A customer has a number of outstations that are creating an unknown number of events per hour. I am looking for a way to get the last hours historic data per point into Excel so that we can see how many events per outstation and per point there are. Any suggestions? FYI there are 22 outstations and about 2000 points in total being logged

Labels
  • Labels:
  • SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2019-11-06 03:08 AM

0 Likes
0
974
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2019-11-06 03:08 AM

>>Responses imported from previous forum


Reply From User: dmercer, posted: 2018-12-09 21:22:37
To get data into excel use can use SQL with either a SQL Export object in the database or by using Querypad.

There are data fields in ClearSCADA 2017R2 for all objects for EventCountCurrentHour and EventCountPreviousHour. I'm not sure in which version this was introduced.

eg.
SELECT FullName, EventCountPreviousHour
FROM CDBObject
WHERE EventCountPreviousHour 0
ORDER BY EventCountPreviousHour DESC

If those aren't there or aren't the right data for what you need, you could add metadata fields to the points, and run logic every hour to take the difference between the process count now and the previous process count and the move the current process count into the metadata field for previous process count.


Reply From User: adamwoodland, posted: 2018-12-09 22:21:36
You can also get the data using CDBHistoricFile, but this works at a weekly level. So what you would need to do is query the latest granule from CDBHistoricFile, and then X minutes later query again and calculate the difference.


Reply From User: sbeadle, posted: 2018-12-10 08:10:54
Some more info to add clarity.
1. Events are event messages. File duration (granule) is 1 hour per file per stream. The comment from [at]dmercer has a query for event counts which applies to such event messages.
2. Historic data are value/time/quality sets for a point. There is 1 file per week per point. (There are outstation fields which count how many values have been written, and also a count on the Historic aggregate, but these are not reset each week).


Reply From User: Roughneck42, posted: 2018-12-11 22:32:35
thank you, I need to clarify that the events I am referring to are DNP3 class events per point. So basically we would like to be able to view a list of the Historic values of each point per outstation with date time stamp going back 5 hours. So query CDBHISTORIC for point name, outstation name, time, value, reasondesc, status, ...


Reply From User: geoffpatton, posted: 2018-12-12 20:34:41
You have to use the point's ID there is no name in CDBHistoric. You can lookup the ID from the CDBPoint table and filter on name or fullname. Should be able to do a join on the ID and RecordID to get the name and values displayed together.

I forgot that you wanted the Outstation CDBPoint won't have that. You will have to use the specific point type tables such as CDNP3ANALOGIN.

I use SQL just enough to forget half of what I did so hopefully I am not confusing you.


Reply From User: BevanWeiss, posted: 2019-01-03 21:30:14
[at]Roughneck42 said:
thank you, I need to clarify that the events I am referring to are DNP3 class events per point. So basically we would like to be able to view a list of the Historic values of each point per outstation with date time stamp going back 5 hours. So query CDBHISTORIC for point name, outstation name, time, value, reasondesc, status, ...

DNP3 Class Events are a bit more hidden by the overall ClearSCADA system. Querying CDBHistoric for just a count of entries over time wouldn't do it, you'd need to filter for only Value Change type entries, otherwise you'll get your Class 0 poll entries (Current Data) also. Which are technically not 'class events'.

What we've done before for a rough figure is to have a calculation point executed periodically and taking the CDNP3OS property values for the various DNP3 polls etc.. then calling Reset Poll Statistics and Reset Point Statistics every midnight.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Reply 1
sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2019-11-06 03:08 AM

0 Likes
0
975
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2019-11-06 03:08 AM

>>Responses imported from previous forum


Reply From User: dmercer, posted: 2018-12-09 21:22:37
To get data into excel use can use SQL with either a SQL Export object in the database or by using Querypad.

There are data fields in ClearSCADA 2017R2 for all objects for EventCountCurrentHour and EventCountPreviousHour. I'm not sure in which version this was introduced.

eg.
SELECT FullName, EventCountPreviousHour
FROM CDBObject
WHERE EventCountPreviousHour 0
ORDER BY EventCountPreviousHour DESC

If those aren't there or aren't the right data for what you need, you could add metadata fields to the points, and run logic every hour to take the difference between the process count now and the previous process count and the move the current process count into the metadata field for previous process count.


Reply From User: adamwoodland, posted: 2018-12-09 22:21:36
You can also get the data using CDBHistoricFile, but this works at a weekly level. So what you would need to do is query the latest granule from CDBHistoricFile, and then X minutes later query again and calculate the difference.


Reply From User: sbeadle, posted: 2018-12-10 08:10:54
Some more info to add clarity.
1. Events are event messages. File duration (granule) is 1 hour per file per stream. The comment from [at]dmercer has a query for event counts which applies to such event messages.
2. Historic data are value/time/quality sets for a point. There is 1 file per week per point. (There are outstation fields which count how many values have been written, and also a count on the Historic aggregate, but these are not reset each week).


Reply From User: Roughneck42, posted: 2018-12-11 22:32:35
thank you, I need to clarify that the events I am referring to are DNP3 class events per point. So basically we would like to be able to view a list of the Historic values of each point per outstation with date time stamp going back 5 hours. So query CDBHISTORIC for point name, outstation name, time, value, reasondesc, status, ...


Reply From User: geoffpatton, posted: 2018-12-12 20:34:41
You have to use the point's ID there is no name in CDBHistoric. You can lookup the ID from the CDBPoint table and filter on name or fullname. Should be able to do a join on the ID and RecordID to get the name and values displayed together.

I forgot that you wanted the Outstation CDBPoint won't have that. You will have to use the specific point type tables such as CDNP3ANALOGIN.

I use SQL just enough to forget half of what I did so hopefully I am not confusing you.


Reply From User: BevanWeiss, posted: 2019-01-03 21:30:14
[at]Roughneck42 said:
thank you, I need to clarify that the events I am referring to are DNP3 class events per point. So basically we would like to be able to view a list of the Historic values of each point per outstation with date time stamp going back 5 hours. So query CDBHISTORIC for point name, outstation name, time, value, reasondesc, status, ...

DNP3 Class Events are a bit more hidden by the overall ClearSCADA system. Querying CDBHistoric for just a count of entries over time wouldn't do it, you'd need to filter for only Value Change type entries, otherwise you'll get your Class 0 poll entries (Current Data) also. Which are technically not 'class events'.

What we've done before for a rough figure is to have a calculation point executed periodically and taking the CDNP3OS property values for the various DNP3 polls etc.. then calling Reset Poll Statistics and Reset Point Statistics every midnight.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of