VMware Cloud Community
topher27
Contributor
Contributor
Jump to solution

CLI Inteface help

Hi, Newbie question:

I'm working with the ESXi v6 command line interface and cannot get root access. In all the videos it appears once you enable SSH and ESXi Shell you can use Putty to get into the command line. Once I login as root I only get a prompt like this:   root@localhost:~]   instead of this ~#    . I basically have no access to do anything. If I try "su -" it doesn't recognize the command.  How do I get the ~# access and what is the official term for this. This ESXi load is basically untouched from default. My goal is to set SNMP attributes through the CLI.

I appreciate any help.

Chris

0 Kudos
1 Solution

Accepted Solutions
rcporto
Leadership
Leadership
Jump to solution

I noticed that if you connect to a vSphere ESXi version 6 host you will get the [root@hostname: ~] and if you connect to a vSphere ESXi version 5 you get the ~#, but in both cases if you use the root users you will get the same level of access.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto

View solution in original post

0 Kudos
4 Replies
rcporto
Leadership
Leadership
Jump to solution

Can you tell us the exact command you're getting trouble to run?

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
topher27
Contributor
Contributor
Jump to solution

I was able to get it working with these commands:

#  esxcli system snmp set --communities YOUR_STRING

#  esxcli system snmp set --enable true

but why doesn't my view have the "#"?  is this some sort of different access?

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

I noticed that if you connect to a vSphere ESXi version 6 host you will get the [root@hostname: ~] and if you connect to a vSphere ESXi version 5 you get the ~#, but in both cases if you use the root users you will get the same level of access.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
topher27
Contributor
Contributor
Jump to solution

That's strange but to most tech people a different prompt like that can mean a lot of things. Thanks for clearing it up.

0 Kudos