HP Model 755/125cL System Configuration Repository User's Reference: HP-UX/HP - Page 23

Using Tags to Simplify Node Management, You can use the oldest and latest tags in future commands

Page 23 highlights

SCR Overview Using Tags to Simplify Node Management Using Tags to Simplify Node Management As you have already noticed, configuration designations are long. It is tedious to type them over and over, and it can be easy to mistype them. SCR allows you to replace a configuration designation with an easy to use tag. There are two types of tags in SCR, system managed and user defined. • System managed tags (oldest and latest) are used automatically to indicate the oldest and latest configuration for each node. These tags are managed by the system and updated for you as needed. • User defined tags are used to represent other system configuration snapshots. If you tag a configuration, SCR assumes it is important to you and does not automatically delete it when it would expire. You can delete the configuration with scrdelete when you want to. You can remove the tag with scrtag. Use the scrtag command to create or use tags. For example, suppose the node elsa has frequent configuration changes lately, as shown below. # scrhist NODE TIME ERR TAG elsa 02/07/1999 12:05 PST oldest 04/14/1999 13:05 PDT 04/15/1999 13:05 PDT 04/17/1999 13:05 PDT 04/18/1999 13:05 PDT latest You can use the oldest and latest tags in future commands, instead of typing the date and time they represent (02/07/1999 12:05 PST and 04/18/1999 13:05 PDT). You can also create tags to use as labels for the other snapshots. The following command generates the tag, StandardConfig, as a label for the time, 199904171305.: # scrtag -a elsa StandardConfig 199904171305 Then, the scrtag command generates a report that identifies current tags, similar to the following example. # scrtag NODE elsa TAG StandardConfig latest oldest TIME 04/17/1999 13:05 PDT 04/18/1999 13:05 PDT 02/07/1999 12:05 PST Chapter 2 23

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

Chapter 2
23
SCR Overview
Using Tags to Simplify Node Management
Using Tags to Simplify Node Management
As you have already noticed, configuration designations are long. It is
tedious to type them over and over, and it can be easy to mistype them.
SCR allows you to replace a configuration designation with an easy to
use tag. There are two types of tags in SCR, system managed and user
defined.
System managed tags (oldest and latest) are used automatically to
indicate the oldest and latest configuration for each node. These tags
are managed by the system and updated for you as needed.
User defined tags are used to represent other system configuration
snapshots. If you tag a configuration, SCR assumes it is important to
you and does not automatically delete it when it would expire. You
can delete the configuration with scrdelete when you want to. You
can remove the tag with scrtag.
Use the scrtag command to create or use tags. For example, suppose the
node elsa has frequent configuration changes lately, as shown below.
# scrhist
NODE
TIME
ERR
TAG
elsa
02/07/1999 12:05 PST
oldest
04/14/1999 13:05 PDT
04/15/1999 13:05 PDT
04/17/1999 13:05 PDT
04/18/1999 13:05 PDT
latest
You can use the oldest and latest tags in future commands, instead of
typing the date and time they represent (02/07/1999 12:05 PST and
04/18/1999 13:05 PDT). You can also create tags to use as labels for the
other snapshots.
The following command generates the tag, StandardConfig, as a label
for the time, 199904171305.:
# scrtag –a elsa StandardConfig 199904171305
Then, the scrtag command generates a report that identifies current
tags, similar to the following example.
# scrtag
NODE
TAG
TIME
elsa
StandardConfig
04/17/1999 13:05 PDT
latest
04/18/1999 13:05 PDT
oldest
02/07/1999 12:05 PST