Question

How to avoid alert message truncation using ncli...

  • 10 April 2019
  • 5 replies
  • 1063 views

Userlevel 2
Badge +5
I want to pull alerts from my cluster using ncli. however, the alert message gets truncated. here is an example:
code:
ncli> alerts ls max-alerts=1

ID : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Message : Unable to locate VM(s) VM1, VM2, VM3, VM4, VM5, VM6, VM7, VM8, VM9, VM10, VM11, VM12, VM13, VM15, V... protected by protection domain 'PDgroup2'.

Notice the truncated portion with '...'. Is there a switch i can send with ncli to prevent that truncation?

This topic has been closed for comments

5 replies

Userlevel 7
Badge +34
Hi @penguindows

I'll see what I can do to get you an answer.
Userlevel 2
Badge +5
Thanks @aluciani ! somehow i think i accidentally marked this as solved, but it is not yet. I appreciate you investigating!
Userlevel 2
Badge +4

@penguindows what version of AOS are you running? I don’t appear to have this truncating issue with longer message alerts on 5.10 +

 

Userlevel 2
Badge +5

@rhunt when this was checked we were 5.5.3.1.  I’ll check on one of our 5.10 and reply back.

Userlevel 2
Badge +5

@rhunt unfortunately i resolved all of the alerts that included a large number of VMs, so it’s inconclusive.  I’ll try to generate a few more :P