2 Posts
0
549
March 25th, 2023 14:00
Unable to reconfigure Dell FN 410s switch modules
I purchased some used FN 410s switch modules for my FX2s at home. They arrived quickly, but they are still configured with the last user's setup. I can't modify them in CMC because they have IPs I can't access and a password that I can't reset. I've tried:
- setting the CMC address to the address of the IOMs, no ability to reset
- accessing the serial ports, but they are unresponsive at any speed setting
- accessing them via the racadm connect command. I am able to get to them, but they have a password I don't know.
-connecting to them via "connect -m switch-1" and powercycling them, but I'm not presented with a "Press any key to stop autoboot." It just reboots into the Switch OS.
- I can interrupt the boot to get into the NetBSD OS, but I don't know if that can really do anything. I don't see any config files that are useful.
Anyone run into this? Should I just return them as defective?
ceidem
2 Posts
0
March 26th, 2023 10:00
Ok, I got it figured out and I'm posting here for the Interwebz to remember for me:
To reset the password on an a Dell FN IOM module (in my case, a FN410s).
Powercycle the switch. I opened two ssh connections to the CMC and then used one connection to connect -m switch-1 to get a terminal connection to the switch. I needed to do this because none of the attempts I used to connect to the console port actually worked. The switch will then come up and begin to load the OS image. Ctrl-C to stop the processing and you'll get the root prompt for the OS. This is apparently running NetBSD.
Get a list of drives:
ld0 is the drive while md0 is the in-memory file system
Check your partitions on ld0:
Notice the MSDOS partition, that's where the config file is. Mount it:
There's the startup config.
cat startup-config gives us the full file. The lines we're interested in are these:
There is no vi, emacs or nano, but it does have sed so you have all you need to change the startup config file. Use echo to put lines into a sed file you will use to modify the startup-config:
These commands comment out the enable command and change the root password to the super-secret 'password1234' stored with no hash. You will of course change this when you've gained access to the switch, right? Move the current startup-config to backup and then run sed to output the changes to the new startup-config:
Check to make sure your changes are correct and power cycle the switch
Enter the console again and try to log in with the corrected username and password:
Bingo, you're in.