New update_alias_name script within NetOps PM 24.3.6 release
search cancel

New update_alias_name script within NetOps PM 24.3.6 release

book

Article ID: 389366

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

Unable to update the interface alias names within the NetOps Portal 23.3.X release

Environment

DX NetOps Performance Management

Cause

After upgrading to a newer version of Jetty/CXF, the system now requires explicit Accept and Content-Type headers for each endpoint. If these headers are missing from the request, the framework fails to correctly resolve the appropriate endpoint, resulting in processing failure.

Resolution

1. Run the update_alias_name script to generate the interface list:

Execute the following command to generate a list of interfaces in CSV format:

./update_alias_name.sh -h xxxxx-netops-portal -u admin -p xxxxx -T interface -S xxxx

This command will create a file named InterfaceList.csv containing all interfaces within the portal.

2. Edit the InterfaceList.csv File

The generated CSV file will contain interface details in the following format:

DeviceID, InterfaceItemID, InterfaceName
1752,9386,node 1 interface 1/1/a/eth mac
1752,9387,node 1 interface 1/1/b/eth mac
1752,9388,node 1 interface 1/1/c/eth ety
1752,9389,node 1 interface 1/1/d/eth mac
1752,9390,node 1 interface 1/1/e/eth ety
1752,9391,node 1 interface 1/1/f/eth ety

Column Breakdown:

  • Device ID (e.g., 1752)

  • Interface Item ID (e.g., 9386)

  • Interface Name (e.g., node 1 interface 1/1/a/eth mac)

Modify this file by changing the interface alias for specific Interface Item IDs. The updated file should follow this format:

1752,9386,Alias1

Save the modified file as InterfaceList_input.csv.

3. Run the update_alias_name script with the edited CSV file:

Execute the following command to apply the alias changes:

./update_alias_name.sh -h xxxx-netops-portal -u admin -p xxxxx -T interface -S xxxx -i InterfaceList_input.csv

4. Verify the changes:

Once the script completes execution, verify that the alias names have been updated in the portal.