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 Servers Known to PMAC

This procedure adds the servers known to PMAC to the list of target servers for which the PAIR utility collects patching information.

In the Add Multiple Target Servers procedure, you create a CSV file that includes target servers for which you want the PAIR utility to collect patching information. This procedure creates a similar file which lists, by control network DHCP IPv4 address, the servers already known to the PMAC. Optionally, you can use the argument --onlyApplications to filter the list by application type, for example, TVOE, PMAC, and DSR. To understand what applications are available from your PMAC, view the Software Inventory page accessible from the PMAC GUI. TPD is not considered an application and should not be used in this argument.

Note:

The file created in this procedure omits the alias. If you wish to include an alias, that is, the hostname, you must edit the list before executing the addServers command. See Add Multiple Target Servers for more information on adding an alias.
  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: Create a file list of known servers.
    Execute the following command to create a file list of servers known to the PMAC:
    [admusr@myPairServer ~]$ sudo /usr/TKLC/plat/bin/generateServersFile -f <path/file> [Enter]
    If successfully executed, an output message stating The DHCP IPv4 addresses are now in file <path/file> displays. If you forget the --file argument, an output message reminds you this is required.

    This example demonstrates the use of the optional --onlyApplications argument and displays the output.

    [admusr@myPairServer ~]$ sudo /usr/TKLC/plat/bin/generateServersFile --file /tmp/dhcpservers --onlyApplications TVOE,PMAC [Enter]
    The DHCP IPv4 addresses are now in file /tmp/dhcpservers
    [admusr@myPairServer ~]$

    Execute the command to verify the entries:

    [admusr@myPairServer ~]$ sudo cat /tmp/dhcpservers [Enter]
    169.254.118.55,
    169.254.118.69,
    169.254.118.249,
    169.254.118.53,
    169.254.118.52,
    169.254.118.50,
    169.254.118.68,
    169.254.118.4,
    [admusr@amarillo ~]$
  3. PAIR Server: Verify input file permissions and ownership.
    If needed, execute the command to set ownership attributes of the input file:
    [admusr@myPairServer ~]$ sudo chown admusr:admgrp <path/file> [Enter]
    [admusr@myPairServer ~]$
  4. PAIR Server: Add target servers using the newly created file.
    Execute the command to add target servers using the 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.

  5. Confirm the target server(s) have been added to inventory by performing the List Provisioned Target Servers procedure.
  6. (Optional) PAIR Server: Delete file.
    If desired, delete the file created to execute this procedure.
    [admusr@myPairServer ~]$ sudo rm <path/file> [Enter]
    [admusr@myPairServer ~]$