2-39
Cisco MGX 8850 Routing Switch Command Reference
Release 2.0, Part Number 78-10467-04 Rev C0, October 2001
Chapter2 Shelf Management Commands commitrev
commitrev
Commit Revision
Completes a graceful upg ra de by co mmitting to the operating fi rm war e image as the primary version .
The commitrev command is the necessary conclusion to a graceful upgrad e. See the loadrev description
for more details about graceful firmware changes.
The impact of commitrev is:
It signifies that the primary firmware image activated through the runrev command is accepted.
The previous image is removed f ro m the cards main memory (bu t c o nt in ues to reside on disk) .
Starting another graceful revision ch an g e b eco me s possible. If you attempt loadrev on the same
card before you execute commit rev, the system blocks loadrev and states that a revision change is
in progress.
You cannot use abortrev to revert to the previous image. To bring a previous imag e in to memory
and run it, you must use setrev to force-load the image (a non-graceful revision change) or execute
restoreallcnf.
The order of commands in a graceful upgrade, including the option of aborting the revision change,
appears in the following list. For clarification of w here firmware resides after each stage of the upgrad e,
refer to Tab le 2-7 for a s i ngle card and Tabl e 2-8 for a redundant card pair.
1. loadrev loads a firmware version f rom t he h ar d di sk to a cards memory. In a non-re dundant card
setup, loadrev does not cause the system to reset the car d .
2. runrev causes the primary card to start running the new version. For a redundant pair of cards, the
standby becomes the active card then starts running the new version.
3. If an unacceptable problem occur s , the opt iona l abortrev command restores the previous vers ion of
firmware as well as the previous dat ab ase contents.
4. commitrev declares the new primary version to be acceptable and removes the old primary from
main memory (but not the hard disk).
The stages of a graceful upgrade an d th e re set actions appear in Tab le 2-7 and Ta ble 2-8 . For a
single-card upgrade, see Table 2-7 . For a redundant-pair upgrade, see Table 2- 8. The tables start by
showing that, initially, the primary and secondary versions of firmware are 2.x, so the only possible
operational version is 2.x. The loadrev command loads a generic versio n called 2.y, and the upgrad e
sequence progressively changes the primary and secondary firmware versions. If you execute abortrev
before commitrev, one or two cards (redundant pair only) are reset, as the tables show.
Table2-7 Single-Card Upgrade From 2.x to 2.y
Firmware
Status Initial Version After loa drev After runrev After
commitrev
Primary 2.x 2.x 2.y 2.y
Secondary 2.x 2.y 2.x 2.y
Current 2.x 2.x 2.y 2.y
After abortrev,
the card is reset.