# Anyone know of a way to dump all the current tag values from the OPC-UA server?

**URL:** <https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [June 2, 2023, 1:17pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481 "2023-06-02T13:17:07Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 2, 2023, 3:02pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/21 "2023-06-02T15:02:25Z")

</div>

This isn't a pcap file, it's just the text output of your tshark command. Did you use `-w` to write to a capture file like I suggested?

I'm leaving for the weekend, so you've got some time to figure this out.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 2, 2023, 3:04pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/22 "2023-06-02T15:04:52Z")

</div>

ugh, another one coming in like 5 minutes

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 2, 2023, 3:13pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/23 "2023-06-02T15:13:47Z")

</div>

File is too big, what's your email address.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 2, 2023, 3:30pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/24 "2023-06-02T15:30:43Z")

</div>

I sent you a DM with a dropbox link to upload to.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 2, 2023, 3:34pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/25 "2023-06-02T15:34:20Z")

</div>

done, thx

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 5, 2023, 2:59pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/26 "2023-06-05T14:59:09Z")

</div>

Hope you had a good weekend:).

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 5, 2023, 3:03pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/27 "2023-06-05T15:03:01Z")

</div>

Do you have logs from Ignition during the time period you ran this test / got this capture?

What happens to the Ignition Gateway? Nothing? It crashes and restarts?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 5, 2023, 3:44pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/28 "2023-06-05T15:44:53Z")

</div>

> [@Kevin.Herron](#):
>
> It crashes and restarts?

This can't be it, I can see the encrypted OPC UA traffic I assume is from the loopback connection before, during, and after the traffic from your client.

I don't know what's happening from just the Wireshark. The first time your client connects it does its reading and browsing and then eventually it looks like the server closes the connection abruptly.

It then reconnects, does some browsing and reading, and then this time the client just closes the connection suddenly.

All of this time the server remains online and the encrypted loopback connection remains operational.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 5, 2023, 8:49pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/29 "2023-06-05T20:49:27Z")

</div>

I'll get logs. Ignition still runs. Let me setup another capture with logs to go with it.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 6, 2023, 5:52am UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/30 "2023-06-06T05:52:54Z")

</div>

Just added more logs to that dropbox. It has the server logs and wireshark.bin is the wireshark logs.Thx

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 6, 2023, 12:52pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/31 "2023-06-06T12:52:14Z")

</div>

Nothing interesting in the logs. Not sure I was looking for anything specific, but after filtering out all the Modbus logging there was nothing that stood out.

It's interesting that this capture shows the same pattern - first connection the close comes from server, second connection the close comes from the client.

I wonder if it's neither and there's something about this environment 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 6, 2023, 2:17pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/32 "2023-06-06T14:17:32Z")

</div>

The script running the app will immediately attempt again if there is a failure, I'm just killing it to grab logs and send to you.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 6, 2023, 3:00pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/33 "2023-06-06T15:00:22Z")

</div>

Try turning these loggers to DEBUG level and running it again:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/c/0c6231d92df9daa618262848ee11b5e8a20e1264.png)

I can't find anywhere in the server where we'd close the channel without there being an error that caused it, so still thinking it's environment right now.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 6, 2023, 3:11pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/34 "2023-06-06T15:11:20Z")

</div>

will do, I'll send logs when done

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [June 6, 2023, 3:24pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/35 "2023-06-06T15:24:00Z")

</div>

When I want to put tags into a database regularly, I use a transaction group.  
Transaction groups can target specific rows to overwrite.

* * *

Recursion implies using loops of loops.  
Iteratively might speed up the process even if you did one loop for finding the bound first.  
You could do it in groups rather than all at once.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 7, 2023, 4:15pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/36 "2023-06-07T16:15:27Z")

</div>

Ok, I solved this one...

Your client opens the secure channel with a lifetime of 8640000ms.

Then, ~145 seconds later, it renews that secure channel for some reason, and changes the lifetime to 120000ms.

Then, 2 minutes later, having not received another secure channel renewal, the secure channel expires and the Ignition OPC UA server closes the connection.

Attached is a capture with just the relevant packets.

[securechannel.pcapng](https://forum.inductiveautomation.com/uploads/short-url/k4z2TN7IbFZa6ssw64pnj4xxgIU.pcapng) (1.7 KB)

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [June 7, 2023, 4:23pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/37 "2023-06-07T16:23:35Z")

</div>

I do see some 120000 hard coded in the lib. I'll hack the appropriate ones.

Thanks,

[Previous page](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481.md?page=1)
