This article describes how to obtain the correct SRX model information after the show version command output has shown the wrong SRX model number or even a completely different model (such as the M40).
On an SRX, the output of the show version command shows the following incorrect model (M40, instead of SRX):
> show version Hostname: HCT-CS-FW-01 Model: M40 < Incorrect JUNOS Software Release [11.4R6.6]
The correct output should be as follows:
> show version Hostname: HCT-CS-FW-01 Model: srx5800 < Correct JUNOS Software Release [11.4R6.6]
This issue can be caused by a corrupt image, corrupt kernel, or a Junos version mismatch between the compact flash and hard disk.
To recover the correct model within the RE, use one of the following methods:
Method 1:
1. Enter the shell as the root user:
root@% sysctl -w hw.product.model
This outputs the product model, as currently viewed by the device.
2. Enter db mode:
root@% sysctl -w debug.kdb.enter=1 debug.kdb.enter:K D0B: enter: sysctl debug.kdb.enter [thread pid 1177 tid 100084 ] Stopped at kdb_enter+0x15f: movl $0xc0b7df1a,0(%esp) db> db> w product_model 0x35787273 product_model 0x6e6b6e75 = 0x35787273 db> w product_model+4 0x303036 product_model+0x4 0x6e776f = 0x303036 db> c
3. Load the image again (using the same procedure: request system software add).
4. Reboot the device.
Method 2:
Note: This method can wipe out the entire configuration. Back up the logs and configuration before proceeding.
1. Reboot the device (using a console connection).
2. Look for the following message:
Loading /boot/defaults/loader.conf /kernel text=0x6f66ac data=0x414c0+0x7cdb0 syms=[0x4+0x74200+0x4+0xa1f77]
3. Hold down the space bar. You will be directed to the OK prompt. Enter the commands below in the order shown:
unload load /kernel.old boot
Note: If the kernel cannot be found, go to Method 3.
4. After the device comes up (after booting), re-install the image.
Method 3:
Note: This method can wipe out the entire configuration. Back up the logs and configuration before proceeding.
1. If Method 2 fails, the kernel may be corrupt. Wipe out the kernel, using the command below:
> request system reboot media disk
2. When the device comes back up, execute the following commands:
> request system snapshot > request system reboot media compact-flash
Note: When the device is up, it will have the version that was on the hard disk.
3. If the version is incorrect, re-install the image and reboot the device.
4. When the device comes back up, reload the configuration on the device.