title: Juniper Junos OS breadcrumbs:
{:.no_toc}
{:.no_toc} This page is based mainly on the devices/series I own. Some content may be specific to those devices and should be moved away from this page.
show configuration [statement]
show chassis alarms
show chassis routing-engine
request system <halt|power-off>
request session member <vc-member-id>
show interfaces terse
/var/tmp/flash
(see mount a USB drive).ls -l /bar/tmp/flash
/var/tmp/
) before installing it.request system software add <path> no-validate no-copy [partition] [reboot]
partition
option.reboot
option, manually reboot afterwards.show system storage partitions
show system snapshot media internal
If the method above did not work, try this instead to completely format and flash the device.
install --format file:///jinstall-whatever.tgz
This procedure clones the active partition to the alternate partition.
This is also how you would clone to and boot from a USB device, but with media external
instead of media internal
and slice alternate
.
request system snapshot slice alternate
show system storage partitions
show system snapshot media internal
request system reboot slice alternate media internal
If one of the root partitions get corrupted (e.g. due to sudden power loss), the device will boot to the alternate root partition. This can be fixed by cloning the new active partition to the alternate, corrupt partition.
See Copy the Active Root Partition or [EX] Switch boots from backup root partition after file system corruption occurred on the primary root partition (Juniper).
Note: USB3 drives may not work properly. Use USB2 drives.
ls -l /dev/da*
mkdir /vat/tmp/usb1
mount_msdosfs <device> /var/tmp/usb1
umount /dev/tmp/usb1
The devices have two partitions; the primary and the backup. One of them will be designated as active and that will not be reset when the device is rebooted. When the active partition is damaged, the device will boot into the other partition. When the backup partition is the active partition, an alarm will be set and a banner shown.
Change active partition and reboot: request system reboot slice alternate media internal
The devices should be shut down gracefully instead of just pulling the power. This will prevent corrupting the file system.
shutdown -h now
request system <halt|power-off> [local|all-members|member <member-id>]
(Not the shell.)
?
: Prints the allowed keywords.|
: Can be used to filter the output.configure
exit
edit <container-statement>
up
top
run <command>
show
Changes made in configuration mode are added to the candidate configuration and not immediately applied. To apply the candidate configuration to the active configuration, commit the changes.
TODO which modes?
show | compare
commit [comment <comment>] [confirmed] [and-quit]
(conf mode)
confirmed
automatically rolls back the commit if it is not confirmed within a time limit.and-quit
will quit configuration mode after a successful commit.TODO Confirm how?
lo
: Loopback.ge
: Gigabit Ethernet.xe
: 10G Ethernet.et
: 40G Ethernet.em
and fxp
: Management, possibly OOB.TODO
{% include footer.md %}