This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Add ZigBee Networkkey via console

0

Hey guys, I have got a question concerning the ZigBee network key. I want to add the networkkey via command line. So I mean now I start a piped wireshark - get over to

Edit -> Preferences -> Protocolls -> ZigBeeNWK -> Edit -> New -> (enter key, enter label)

Maybe someone knows a command to add one or preferred three keys via command line. This would be really nice.

Thanks in advance, ElectricBlue

asked 02 Feb '16, 03:32

ElectricBlue's gravatar image

ElectricBlue
6112
accept rate: 0%

Do you need to automate addition of the keys because you expect to set many of them dynamically in a scripting environment? If not, configuring them once using the GUI Wireshark is enough that tshark could then use them.

(02 Feb '16, 04:05) sindy

I Would prefer a automated addition of this keys in a scripting environment. The setting once is not the problem - but I change the keys often and want to add them via script.

(02 Feb '16, 04:32) ElectricBlue

One Answer:

0

I'm afraid that as you want to provide the keys dynamically, you'll have to generate (or change) the file zigbee_pc_keys in your configuration profile directory before start of tshark/Wireshark. Define some keys using the GUI Wireshark, close it, and then look at the file structure. Maybe some developer will suggest a more noblesse method but this one works if you don't want to wait.

answered 02 Feb '16, 04:50

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%