Talking to an WTI VMR device

Document created by cdnadmin on Jan 24, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Alka Malik on 18-04-2011 02:23:20 PM
Hello, I'm an completly new to Energywise and having a little trouble, perhaps somebody could help with out with the way things are suppose to go.
 
I have a Catalyst 2960 switch, I setup a domain on it I did the management security thing.
I can use to the Energywise SDK API to talk to this switch fine now.
 
I plugged a WTI VMR (PDU) device directly into this switch
 
I configured it though the Web UI so I know the network connection is live, I enabled Energywise, turned SNMP on, gave it the domain name
and the shared secret
 
Should I have made the domain name a hostname of some kind (like the DNS name of the switch perhaps)
can I change the domain name? I mean if do another 'energywise domain <parameters>' it'll just create a new domain right? maybe?
 
Anyway, I rebooted both the switch and the PDU and get a 'show energywise usage children' and the switchport that has the PDU is llisted
as '0.0' which is slightly suspicious
and when I try to use the SDK API to talk to the PDU it says
Mon Apr 18 14:20:40 2011  ew_init_sockets: Socket connect failed -1, error = 10061(Unknown error)
 
Any ideas what to do in order to query my PDU, I thought the switch was suppose to autodiscover and figure out that an Energywise enabled device was connected to it and configure stuff appropriately.  Do I need to get info about the PDU through the switch (like a proxy) presumably not, but thought I'd ask.
 
Thanks.
 

Subject: RE: Talking to an WTI VMR device
Replied by: Luis Suau on 19-04-2011 10:15:54 AM
Hello, I'm an completly new to Energywise and having a little trouble, perhaps somebody could help with out with the way things are suppose to go.
 
I have a Catalyst 2960 switch, I setup a domain on it I did the management security thing.
I can use to the Energywise SDK API to talk to this switch fine now.
 
I plugged a WTI VMR (PDU) device directly into this switch
 
I configured it though the Web UI so I know the network connection is live, I enabled Energywise, turned SNMP on, gave it the domain name
and the shared secret
 
Should I have made the domain name a hostname of some kind (like the DNS name of the switch perhaps)
can I change the domain name? I mean if do another 'energywise domain <parameters>' it'll just create a new domain right? maybe?
 
Anyway, I rebooted both the switch and the PDU and get a 'show energywise usage children' and the switchport that has the PDU is llisted
as '0.0' which is slightly suspicious
and when I try to use the SDK API to talk to the PDU it says
Mon Apr 18 14:20:40 2011  ew_init_sockets: Socket connect failed -1, error = 10061(Unknown error)
 
Any ideas what to do in order to query my PDU, I thought the switch was suppose to autodiscover and figure out that an Energywise enabled device was connected to it and configure stuff appropriately.  Do I need to get info about the PDU through the switch (like a proxy) presumably not, but thought I'd ask.
 
Thanks.
 

Hi Alka,
 
What version of the EW Agent is on the WTI PDU?
 
To find out on the WTI, ssh or telnet to the unit and on the command line issue: /version
 
You should be using EW12.
 
Best Regards,

Luis

Subject: RE: Talking to an WTI VMR device
Replied by: Alka Malik on 19-04-2011 12:49:01 PM
yes, it is running 1.2.67a3
I can talk to the switch it is connected to (catalyst 2960) but when I try and connect directly I get
that error.

Any ideas?
when I query the switch I get the numbers from it, so the switch can talk to it, but for some reason querying it directly does not work.

Subject: RE: Talking to an WTI VMR device
Replied by: Alka Malik on 20-04-2011 09:54:03 AM
ok, so I have to talk to the switch, that's fine, that's what I wanted to know.
when I do /version on my version it just says
VMR> /version
Version 1.30
DMU Version 1.20

It doesn't have ew12 in the version....should ew is enable, I can query it from the switch.
Now the thing is about my other questions.
How do I get plug level data from this VMR using the API, when I query (metered) I get aggregated data.
(when I query consumer, I get the power output of the VMR and not the plugs (presumably this what the data means))

also I changed the names of the plugs on the VMR yesterday, today when I do a query from the switch I still get the old names.
should I reboot?

- JT

Subject: RE: Talking to an WTI VMR device
Replied by: Luis Suau on 20-04-2011 12:22:57 AM
hmm... your output should look like:
VMR> /version
Version 1.30ew12
DMU Version:1.24
Date Code:  Tue Apr  5 12:57:20 PDT 2011

When you use the CLI on the switch, your local switch forwards the query throughout the domain and the devices that match the query criteria report (and take action if one was requested). When using a M-API equipped application, the application connects the "management switch" and the query is forwarded throughout the domain from that switch.

BTW, the domain name is simply a text string. If you choose to follow DNS notation for your domain names, you certainly can do that. The idea of a domain is that it represents network infrastructure with a common energy reference. In most buildings, the network infrastructure mimics the electrical infrastructure. By configuring switches and routers that use the same power feed, you can use energywise as a virtual sub-meter for IT connected loads.

Best Regards,

Luis

Attachments

    Outcomes