Go to primary content
Oracle® Communications Patch Audit, Inventory, and Reporting (PAIR) User's Guide
Release 6.6
E91177
Go To Table Of Contents
Contents

Previous
Previous
Next
Next

Add Multiple Target Servers

This procedure adds multiple target servers, using a pre-defined CSV file, to the list of servers for which the PAIR utility collects patching information.

Before executing this step, a CSV (comma-separated values) input file must be created. Within this file, each server is defined on a separate line where server address and optional name (alias) are separated by a comma. Server addresses can be listed using IP addressing or name, such as FQDN. For example:
[admusr@myPairServer ~]$ cat server_list.csv
1.2.3.1,testserver1
testserver2.mydomain.com,testserver2
2001:db8::3,testserver3
1.2.3.4
[admusr@myPairServer ~]$
In this example, the fourth entry, 1.2.3.4, omits the optional alias, which is an acceptable entry.

Note:

Use of an FQDN address assumes the PAIR server has access to a DNS server within the network. Invalid IPv6 addresses include IPv6/prefix or IPv6%zone.
  1. PAIR Server: Login using admusr credentials.
    SSH into the PAIR server and authenticate using admusr credentials:
    login as: admusr [Enter]
    admusr@10.75.152.79's password: <admusr_password> [Enter]
    Last login: Mon Jun  6 10:35:36 2016 from 10.75.7.157
    [admusr@myPairServer ~]$
  2. PAIR Server: Verify input file permissions.
    If needed, execute the command to set valid permission attributes of the input file:
    [admusr@myPairServer ~]$ sudo chown admusr:admgrp <path/file> [Enter]
    [admusr@myPairServer ~]$ sudo chmod 644 <path/file> [Enter]
    [admusr@myPairServer ~]$
  3. PAIR Server: Add target servers via CSV file.
    Execute the command to add target servers using CSV file as input:
    [admusr@myPairServer ~]$ pair addServers --file <path/file> [Enter]
    Added <X> out of <Y> servers.
    [admusr@myPairServer ~]$

    An output message stating success rate displays. For any servers that have already been provisioned, an error condition displays stating such.

    This example demonstrates the use of a CSV file using the entries demonstrated above:
    [admusr@myPairServer ~]$ pair addServers --file /home/admusr/pair/server_list.csv [Enter]
    Added 4 out of 4 servers.
    [admusr@myPairServer pair]$
  4. Confirm the target server(s) have been added to inventory by performing the List Provisioned Target Servers procedure.
  5. (Optional) PAIR Server: Delete file.
    If desired, delete the file created to execute this procedure.
    [admusr@myPairServer ~]$ sudo rm <path/file> [Enter]
    [admusr@myPairServer ~]$