Hello,
I have a smartups 3000 with a network managment card and a vmware Esxi 3.5. I have configured the procedure with the vima but no success.
The services are starting but I still get an error when I do apctest
<![endif]><![if gte mso 9]>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0cm;
margin-right:0cm;
margin-bottom:10.0pt;
margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:10.0pt;
line-height:115%;}
@page Section1
div.Section1
-->
2009-05-25 20:15:33 apctest 3.14.5 (10 January 2009) redhat
Checking configuration ...
Attached to driver: pcnet
sharenet.type = DISABLE
cable.type = APC_NET
You are using a SMART cable type, so I'm entering SMART test
mode
Unknown mode.type: 15
Setting up the port ...
apctest FATAL ERROR in pcnet.c at line 650
Cannot bind socket (98)
This is my config file
apcupsd.conf v1.1 ##
UPSCABLE ether
UPSTYPE pcnet
DEVICE 192.168.3.197:apc:Apc1234
LOCKFILE /var/lock
UPSCLASS standalone
#UPSCLASS netmaster
UPSMODE disable
#UPSMODE sharenet
<![endif]><![if gte mso 9]>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0cm;
margin-right:0cm;
margin-bottom:10.0pt;
margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:10.0pt;
line-height:115%;}
@page Section1
div.Section1
-->
apcupsd (pid 3356) is running...
APC :
001,019,0481
DATE : Mon May 25
20:11:02 CEST 2009
HOSTNAME : vima
RELEASE : 3.14.5
VERSION : 3.14.5 (10
January 2009) redhat
UPSNAME : vima
CABLE : Ethernet
Link
MODEL : PCNET UPS
Driver
UPSMODE : Stand Alone
STARTTIME: Mon May 25 20:10:01 CEST 2009
STATUS : COMMLOST
MBATTCHG : 10 Percent
MINTIMEL : 5 Minutes
MAXTIME : 0 Seconds
NUMXFERS : 0
TONBATT : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
STATFLAG : 0x07000100 Status Flag
END APC : Mon May 25
20:29:02 CEST 2009
What could be wrong here?
ps: the iptables are shut
Hi,
I look at you conf file and i noticed that your admin phrase is too short. It have to be at least 15 symbols, it won't work with less. When you change it with less than 15 symbols in the APC management card dosn't give you any error, but it needs to be 15 at least. Also stop the VIMA's firewall. Check this document : http://communities.vmware.com/docs/DOC-9308 .
I had set this up in several instalations and it works like a charm.
I hope this could help you.
Regards,
Lyubomir
Here are the updated documents with detailed instructions:
How to configure ESXi to shutdown using an APC SmartUPS (with lamw scripts)
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Thx,
The password was indeed the problem, next step is pull the plug :smileylaugh:
Thx,
The password was indeed the problem, next step is pull the plug :smileylaugh: