Locking and unlocking views


The LOCK command maintains the present data displayed in a view and prevents it from being updated. You cannot dynamically update a view by pressing Enter.

LOCK is useful for situations when you want to compare data from the same view. Normally, you lock a view in one window and compare it to the same view in another window whose data is periodically updated.

The LOCK command is entered without parameters.

When a window is locked, the status field of the window information line changes to L. The date and time fields show when the view was last updated.

>L1=APOVERR====MVSB===*===08NOV2000=09:59:56===MVVP====10

A view's data can be updated in a locked window by:

  • Unlocking the window
  • Permitting a data refresh but maintaining the window lock

The UNLock command resumes data updates to a view at the original refresh rate. UNLock can be used only for windows that are currently locked.

The UNLOCK command is entered without parameters.

When a window is unlocked, the status field of the window information line changes to W, indicating that the window is available to receive input.

Refreshing a locked view

The DATARefresh command allows you to update view data but maintain the window lock. DATARefresh is useful when you want to see changes in a view's data and save them by maintaining the window lock.

DATARefresh is entered without parameters.

After you enter the DATARefresh command, data is updated at the time you press Enter. The date and time fields of the window information line indicate when the data refresh occurred. The status field indicates that the window is still locked and no further updates will occur until the DATARefresh command is invoked again or the view is unlocked.

The following table shows BMC AMI Ops commands that are useful for updating and locking view data:

Commands to Refresh and Lock View Date

To do this...

Use this command...

Update view data at a fixed rate

ASU nnn The refresh rate, nnn, is a value between 3 and 999 seconds.

Lock current view data

LOCK

Unlock data shown in a view

UNLock

Refresh data displayed in a locked view

DATARefresh

Related topic


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*