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?
Solved
How to Clear nCLI history on CVM

Best answer by BrentHysop
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
View originalthe 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
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.