oneclick update event and alarm files via command line

Document ID : KB000009994
Last Modified Date : 10/04/2018
Show Technical Document Details
Introduction:

How to reload Event Files via command line

Background:

Event files edited manually outside of Event Configuration Editor (ECE) must be reloaded into memory. Typically this is done through the OneClick console on the VNM model of the Landscape > Information tab > SpectroSERVER Control > Reload Event Configuration. Having multiple DSS servers may make reloading the files into memory on each server time consuming. Using command line to reload Event files into memory can be scripted and therefore be more efficient. 

Environment:
Platform Independant
Instructions:

AlertMap & EventDisp files

AlertMap and EventDisp files are reloaded on the SpectroSERVERs

The CLI update action to use is 0x100a2 "Reload EventDisp and AlertMap files" with the VNM modelhandle.

- Using bash prompt, navigate to <SPECROOT>/vnmsh

- run command ./connect

- run ./show models | grep vnm

- the first column is <vnm model handle>

- run ./update action=0x100a2 <vnm model handle>

Sample shell loop: 

for VNM_MH in $(cat ~/custom/data/vnm_models) ; do ./update action=0x100a2 mh=$VNM_MH ; done

 

EvFormat & EvPCause files

EvFormat and EvPCause files are reloaded in OneClick Tomcat server. Therefore these files can be reloaded via REST API command: 

 

http://<one_click_server>:8080/spectrum/admin/ecds.jsp?reload=Reload

 

Additional Information:

https://communities.ca.com/thread/100178619