Image Management for Specified SGMs (g_snapshot)
Description
Show and revert snapshots for specified SGMs or Chassis. This is in contrast to the gclish snapshot command, which works for all SGMs together. You must run this command from the Expert mode.
To show saved snapshots, run g_snapshot show . Enter the applicable parameters and do the instructions on the screen.
To restore SGMs or Chassis to a saved snapshot run g_snapshot revert and enter the applicable parameters.
Syntax
g_snapshot [-b <sgm_ids>] show
g_snapshot [-b <sgm_ids>] revert <snapshot_name>
Parameter
|
Description
|
show
|
Shows saved snapshots for the specified SGMs or Chassis.
|
revert
|
Restore specified SGMs or Chassis to the specified snapshot.
|
<snapshot_name>
|
Snapshot file name
|
<sgm_ids>
|
Works with SGMs and/or Chassis as specified by <sgm_ids>.
The <sgm_ids> can be:
- No <sgm
_ids > specified or all shows all SGMs and Chassis - One SGM
- A comma-separated list of SGMs (
1_1,1_4 ) - A range of SGMs (
1_1-1_4 ) - One Chassis (
Chassis1 or Chassis2 ) - The active Chassis (
chassis_active )
|
Examples
> g_snapshot -b 1_1,1_4 revert My_Snapshot This example restores SGMs 1_1 and 1_4 to My_Snapshot .
> g_snapshot –b chassis2 revert My_Snapsho tThis example restores Chassis2 to My_Snapshot .
> g_snapshot -b Chassis1 show This example shows the saved snapshots for all SGMs on Chassis1.
|