Pages

25.6.12

UPS SNMP Configuration in VMWare esxi5

Scenario: I have a Mega System UPS connected to the network through its  NetAgent Mini. I want to have a customer's vmware esxi5 host being shut down by the ups client utility, which works through snmp.

Steps:
Download and install the Mega System ClientMate utility per VMWare from here:
http://www.megatec.com.tw/Download.htm
Note: the zip is misleading, you must install the clientmate.tar.gz file in the root folder of the .rar archive along with the install.dat file in the VMWare ESX subfolder (the clientmate.tar.gz in that subfolder is the Linux one!).
Configure it using the provided utility.

From VMWare CLI Utility run this commands in order to configure and enable the SNMP Agent.


Configure community for the agent (don't know if mandatory)
C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-snmp.pl --server esxhostaddress
01 -c public
Enter username: root
Enter password:
Changing community list to: public...
Complete.


Add the UPS as a target with parameters configured in the web interface.

C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-snmp.pl --server esxhostaddress
01 -t UpsIPaddress@161/public
Enter username: root
Enter password:
Changing notification(trap) targets list to: 10.0.0.18@161/public...
Complete.



Enable snmp agent
C:\Program Files (x86)\VMware\VMware vSphere CLI>vicfg-snmp.pl --server 10.0.0.2
01 -E
Enter username: root
Enter password:
Enabling agent...
Complete.


Restart clientmate service

Now it should work.

5.6.12

Squid 2.7 and SARG for Windows %5C issue

From 2.7 and above the squid access.log writes ntlm username in the following format:
domain5%Cusername
This is to address blanks in active directory usernames.
This format is not correctly handled by sarg, which writes it in the urls and paths. The resulting reports have broken links.
In order to avoid this problem just edit squid.conf in order to have access.log written in another format.
I succesfully tested this format:
logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %