Skip to main content
Question

How to avoid alert message truncation using ncli...

  • April 10, 2019
  • 5 replies
  • 1139 views

penguindows
Forum|alt.badge.img+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 replies.

5 replies

aluciani
Forum|alt.badge.img+34
  • Chevalier
  • August 20, 2019
Hi @penguindows

I'll see what I can do to get you an answer.

penguindows
Forum|alt.badge.img+5
  • Author
  • Trailblazer
  • August 20, 2019
Thanks @aluciani ! somehow i think i accidentally marked this as solved, but it is not yet. I appreciate you investigating!

rhunt
Forum|alt.badge.img+4
  • Trailblazer
  • October 17, 2019

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

 


penguindows
Forum|alt.badge.img+5
  • Author
  • Trailblazer
  • October 17, 2019

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


penguindows
Forum|alt.badge.img+5
  • Author
  • Trailblazer
  • October 17, 2019

@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