Netgate Device ID retrieval
-
I have a failed device which uses the older mSata drives, and I cannot locate the correct Netgate Device ID. I've got a character string recorded in our documentation, but I believe that it may have been copied incorrectly.
We have a ruleset that would take a few days to rediscover and recreate, and even then the latest few entries would likely not be correct.
I cannot find a computer in our inventory to use the mSata drive as a boot drive, but have managed to purchase an inexpensive external USB drive that can use an mSata drive as the storage device. I have the drive mounted on a FreeBSD system and can read the files on the drive.
Where can I find (is it stored in a file?) or generate the Netgate Device ID for the system that was on the mSata drive? Doing so would allow me to retrieve the AutoConfig stored backups.
-
@tatankachip If you had upgraded to the pfSense Plus, you would find it there by logging in.
-
Many thanks for your response. We are in the process of migrating a number of our systems, but this was an older hardware platform running 2.6.0 and was slated for replacement and migration to Plus in March.
Meanwhile, with access to the files on the drive, is there a way to retrieve (or generate) the Device ID on the hard drive for the system that resided on that drive?
-
@tatankachip I don't know if there's a way to find the ID. IIRC from other posts it is generated based on device hardware. However it sounds like you can't reinstall on this device.
If you can mount the disk you can find the config file though:
https://docs.netgate.com/pfsense/en/latest/backup/restore.html#restoring-by-mounting-the-diskThe config history is also stored somewhere on the drive, but I am not sure where offhand.
@NollipfSense The device ID actually shows in CE also, at least 2.6.
-
@steveits That just caused me a complete face-palm maneuver.
If I just restore the configuration file, stored in (/conf/config.xml), in place from the old system to a new one, then that will do it.
Testing now.
-
@tatankachip
I suspect just copying it in might cause issues, if that's what you meant, for packages. Restoring via the GUI will install packages.
-
@steveits said in Netgate Device ID retrieval:
The device ID actually shows in CE also, at least 2.6.
I know however, he stated he couldn't access earlier.
-
If you set a hint we can search for that.
The ACB key is based on SSH not the NDI. Since 2.6/22.01 SSH keys are backed up in the config so if you restore a back taken since then it should also restore access to ACB for that system.
Steve