HP 12000 HP VLS Solutions Guide Design Guidelines for Virtual Library Systems - Page 125

ISV Import Email Format, Email Processing Example Script, Create a user account on the client.

Page 125 highlights

VLS that sends an hourly email report listing which virtual cartridges have been successfully replicated in the last hour, and this cartridge list can then be fed into a script that automatically triggers tape import jobs in the backup application (which read the new cartridge data and import this content into the media database). The target backup application can then restore from the imported virtual cartridges or copy them to physical tape, etc. ISV Import Email Format The following shows the format of the ISV Import email from the VLS, which lists the virtual cartridges that were successfully replicated into replication targets since the last report. The attachment format is: ISV~~~ Email body example: Email attachment example: Email Processing Example Script The following section details an example script to process the "ISV Import" email report from the VLS and convert it into a list of cartridges to be imported. The following steps show how this might be done in the target site (this example uses a Linux server client): • You will need an SMTP gateway server in the network (needed for the VLS SMTP emails). • Allocate a client server to use for the import script (could be a separate server or the actual master/cell server itself). ◦ Ensure the selected client is running an email messaging system (e.g,. sendmail). ◦ Create a user account on the client. ◦ Ensure the selected client has CLI access to the backup application. • In the user account, create a filter that sequentially processes the incoming emails, and for the ISV import emails it should send the message body (containing the list of replicated cartridges) to the script that actually performs the tape import. One way of doing this is to create a .forward that sends your incoming emails to procmail. For example:|/usr/bin/procmailand then add the following lines to the .procmailrc that copy an ISV import email (containing the list of tapes to import) to another script that runs the ISV-specific import commands: :0 bc: # send VLS DP import files for processing* ^Subject:.*ISV| /home/importuser1/isv_import/dpimport.sh VLS Replication Data Recovery Options 125

  • 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
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160

VLS that sends an hourly email report listing which virtual cartridges have been successfully replicated
in the last hour, and this cartridge list can then be fed into a script that automatically triggers tape
import jobs in the backup application (which read the new cartridge data and import this content
into the media database). The target backup application can then restore from the imported virtual
cartridges or copy them to physical tape, etc.
ISV Import Email Format
The following shows the format of the ISV Import email from the VLS, which lists the virtual cartridges
that were successfully replicated into replication targets since the last report. The attachment format
is:
ISV~<virtual cartridge barcode>~<virtual library serial number>~<virtual library slot number>
Email body example:
Email attachment example:
Email Processing Example Script
The following section details an example script to process the “ISV Import” email report from the
VLS and convert it into a list of cartridges to be imported. The following steps show how this might
be done in the target site (this example uses a Linux server client):
You will need an SMTP gateway server in the network (needed for the VLS SMTP emails).
Allocate a client server to use for the import script (could be a separate server or the actual
master/cell server itself).
Ensure the selected client is running an email messaging system (e.g,. sendmail).
Create a user account on the client.
Ensure the selected client has CLI access to the backup application.
In the user account, create a filter that sequentially processes the incoming emails, and for the
ISV import emails it should send the message body (containing the list of replicated cartridges)
to the script that actually performs the tape import. One way of doing this is to create a
.forward
that sends your incoming emails to procmail. For
example:
|/usr/bin/procmailand
then add the following lines to the
.procmailrc
that
copy an ISV import email (containing the list of tapes to import) to another script that runs the
ISV-specific import commands:
:0 bc: # send VLS DP import files for processing* ^Subject:.*ISV|
/home/importuser1/isv_import/dpimport.sh
VLS Replication Data Recovery Options
125