I've been trying to clear out a entry in the nCLI interface on a CVM without luck.
tried the standard 'history -c' and 'events history clear'.
Basically I have a value I dont want to show up at the propmt is a user is cycling through the "up arrow history" while in ncli.
Anyone with the command?
How to Clear nCLI history on CVM
This topic has been closed for comments
That is a fantastic question I've never heard anyone ask. Can you flick us a support ticket real quick on portal.nutanix.com and we can poke at it with you? I'm sure there's a way to make this happen, might not be user exposed, but we'll look into it with you.
As a side node, we're actively in the midst of writing NCLI's revamp/replacement for a future release, so if for some reason we can't (from a user perspective) do this easily, we can feature request it for the revamp, and make sure we can do it there.
As a side node, we're actively in the midst of writing NCLI's revamp/replacement for a future release, so if for some reason we can't (from a user perspective) do this easily, we can feature request it for the revamp, and make sure we can do it there.
Another quick side note, I noticed a handful of your systems dont seem to be calling home with Pulse. Might be worth while to verify your SMTP/Email configuration, as well as Alert Email and Pulse configurations in Prism on the following systems, ending in these 5 digits.
20105
20112
30126
20105
20112
30126
![Scribe Badge](https://uploads-us-west-2.insided.com/nutanix-us/attachment/93717981-e87d-41a3-a823-bc4ca13f2ded_thumb.png)
ok will do, thanks!
re the side note, yes these are in a staging state right now (doign a bunch of LAG testing and resiliency tests), we'll be sure to get them fully configured closer to deployment!
re the side note, yes these are in a staging state right now (doign a bunch of LAG testing and resiliency tests), we'll be sure to get them fully configured closer to deployment!
![Scribe Badge](https://uploads-us-west-2.insided.com/nutanix-us/attachment/93717981-e87d-41a3-a823-bc4ca13f2ded_thumb.png)
Solution : (Kudos to Luca DeNegri from nutanix support 🙂 )
the ncli history is stored locally on each node in the file /home/nutanix/.nutanix_history
You can edit this file and remove the lines you don't want to appear, or delete it to clear the whole history.
To clear ncli history on all the nodes, run:
allssh 'rm ~/.nutanix_history'
..brent
the ncli history is stored locally on each node in the file /home/nutanix/.nutanix_history
You can edit this file and remove the lines you don't want to appear, or delete it to clear the whole history.
To clear ncli history on all the nodes, run:
allssh 'rm ~/.nutanix_history'
..brent
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.