Appearance
Forgotten PIN
The symptom
The cog asks for the setup PIN and nobody remembers it. No screen in the building has Setup access of its own, so nobody can open Setup to change the PIN.
Ways back in
Try these in order. The first works on every SPUNK server.
1. Use a browser on the SPUNK server itself
Does the SPUNK server have a screen and keyboard, or can you plug them in?
- On the SPUNK server, open
http://localhostin a browser. This address always has Setup access, with no PIN. - Press the cog, and in Setup press Screens and access.
- Type a new PIN and press Change PIN, or press Remove PIN.
It has to be localhost. The SPUNK server's network address, such as http://10.30.1.10, is treated like any other screen.
2. Use the recovery code
Was a recovery code set up for this SPUNK server? If so, it is printed on the SPUNK server's label.
- On any screen, press the cog, then Forgotten the PIN?
- Type the code under Recovery code. Dashes, spaces and capitals don't matter.
- Press Unlock Setup. Screens and access opens so you can set a new PIN.
The recovery code box only appears when a code has been set. See Setting a recovery code.
3. Switch the SPUNK server off and on
This works on a Linux SPUNK server with the power-on recovery window set up.
- Restart the SPUNK server.
- Within the window (5 minutes as shipped), press the cog on any screen, then Forgotten the PIN?
- Press Open Setup, and set a new PIN.
4. Edit the access file
Can you reach the SPUNK server's files, on the computer or over the network?
- Add this screen's IP address to the
"setup"list inspunk-access.json. See Giving access from a file on the SPUNK server. - Reload the screen. It has Setup access without the PIN.
- Set a new PIN in Screens and access.
How long each unlock lasts
Unlocking with the recovery code or the power-on window lasts until the browser is closed. Set a new PIN, or give the screen Setup access, before you close it.
Setting a recovery code
Do this while you still have access, on a SPUNK server that will go out without a screen.
Choose a code, such as
K7QM-2XPA-9TRD, and write it on the SPUNK server's label.Work out the SHA-256 of
spunk-recovery:followed by the code in capitals with no dashes or spaces.Linux or Mac:
printf 'spunk-recovery:K7QM2XPA9TRD' | sha256sumWindows PowerShell:
-join ([Security.Cryptography.SHA256]::Create().ComputeHash([Text.Encoding]::UTF8.GetBytes('spunk-recovery:K7QM2XPA9TRD')) | % { $_.ToString('x2') })
Put the 64-character result in
spunk-access.jsonas"recovery":json{ "setup": [], "recovery": "<64 hex characters>" }
Don't use the example code above on a real SPUNK server.
If none of these work
Collect this before asking for help:
- Whether the SPUNK server runs Windows or Linux.
- Whether
spunk-access.jsonexists on it, and what it contains with the"recovery"value left out. - What the cog's window says on the screen you're using. A screenshot is best.
Your setup is not lost. layout.json, in the same folder as SPUNK's page, holds it, and the PIN is one entry in that file.