Re: [Nut-upsuser] [Nut-upsdev] UPS on Freenas

2011-07-03 Thread Charles Lepple

On Jul 2, 2011, at 10:04 PM, Bobby Kent wrote:


Not sure an upgrade will help you much though, as Charles said:

Also, the USB support in FreeBSD prior to 8.0 is not very usable  
from the
NUT perspective. No guarantees it will get better if you upgrade,  
but I had
a lot of problems trying to get tripplite_usb to work under FreeBSD  
6.x and

7.x.


I wasn't terribly clear here - the architecture for the USB stack in  
FreeBSD 8.0 is a big improvement over prior versions, but that may not  
be sufficient to make John's UPS work.


Also, FreeNAS 8.0 is based off of FreeBSD 8.1:

http://bsdimp.blogspot.com/2010/11/freenas-8-beta-released.html

FreeNAS 8 seems to require more capable hardware than FreeNAS 7:

http://www.freenas.org/category/version-comparison

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] [Nut-upsdev] UPS on Freenas

2011-07-02 Thread Bobby Kent
John,

For giggles I downloaded the iso and installed FreeNAS 8.0 into a virtual
machine, usbconfig is present:

%/usr/sbin/usbconfig -d ugen1.2 dump_device_desc
ugen1.2: RALLY2 OCZ Technology at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps)
pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x
  bDeviceSubClass = 0x  
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0325
  idProduct = 0xac02
  bcdDevice = 0x1100
  iManufacturer = 0x0001  OCZ Technology
  iProduct = 0x0002  RALLY2
  iSerialNumber = 0x  no string
  bNumConfigurations = 0x0001

%

Note both Vendor and Product ID are reported.

Not sure how pwd will show the user one is logged in as, whoami is in
FreeNAS 8.0 and appears to behave in a similar fashion to other Unix/Linux
type OSs:

%whoami
Root
%

I don't know my way around FreeNAS so can't help you with setting up a new
thumb drive with version 8, I did notice that the *.Full_Install.xv files
(http://sourceforge.net/projects/freenas/files/FreeNAS-8/) are compressed
boot images that look like they ought to be able to be dded (or whatever
the FreeNAS equivalent is) to a drive.

Not sure an upgrade will help you much though, as Charles said:

Also, the USB support in FreeBSD prior to 8.0 is not very usable from the
NUT perspective. No guarantees it will get better if you upgrade, but I had
a lot of problems trying to get tripplite_usb to work under FreeBSD 6.x and
7.x.



From: John Lechanski [mailto:johnsk...@hotmail.com] 
Sent: Friday, July 01, 2011 20:08
To: clep...@gmail.com
Cc: bpk...@wholeworldwindow.net; nut-upsuser@lists.alioth.debian.org
Subject: RE: [Nut-upsuser] [Nut-upsdev] UPS on Freenas

Gents,
  Sorry for the .jpg taking up so much space.  I will not do that again.  I
ran usbconfig as root and it came back usbconfig: command not found  I
ran pwd and I am root, tried lsusb for giggles and it didn't work
either. I thought about upgrading to Freenas 8.0 but I am used to the
embedded version that I installed on a datastick...I didn't see a .img for
8.0 and was wondering how you installed it.  Thanks again for your help.

John


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] [Nut-upsdev] UPS on Freenas

2011-07-01 Thread John Lechanski

Gents,
  Sorry for the .jpg taking up so much space.  I will not do that again.  I ran 
usbconfig as root and it came back usbconfig: command not found  I ran 
pwd and I am root, tried lsusb for giggles and it didn't work either. I 
thought about upgrading to Freenas 8.0 but I am used to the embedded version 
that I installed on a datastick...I didn't see a .img for 8.0 and was wondering 
how you installed it.  Thanks again for your help.

John

 

 Date: Tue, 28 Jun 2011 20:06:50 -0400
 Subject: Re: [Nut-upsuser] [Nut-upsdev] UPS on Freenas
 From: clep...@gmail.com
 To: johnsk...@hotmail.com
 CC: bpk...@wholeworldwindow.net; nut-upsuser@lists.alioth.debian.org
 
 On Tue, Jun 28, 2011 at 11:22 AM, Bobby Kent
 bpk...@wholeworldwindow.net wrote:
  Hi John,
 
  You should use the Linux command lsusb to find the USB Vendor and Product
  Id, e.g.:
 
 I misspoke - apparently freenas is based on FreeBSD (who would have
 guessed from the name?!?) and I thought it was opensolaris based on
 the fragment of the ZFS copyright in the screenshot.
 
 I would agree with Bobby about the attachments, with the additional
 suggestion that if it's just textual information, please don't send it
 only as a graphic - it makes it harder for other people to search for
 information about that model.
 
I went into the gui and printed the syslog...I'm not sure how to read it
  and I've included a picture of the bottom of my UPS...I'm unsure about a USB
  vendor ID but I have the manual which I attached.
 
 Unfortunately, there is not much information about the UPS in syslog:
 
 Jun 27 12:01:33 frogger17a kernel: uhid0: Belkin UPS, class 0/0, rev
 1.10/0.01, addr 2 on uhub0
 
 What do you get when you run 'usbconfig' as root?
 
 Also, the USB support in FreeBSD prior to 8.0 is not very usable from
 the NUT perspective. No guarantees it will get better if you upgrade,
 but I had a lot of problems trying to get tripplite_usb to work under
 FreeBSD 6.x and 7.x.
 
 -- 
 - Charles Lepple
  ___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] [Nut-upsdev] UPS on Freenas

2011-06-28 Thread Charles Lepple
On Tue, Jun 28, 2011 at 11:22 AM, Bobby Kent
bpk...@wholeworldwindow.net wrote:
 I’m not sure whether this is duplicate information, my mailbox was filled by
 the attachments to your previous email.  Might be an idea to reduce the
 resolution a little before sending (see attached), or using a service like
 photobucket and provide a link …

Likewise, configuring your mailer not to send HTML is a good way to
save mailbox space, too :-)

-- 
- Charles Lepple

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] [Nut-upsdev] UPS on Freenas

2011-06-28 Thread Charles Lepple
On Tue, Jun 28, 2011 at 11:22 AM, Bobby Kent
bpk...@wholeworldwindow.net wrote:
 Hi John,

 You should use the Linux command lsusb to find the USB Vendor and Product
 Id, e.g.:

I misspoke - apparently freenas is based on FreeBSD (who would have
guessed from the name?!?) and I thought it was opensolaris based on
the fragment of the ZFS copyright in the screenshot.

I would agree with Bobby about the attachments, with the additional
suggestion that if it's just textual information, please don't send it
only as a graphic - it makes it harder for other people to search for
information about that model.

   I went into the gui and printed the syslog...I'm not sure how to read it
 and I've included a picture of the bottom of my UPS...I'm unsure about a USB
 vendor ID but I have the manual which I attached.

Unfortunately, there is not much information about the UPS in syslog:

Jun 27 12:01:33 frogger17a kernel: uhid0: Belkin UPS, class 0/0, rev
1.10/0.01, addr 2 on uhub0

What do you get when you run 'usbconfig' as root?

Also, the USB support in FreeBSD prior to 8.0 is not very usable from
the NUT perspective. No guarantees it will get better if you upgrade,
but I had a lot of problems trying to get tripplite_usb to work under
FreeBSD 6.x and 7.x.

-- 
- Charles Lepple

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] [Nut-upsdev] UPS on Freenas

2011-06-25 Thread Charles Lepple
[please keep the list CC'd. nut-upsuser is the best place for this  
thread.]


On Jun 25, 2011, at 11:01 AM, John Lechanski wrote:

1.  the specifications of my ups: F6C750-AVR; it has 750VA, more  
than enough to power my system, which is all that is on the ups.


What are the USB Vendor ID and Product ID?

You may need to open a shell for that. I haven't used Solaris USB  
support, so I'm not sure what commands to use.


2.  the first picture you'll see is when I unplug and plug in my ups  
via USB into the same USB port of the NAS.
3.  the second picture is going to the UPS feature on Freenas  
0.7.2.5543.  I have the OS running from a thumb drive and I have two  
sets of drives you'll see in the pic, one a raid 5 configuration  
(hard wired raid with addonics raid card) and the other is just a  
free floating HDD, no back-up.
4.  the next pictures you'll see is what happens when I try  
different configurations on the gui.  The first pair (pic 3  4) are  
the config and what it says on my nas.  When I enter this  
configuration, the nas beeps once and the screen says the first  
thing you see Broadcast Message... then after about 5 seconds,  
another beep and the second line UPS ups@localhost is unavailable


Any log entries in syslog?

5.  picture 5 is what happens when I change my configuration, still  
same error, and same reaction by nas box.
6.  the final picture is what happens when I implement a solution  
that I found on-line.  the gui software says success and my nas box  
has no change (in other words, nothing happens on my screen when I  
implement this configuration, no beeping, no nothing).  I then try  
to simulate a power outage by yanking the plug on the ups; the ups  
is on battery and the nas keeps going as if nothing is wrong.


The genericups driver cannot do error checking:

http://www.networkupstools.org/docs/man/genericups.html

With a USB cable, you would only use genericups if you were sure that  
the UPS is a basic contact-closure model with a USB-to-serial adapter  
supported by the OS.


I hope this clarifies things, no matter what configuration I use, I  
either get the error messages on the gui and the nas beeps twice  
with the above mentioned quotations or I get the one success in #6  
but it won't work.


My overall impression is that the freenas UPS support needs more  
diagnostic information.


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser