Thursday, September 4, 2014

how to set the SNMP community for a vhost with WinSCP

Make sure SSH and SNMPd are running on the Vhost.
SNMPd is started by default if it fails to start do this kb.vmware.com it will fix the issue.
SSH is not enable by default so you must enable it, to enable SSH while remoted to the vhost via vsphere client (you can download the vsphere client from the vhost by pointing a web browser at the IP of the vhost), In the configuration tab, choose "Security Profile" click properties (upper right) scroll to SSH and highlight it and then click the Options button, click Start, click OK, click OK. SSH is now running and when you reboot it will not be started. If you want it started and running all the time you need to have changed the option to start and stop with server..

Then you start WwinSCP from a machine that can see the VHost on the network
Input the name or IP of the VHost
Input your Userid = usually root
Input your password
Choose SFTP
Click Login

if it says there is a connection error you either did not enable SSH on the vhost or your not on the same network as the vhost.

If it asks you a really long question answer yes, now you will see a explorer like window and you can now find the Dell Open Manage install file (usually a zip file) and copy to the vhost. I usually put it into /var/log/vmware, once the file is uploaded, you need to install the package. to do this simply click the little dark sqaure with HOM in it on under the texts menu. Click OK and it will open a console window on the vhost. now you just need to copy and paste your SNMP settings one line at a time. 

Example:
esxcli system snmp set --communities "COMMUNITY_NAME_HERE"
esxcli system snmp set --enable true
esxcli system snmp get 

First line is the SNMP Community name
Second line enables and load SNMP services with the name you just set
Third line show you the SNMP community and that SNMP services are running.

No comments:

Post a Comment