# 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:** 20\
**Page:** 1

<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, 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/1 "2023-06-02T13:17:07Z")

</div>

I was using freeopcua to loop through all the tags and get the values I needed. I had another apps that would subscribe to one tag from each udt, they all fail trying to traverse the tag tree now. We know we've overloaded the server, severely. I'm doing damage control and rewrote all the apps, except one, to go from the historian data. This one though gets all tags to dump to a snapshot database used for analytics on an hourly basis. I just need the current value from each tag to insert into that database. This is all in linux of course. Any ideas?Thx

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 2, 2023, 1:31pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/2 "2023-06-02T13:31:45Z")

</div>

There's the `system.opc.browse` function, but it has lots of caveats.. @Kevin.Herron can probably elaborate as he commented on my posts back in the day re this

---

<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, 1:38pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/3 "2023-06-02T13:38:29Z")

</div>

Can I run that outside of ignition, or is there an interface to run system commands from the command line in linux? This will be automated.Thx

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 2, 2023, 1:40pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/4 "2023-06-02T13:40:37Z")

</div>

> [@codersmurf](#):
>
> Can I run that outside of ignition

No. From outside, you will need to make an OPC UA connection.

Otherwise, to access internal APIs from outside, the common approach is to create an external API with the WebDev module.

---

<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, 1:43pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/5 "2023-06-02T13:43:18Z")

</div>

I kind of thought I would be screwed. Do you think the db load will be too much? We have 249573 active tags and we'll need to do single select for each one as we need to go from the historian.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 2, 2023, 1: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/6 "2023-06-02T13:44:07Z")

</div>

Recursively browsing the address space from an external client shouldn’t overload the server unless you’ve written your client such that the browse parallelism grows unbounded.

---

<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, 1:48pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/7 "2023-06-02T13:48:21Z")

</div>

The server can't maintain the connection and cuts it. I've tried an oversized server, which got me through a few more and hacked the client timeout to basically be infinite, again helped to get through a few more, the server just can't handle that much work. We are working towards scaling out, but would like the services going again before that is finalized. We tried buying softing's opc library but will get a refund, they don't seem to know how their library works and have terrible support outside of europe.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 2, 2023, 1: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/8 "2023-06-02T13:49:10Z")

</div>

Prove it? Show me a Wireshark capture of your client browsing, start to finish or interruption.

---

<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, 1:51pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/9 "2023-06-02T13:51:33Z")

</div>

what settings on it

---

<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, 1:53pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/10 "2023-06-02T13:53:59Z")

</div>

The OPC connection has to be made with security disabled so Wireshark can decode 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 2, 2023, 1:56pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/11 "2023-06-02T13:56:30Z")

</div>

Think it already does that. What ports?

---

<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, 1:56pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/12 "2023-06-02T13:56:59Z")

</div>

You should already know that, it’s whatever the endpoint you are connecting to is configured for.

---

<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, 2: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/13 "2023-06-02T14:02:19Z")

</div>

figured, it's opc:tcp, I'm working on setting up a capture 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 2, 2023, 2: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/14 "2023-06-02T14:03:11Z")

</div>

do you not want any filtering, just all the raw packets on the interface?

---

<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, 2: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/15 "2023-06-02T14:03:57Z")

</div>

You can cut the capture size down by filtering to just the hosts and port involved. No other filter necessary.

---

<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, 2: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/16 "2023-06-02T14:04:44Z")

</div>

all on the same host, using port 4096

---

<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, 2:25pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/17 "2023-06-02T14:25:18Z")

</div>

sudo tshark -f "port 4096"  
Running as user "root" and group "root". This could be dangerous.  
Capturing on 'eth0'  
^C0 packets captured

I don't run wireshark as much as I used to, any thoughts?

---

<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, 2: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/18 "2023-06-02T14:30:30Z")

</div>

If this is all running on the same host, you probably need to capture on localhost instead of eth0.

`sudo tshark -D` lists interfaces. Find loopback.

Then `tshark -f "port 4096" -i N -w browsetraffic.pcap` (where "N" is whatever number the loopback interface was)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 2, 2023, 2:37pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/19 "2023-06-02T14:37:03Z")

</div>

> [@Kevin.Herron](#):
>
> where "N" is whatever number the loopback interface was

On linux the `-i` option takes a network device name. So, `-i lo` should work.

---

<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, 2:43pm UTC](https://forum.inductiveautomation.com/t/anyone-know-of-a-way-to-dump-all-the-current-tag-values-from-the-opc-ua-server/74481/20 "2023-06-02T14:43:12Z")

</div>

[out.txt.zip](https://forum.inductiveautomation.com/uploads/short-url/zcRW14IQ5TYiEQLtsMHd7d52FYv.zip) (6.0 MB)

Got it

[Next 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=2)
