Quantcast
Channel: xCommunity : Popular Discussions - Discuss
Viewing all articles
Browse latest Browse all 932

CA Spectrum Model List Truncation

$
0
0

This is a continuation from the Spectrum Subscription Panel Thread http://community.xmatters.com/message/8095#8095  I'm creating a discussion as that one was splintering quite a bit.

 

This issue was discovered by Jason and Rodney- Essentially, Model Names were getting truncated to 16 characters in the output list.  Here are some of my findings (largely copied from the other thread)

 

This appears to be occurring from Spectrum (or at least the call that is used from xMatters to Spectrum).  The way I validated was as follows:

 

Using Kim's previous comments...From your Spectrum box at the command lineNavigate to <SpecHome>\vmnshRun "connect <SpecServerName>"Run "Show Models"
You'll notice a list of all the models, and that they are truncated in this display as well.  You can then run a search from the xMatters Spectrum Subscription Sub-Panel for one of the truncated names and note that the truncations match. Part of the root issue is found in the CA Spectrum CLI Guide on page 11:

CLIMNAMEWIDTH

Displays a model name. By default, the create, seek, and show commands each display a maximum of 16 characters for a model name. However, with the environment variable CLIMNAMEWIDTH, you can specify up to 1024 characters to be displayed for model names. For example, using the C shell:

setenv CLIMNAMEWIDTH 32

You can set this variable in your .login file, in a script, or just before you issue a command. You can set or change any number of times in a CLI session, depending on the length of the model names.


I made some small progress:

 

So in Windows I defined a Windows System Variable and called it "CLIMNAMEWIDTH" and gave it a value of 32.  We then restarted the Spectrum service.  When I run the 'Show Models' from the Command Line it now outputs with 32 as the width.  However, in xMatters on the Subscription Sub-Panel, it now appears to truncate at 18 characters instead of 16...so there's still some truncation, but a little bit more is displayed.
With debug on, I was monitoring the APIA AlarmPoint.log and it displays the models coming back from Spectrum.  One of the big things I noticed was that when using 'show models' from the command line it would show very clean, with the APIA output it appeared to be inserting spaces in the middle of model names which was then not getting parsed properly for output.  I think there may be something going on with the way the results are being handled.


Viewing all articles
Browse latest Browse all 932

Trending Articles