VMware Cloud Community
tdubb123
Expert
Expert

history of commands

How do I allow a history of commands in esxi? when i log out they history is no longer there

0 Kudos
5 Replies
Troy_Clavell
Immortal
Immortal

what happens if you type

history

at the cli?

0 Kudos
tdubb123
Expert
Expert

You have activated Tech Support Mode.

The time and date of this activation have been sent to the system logs.

VMware offers supported, powerful system administration tools. Please

see www.vmware.com/go/sysadmintools for details.

Tech Support Mode may be disabled by an administrative user.

Please consult the ESXi Configuration Guide for additional

important information.

~ # history

-ash: history: not found

0 Kudos
MentholMoose
Enthusiast
Enthusiast

The ash shell may not include a command history. Check if there's a history logfile in the user's home directory (would be hidden, so use ls -a to show everything). For bash the file is .bash_history so maybe check for an .ash_history file.

---

Kirk Kosinski

VCP 4, MCITP: EA/VA/EDA7

----- {color:#555555}Kirk Kosinski{color} [!http://www.kirkkosinski.com/li.png!|http://www.linkedin.com/in/kirkkosinski] {color:#999999}MCITP: EA / VA / EDA7, VCP 4{color}
0 Kudos
tdubb123
Expert
Expert

I do not see a history file

drwxr-xr-x 1 root root 512 Aug 31 13:57 .

drwxr-xr-x 1 root root 512 Aug 31 13:57 ..

-rw-rr 1 root root 0 May 19 00:15 .emptytgz

lrwxrwxrwx 1 root root 49 Aug 31 13:57 altbootbank -> /vmfs/volumes/6e1ece7a-f139b648-a2b7-02dc64a1ab46

drwxr-xr-x 1 root root 512 Aug 31 13:54 bin

lrwxrwxrwx 1 root root 49 Aug 31 13:57 bootbank -> /vmfs/volumes/f5054873-aeeeffa7-8338-0152faea1295

drwxr-xr-x 1 root root 512 Sep 1 12:06 dev

drwxr-xr-x 1 root root 512 Aug 31 13:57 etc

drwxr-xr-x 1 root root 512 Aug 31 13:54 lib

drwxr-xr-x 1 root root 512 Aug 31 13:54 lib64

-rwx------ 1 root root 12392 Aug 31 13:01 local.tgz

lrwxrwxrwx 1 root root 6 Aug 31 13:57 locker -> /store

drwxr-xr-x 1 root root 512 May 18 23:57 opt

drwxr-xr-x 1 root root 131072 Sep 1 12:06 proc

lrwxrwxrwx 1 root root 23 Aug 31 13:57 productLocker -> /locker/packages/4.1.0/

drwxr-xr-x 1 root root 512 Aug 31 13:54 sbin

lrwxrwxrwx 1 root root 49 Aug 31 13:57 scratch -> /vmfs/volumes/4c6adc4f-118f5e5b-ba4d-002564fd1051

lrwxrwxrwx 1 root root 49 Aug 31 13:57 store -> /vmfs/volumes/3c3693e8-f77a642a-1910-5c6bdcb26d3a

drwxrwxrwt 1 root root 512 Sep 1 12:01 tmp

drwxr-xr-x 1 root root 512 Aug 31 13:54 usr

drwxr-xr-x 1 root root 512 Aug 31 13:54 var

drwxr-xr-x 1 root root 512 Aug 31 13:54 vmfs

drwxr-xr-x 1 root root 512 Aug 31 13:54 vmimages

lrwxrwxrwx 1 root root 18 May 19 00:15 vmupgrade -> /locker/vmupgrade/

~ #

0 Kudos
Dave_Mishchenko
Immortal
Immortal

I believe busybox is compiled with history disabled so a fix would involve updating the source code and then recompiling it.




Dave

VMware Communities User Moderator

Now available - vSphere Quick Start Guide

Do you have a system or PCI card working with VMDirectPath? Submit your specs to the Unofficial VMDirectPath HCL.

0 Kudos