Set Component Name Aliases

As an administrator, you can set aliases for component names per device item. A component alias is a name that the administrator configures and applies to the associated component in npc. Users see the component aliases in their dashboards and views depending on the role rights you assign.
capm250
As an administrator, you can set aliases for component names per device item. A component alias is a name that the administrator configures and applies to the associated component in
NetOps Portal
. Users see the component aliases in their dashboards and views depending on the role rights you assign.
An alias that is set using REST web services takes precedence over the alias that you can set by importing a CSV file.
The following URL shows the syntax:
http://
PC_host
:8181/pc/center/webservice/devices
Follow these steps:
  1. Determine which components you want to set an alias for:
    1. To return a list of all the components on a device item, use one of the following URLs in the REST client:
      • http://
        PC_host
        :8181/pc/center/webservice/devices/deviceItemId/
        device_id
        /components
        • device_id
          The device item identification number for the parent device of the components
      • http://
        PC_host
        :
        8181/pc/center/webservice/devices/
        domainItemId
        /domain_id/device_IP/components
        • domain_id
          The domain identification number for the IP domain that the device is in.
    2. Select GET for the
      "HTTP" Method
      .
      All components on the device are returned. Determine which components you want to set an alias for.
  2. Enter one of the following URLs in the REST client:
    • http://
      PC_host
      :
      8181
      /pc/center/webservice/devices/deviceItemId/
      device_id
      /setComponentNameAlias
    • http://
      PC_host
      :
      8181
      /pc/center/webservice/devices/domainItemId/
      domain_id
      /
      device_IP
      /setComponentNameAlias
  3. Select PUT for the "HTTP" Method.
  4. To set the component name aliases, use the following information in the Body tab of the HTTP Request pane:
    <deviceComponents>
        <deviceComponent>
             <itemId>
    component_ item_ id
    </itemId>
             <nameAlias>
    alias_for_component
    </nameAlias>
        </deviceComponent>
        ...
    </deviceComponents>
 To set the aliases for for component names across multiple device items, use the
update_alias_name.sh
script.