CA Performance Center includes a script to set alias names for monitored devices. You can use this script to set the alias names for more than one monitored device at a time. The alias name appears in the inventory list of devices and in the inventory list of interfaces.
This script has two functions. First, the script returns a list of device item IDs and device names in .csv format. You modify the .csv file to include the alias names that you want to set on each monitored device. The second function of the script is to take the updated .csv file and set the alias names for the monitored devices.
Follow these steps:
./update_alias_name.sh
The script parameters are listed and are described.
Example: Set Alias Names for Multiple Monitored Devices
./update_alias_name.sh -h host_name [-o output_filename]
Specifies the Data Aggregator host name to connect to.
(Optional) Creates a .csv file with the total number of monitored devices by itemID and Device Name with a different filename for the .csv file than the default filename. f you do not enter a value for this parameter, the default name, DeviceList.csv, is used for the .csv file.
The .csv file has the following format: ItemID, Device Name.
For example:
560, MyRouter1
561, MyRouter2
For example:
560 , MyRouter1AliasDisplayName
561, MyRouter2AliasDisplayName
./update_alias_name.sh -h host_name -i input_file
Specifies the Data Aggregator host name to connect to.
Specifies the filename of the .csv file that you created previously with the alias names.
The alias names are set for monitored devices.
./update_alias_name.sh -h host_name -i input_file -b batch_size -t time_in_seconds
Indicates the number of items to process in each batch.
Indicates the time, in seconds, to pause between batches.
For example:
./update_alias_name.sh -h host_name -i input_file -b 20 -t 2
|
Copyright © 2014 CA.
All rights reserved.
|
|