Geist G1027 Bedienerhandbuch Seite 21

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 27
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 20
GM1024 Rev 2
21
Rev Date: 7/28/2014
Sample Usage
The simplest way to get data from a Current Monitoring Meter into a script is via the XML page.
Simply performing an HTTP GET (as a web browser does) on http://<IP address of
meter>/data.xml will download the XML file. The following examples assume that the meter’s IP
address is 192.168.123.123.
Perl Example:
using LWP::UserAgent;
my $ip = 192.168.123.123;
my $browser = LWP::UserAgent->new;
$browser->timeout(5);
my $xmlFile = $browser->get(http:// . $ip . /data.xml )->content;
At this point, $xmlFile will contain the text of data.xml, ready to be parsed however necessary.
Unix/Linux Command Line Example:
wget http://192.168.123.123/data.xml
This command will download data.xml into the current directory. At this point, the file is ready
to be used by any local application or script.
SNMP Example
Getif is a simple, free SNMP viewer for Windows available from:
http://www.wtcs.org/snmp4tpc/getif.htm
1. Drop the EM meter’s MIB file into Getif’s MIBs directory (Typically C:\Program Files\Getif
2.3.1\MIBs) and start Getif.
2. Type in the unit’s IP address into the box labeled “Host Name” and click the Start button.
Getif Configuration Example
Seitenansicht 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 27

Kommentare zu diesen Handbüchern

Keine Kommentare