123
SNMP Interface to the PI System Versions 1.3.1.1 – 1.3.1.2 Rev B

PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Embed Size (px)

Citation preview

Page 1: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

SNMPInterface to the PI System

Versions 1.3.1.1 – 1.3.1.2Rev B

Page 2: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

How to Contact Us

Phone (510) 297-5800 (main number)(510) 297-5828 (technical support)

Fax (510) 357-8136

E-mail [email protected]

World Wide Web http://www.osisoft.com

Mail OSIsoftP.O. Box 727San Leandro, CA 94577-0427USA

OSI Software GmbH Hauptstrae 30 D-63674 Altenstadt 1Deutschland

OSI Software, LtdP O Box 8256Symonds StreetAuckland 1035 New Zealand

OSI Software, Asia Pte Ltd152 Beach Road#09-06 Gateway EastSingapore, 189721

Unpublished – rights reserved under the copyright laws of the United States.RESTRICTED RIGHTS LEGEND

Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013

Trademark statement—PI is a registered trademark of OSIsoft, Inc. Microsoft Windows, Microsoft Windows for Workgroups, and Microsoft NT are registered trademarks of Microsoft Corporation. Solaris is a registered trademark of Sun Microsystems. HP-UX is a

registered trademark of Hewlett Packard Corp.. IBM AIX RS/6000 is a registered trademark of the IBM Corporation. DUX, DEC Cisco is a registered trademark of Cisco Systems, Inc. VAX and DEC Alpha are registered trademarks of the Digital Equipment Corporation.

document.doc

2000-2005 OSIsoft, Inc. All rights reserved777 Davis Street, Suite 250, San Leandro, CA 94577

Page 3: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Table of Contents

Introduction....................................................................................................................1Reference Manuals......................................................................................................2

Supported Features......................................................................................................2

Diagram of Hardware Connection................................................................................4

Principles of Operation.................................................................................................5PI-SNMP’s Role in SNMP Networks.............................................................................5

PI-SNMP Internal Operation.........................................................................................5

PI-SNMP User Operation Summary.............................................................................6

PI Data Input and Output.............................................................................................6

Installation Checklist.....................................................................................................7

Interface Installation......................................................................................................9Naming Conventions and Requirements......................................................................9

PI-Interface Configuration Utility...................................................................................9

Interface Directories...................................................................................................10

The PIHOME Directory Tree...................................................................................10

Interface Installation Directory................................................................................10

Interface Installation Procedure..................................................................................10

Installing the Interface as an NT Service....................................................................11

Installing the Interface Service with PI-Interface Configuration Utility....................11

Installing the Interface Service Manually................................................................14

Digital States................................................................................................................15

PointSource..................................................................................................................17

PI Point Configuration.................................................................................................19Point Attributes...........................................................................................................19

Tag.........................................................................................................................19

PointSource............................................................................................................19

PointType...............................................................................................................19

SNMP Interface to the PI System iii

Page 4: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Location1................................................................................................................20

Location2................................................................................................................20

Location3................................................................................................................21

Location4................................................................................................................22

Location5................................................................................................................23

InstrumentTag........................................................................................................23

ExDesc...................................................................................................................23

Scan.......................................................................................................................28

Shutdown................................................................................................................28

SourceTag..............................................................................................................29

Conversion..............................................................................................................29

Performance Point Configuration...............................................................................31Configuring Performance Points with PI-ICU.............................................................31

Configuring Performance Points Manually.................................................................32

I/O Rate Point Configuration.......................................................................................33Monitoring I/O Rates on the Interface Node...............................................................33

Configuring I/O Rate Points with PI-ICU.....................................................................33

Configuring I/O Rate Points Manually........................................................................35

Configuring the I/O Rate Point on the PI Server.....................................................35

Configuration on the Interface Node.......................................................................35

Startup Command File.................................................................................................37Using PI-ICU to Maintain Startup Command File.......................................................37

Command-line Parameters.........................................................................................41

Sample pisnmp.bat File..............................................................................................46

pisnmp.ini File -- Obsolete..........................................................................................47

Interface Node Clock...................................................................................................49

Security.........................................................................................................................51

Starting / Stopping the Interface.................................................................................53Starting Interface as a Service...................................................................................53

Stopping Interface Running as a Service...................................................................53

Buffering.......................................................................................................................55Configuring Buffering with PI-ICU...............................................................................55

SNMP Interface to the PI System iv

Page 5: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Configuring Buffering Manually..................................................................................58

Example piclient.ini File..............................................................................................59

Appendix A: Error and Informational Messages.......................................................61Message Logs............................................................................................................61

Messages...................................................................................................................61

Location5....................................................................................................................62

System Errors and PI Errors.......................................................................................63

Common Problems.....................................................................................................63

Unexpected Value..................................................................................................63

PI-SNMP Startup....................................................................................................64

Point Loading..........................................................................................................64

No New Value.........................................................................................................65

Value of 0...............................................................................................................66

I/O Timeout.............................................................................................................66

Bad Input................................................................................................................66

Configure................................................................................................................67

Missed Scans.........................................................................................................67

Appendix B: snmpget..................................................................................................69

Appendix C: OID Examples.........................................................................................71

Appendix D: Basic SNMP for PI Users.......................................................................73

Appendix E: Tutorial on Using PI-SNMP with Routers.............................................77

Appendix F: PI-SNMP Technical Details....................................................................83

Appendix G: ifAlias Support.......................................................................................85

Appendix H: Known Issues.........................................................................................89

Appendix I: Acknowledgments...................................................................................91Net-SNMP..................................................................................................................91

OpenSSL....................................................................................................................95

Revision History.............................................................................................................97

SNMP Interface to the PI System v

Page 6: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

IntroductionOSIsoft’s PI-SNMP data collection interface program gathers information from SNMP-enabled devices residing in a TCP/IP network. The operation of PI-SNMP requires that these devices be able to send and receive messages via the SNMP protocol. In particular, they must have an SNMP Agent that supports SNMPv1, SNMPv2c, or SNMPv3.

Because RMON (Remote Monitoring) is a specific application of the SNMP protocol, PI-SNMP supports the retrieval of RMON values.

PI-SNMP Basic (a limited version of the full PI-SNMP program) is also available from OSIsoft. PI-SNMP Basic has the following limitations:

it gets data for up to 32 PI points

only one copy of the program may be running at a time

it runs only on a machine that is also running the PI Server

it sends data only to this PI Server machine

In addition, the filename of PI-SNMP Basic is pisnmp_basic.exe (versus pisnmp.exe for the full version).

The following table summarizes the differences between the full and basic versions of PI-SNMP.

PI-SNMP PI-SNMP Basic

Maximum point count Point count of PI Server

32

Availability Available for purchase

Installed as part of PI Server 3.3 and higher

Can run on a PI Interface node Yes No

Must run on a PI Server node No Yes

Must send data to the PI Server node on which it runs

No Yes

Number of copies that can run simultaneously

Unlimited 1

Filename pisnmp.exe pisnmp_basic.exe

PI-SNMP runs on a Microsoft Windows NT (version 4.0 or higher), Windows 2000, Windows XP, or Windows Server 2003 computers. Unless otherwise noted, the remainder of this document uses the term “Windows” to refer to all four. PI-SNMP requires PI-SDK version 1.2.0 Build 180 (or higher).

The flow of data for the Interface is bi-directional. Specifically, PI-SNMP retrieves values from SNMP devices (i.e., PI input points) as well as sets values on SNMP devices (i.e., PI output points).

SNMP Interface to the PI System 1

Page 7: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Introduction

PI-SNMP does not require any special hardware. A standard network interface card on the Windows machine is sufficient.

In order to utilize PI-SNMP effectively, the user should be familiar with both basic SNMP and PI technologies. For example, for SNMP, the user should be familiar with the terms Management Information Base (MIB), Object Identifier (OID), and community string. Users who are not familiar with SNMP should consult Appendices B and C of this document.

On the PI side, the user should be adept at creating and editing PI points. Also, the user needs to know the differences between time-based and event based data collection in PI.

Reference Manuals

OSIsoft UniInt End User Document

PI Server manuals

PI-API Installation Instructions

PI-API manual

PI-ICU User Manual

Supported FeaturesFeature Support

Part Number PI-IN-OS-SNMP-NTI

PI-IN-OS-SNMPB-NT (Basic version)

Platforms Windows (NT4, 2000, XP, Server 2003) (Intel)

APS Connector Currently Available No

Point Builder Utility Yes

ICU Control Yes

PI Point Types PI 3.x (float16 / float32 / float64 / int16 / int32 / digital / string)

Sub-second Timestamps Yes

Sub-second Scan Classes Yes

Automatically Incorporates PI Point Attribute Changes

Yes

Exception Reporting Yes

Outputs from PI Yes

Inputs to PI: Scan-based / Unsolicited / Event Tags

Scan-based / Event Tags

Maximum Point Count Point Count of PI Server (full version only)

2

Page 8: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Feature Support

Uses PI-SDK Yes

PINet to PI 3.x String Support Not applicable

* Source of Timestamps PI Server machine

History Recovery No

Failover No

* UniInt-based Yes

Vendor Software Required on PI Interface Node

No

* Vendor Software Required on Foreign Device

Yes

Vendor Hardware Required No

* Additional PI Software Included with Interface

Yes

* Device Point Types Integers and octet strings

* See paragraphs below for further explanation.

Source of TimestampsThe clock on the computer running the PI Server provides the source of timestamps for the values sent by PI-SNMP. The Interface writes a timestamp that reflects the time at which it receives data from the SNMP devices.

UniInt-basedUniInt stands for Universal Interface. UniInt is not a separate product or file; it is an OSIsoft-developed template used by developers, and is integrated into many interfaces, such as the PI-SNMP Interface. The purpose of UniInt is to keep a consistent feature set and behavior across as many OSIsoft-developed interfaces as possible. UniInt also allows for the very rapid development of new interfaces. In any UniInt-based interface, the Interface uses some of the UniInt-supplied configuration parameters and some interface-specific parameters. UniInt is constantly being upgraded with new options and features.

The UniInt End User Document is a supplement to this manual.

Vendor Software Required on Foreign DeviceIn order for PI-SNMP to retrieve data from the foreign device, the device must be running an SNMP Agent. Devices such as network routers and switches typically come with SNMP Agents by default. Other network-enabled devices such as workstations, servers, and printers may also have SNMP Agents built-in. Alternatively, third-parties may supply SNMP Agents for these devices.

SNMP Interface to the PI System 3

Page 9: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Introduction

Additional PI SoftwareOSIsoft strongly recommends the use of the PI SNMP Tag Builder plug-in for PI SMT 3 to assist with the tag building process. This software is available from the OSIsoft Technical Support site at http://techsupport.osisoft.com/. For further details, consult the plug-in documentation.

Device Point TypesPI-SNMP supports the retrieval of integer and string data. PI-SNMP can also retrieve MAC addresses and IP addresses from SNMP Agents.

Diagram of Hardware Connection

4

Page 10: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Principles of Operation

PI-SNMP’s Role in SNMP NetworksIn SNMP terminology, the PI-SNMP data collector behaves like an SNMP Manager. It retrieves information from network devices via the SNMP Agent running on these devices.

However, PI-SNMP is not a complete SNMP Manager. It cannot receive data via traps sent by SNMP Agents. Thus, PI-SNMP’s primary purpose is to gather statistics and data -- not to control or configure network nodes.

PI-SNMP Internal OperationWhen the Interface starts up, it retrieves from the PI Server a set of points that have the same point source as that specified in the Interface’s startup command file. The Interface then begins loading its points. It first checks the point’s Location1 attribute to make sure that it matches the value of the "-id" startup command parameter. It then looks in

the Extended Descriptor attribute for the OID (Object Identifier) specification;

the Extended Descriptor attribute for the community string information if the data is to be read from an SNMPv1 or SNMPv2c agent; or

the Extended Descriptor attribute for a username, authentication password, and privacy password if the data is to be read from an SNMPv3 agent;

the Instrument Tag attribute for the hostname/IP address of the SNMP Agent;

the Location2 attribute to determine whether to retrieve a value from the SNMP Agent or to set a value on the SNMP Agent.

SNMP Interface to the PI System 5

PI Server

SNMP Agent

PI-SNMP

SNMP Agent SNMP Agent

router server switch

Page 11: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

The Interface stores all this information internally for later use; specifically, when it utilizes the community string to query the SNMP Agent for the OID value.

For input points that have Location3 set to 1, PI-SNMP groups together those points that reference a common SNMP Agent.

When PI-SNMP is ready to poll SNMP Agents for data, it creates a separate thread to poll each SNMP Agent separately. After it receives a value from an SNMP Agent for a particular OID, PI-SNMP applies the conversion factor (for numeric points) and sends the resulting value back to the UniInt interface template.

PI-SNMP User Operation SummaryThe following steps summarize how to use PI-SNMP to retrieve data from SNMP enabled network devices.

1. For a particular network element, the user determines the OID representation of the statistic in which he is interested. Recall that OIDs are defined by standards body, or are proprietary to individual manufacturers of network device. As an example, on a router, the total number of octets received on the third network interface is represented by the OID.1.3.6.1.2.1.2.2.1.10.3orinterfaces.ifTable.ifEntry.ifInOctets.3

2. The user configures points in the PI point database. This configuration tells PI-SNMP how to retrieve a value from the remote device.

3. The user runs PI-SNMP in a Windows command prompt to confirm that the PI point configuration correctly represents the data to be collected. This procedure is known as “interactively running the Interface”.

4. The user stops interactive execution of PI-SNMP and installs PI-SNMP as a Windows Service. This procedure allows the Interface continuously to run and collect data.

PI Data Input and OutputThe PI-SNMP Interface supports both time-based and event-based inputs from network devices to the PI Server. Time-based inputs occur at fixed time frequencies. Event-based inputs occur whenever there is a change in value in the PI event point.

As in all UniInt-based interfaces, PI-SNMP supports outputs from the PI Server to an SNMP Agent on an event basis. Specifically, PI-SNMP sends an SNMP SET message to an SNMP Agent when the PI source tag for output receives a new event.

SNMP Interface to the PI System 6

Page 12: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Installation ChecklistFor those users who are familiar with running PI data collection interface programs, this checklist helps get the PI-SNMP interface running. If you are not familiar with PI interfaces, return to this section after reading the rest of the manual in detail.

Please follow the steps in the order listed below.

1. Install the PI-Interface Configuration Utility (which installs PI-SDK and PI-API).

2. PI SMT 3.x should be installed to take advantage of the PI SNMP Tag Builder.

3. Confirm PI-API connectivity to the PI Server by running the apisnap program.

4. Run the PI-SNMP installation program.

5. Test the connection between the PI Interface node and the SNMP Agent by using snmpget or the PI SNMP Tag Builder plug-in for PI SMT 3.x.

6. Choose a point source for use by the Interface.

7. Use the PI-ICU to configure startup parameters. Alternatively, manually edit the startup command file.

8. Configure PI points to be used by the Interface. Run the PI SNMP Tag Builder plug-in or use another utility and follow these guidelines: Location1 is the interface instance.Location2 tells the Interface to store the changes in value rather than the absolute value. Location2 also indicates input (SNMP Agent to PI Server) or output (PI Server to SNMP Agent).Location3 tells the Interface to group common points.Location4 is the scan class.Location5 enables point level debugging.ExDesc holds the OID (i.e., variable to retrieve). For SNMPv1 and SNMPv2c points, the Extended Descriptor holds the community string. For SNMPv3 points, the Extended Descriptor holds a username, authentication type, authentication password, and privacy password.InstrumentTag specifies the SNMP Agent.

9. Configure performance points.

10. Configure an I/O Rate point.

11. Modify the security of the PI Server. For PI 3.x, edit the PI Trust or PI Proxy table as appropriate.

12. Stop the PI Buffer Server.

13. Interactively start the Interface.

14. Verify that data are correctly being written to the PI Server.

15. Stop the Interface and start the PI Buffer Server.

16. Confirm that the Interface re-starts after a complete machine shutdown and restart.

SNMP Interface to the PI System 7

Page 13: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Interface InstallationOSIsoft recommends that interfaces be installed on PI Interface Nodes instead of directly on the PI Server node. A PI Interface Node is any node other than the PI Server node where the PI Application Programming Interface (PI-API) has been installed (see the PI-API manual). With this approach, the PI Server need not compete with interfaces for the machine’s resources. The primary function of the PI Server is to archive data and to service clients that request data

After the interface has been installed and tested, Bufserv should be enabled on the PI Interface Node (once again, see the PI-API manual). Bufserv is distributed with the PI-API. It is a utility program that provides the capability to store and forward events to a PI Server, allowing continuous data collection when communication to the PI Server is lost. Communication will be lost when there are network problems or when the PI Server is shut down for maintenance, upgrades, backups, or unexpected failures.

In most cases, interfaces on PI Interface Nodes should be installed as automatic services. Services keep running after the user logs off. Automatic services automatically restart when the computer is restarted, which is useful in the event of a power failure.

The guidelines are different if an interface is installed on the PI Server node. In this case, the typical procedure is to install the PI Server as an automatic service and interfaces as manual services that are launched by site-specific command files when the PI Server is started. Interfaces that are started as manual services are also stopped in conjunction with the PI Server by site-specific command files. This typical scenario assumes that Bufserv is not enabled on the PI Server node. Bufserv can be enabled on the PI Server node so that interfaces on the PI Server node do not need to be started and stopped in conjunction with PI, but it is not standard practice to enable buffering on the PI Server node. See the UniInt End User Document for special procedural information.

Naming Conventions and RequirementsIn the installation procedure below, it is assumed that the name of the interface executable is pisnmp.exe and that the startup command file is called pisnmp.bat.

It is customary for the user to rename the executable and the startup command file when multiple copies of the interface are run. For example, one would typically use pisnmp1.exe and pisnmp1.bat for interface number 1, pisnmp2.exe and pisnmp2.bat for interface number 2, and so on. When an interface is run as a service, the executable and the command file must have the same root name because the service looks for its command-line arguments in a file that has the same root name.

PI-Interface Configuration UtilityThe PI-Interface Configuration Utility is an application that aids in PI System management by consolidating the setup and configuration options required for new and existing PI Interfaces. Although PI-ICU itself runs only on Windows machines, it is compatible with all PI Server versions 3.3.361.43 or higher.

So, for the above example, the following files should be present:

SNMP Interface to the PI System 9

Page 14: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Interface Installation

C:\pipc\interfaces\snmp\pisnmp1.exeC:\pipc\interfaces\snmp\pisnmp1.batC:\pipc\interfaces\snmp\pisnmp2.exeC:\pipc\interfaces\snmp\pisnmp2.batHowever, if the PI-ICU is used, then the above renaming requirements do not apply because the PI-ICU manages multiple copies of interfaces without the user having to copy and rename files.

PI-ICU must be installed on the computer on which the interface is installed.

Interface Directories

The PIHOME Directory TreeInstallation of the PI-API (or any other OSIsoft product that runs on Microsoft Windows) creates the PIHOME directory tree. In particular, it creates a PIHOME entry in the pipc.ini configuration file. The pipc.ini file is an ASCII text file located in the directory where Windows itself is installed.

A typical pipc.ini file contains the following lines:[PIPC]PIHOME=C:\pipcThe above entry defines the C:\pipc directory as the root of the PIHOME directory tree on the C: drive. The PIHOME directory does not need to be on the C: drive.

Interface Installation DirectoryThe PI-SNMP Interface is installed typically under the PIHOME directory in a subdirectory named \interfaces\snmp. For example,C:\pipc\interfaces\snmp

The basic version of PI-SNMP is installed typically under the PIHOME directory in a subdirectory named \interfaces\snmp_basic. For example,C:\pipc\interfaces\snmp_basic

Interface Installation ProcedureThe PI-SNMP interface setup program uses the services of the Microsoft Windows Installer. Windows Installer is a standard part of Windows 2000. When running on Windows NT 4.0 systems, the PI-SNMP setup program will install the Windows Installer itself if necessary. To install, run the PISNMP_x.x.x.x.exe installation kit.

After running the setup program, a directory structure and files such as the following result:C:\pipc\interfaces\snmp\mibs\*.txtC:\pipc\interfaces\snmp\libsnmp.dllC:\pipc\interfaces\snmp\pi_pisnmp.docC:\pipc\interfaces\snmp\pi_pisnmp_x.x.x.x.txtC:\pipc\interfaces\snmp\pisnmp.bat.new

10

Page 15: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

C:\pipc\interfaces\snmp\pisnmp.exeC:\pipc\interfaces\snmp\pisnmp.pdbC:\pipc\interfaces\snmp\pisnmp.pwdC:\pipc\interfaces\snmp\snmpget.bat.newC:\pipc\interfaces\snmp\snmpget.exeC:\pipc\interfaces\snmp\snmpwalk.bat.newC:\pipc\interfaces\snmp\snmpwalk.exe

The basic version of PI-SNMP is installed as part of the PI Server. A directory structure and files such as the following result:C:\pipc\interfaces\snmp_basic\pi_pisnmp.docC:\pipc\interfaces\snmp_basic\pi_pisnmp_x.x.x.x.txtC:\pipc\interfaces\snmp_basic\pisnmp_basic.bat.newC:\pipc\interfaces\snmp_basic\pisnmp_basic.exeand so on.

Installing the Interface as an NT ServiceThe PI SNMP interface service can be created, preferably, with the PI-Interface Configuration Utility, or can be created manually.

The next two sections describe these procedures.

Installing the Interface Service with PI-Interface Configuration UtilityThe PI-Interface Configuration Utility provides a graphical user interface for creating, editing, and deleting the Interface as a Windows service. However, before the PI-SNMP Interface service can be created, the PI-ICU must first be configured to recognize the Interface.

From the PI-ICU menu, select Interface, New, and then Browse to the pisnmp.exe executable file. Then, enter values for Point Source and Interface ID#. A window such as the following results:

Click Add.

SNMP Interface to the PI System 11

Page 16: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Interface Installation

The following dialog should appear:

Near the top of the main PI-ICU screen, the Interface Type should be pisnmp. If not, use the drop-down box to change the Interface Type to be pisnmp.

Also, add an entry for the Scan Classes. The value of this entry specifies the frequency at which PI-SNMP polls SNMP Agents.

Click Apply to enable PI-ICU to manage this copy of the PI-SNMP Interface.

To install the Interface as a service, click on the Service tab.

12

Page 17: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

The above shows that this pisnmp1 service is dependent on the bufserv (PI-Buffer Server) service.

Finally, click on Create to create the interface service.

To remove the interface service, click on Remove.

To start the PI-SNMP Interface service, click on the start button ( ) located on the PI-ICU toolbar.

When the PI-SNMP Interface service is currently running, click on the stop button ( ) to stop it.

To determine the current status of the Interface service, look at the lower portion of the PI-ICU screen. For example,

shows that the Interface service is currently installed, but it is stopped.

SNMP Interface to the PI System 13

Page 18: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Interface Installation

Installing the Interface Service ManuallyHelp for installing the interface as a Windows service by using the -help command line parameter. For example,C:\pipc\interfaces\snmp\pisnmp.exe –help

C:\pipc\interfaces\snmp_basic\pisnmp_basic.exe –help To manually install the Interface service, open a Windows command prompt window and go to the directory where the pisnmp.exe executable is located. Then, consult the following table to determine the appropriate service installation command.

Windows Service Installation Commands on a PI Interface Nodewith Bufserv Implemented

Manual service pisnmp.exe –install –depend "bufserv pinetmgr" –display "PI-SNMP"

Automatic service pisnmp.exe –install –auto –depend "bufserv pinetmgr" –display "PI-SNMP"

Automatic service with service id

pisnmp.exe –serviceid x –install –auto –depend "bufserv pinetmgr" –display "PI-SNMP"

Windows Service Installation Commands on a PI Interface Node without Bufserv Implemented

Manual service pisnmp.exe –install –depend "pinetmgr" –display "PI-SNMP"

Automatic service pisnmp.exe –install –auto –depend "pinetmgr" –display "PI-SNMP"

Automatic service with service id

pisnmp.exe –serviceid x–install –auto –depend "pinetmgr" –display "PI-SNMP”

Check the Microsoft Windows services control panel to verify that the service was added successfully. Refer to the services control panel at any time to change the interface from an automatic service to a manual service, or vice versa.

14

Page 19: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Digital StatesFor more information regarding Digital States, refer to the PI Server Manuals.

User-defined Digital State SetsPI digital states are discrete values represented by strings. These strings are organized in PI as digital state sets. Each digital state set is a user-defined list of strings, enumerated from 0 to n to represent different values of discrete data.

An interface point that contains discrete data can be stored in PI as a digital tag. A Digital tag associates discrete data with a digital state set, as specified by the user.For example, for the OID

interfaces.ifTable.ifEntry.ifOperStatus,

the list of strings and discrete values are:

Up (1)

Down (2)

Testing (3)

However, because PI enumerates digital state values from 0, the digital state set must be created for the above values with a “dummy” first entry. For example, to use piconfig to create a custom digital state set called OperStat:C:> piconfig(Ls - ) PIconfig> @table pids(Ls - PIDS) PIconfig> @mode create(Cr - PIDS) PIconfig> @istr set, state, . . .(Cr - PIDS) PIconfig> OperStat, dummy, up, down, testing

A newer tool is available to create user-defined digital state sets. The PI Digital State Editor plug-in for PI SMT 3 is a graphical way to edit digital state sets.

SNMP Interface to the PI System 15

Page 20: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

System Digital State SetSimilar to digital state sets is the system digital state set. This set is used for all tags, regardless of type to indicate the state of a tag at a particular time. For example, if the interface receives bad data from an interface point, it writes the system digital state bad input to PI instead of a value. The system digital state set has many unused states that can be used by the interface and other PI clients.

SNMP Interface to the PI System 16

Page 21: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

PointSourceThe PointSource is a single, unique character that is used to identify the PI point as a point that belongs to a particular interface. For example, one may choose the character $ to identify points that belong to the SNMP interface. To implement this, one would set the PointSource attribute to $ for every PI Point that is configured for the PI SNMP interface. Then, if one uses -ps=$ on the startup-command line of the PI SNMP interface, the SNMP interface will search the PI Point Database upon startup for every PI point that is configured with a PointSource of $. Before an interface loads a point, the interface usually performs further checks by examining additional PI point attributes to determine whether a particular point is valid for the interface. For additional information, see the -ps argument.

However, before the Interface begins data measurement for a point from this list, it examines additional PI point attributes. This examination further determines the validity of a PI point for use with the Interface. For additional information, see the section on Point Configuration and the description of the -ps parameter in Startup Commands.

PI Server version 3.x comes pre-configured with applications that use some of the otherwise available point source characters. Accordingly, the following PointSource characters are reserved and should not be used with the PI-SNMP Interface.

Application Point SourceTotalizer T

Alarm Subsystem G, @

Performance Equation Scheduler C

Random R

RampSoak 9

Of course, do not use any point source character that is already associated with another interface program. Also, do not use L, as it is the default point source character for PI points. Lastly, the % character is treated as a special character in .bat files, and thus should not be used if the interface will be run interactively.

SNMP Interface to the PI System 17

Page 22: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

PI Point ConfigurationThe PI point is the basic building block for controlling data flow to and from the PI Server. A single point is configured for each measurement value that needs to be archived. Use the point attributes below to define what data to transfer.

Point AttributesEvery two minutes, PI-SNMP checks the PI Server for changes to PI points whose PointSource is associated with the Interface. The Interface automatically incorporates these changes into its point list.

However, PI-SNMP can process only 25 point changes every 30 seconds. If more than 25 points are added, edited, or deleted, PI-SNMP will process the first 25 points, wait 30 seconds, process the next 25 points, and so on. As soon as the Interface has processed all point changes, it will resume checking for point updates every two minutes.

Use the point attributes below to define how PI-SNMP associates PI points with data available from SNMP Agents.

Note: The PI SNMP Tag Builder plug-in to PI SMT 3.x is recommended for tag building.

TagA tag is a label or name for a point. Any tag name can be used in accordance to the normal PI point naming conventions.

PointSourceThe PointSource is a single, unique character that is used to identify the PI point as a point that belongs to a particular interface. For additional information, see the -ps command-line argument and the “Point Source” section.

PointTypeTypically, device data types do not need to exactly match PI point types. For example, integer values from a device can be sent to PI floating or digital points. Similarly, a floating-point value from the device can be stored into PI integer or digital points, although the values will be truncated.

PI-SNMP supports the retrieval of SNMP data into the following PI point types: Int16 Int32 Float16 Float32 Float64 Digital String

For more information on the individual point types, see the PI Server Manuals.

SNMP Interface to the PI System 19

Page 23: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

SNMP Data Types SNMP data types are typically integers and octet strings. Store SNMP integer data into a PI point of PointType Int16, Int32, Float16, Float32, or Float64. If SNMP integers will always be part of a predetermined set of values (e.g., 1 through 5), these integers may be stored in a PI Digital point. Store SNMP octet strings into a PI point of PointType String.

Location1Location1 indicates to which copy of the interface the point belongs. The value of this attribute must match the -id startup parameter.

Location2The Location2 attribute determines whether a point is an input or an output.

Input – Location2 greater than or equal to zero

Output – Location2 negative

Input PointsFor input points, Location2 affects how PI-SNMP sends SNMP “counter” values to the PI Server. Specifically, PI-SNMP can be configured to collect counter values not as an absolute number but as a rate. That is, the value sent to PI Server is the difference between the scanned value and the previous value divided by the time (in seconds) between scans.

Set Location2 to 0 for SNMP values that are not “counter.”

SNMP type Location2 Value sent to the PIcounter 1 rate value; see below

all others 0 scanned value

For example, if Location2 is set to 1:scanned value = 2000previous value = 200scan time = 1 minutevalue sent to PI Server = (2000 – 200)/60 = 30

The “previous value” mentioned above refers to the value read by PI-SNMP and not to the previous value in the PI Server. Thus, for points with Location2 set to 1, it initially takes PI-SNMP two scans before it sends a value to the PI Server.

Whenever Location 2 is set to 1, the value as returned from the SNMP Agent must be of type “counter” as defined in the MIB. Otherwise, PI-SNMP writes the digital state CONFIGURE to the point. However, it is permissible for an SNMP “counter” value to have Location2 set to 0. In this case, the scanned value is sent to the PI Server.

SNMP Interface to the PI System 20

Page 24: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Output PointsFor output points (Location2 less than zero), Location2 specifies the SNMP data type that the Interface uses to perform an SNMP SET to an OID value. The following table indicates the acceptable Location2 values for an output point.

Location2 SNMP Data Type Example / Comments-1 Let the Interface decide see table below

-2 Integer 1234

-3 String Abcd

-4 IP address 192.168.10.100

For output points with Location2 set to -1, the SNMP data type is based on the point type of the Interface point. Specifically,

Interface Point Type Source Point Type SNMP Data Type and ValueInteger Integer Integer value

Integer Float Integer representation of float value

Integer Digital Integer representation of digital value

Integer String Integer representation of string value

String Integer String representation of integer value

String Float String representation of float value

String Digital String representation of digital value

String String String value

In the table above, an interface or source point type of Integer refers to Int16 and Int32. Similarly, a source point type of Float refers to Float16, Float32, and Float64.

For output points, the Interface does not support an interface point type of Digital, Float16, Float32, or Float64.

Be sure to use the –out startup command parameter (described later) to enable SNMP SET/PI output support in the Interface.

Location3For input points, the Location3 attribute indicates whether the point is a part of a set of multiple OID requests to be sent to a network device. By default, PI-SNMP sends a single request for each PI point to retrieve its corresponding OID value. If Location3 is set to 1, then PI-SNMP groups together the point with other points that have these identical attributes:

SNMP device name (host= in the InstrumentTag)

community string (CS= in the ExDesc) for SNMPv1 and SNMPv2c points

username (USER= in the ExDesc) for SNMPv3 points

SNMP Interface to the PI System 21

Page 25: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

PI Point Configuration

Location4 value or PI event tag

PI-SNMP groups these points into sets of up to 5. This size is configurable, and its configuration is described in a later section. Then, for every set, PI-SNMP sends a single request to the SNMP Agent on the network device in order to retrieve these 5 OID values.

Note: Be aware that the grouping of points into a set requires the specification of identical network device names. That is, even though host=router and host=192.168.100.10 may refer to the same network device, PI-SNMP will not group a point configured with host=router together with a point configured with host=192.168.100.10.

When PI-SNMP first starts up, it prints a summary of the sets it has allocated. For example,PI-SNMP- 1> There are 5 points/tags with Location3=1; Summary:PI-SNMP- 1> Set=1, Device=router, Scan class=2, Tags=4PI-SNMP- 1> Set=2, Device=router, Event tag=router_rx_Ethernet0/0, Tags=1

A single request for multiple OIDs increases data collection efficiency. However, such a message may be so large in physical size that it will be fragmented into multiple packets and may not reach its destination. Also, a message with requests for multiple OIDs may overwhelm the capability of the SNMP Agent on the network device.

In addition, if the SNMP agent on the network device indicates that it does not recognize any one of the OIDs in this set, PI-SNMP writes Configure for all of the points in this set. PI-SNMP also writes to the log file messages similar to the following:PI-SNMP- 1> Device reports at least 1 unknown OID in the following set of 2 tags:PI-SNMP- 1> Tag: router_tx_Ethernet0/0, OID: interfaces.ifTable.ifEntry.ifOutOctets.85PI-SNMP- 1> Tag: router_jab_4, OID:

rmon.statistics.etherStatsTable.EtherStatsEntry .etherStatsJabbers

To find out which point contains the unsupported OID, use the snmpget program (described later).

In summary,

SNMP OID requests Location3single 0

multiple 1

Location4

Scan-based InputsFor interfaces that support scan-based collection of data, Location4 defines the scan class for the PI point. The scan class determines the frequency at which input points are scanned for new values. For more information, see the description of the -f flag in the section called “Startup Command File.”

Event-based InputsLocation 4 should be set to zero for these points. See the section on the ExDesc for more information on event-based inputs.

22

Page 26: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Location5The Location5 attribute is used for point-level debugging.

Location5 Debugging

0 none

1 minimal

2 medium

3 maximum

If a PI-SNMP point is not receiving the values it should be receiving, set its Location5 attribute to 3 to perform debugging. PI-SNMP then writes debugging messages to the message log. Stop the logging of these debugging messages by setting Location5 to 0.

Because PI-SNMP automatically responds to point attribute changes, it is not necessary to stop and restart the program for changes to Location5 to take effect.

InstrumentTagThe InstrumentTag attribute holds the IP address or hostname of the SNMP device for which to retrieve a value (i.e., input point) or to send a value (i.e., output point). Examples of an InstrumentTag attribute are:

host=192.168.100.11;host=router1;

ExDescThe Extended Descriptor attribute holds various required and optional information that the Interface uses in order to successfully retrieve data from an SNMP device or to successfully set data on an SNMP device.

Object Identifier (OID=)This item is necessary to specify the SNMP OID whose value the Interface is to collect or to set. For example,

OID=.1.3.6.1.2.1.1.3.0;

For OIDs that are part of the standard MIB-II, the textual representation may be used. For example,

OID=system.sysUptime.0;

For OIDs that are part of the interfaces.ifTable.ifEntry group, the following abbreviated form may be used:

OID_I=ifInOctets.3;

The Interface treats the above as equivalent to:OID=interfaces.ifTable.ifEntry.ifInOctets.3;

SNMP Interface to the PI System 23

Page 27: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

PI Point Configuration

Key Identifier (KEY=)When a router reboots, it often assigns a different index number to a particular instance of one of its network interfaces. For example, an interface named Serial1/0.1 has an ifIndex value of 25. Thus, the OID variable

interfaces.ifTable.ifEntry.ifInOctets.25

represents the number of inbound octets received on this Serial1/0.1 interface. Accordingly, there may be a PI point named tag1 configured with an Extended Descriptor such as:

OID_I=ifInOctets.25

After a router reboot, the Serial1/0.1 interface may be assigned an ifIndex of 31. Therefore, the number of inbound octets received on the interface is now given by the OID

interfaces.ifTable.ifEntry.ifInOctets.31

However, the point tag1 is still configured with an Extended Descriptor containing the ifIndex of 25. As a result, tag1 is no longer collecting data for Serial1/0.1. In addition, there may be difficulty realizing that the ifIndex for Serial1/0.1 has changed from 25 to 31.

To help, PI-SNMP allows specification of a KEY value in the ExDesc that should be matched before the data retrieved is declared to be good. In the example above, before the router reboot, the OID

interfaces.ifTable.ifEntry.ifDescr.25

represents the description of the interface whose index is 25. A likely value for this OID is:

Serial1/0.1

If tag1 is configured with the Extended Descriptor:

KEY=Serial1/0.1; OID_I=ifInOctets.25

PI-SNMP understands that the index number in question is 25. Accordingly, it sends an SNMP request to the network device and asks for the value of:

interfaces.ifTable.ifEntry.ifDescr.25

If the value returned does not match the one specified by the KEY value in the point configuration, then PI-SNMP writes Bad Input to tag1.

Therefore, after a router reboot, if the router re-assigns indices to its interfaces, then the value for

interfaces.ifTable.ifEntry.ifDescr.25

will most likely not be “Serial1/0.1.” In this manner, if points contain Bad Input, check their configuration.

When using the PI SNMP Tag Builder plug-in for PI SMT 3.x to build points, the plug-in automatically enters the KEY value into the Extended Descriptor. Otherwise, manually find the values for

interfaces.ifTable.ifEntry.ifDescr.X

and put these into the KEY= entries.

24

Page 28: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Currently, the Interface uses the KEY value only for input points, and only to match values of

interfaces.ifTable.ifEntry.ifDescr.X

with OIDs from the interfaces group.

In addition, a Cisco router may support the following command:router(config)# snmp-server ifindex persist

Such a command tells the router not to renumber the interface indices after a reboot. In this situation, the KEY= identifier will not be necessary.

Note: After issuing ifIndex persistence commands, it is necessary to save the configuration by using the copy running-config startup-config EXEC mode command to ensure consistent ifIndex values. See the Cisco IOS documentation for more information.

Row Identifier (OID_G= and OID_G_R=)Another option for dealing with certain dynamic OIDs is to specify the sequence number of an OID within a particular group. This is accomplished by using the OID_G= parameter to specify an OID group and OID_G_R= to designate the row within that group. For example, a group of OIDs may be:

.1.3.6.1.2.1.87.1.3.1.3.25

.1.3.6.1.2.1.87.1.3.1.3.49

.1.3.6.1.2.1.87.1.3.1.3.53

during one scan. On the next scan, this group may be:.1.3.6.1.2.1.87.1.3.1.3.19

.1.3.6.1.2.1.87.1.3.1.3.44

.1.3.6.1.2.1.87.1.3.1.3.54

If an Extended Descriptor is:OID_G=.1.3.6.1.2.1.87.1.3.1.3; OID_G_R=2;

the interface will read from .1.3.6.1.2.1.87.1.3.1.3.49 on the first scan, and .1.3.6.1.2.1.87.1.3.1.3.44 on the second scan.

SNMP IP Address Data Type (IPADDR=)If the data type returned from the SNMP device is an IP Address, the Interface can store the dotted decimal representation of the IP Address. Put the following in the Extended Descriptor for a PI string point:

IPADDR=1;

That is, PI-SNMP will store a value such as “192.168.10.1”. Otherwise, PI-SNMP will not be able to store the IP Address (which is a 32-bit numeric value) into the PI string point.

SNMP Version (V=)Specify the version of SNMP to use with the V= parameter:

SNMP Interface to the PI System 25

Page 29: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

PI Point Configuration

Version Extended Descriptor

SNMPv1 V=1;

SNMPv2c V=2c;

SNMPv3 V=3;

If a version is not specified, the Interface defaults to SNMPv1.

SNMPv1 / SNMPv2c Community String (CS= and WCS=)If this point is to read a value using SNMPv1 or SNMPv2c, the correct SNMP community string must be specified via the keyword CS=. For example, CS=public;For output points, use the keyword WCS= ("Write Community String"). For example,

WCS=private;

A drawback of entering the network device’s community string into the PI point configuration is that anyone with access to the PI point database can find out these community strings. In this scenario, the PI System Manager should use either the -pwd or –enc startup parameter (described later) and put the community string in a file called pisnmp.pwd. Thus, if –pwd or –enc is specified in the startup command file, do not put CS= or WCS= in a point’s Extended Descriptor.

SNMPv3 Username (USER=)If this point is to be read using SNMPv3, a username is required. Specify the username in the Extended Descriptor as follows:

USER=username;

The username may instead be specified in the pisnmp.pwd file.

SNMPv3 Authentication Password (APW=)The SNMPv3 agent may require an authentication password, in order to verify that the request came from a trusted source. This authentication password can be specified in the Extended Descriptor, for example:

APW=password;

The authentication password may instead be specified in the pisnmp.pwd file.

SNMPv3 Authentication Protocol (AUTH=)One of two authentication protocols may be specified:

AUTH=MD5;

for MD5 authentication, orAUTH=SHA;

for SHA authentication. Consult the documentation for the device to determine which to use. If neither is specified, the interface will default to MD5. This parameter may instead be specified in the pisnmp.pwd file.

26

Page 30: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

SNMPv3 Privacy Password (PPW=)The SNMPv3 agent may require that the data request be encrypted for privacy. The DES encryption algorithm uses a plain-text password to generate a key used to encrypt the message. This password can be specified in the Extended Descriptor as follows:

PPW=password;

The privacy password may instead be specified in the pisnmp.pwd file.

Event-based Data Collection (EVENT=)If the Interface is to collect SNMP values at times based on an event in a PI point rather than based on a periodic time interval, specify the following at the beginning of the Extended Descriptor: EVENT=PItag,

Here, PItag is a specification for an event point. The Interface must be connected to the PI Server to receive the notifications of new values for PItag.

An input for the interface point is triggered when a new value is sent to the Snapshot of the event point. The new value for the event point does not need to be different than the previous Snapshot value to trigger the input. However, the timestamp of the new value must be greater than (more recent than) or equal to the timestamp of the previous value.

Performance PointsThe Interface checks the extended descriptor for the string “PERFORMANCE_POINT”. If it finds this character string, the Interface treats this point as a performance point. See the section called “Performance Points.”

Summary of Information Specified in Extended Descriptor

Specification Meaning / Purpose Mandatory?OID=

OID_I=

OID_G= and OID_G_R=

SNMP Object Identifier Either OID=, OID_I=, or OID_G= is required. OID_G_R= is required when OID_G= is used.

KEY= Match interface description before sending value to PI Server

No

IPADDR=1 Store IP Address as dotted decimal into a PI string point

No

V= SNMP version No, defaults to SNMPv1

CS= SNMPv1 / SNMPv2 Community String for input points

Yes, if using SNMPv1 or SNMPv2 for inputs.

WCS= SNMPv1 / SNMPv2 Community String for output points

Yes, if using SNMPv1 or SNMPv2 for outputs.

USER= SNMPv3 username Only if V=3 is specified.

SNMP Interface to the PI System 27

Page 31: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

PI Point Configuration

Specification Meaning / Purpose Mandatory?APW= SNMPv3 authentication

passwordNo

AUTH= SNMPv3 authentication protocol

No, defaults to MD5.

PPW= SNMPv3 privacy password No

EVENT= Event-based data collection No

PERFORMANCE_POINT Performance point No

ScanBy default, the Scan attribute has a value of 1, which means that scanning is turned on for the point. Setting the scan attribute to 0 turns scanning off. If the scan attribute is 0 when the interface starts, SCAN OFF will be written to the PI point. If the scan attribute is changed from 1 to 0 while the interface is running, SCAN OFF will also be written to the PI point after the point edit is detected by the interface.

There is one other situation, which is independent of the Scan attribute, where UniInt will write SCAN OFF to a PI point. If a point that is currently loaded by the interface is edited so that the point is no longer valid for the interface, the point will be removed from the interface, and SCAN OFF will be written to the point. For example, if the PointSource of a PI point that is currently loaded by the interface is changed, the point will be removed from the interface and SCAN OFF will be written to the point.

ShutdownThe Shutdown attribute is 1 (true) by default. The default behavior of the PI Shutdown subsystem is to write the SHUTDOWN digital state to all PI points when PI is started. The timestamp that is used for the SHUTDOWN events is retrieved from a file that is updated by the Snapshot Subsystem. The timestamp is usually updated every 15 minutes, which means that the timestamp for the SHUTDOWN events will be accurate to within 15 minutes in the event of a power failure. For additional information on shutdown events, refer to PI Server manuals.

Note: The SHUTDOWN events that are written by the PI Shutdown subsystem are independent of the SHUTDOWN events that are written by the interface when the /stopstat=Shutdown command-line argument is specified.

One can disable SHUTDOWN events from being written to PI when PI is restarted by setting the Shutdown attribute to 0 for each point. Alternatively, one can change the default behavior of the PI Shutdown Subsystem to write SHUTDOWN events only for PI points that have their Shutdown attribute set to 0. To change the default behavior, edit the \PI\dat\Shutdown.dat file, as discussed in PI Server manuals.

Bufserv It is undesirable to write shutdown events when Bufserv (PI Buffer Server) is being used. Bufserv is a utility program that provides the capability to store and forward events to a PI Server, allowing continuous data collection when the Server is down for maintenance, upgrades, backups, and unexpected failures. That is, when PI Server is shut down,

28

Page 32: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Bufserv will continue to store data collected by the interface, making it undesirable to write SHUTDOWN events to the PI points serviced by this interface.

SourceTagThe SourceTag attribute is used only for output points. The SourceTag is the name of the PI point whose value will be written to the SNMP device. The interface point is the point that contains the actual OID reference to the SNMP device.

For example, to perform an SNMP SET

to a device with IP address 192.168.10.100;

to the OID .1.3.6.1.4.1.4761.99.1.4.0;

with the value of 2

The attributes for the interface point should be similar to:

Attribute ValueInstrumentTag host=192.168.10.100;

ExDesc OID=.1.3.6.1.4.1.4761.99.1.4.0; WCS=private;

SourceTag trigger1

PI-SNMP performs outputs according to the standard UniInt mechanism. That is, whenever the SourceTag receives a new value, the Interface performs an SNMP SET for the interface point that references such a SourceTag. Accordingly, to send a value of 2 to the SNMP device, enter (via manual input or another method) the value of 2 into point named trigger1.

ConversionPI-SNMP uses the value in the conversion attribute as a multiplier. PI-SNMP multiplies the scanned value by the conversion attribute value before sending it to the PI Server.

Note: If this attribute is set to 0, all values for the point will be 0. A warning message is sent to the log file when the point is loaded.

SNMP Interface to the PI System 29

Page 33: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Performance Point ConfigurationOne can configure performance points to monitor the amount of time in seconds that an interface takes to complete a scan for a particular scan class. The closer the scan completion time is to 0 seconds, the better the performance. The scan completion time is recorded to millisecond resolution.

Configuring Performance Points with PI-ICUThe PI-Interface Configuration Utility (PI-ICU) provides a graphical user interface for creating and managing Performance Points.

CreateTo create a Performance Point, right mouse click the line belonging to the tag to be created, and select Create.

DeleteTo delete a Performance Point, right mouse click the line belonging to the tag to be deleted, and select Delete.

CorrectIf the “Status” of a point is marked “Incorrect”, the point configuration can be automatically corrected by ICU by right-clicking on the line belonging to the tag to be corrected, and selecting Correct. The Performance Points are created with the following PI attribute values. If ICU detects that a Performance Point is not defined with the following, it will be marked Incorrect:

Attribute Details

Tag Tag name that appears in the list box

Point Source Point Source for tags for this interface, as specified on the first tab

Compressing Off

Excmax 0

Descriptor Interface name + “ Scan Class # Performance Point”

SNMP Interface to the PI System 31

Page 34: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

RenameTo rename a Performance Point, right mouse click the line belonging to the tag to be renamed, and select “Rename”.

Status

The Status column in the Performance Points table indicates whether the Performance Point exists for the scan class in column 2.

Created – Indicates that the Performance Point does exist

Not Created – Indicates that the Performance Point does not exist

Deleted – Indicates that a Performance Point existed, but was just deleted by the user

Scan Class

The Scan Class column indicates which scan class the Performance Point in the Tagname column belongs to. There will be one scan class in the Scan Class column for each scan class listed in the Scan Classes combo box on the Uniint Parameters tab.

Tagname

The Tagname column holds the Performance Point tag name.

Snapshot

The Snapshot column holds the snapshot value of each Performance Point that exists in PI. The Snapshot column is updated when the Performance Points/Counters tab is clicked, and when the interface is first loaded.

Configuring Performance Points ManuallyPerformance point configuration is the same on all operating system platforms. Performance points are configured as follows.

1. Set the Extended Descriptor to contain:PERFORMANCE_POINTor to:PERFORMANCE_POINT=interface_idwhere interface_id corresponds to the number that is specified with the -id parameter on the startup command line of the Interface. The character string PERFORMANCE_POINT is case insenstive. The interface_id does not need to be specified if there is only one copy of an interface that is associated with a particular point source.

2. Set Location4 to correspond to the scan class whose performance is to be monitored. For example, to monitor scan class 2, set Location4 to 2. See the -f startup parameter for a description of scan classes.

3. Set the PointSource attribute to correspond to the -ps parameter on the startup command line of the Interface.

4. Set the PointType attribute to float32.

SNMP Interface to the PI System 32

Page 35: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

I/O Rate Point ConfigurationAn I/O Rate point measures the throughput of an Interface. In particular, the value of an I/O Rate point represents a 10-minute average of the total number of values per minute sent by the Interface to the PI Server. Because values are averaged over a 10-minute interval, the first value is not written to PI Server until 10 minutes after the Interface has started. One I/O Rate tag can be configured for each copy of the interface that is in use.

PI System documentation often use the terms Event Counter Tag and I/O Rate Point synonymously.

Monitoring I/O Rates on the Interface NodeThe 10-minute rate averages (in events/minute) can be monitored with a client application such as PI ProcessBook

Configuring I/O Rate Points with PI-ICUThe PI-Interface Configuration Utility (PI-ICU) provides a graphical user interface for creating and managing I/O Rate Points.

Enable IORates for this InterfaceThe Enable IORates for this interface check box enables or disables the I/O Rate point for the Interface. To disable the I/O Rate point, uncheck this box. To enable the I/O Rate point, check this box.

Tag StatusThe Tag Status column indicates whether the I/O Rate point currently exists in PI Server. The possible states are:

Created – This status indicates that the point exists in PI Server

Not Created – This status indicates that the point does not yet exist in PI Server

Deleted – This status indicates that the point has just been deleted

Unknown – This status indicates that the PI-ICU is not able to access PI Server

In FileThe In File column indicates whether the I/O Rates point listed in the Tagname column and the event counter number listed in the Event Counter column are in the IORates.dat file. The possible states are:

SNMP Interface to the PI System 33

Page 36: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

I/O Rate Point Configuration

Yes – This status indicates that the I/O Rate point and the event counter number are in the IORates.dat file

No – This status indicates that the I/O Rate point and the event counter number are not in the IORates.dat file

Event CounterThe Event Counter number correlates a point specified in the IORates.dat file with this Interface. This correlation results from the command line parameter

-ec=x

where x is the same number that is assigned to the point named in the IORates.dat file.

TagnameThe tag name listed under the Tagname column is the name of the I/O Rate point.

SnapshotThe Snapshot column holds the snapshot value of the I/O Rate point, provided that the I/O Rate point exists in PI Server. The Snapshot column is updated when the IORates/Status Tags tab is clicked, and when the interface is first loaded.

Right Mouse Button Menu OptionsIf the Enable IORates for this interface box is checked, use the right mouse button to bring up the following menu options.

CreateCreates the suggested I/O Rates point with the tag name indicated in the Tagname column.

DeleteDeletes the I/O Rate point listed in the Tagname column.

RenameAllows the user to specify a new name for the I/O Rate point listed in the Tagname column.

Add to FileAdds the I/O Rate point and the event counter number to the IORates.dat file.

SearchAllows the user to search the PI Server for points, such as previously defined I/O Rate points.

Configuring I/O Rate Points ManuallyThere are two main steps. The first occurs on PI Server and the second on the computer on which the Interface runs.

34

Page 37: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Configuring the I/O Rate Point on the PI ServerCreate an I/O Rate Point with the following PI point attribute values.

Attribute Value

PointSource L

PointType float32

Compressing 0

ExcDev 0

Configuration on the Interface NodeThe following procedure for I/O Rate point configuration on the interface node assumes that the tag name of this point is sysnmp01. With respect to I/O Rate point configuration, an interface node is the computer on which the Interface runs.

1. Edit or create the file named iorates.dat in the dat subdirectory of the directory where the PI-API was installed. Determine the name of this PI-API directory by looking at the pipc.ini file located in the Windows directory. The pipc.ini file contains an entry for PIHOME and PIPCSHARE. The PI-API directory is given either by the value for PIPCSHARE (if both PIHOME and PIPCSHARE exist in pipc.ini) or by the value for PIHOME (if only PIHOME exists).

Because PIHOME is typically C:\PIPC, the full name of the iorates.dat file is typically C:\PIPC\dat\iorates.dat.

In the iorates.dat file, add the tag name of the I/O Rate point; followed by a comma; and finally, followed by a number between 2 and 34 or between 51 and 200, inclusive. For example:sysnmp01,11

2. Set the value for the -ec parameter in the Interface’s startup command file (described later) to be the same number as that entered in the iorates.dat file. For the above example,pisnmp.exe –ec=11 ...

Because changes have been made to the Interface’s startup command file, the Interface must be stopped and restarted for these changes to take effect.

SNMP Interface to the PI System 35

Page 38: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Startup Command File

Using PI-ICU to Maintain Startup Command FileOn Windows, the PI-Interface Configuration Utility (PI-ICU) is a graphical tool that allows configuration of the Interface’s startup command file. When using the PI-ICU, select “pisnmp” for the Type of interface. That is,

The interface-specific tab (i.e., “pisnmp”) allows values to be entered for the startup parameters that are particular to PI-SNMP. That is,

SNMP Interface to the PI System 37

Page 39: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Startup Command File

1. Using pisnmp.pwd instead of ExdescThis check box tells the Interface not to look for the community string or SNMPv3 security information in a point’s Extended Descriptor. Instead, the Interface should use a file called pisnmp.pwd. Selecting this check box is equivalent to specifying –pwd in the startup command file.

The pisnmp.pwd file is a plain text file. Use any standard text editor such as notepad to create or modify this file. The format of its contents is similar to the specification of host and security information in a PI point’s instrument tag and extended descriptor attributes:

host=device_name; user commentsCS=community_string; read community string of previous entry

Or, for SNMPv3 agents:host=device_name; user commentsUSER=username; SNMPv3 usernameAUTH=MD5; Authentication protocol. Can be MD5 or SHA

38

1

2

3

4

5

6

7

10

11

12

14

13

8

9

Page 40: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

APW=password; Authentication passwordPPW=password; Privacy password

For example,host=router1; router1 is our main routerCS=public; read community string for <router1>host=192.168.100.10CS=company123; read community string for <192.168.100.10>WCS=company456; write community string for <192.168.100.10>host=switch2;CS=gnomes11; read community string for <switch2>host=router3;USER=manager; SNMPv3 user for <router3>AUTH=SHA; Use SHA authenticationAPW=23oaktree; authentication password for <router3>PPW=hummingbird; privacy password for <router3>

Note that blank lines are allowed only at the end of the file. Also, only one community string or username can be specified for a particular host. If multiple community strings or usernames are needed to access different data on the same SNMP agent, either a separate copy of the interface must be run, or separate aliases for the SNMP device in the interface node’s hosts file must be created. Then create an entry in pisnmp.pwd for each alias.

2. The pisnmp.pwd file has been encrypted

This tells the interface that the pisnmp.pwd file is to be encrypted. To avoid storing the information in pisnmp.pwd in plaintext, check this box. When the interface starts, it will read the pisnmp.pwd file and encrypt the contents to a file named pisnmp.enc. The pisnmp.pwd file is deleted after it is encrypted, so back it up to keep a copy for reference. Tto edit the attributes for a particular host after those attributes have been encrypted, create a new pisnmp.pwd with the new security information and restart the interface. The new host record in pisnmp.pwd will be encrypted and will replace the old encrypted host record. Any host records in pisnmp.enc that do not have replacement records in pisnmp.pwd will remain. So, for example, if there is security information for ten hosts in pisnmp.enc and only one needs to change, just create a record for that one particular host in pisnmp.pwd. The other host records in pisnmp.enc will be left untouched. Selecting this check box is equivalent to specifying –enc in the startup command file.

3. Edit pisnmp.pwd

This button opens the pisnmp.pwd file with the Notepad application for editing.

4. Number of GetRequest retries

The number in this text box specifies the number of times PI-SNMP retries its transmission of an SNMP GetRequest message to the network device. The default number of retries is 3. This setting is equivalent to the –retries= parameter in the startup file.

SNMP Interface to the PI System 39

Page 41: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Startup Command File

5. Number of tags per set

The number in this text box specifies the number of tags per set. When Location3=1, PI-SNMP groups tags into a set in order to get multiple OID values for a single SNMP GetRequest message. The default number of tags per set is 5. This setting is equivalent to the –setcount= parameter in the startup file.

6. SNMP port number

This is the port number that the interface uses to communicate with the SNMP enabled device. The default is 161. This setting is equivalent to the –port= parameter in the startup file.

7. Timeout duration (msec)

The number in this text box specifies the number of milliseconds that PI-SNMP will wait for a reply from the network device. The default timeout is 3000 milliseconds. If PI-SNMP does not get a reply after the specified number of retries and timeouts, it writes I/O Timeout to the point(s) for that particular scan. This setting is equivalent to the –timeout= parameter in the startup file.

8. Consecutive timeouts

The number in this text box specifies the consecutive number of timeouts threshold for a device to be considered inaccessible. If PI-SNMP exceeds this value when it attempts to poll a particular device, and the scan period has elapsed, then the polling of the device terminates. PI-SNMP writes I/O Timeout to the remaining tags specific to the device. If the scan period has not elapsed, then PI-SNMP will continue its attempt to process the tags for the device until the scan period has elapsed. This setting is equivalent to the –cto= parameter in the startup file. The default value is 3.

9. Write “Configure” to rejected points

Checking this box tells the interface to write Configure to rejected points. This setting is equivalent to the –cr parameter in the startup file.

10. Get data from one device

Checking this box allows the interface to retrieve data from a single device using either the TCP/IP address of the device or the hostname. This setting is equivalent to the –device= parameter in the startup file.

11. IP Address

These four text boxes allow entry of a TCP/IP address for the single device configuration. The values must be number between 1-255 for each text box.

12. Hostname

This box is used to enter the hostname for the singe device configuration.

13. Allow SNMP SETs/PI outputs

To have the interface to support SNMP SETs/PI outputs, check this box.

40

Page 42: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

14. Additional parameters

The Additional Parameters text box allows entry of any additional startup parameters which the ICU control does not provide.

Command-line ParametersFor Windows, various filename extensions are associated with command files. For example, .bat and .cmd are both acceptable. However, only the .bat extension is valid for a command file used by the Interface.

The Windows continuation character (^) allows the use of multiple lines for the startup command. The maximum length of each line is 1024 characters (1 kilobyte). The number of parameters is unlimited, and the maximum length of each parameter is 1024 characters.

The PI-SNMP Interface requires a number of parameters for proper operation. These parameters may appear in any order on the command line. The dash character (-) precedes each parameter.

Note: The UniInt End User Document includes details about other command-line parameters that may be useful.

Parameter Description

-cr

Optional

If the –cr parameter is specified, the interface will write Configure to rejected points. By default, the interface will not write any values to rejected points.

-cto=

Optional

The –cto parameter specifies the consecutive number of timeouts threshold for a device to be considered inaccessible. If PI-SNMP exceeds this value when it attempts to poll a particular device, and the scan period has elapsed, then the polling of the device terminates. PI-SNMP writes I/O Timeout to the remaining tags specific to the device. If the scan period has not elapsed, then PI-SNMP will continue its attempt to process the tags for the device until the scan period has elapsed. The default value is 3.

-device=

Optional

The –device parameter tells PI-SNMP to retrieve data from one device only. The device can be either an IP address or a hostname. This parameter may only be used with a device that supports the ifAlias group. See Appendix G for more information.

SNMP Interface to the PI System 41

Page 43: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Startup Command File

Parameter Description

-ec=x

Optional

The first instance of the -ec flag on the command line is used to specify a counter number, x, for an I/O Rate point. If x is not specified, then the default event counter is 1. Also, if the -ec flag is not specified at all, there is still a default event counter of 1 associated with the interface. If there is an I/O Rate point that is associated with an event counter of 1, each copy of the interface that is running without -ec=x explicitly defined will write to the same I/O Rate point. This means that one should either explicitly define an event counter other than 1 for each copy of the interface or one should not associate any I/O Rate points with event counter 1. Configuration of I/O Rate points is discussed in the section called “I/O Rate Tag Configuration.”

For interfaces that run on NT nodes, subsequent instances of the -ec flag may be used by specific interfaces to keep track of various input or output operations. One must consult the interface-specific documentation to see whether subsequent instances of the -ec flag have any effect. Subsequent instances of the -ec flag can be of the form -ec*, where * is any ASCII character sequence. For example, -ecinput=10, -ecoutput=11, and -ec=12 are legitimate choices for the second, third, and fourth event counter strings.

-enc

Optional

The –enc parameter tells PI-SNMP to encrypt the contents of pisnmp.pwd and incorporate the results into a file named pisnmp.enc. If pisnmp.enc doesn’t exist, it is created. Once its contents have been encrypted, pisnmp.pwd is deleted.

See the previous section describing the PI-ICU for further details.

-f=SSor-f=SS,SSor -f=HH:MM:SSor-f=HH:MM:SS,hh:mm:ss

Required for reading scan-based inputs

The -f parameter defines the time period between scans in terms of hours (HH), minutes (MM), and seconds (SS). The scans can be scheduled to occur at discrete moments in time with an optional time offset specified in terms of hours (hh), minutes (mm), and seconds (ss). If HH and MM are omitted, then the time period that is specified is assumed to be in seconds.

Each instance of the -f parameter on the command line defines a scan class number for the Interface. There is no limit to the number of scan classes that can be defined. The first occurrence of the -f flag on the command line defines the first scan class of the Interface, the second occurrence defines the second scan class, and so on.

PI Points are associated with a particular scan class number via the Location4 attribute. For example, all PI Points that have Location4 set to 1 will receive input values at the frequency defined by the first scan class. Similarly, all points that have Location4 set to 2 will receive input values at the

42

Page 44: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Parameter Description

frequency specified by the second scan class, and so on.

Two scan classes are defined in the following example:-f=00:05:00,00:00:05 -f=00:10:00 The first scan class has a scanning frequency of 5 minutes with an offset of 5 seconds, and the second scan class has a scanning frequency of 10 minutes.

When an offset is specified, the scans occur at discrete moments in time according to the formula:

scan times = (reference time) + n(frequency) + offset

where n is an integer and the reference time is midnight on the day that the Interface started. In the above example, frequency is 5 minutes and offset is 5 seconds for the first scan class. These numbers mean that if the Interface started at 05:06:06, the first scan would be at 05:06:10, the second scan would be at 05:11:10, and so on. Since no offset is specified for the second scan class, the absolute scan times are undefined.

The definition of a scan class does not guarantee that the associated points will be scanned at the given frequency. If the Interface is under a large load, then some scans may occur late or be skipped entirely. See the section called “Performance Point Configuration” for more information on skipped or missed scans.Wall Clock Scheduling

Scan classes that strictly adhere to wall clock scheduling are now possible. This feature is available for the Interface. Previously, wall clock scheduling was possible, but not across daylight savings time. For example, -f=24:00:00,08:00:00 corresponds to one scan a day starting at 8 AM. However, after a Daylight Savings Time change, the scan would occur either at 7 AM or 9 AM, depending upon the direction of the time shift. To schedule a scan once a day at 8 AM (even across daylight savings time), use -f=24:00:00,00:08:00,L. The ,L at the end of the scan class tells the Interface to use the new wall clock scheduling algorithm

SNMP Interface to the PI System 43

Page 45: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Startup Command File

Parameter Description

-host=host:port

Required

The –host parameter is used to specify the PI Server machine. host is either the IP address of the PI Sever node or the TCP/IP name of the PI Server node. port is the TCP port number for TCP/IP communication. The port is always 5450 for a PI Server 3.x.

OSIsoft recommends explicit definition of the host and port on the command line by using the -host parameter. Nevertheless, if either the host or port is not specified, the Interface will attempt to use defaults.

Defaults:

On Windows, the default port number and PI Server name is specified in the pilogin.ini or piclient.ini file. The piclient.ini file is ignored if a pilogin.ini file is found.

Refer to the PI-API Installation Instructions manual for more information on the piclient.ini and pilogin.ini files.

Examples:The Interface is running on a PI Interface node, the name of the PI Server 3.x is marvin, and the IP address of Marvin is 206.79.198.30. Valid -host parameters would be:-host=marvin -host=marvin:5450 -host=206.79.198.30-host=206.79.198.30:5450

-id=x

Required

The -id flag is used to specify the interface identifier.

The interface identifier is a string that is no longer than 9 characters in length. UniInt concatenates this string to the header that is used to identify error messages as belonging to a particular interface. See the section called “Error and Informational Messages” for more information.

UniInt always uses the -id flag in the fashion described above. This interface also uses the -id flag to identify a particular interface copy number that corresponds to an integer value that is assigned to Location1. For this interface, one should use only numeric characters in the identifier. For example,

-id=1.

-out

Optional

The –out parameter enables SNMP SET/PI output support in the Interface. If this parameter is not present, PI-SNMP rejects points whose Location2 attribute is negative.

-port=

Optional

The –port parameter specifies the port number that the interface uses to communicate with the SNMP enabled device. The default is 161.

44

Page 46: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Parameter Description

-ps=x

Required

The -ps flag specifies the point source for the interface. X is not case sensitive and can be any single character. For example, -ps=P and -ps=p are equivalent.

The point source that is assigned with the -ps flag corresponds to the PointSource attribute of individual PI Points. The interface will attempt to load only those PI points with the appropriate point source.

-pwd

Optional

The –pwd parameter tells PI-SNMP to read a SNMPv1 / SNMPv2c community string or SNMPv3 security information from the pisnmp.pwd file instead of from a point’s Extended Descriptor.

See the previous section describing the PI-ICU for the format of the pisnmp.pwd file.

-q

Optional

When the -q parameter is present, Snapshots and Exceptions are queued before they are sent to the PI Server. The maximum queue size is close to 4000 bytes. The queue is flushed between scans if it is not filled.

-retries=

Optional

The –retries parameter specifies the number of times PI-SNMP retries its transmission of an SNMP GetRequest message to the network device. The default number of retries is 3.

-setcount=

Optional

The –setcount parameter specifies the number of tags per set. When Location3=1, PI-SNMP groups tags into a set in order to get multiple OID values for a single SNMP GetRequest message. The default number of tags per set is 5.

-sio

Optional, but recommended

The -sio ("suppress initial outputs") parameter tells the Interface not to perform outputs when it first starts up. In other words, if -sio is not present, the Interface will perform SNMP SETs at initial startup.

-stopstat=digstate

Default:-stopstat="Intf Shut"

Optional

If the -stopstat parameter is present on the startup command line, then the Interface will write the digital state Intf Shut to each of its points when it stops.

If -stopstat=digstate is present on the command line, then the Interface will write the digital state, digstate, to each of its points when it stops. For PI Server 3.x, digstate must be in the system digital state table.

If neither -stopstat nor -stopstat=digstate is specified on the command line, then the Interface does not write a digital state when it stops.

Examples:-stopstat="Intf Shut"

The entire parameter is enclosed within double quotes when there is a space in digstate.

SNMP Interface to the PI System 45

Page 47: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Startup Command File

Parameter Description

-timeout=

Optional

The –timeout parameter specifies the number of milliseconds that PI-SNMP will wait for a reply from the network device. The default timeout is 3000 milliseconds. If PI-SNMP does not get a reply after the specified number of retries and timeout, it writes I/O Timeout to the point(s) for that particular scan.

Sample pisnmp.bat FileThe following is an example startup command file:rem Sample command file to run PI-SNMP Interfaceremrem Required parametersrem -host=x PI Data Archive machine and port numberrem -id=# interface instancerem -ps=x point sourceremrem Optional parametersrem -cr (write Configure to rejected points)rem -cto=# consecutive # of timeouts for a device rem to be considered inaccessiblerem -device=x collect data from a ifAlias compatible devicerem -ec=# event counter number)rem -enc encrypt contents of pisnmp.pwd rem into a file named pisnmp.encrem -f=x scan frequenciesrem -out enable SNMP SET/PI output supportrem -port=# port # used to communicate with SNMP devicerem -pwd Community Strings are in pisnmp.pwd filerem -q queue values before sending to PIrem -retries=# number of times PI-SNMP retries rem transmission of an SNMP GetRequestrem -sio suppress initial outputsrem -setcount=# number of tags per setrem -stopstat=”Intf Shut" state to write when program stopsrem -timeout=# milliseconds to wait for rem reply from network devicerem rem Sample command linepisnmp.exe -f=00:10:00 -f=00:00:10 -host=localhost:5450 -ps=$ ^

-id=1 -stopstat=”Intf Shut"

46

Page 48: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

pisnmp.ini File -- ObsoletePrior to version 1.3.0.0, PI-SNMP used a file named pisnmp.ini for certain configuration parameters. The Interface will still use this file if it is present, but OSIsoft recommends that all configuration parameters be specified in the pisnmp.bat file instead. Parameters in pisnmp.bat will take precedence over parameters in pisnmp.ini. The following table illustrates the pisnmp.bat equivalents to the old pisnmp.ini parameters:

pisnmp.ini Parameter pisnmp.bat Parameter

consecutive_timeouts= cto=

port= port=

retries= retries=

tags_per_set= setcount=

timeout= timeout=

SNMP Interface to the PI System 47

Page 49: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Interface Node ClockMake sure that the time and time zone settings on the computer are correct. To confirm, run the Date/Time applet located in the Windows Control Panel. If local time participates in Daylight Savings, from the control panel, configure the time to be automatically adjusted for Daylight Savings Time. For example,

In addition, make sure that the TZ environment variable is not defined. The currently defined environment variables can be listed by going to Start | Settings | Control Panel, double clicking on the system icon, and selecting the environment tab on the resulting dialog box. Also, make sure that the TZ variable is not defined in an autoexec.bat file. When the TZ variable is defined in an autoexec.bat file, the TZ variable may not appear as being defined in the System control panel even though the variable is defined. Admittedly, autoexec.bat files are not typically used on NT, but this does not prevent a rogue user from creating such a file and defining the TZ variable unbeknownst to the System Administrator

SNMP Interface to the PI System 49

Page 50: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

SecurityIf the home node is a PI 3 Server, the PI Firewall Database and the PI Proxy Database must be configured so that the interface is allowed to write data to the PI Server. See “Modifying the Firewall Database” and “Modifying the Proxy Database” in the PI Server manuals

Note that the Trust Database, which is maintained by the Base Subsystem, replaces the Proxy Database used prior to PI version 3.3. The Trust Database maintains all the functionality of the proxy mechanism while being more secure.See “Trust Login Security” in the chapter “PI System Management” of the PI Universal Data Server System Management Guide.

If the interface cannot write data to a PI 3 Server because it has insufficient privileges, a –10401 error will be reported in the pipc.log file. If the interface cannot send data to a PI2 Serve, it writes a –999 error. See the section “Appendix A: Error and Informational Messages” for additional information on error messaging, p.60

PI Server v3.2For PI Server v3.2, the following example demonstrates how to edit the PI Proxy table:C:\PI\adm> piconfig@table pi_gen,piproxy@mode create@istr host,proxyaccountpiapimachine,piadmin@quitIn place of piapimachine, put the name of the PI Interface node as it is seen by PI Server.

PI Server v3.3 and Higher

Use of piconfigFor PI Server v3.3 and higher, the following example demonstrates how to edit the PI Trust table:C:\PI\adm> piconfig@table pitrust@mode create@istr Trust,IPAddr,NetMask,PIUsera_trust_name,192.168.100.11,255.255.255.255,piadmin@quit

For the above,

Trust: An arbitrary name for the trust table entry; in the above example,

a_trust_name

IPAddr: the IP Address of the computer running the Interface; in the above example,

192.168.100.11

NetMask: the network mask; 255.255.255.255 specifies an exact match with IPAddr

SNMP Interface to the PI System 51

Page 51: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

PIUser: the PI user the Interface to be entrusted as; piadmin is usually an appropriate user

Trust EditorThe Trust Editor plug-in for PI System Management Tools 3.x may also be used to edit the PI Trust table.

See the PI System Management chapter in the PI Server manual for more details on security configuration.

SNMP Interface to the PI System 52

Page 52: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Starting / Stopping the InterfaceThis section describes starting and stopping the interface once it has been installed as a service. See the UniInt End User Document to run the interface interactively.

Starting Interface as a ServiceIf the interface was installed a service, it can be started from PI-ICU, the services control panel or with the command:pisnmp.exe –start

To start the interface service with PI-ICU, use the button on the PI-ICU toolbar.

A message will be echoed to the screen informing the user whether or not the interface has been successfully started as a service. Even if the message indicates that the service started successfully, make sure that the service is still running by checking in the services control panel. There are several reasons that a service may immediately terminate after startup. One is that the service may not be able to find the command-line arguments in the associated .bat file. For this to succeed, the root name of the .bat file and the .exe file must be the same, and the .bat file and the .exe file must be in the same directory. If the service terminates prematurely for whatever reason, no error messages will be echoed to the screen. The user must consult the pipc.log file for error messages. See the section “Appendix A: Error and Informational Messages,” for additional information.

To determine the current status of the Interface service, look at the lower portion of the PI-ICU screen. For example,

shows that the Interface is currently stopped.

Stopping Interface Running as a ServiceIf the interface was installed a service, it can be stopped at any time from PI-ICU, the services control panel or with the command:pisnmp.exe –stopThe service can be removed by:pisnmp.exe –remove

To stop the interface service with PI-ICU, use the button on the PI-ICU toolbar.

SNMP Interface to the PI System 53

Page 53: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

BufferingFor complete information on buffering, please refer to the PI-API Installation InstructionPI-SNMP.

PI Interface Node buffering consists of a buffering process which runs continuously on the local node, a PI-API library whose calls can send data to this buffering process, and a utility program for examining the state of buffering and controlling the buffering process.

Note: Change the Local Security Policy on Windows XP. 1. Open "Administrative Tools" from the control panel. 2. Open "Local Security Policy" from administrative tools. 3. Browse to "Security Options" under "Local Policies." 4. Double click on "System Objects: Default owner for objects created by members of the Administrators group." 5. Change the dropdown from "Object Creator" to "Administrators group."

The behavior of Bufserv should now be the same on XP as it was for NT4 and 2000.

Configuring Buffering with PI-ICUBuffering is enabled through the PI-Interface Configuration Utility’s Tools>API Buffering… menu. Unless buffering is explicitly enabled, the PI-API will not buffer data, sending data directly to the home node.

The API Buffering… dialog allows the user to view and configure the parameters associated with the API Buffering (bufserv) process. The user can start and stop the API Buffering process from the Service tab:

SNMP Interface to the PI System 55

Page 54: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Service TabThe Service tab allows for some API Buffering service configuration. For further configuration changes, use the Services applet.

Service NameThe Service name displays the name of the PI-API Buffering Service.

Display NameThe Display name displays the full name associated with the PI-API Buffering service.

Log On AsLog on as indicates the Windows user account under which the PI-API Buffering service is set up to start. To modify the user account or password under which bufserv runs, use the Microsoft Windows Services applet.

DependenciesThe Dependencies lists the Windows services on which the PI-API Buffering service is dependent.

Service Startup TypeThe Startup Type indicates whether the PI-API Buffering service is set up to start automatically on reboot or manually on reboot, or is disabled.

If the Auto option is selected, the service will be installed to start automatically when the machine reboots.

If the Manual option is selected, the interface service will not start on reboot, but will require someone to manually start the service.

If the Disabled option is selected, the service will not start at all.

Generally, the PI-API Buffering service is set to start automatically.

Start / Stop ServiceThe Start / Stop buttons allow for the PI-API Buffering service to be started and stopped.

After a change is made to any of the settings on the Settings tab, the Save button must be clicked, and then the service must be stopped and restarted for the changes to take effect.

Settings TabThe Settings tab allows for configuration of the 7 configurable settings used by the PI-API Buffering service. Default values are used if no other value is provided.

SNMP Interface to the PI System 56

Page 55: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Enable API BufferingEnables the API Buffering feature.

Maximum File SizeMaximum buffer file size in kilobytes before buffering fails and discards events. Default value is 100,000. Range is 1 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.

Send RateSend rate is the time to wait between sending up to MAXTRANSFEROBJS to the server (milliseconds). Default value is 100. Range is 0 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.

Primary Memory Buffer SizePrimary memory buffer size is the size in bytes of the Primary memory buffer. Default value is 32768. Range is 64 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.

Secondary Memory Buffer SizeSecondary memory buffer size is the size in bytes of the Secondary memory buffer. Default value is 32768. Range is 64 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.

SNMP Interface to the PI System 57

Page 56: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Buffering

Max Transfer ObjectsMax transfer objects is the maximum number of events to send between each SENDRATE pause. Default value is 500. Range is 1 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.

Pause RateWhen buffers are empty the buffering process will wait for this number of seconds before attempting to send more data to the home node. Default value is 2. Range is 0 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.

Retry RateWhen the buffering process discovers the home node is unavailable it will wait this number of seconds before attempting to reconnect. Default value is 120. Range is 0 to 2,000,000.

The Use Default button places the default value into the text box. To keep this value, click the Apply button.

Max Theoretical Send RateThe theoretical maximum send rate is calculated as follows:max = MAXTRANSFEROBJS / SENDRATE * 1000Default value is 5000.

Configuring Buffering ManuallyPI-API Buffering is enabled through the use of a configuration file piclient.ini. Unless this file is modified to explicitly enable buffering, the PI-API will not buffer data. Instead, it sends data directly to the PI Server.

Note: When buffering is configured to be on, the bufserv process must be started before other programs using the PI-API, so that these programs can access the shared buffering resources. Any program that makes a connection to a PI Server has this requirement even if it does not write data to the PI Server.

The piclient.ini file is found in the dat subdirectory of the PIHOME directory. So, on Windows, this file is typically located inc:\pipc\dat

This file follows the conventions of Microsoft Windows initialization files with sections, keywords within sections, and values for keywords. All PI-API Buffering settings are entered in a section called [APIBUFFER]. To modify settings, simply edit the piclient.ini file with a text editor (e.g., Notepad) so that keywords have the desired values.

The following settings are available for PI-API Buffering configuration:

Keywords Values Default Description

58

Page 57: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

BUFFERING 0,1 0 Turn off/on buffering. OFF = 0, ON = 1,

PAUSERATE 0 – 2,000,000 2 When buffers are empty the buffering process will wait for this long before attempting to send more data to the home node (seconds)

RETRYRATE 0 – 2,000,000 120 When the buffering process discovers the home node is unavailable it will wait this long before attempting to reconnect (seconds)

MAXFILESIZE 1 – 2,000,000 100,000 Maximum buffer file size before buffering fails and discards events. (Kbytes)

MAXTRANSFEROBJS

1 – 2,000,000 500 Maximum number of events to send between each SENDRATE pause.

BUF1SIZE 64 – 2,000,000

32768 Primary memory buffer size. (bytes)

BUF2SIZE 64 – 2,000,000

32768 Secondary memory buffer size. (bytes)

SENDRATE 0 – 2,000,000 100 The time to wait between sending up to MAXTRANSFEROBJS to the server (milliseconds)

In addition to the [APIBUFFER] section, the [PISERVER] section may be used to define the default PI Server and an optional time offset change that may occur between the PI Interface machine and the PI Server machine.

Keywords Values Default Description

PIHOMENODE string none On Unix machines, this keyword specifies the default PI Server.

On Windows the default PI Server is in pilogin.ini

DSTMISMATCH 0 – 2,000,000 0 The time that the server and client local time offset is allowed to jump. Typically, 3600 if the nodes are in time zones whose DST rules differ (seconds)

Example piclient.ini FileOn Windows the default server information is stored in the pilogin.ini file. So, the piclient.ini file would only have the [APIBUFFER] section. The entry BUFFERING=1 indicates that buffering is on. The MAXFILESIZE entry in Kbytes of 100000 allows up to 100 Megabytes of data storage. Do not use commas or other separators in the numeric entries. The retry rate is set to 600 seconds. This setting means that PI Buffer Server waits 10 minutes after losing a connection before retrying. So, given these parameters, a piclient.ini file might look like:

SNMP Interface to the PI System 59

Page 58: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Buffering

[APIBUFFER]BUFFERING=1MAXFILESIZE=100000; The PI-API connection routines have a 1 minute default timeout.RETRYRATE=600

60

Page 59: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix A:Error and Informational Messages

The string PI-SNMP ID> is pre-pended to error and informational messages written to the message log. The value of the -id parameter on the startup command line determines the ID identifier.

Message LogsDuring non-interactive execution on Windows, check the pipc.log file for messages. This file is located in a subdirectory where the PI-API is installed. For example,C:\pipc\dat\pipc.log

Messages are written to the log file at the following times.

When the Interface starts many informational messages are written to the log. These include the version of the Interface, the version of the UniInt template, the version of the PI-API, the command-line parameters used, and the number of points being serviced.

As the Interface retrieves points, messages are sent to the log if there are any problems with the configuration of the points.

When anomalous events occur, the Interface writes messages to the log.

MessagesThe following is an example of a successful startup of the Interface:

25-Oct-04 20:00:32PI-SNMP-> Starting PI-SNMP, version 1.3.0.025-Oct-04 20:00:32PI-SNMP-> pisnmp.exe -PS=$ -ID=1 -host=localhost:5450 -maxstoptime=120 -pisdktimeout=60 -sio -perf=8 -f=00:05:00 -f=00:02:00 25-Oct-04 20:00:32PI-SNMP-> Starting interface as a service (pisnmp1), Point source: $25-Oct-04 20:00:32PI-SNMP-> Local node cd52603c (192.168.8.40), WinSock Supported Network25-Oct-04 20:00:32PI-SNMP-> Uniint version>@(#)uniint.cxx 3.5.1125-Oct-04 20:00:32PI-SNMP-> API version> 1.3.9.425-Oct-04 20:00:32PI-SNMP-> The PI-SDK is enabled25-Oct-04 20:00:32PI-SNMP-> PI-SDK Version 1.3.1, Build 24725-Oct-04 20:00:33PI-SNMP-> Setting PISDK Connection Timeout to 15 seconds for server localhost25-Oct-04 20:00:33PI-SNMP-> Setting PISDK General Timeout to 60 seconds for server localhost25-Oct-04 20:00:33

SNMP Interface to the PI System 61

Page 60: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

pisnmp.exe>PI-API> Initial connection to [localhost:5450][1]25-Oct-04 20:00:33PI-SNMP-> PIAPI successfully connected to piserver localhost:545025-Oct-04 20:00:33PI-SNMP-> Server Version: PI 3.4, Build 363.9725-Oct-04 20:00:33PI-SNMP-> PISDK successfully connected to piserver localhost via port 545025-Oct-04 20:00:33PI-SNMP- 1> Scan performance summary every 8.000000 hours25-Oct-04 20:00:34PI-SNMP- 1> Uniint is running in Extended API Mode with options 0xc925-Oct-04 20:00:34PI-SNMP- 1> 2 Scan classes have been defined25-Oct-04 20:00:34PI-SNMP- 1> Scan class 1, update period = 300.000000 seconds, unspecified phase offset25-Oct-04 20:00:34PI-SNMP- 1> Scan class 2, update period = 120.000000 seconds, unspecified phase offset25-Oct-04 20:00:34PI-SNMP- 1> 1 UNSOLICITED Scan class has been defined25-Oct-04 20:00:34PI-SNMP- 1> 4 points found for point source $25-Oct-04 20:00:34PI-SNMP- 1> 0 unique event classes have been established25-Oct-04 20:00:34PI-SNMP- 1> 0 output points have been established25-Oct-04 20:00:34PI-SNMP- 1> (UTC time on server node - UTC time on interface node) = 0 seconds25-Oct-04 20:00:34PI-SNMP- 1> (Local time on server node - local time on interface node) = 0 seconds25-Oct-04 20:00:34PI-SNMP- 1> PI-SNMP is polling for values from SNMP Agents

Location5The Location5 attribute specifies the debugging level for the PI point. Currently, the Interface supports 4 levels of debugging: 0, 1, 2, and 3, with the larger numbers resulting in more information being printed to the log file. For example, when Location5 has a value of 3, the Interface prints messages regarding the value it received from the SNMP Agent and the value it sent to the UniInt interface template:

25-Oct-04 20:23:00PI-SNMP- 1> pt (localhost_sysUptime_abs), rx data type: not explicitly checked for25-Oct-04 20:23:00PI-SNMP- 1> val.integer is 159803625-Oct-04 20:23:00PI-SNMP- 1> pt (localhost_sysUptime_abs), t=1061583780.03 drval=0.185 ival=0 istat=0 returned to UniInt

System Errors and PI ErrorsOperating system errors are associated with positive error numbers. Errors related to the PI System are associated with negative error numbers.

SNMP Interface to the PI System 62

Page 61: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

PI Server 3.x NodeDescriptions of operating system and PI System errors can be displayed with the pidiag program found on the computer running PI Server. This program is located in the adm subdirectory of the directory where PI Server is installed. Use –e command line parameter followed by the error number. For example,C:\PI\adm> pidiag –e 100

[100] Cannot create another system semaphore.

C:\PI\adm> pidiag –e 10401

[-10401] No Write Access - Secure Object

PI Interface NodeDescriptions of PI System errors can be displayed by using the pilogsrv program. This program is located in the bin subdirectory of the directory where the PI-API is installed. Use the -e command line parameter followed by the error number.

For example,C:> cd \pipc\bin

C:> pilogsrv -e -999

[-999] Request Not Permitted Without Login

Common Problems

Unexpected ValueIf a PI point is receiving a value that is unexpected, set the point’s Location5 attribute to 3. Then, PI-SNMP will print information to the message log regarding the value it received from the SNMP device and the value that it sent to the UniInt interface template. For example,

25-Oct-04 13:23:00PI-SNMP- 1> pt (localhost_sysUptime_abs), rx data type: not explicitly checked for25-Oct-04 13:23:00PI-SNMP- 1> val.integer is 159803625-Oct-04 13:23:00PI-SNMP- 1> pt (localhost_sysUptime_abs), t=1061583780.03 drval=0.185 ival=0 istat=0 returned to UniInt

The above indicates that the Interface

received a value of 1598036 from the SNMP device,

sent a value of 0.185 to the UniInt Interface template.

(The point’s conversion attribute is 0.00000011574, which is 0.185 divided by 1598036.)

It may take up to 2 minutes for the Interface to be aware of the change to Location5. The Interface will have to perform the scan associated with the point before a new value is recorded.

SNMP Interface to the PI System 63

Page 62: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix A: Error and Informational Messages

Be sure to set Location5 back to 0 afterwards. Otherwise, the Interface will continue to write the debug messages to the log.

PI-SNMP StartupThe following are the most common reasons why PI-SNMP fails to start.

Connection to PI ServerPI-SNMP does not start unless it can connect to the PI Server. Run apisnap to confirm.

Required Command-line ParametersPI-SNMP does not start unless the user has specified all required command line parameters. These parameters are: -id= id number; must be between 1 and 99 -ps= point source characterFor PI-SNMP basic, the following is also required: -host=localhost:5450

Point LoadingThe following are the most common reasons why PI-SNMP fails to load a point into its list of points to service.

Cannot Translate OIDBefore sending a request to a network device, PI-SNMP needs to translate textual OIDs (e.g., system.sysUptime.0) into their numeric format (e.g., .1.3.6.1.2.1.1.3.0). If it cannot do so, it prints the out a message such as the following:PI-SNMP- 1> Cannot translate OID: interfaces.ifTable.ifEntry.ifInOctects.3; cannot add

Tag: router_ rx_Ethernet0/0

Make sure that the spelling of the OID is correct. In the above example, ifInOctects should be spelled ifInOctets.

Also, confirm that below the directory where the pisnmp program itself is located, there is a mibs directory containing MIB definition files. Otherwise, messages such as the following will appear The Service tab allows for some API Buffering service configuration. For further configuration changes, use the Services applet.Cannot find module (IP-MIB): At line 0 in (none)Cannot find module (IF-MIB): At line 0 in (none)Cannot find module (TCP-MIB): At line 0 in (none)Cannot find module (UDP-MIB): At line 0 in (none)Cannot find module (SNMPv2-MIB): At line 0 in (none)Cannot find module (SNMPv2-SMI): At line 0 in (none)

while running PI-SNMP.

ID and PointSourcePI-SNMP loads points based on the –id= and –ps= command line parameters. These must match a point’s Location1 and point source attributes, respectively.

64

Page 63: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Field Not FoundIf –pwd or –enc do not appear in the startup command line, PI-SNMP needs to find either the string CS= or USER= within a point’s extended descriptor attribute, depending on the version specified with V=.

Matching Community String Not Found in pisnmp.pwdIf –pwd or –enc appear in the startup command line, PI-SNMP looks in either the pisnmp.pwd or pisnmp.enc file for a matching device name. PI-SNMP needs to find either a community string or a set of SNMPv3 security attributes that correspond to the given device name specified in the PI point’s instrument tag attribute.

OID Field Not FoundPI-SNMP needs to find an OID specification within either the instrument tag or extended descriptor attribute. See the section on point configuration for details.

Host Not FoundPI-SNMP needs to find the string host= within a point’s instrument tag attribute.

OID Not ValidIf PI-SNMP cannot translate a textual OID into its numeric form, it does not load the point.

No New ValueThe following are some of the reasons why the PI Server does not show new values for a point configured for an instance of PI-SNMP that is running.

Point Not LoadedPI-SNMP has not loaded the point in question into its list of points to service. Upon startup, the program prints a message similar to the following:PI-SNMP- 2> 15 points found for point source $Confirm that a message such as this displays accurately the number of points that are configured. Always test PI-SNMP by running with a small number of points first.

Consult the previous section for more information on Point Loading. For testing purposes, set a point’s Location5 attribute to be 1 in order to see whether PI-SNMP loaded the point.

PI Server ConfigurationThe PI Server must be configured to allow PI-SNMP to write values. See the Security section for more information.

Value of 0The following are some of the reasons why PI Server shows a value of 0 for a point configured for an instance of PI-SNMP that is running.

SNMP Interface to the PI System 65

Page 64: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix A: Error and Informational Messages

Conversion Factor is ZeroIf the point’s conversion factor point attribute is zero, PI-SNMP will write a value of zero for the point.

OID Value is ZeroIf the OID value itself is zero, PI-SNMP will write the value of zero for the corresponding PI point. Run snmpget to check.

For points with Location2 set to 1 (SNMP “counter” values), PI-SNMP will write the value of zero if the OID value is not changing. Run snmpget twice in succession to check.

I/O TimeoutThe following are some of the reasons why PI Server shows the status of I/O Timeout for a PI-SNMP point.

SNMP Agent Not RespondingThe SNMP Agent on the network device is not responding. Run snmpget to check the response of the SNMP agent on the network device.

Incorrect Security InformationEither the community string (CS) or the SNMPv3 username and password(s) specified in the point’s extended descriptor attribute or pisnmp.pwd file are incorrect. Be aware that community strings and passwords often are case sensitive. That is, “Public” is not the same as “public”.

Run snmpget to check the validity of a community string or password.

SNMP Agent Not Responding Fast EnoughThe SNMP Agent on the network device is not responding quickly enough. Try increasing the timeout= value in the pisnmp.ini configuration file.

Bad InputThe following are the reasons why PI Server shows the status of Bad Input for a PI-SNMP point.

KEY Value MismatchThe KEY value specified in the extended descriptor does not match the one received from the network device. For example, for a point with an extended descriptor of

KEY=Serial1/0.1; OID_I=ifInOctets.25

the value received from the network device for interfaces.ifTable.ifEntry.ifDescr.25

is not Serial1/0.1. The most likely cause of this problem is that after a reboot, the network device re-assigned index numbers to its interfaces.

Rebuild the PI points so that they contain the correct index numbers.

66

Page 65: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Incorrect Host for DeviceThe host specified within the point’s instrument tag attribute is incorrect. Run snmpget to check the validity of a host.

ConfigureThe following are some of the reasons why PI Server shows the status of Configure for a PI-SNMP point.

OID Does Not ExistThe network device reported back that the OID specified in the point’s instrument tag (or extended descriptor) attribute is non-existent. Run snmpget to check the existence of an OID on the network device.

Location3=1 and OID Does Not Exist for a Point in the SetWhen Location3=1, PI-SNMP groups up to 5 points (containing either identical host= and CS= or host= and user= parameters) into a single SNMP GET request. If any one of the points in this set has an OID that is not recognized by the remote device, PI-SNMP writes Configure for all of the points in this set. PI-SNMP also prints a message similar to the following:PI-SNMP- 2> Device reports at least 1 unknown OID in the following set of 2 tags:PI-SNMP- 2> Tag: router_tx_Ethernet0/0, OID: interfaces.ifTable.ifEntry.ifOutOctets.85PI-SNMP- 2> Tag: router_jab_4, OID:

rmon.statistics.etherStatsTable.EtherStatsEntry .etherStatsJabbers

To find out which point contains the unsupported OID, use the snmpget program.

SNMP Agent Erroneously Reports that the OID Does Not ExistA network device may erroneously report that the OID does not exist. OSIsoft itself has experienced intermittently such behavior.

Invalid Counter TagA point configured with Location2=1 must be of type COUNTER as returned by the SNMP Agent. Run snmpget to check the OID type as returned by the SNMP Agent.

Missed ScansIf the Interface consistently misses scans, it is probably attempting to retrieve values from SNMP devices that are not readily accessible. For example, PI-SNMP is collecting data for

100 points from device 1,

100 points from device 2,

100 points from device 3,

100 points from device 4, and

100 points from device 5.

SNMP Interface to the PI System 67

Page 66: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix A: Error and Informational Messages

If device 3 is removed from the network, PI-SNMP still polls this device for the associated points, using a default timeout of 3000 milliseconds and 3 retries. Thus, scans will be missed.

To improve this condition, try changing one or more of the startup command parameters:

decrease the number of retries (-retries),

decrease the timeout interval (-timeout), or

decrease the number of consecutive timeouts (-cto).

For example, pisnmp.exe -retries=0 -timeout=1000 -cto=1

68

Page 67: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix B:snmpget

The supplied snmpget utility from the UCD-SNMP project (http://www.ece.ucdavis.edu/ucd-snmp/) allows retrieval of a single SNMP value from a device. This program is installed in the same directory as the interface executable. For example, in C:\pipc\interfaces\snmp\

Some useful snmpget parameters follow:snmpget –v <version> -c <community_string> -l <security level>

-u <username> -a <authentication protocol> -A=<authentication_password> -X=<privacy password> <device> <OID>

For a full list of snmpget parameters, run:

snmpget -h

For example, to obtain a value using SNMPv2c:C:> snmpget –v 2c –c public router1 .1.3.6.1.2.1.1.1.0

For SNMPv3, a security level must be specified along with the username and any passwords. If no passwords are configured, use noAuthNoPriv. If an authentication password is configured with no privacy password, use authNoPriv. If both authentication and privacy passwords are configured, use authPriv. Here are some examples:C:> snmpget -v 3 -l noAuthNoPriv -u manager router1 .1.3.6.1.2.1.1.1.0

C:> snmpget -v 3 -l authNoPriv -u manager -a SHA -A 23oaktree router1 .1.3.6.1.2.1.1.1.0

C:> snmpget -v 3 -l authPriv -u manager -a MD5 -A 23oaktree –X hummingbird router1 .1.3.6.1.2.1.1.1.0

(The output from the above commands would display the name of the operating system running on the network device.)

If snmpget is unsuccessful in retrieving information from a particular network device, then PI-SNMP itself also will have difficulties.

SNMP Interface to the PI System 69

Page 68: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix C:OID Examples

The following are examples of valid OIDs in both textual and numeric forms. They are useful for testing PI-SNMP as well as for determining the existence of an SNMP Agent on a particular network device. That is, for each of the following OIDs, use the snmpget program to query an SNMP Agent for it particular value:

C:> snmpget –v 1 –c public 192.168.100.10 .1.3.6.1.2.1.1.1.0

system.sysDescr.0.1.3.6.1.2.1.1.1.0This OID represents the description of the network device, such as hardware and operating system.

system.sysUptime.0.1.3.6.1.2.1.1.3.0This OID indicates the time (in hundredths of a second, or centiseconds) since the network management portion of the system was last initialized.

interfaces.ifTable.ifEntry.ifInOctets.1.1.3.6.1.2.1.2.2.1.10.1This OID indicates the total number of octets (a group of 8 bits) received, including framing characters, on the first network interface.

interfaces.ifTable.ifEntry.ifOutOctets.1.1.3.6.1.2.1.2.2.1.16.1This OID indicates the total number of octets (a group of 8 bits) transmitted, including framing characters on the first network interface.

interfaces.ifTable.ifEntry.ifInOctets.2.1.3.6.1.2.1.2.2.1.10.2This OID indicates the total number of octets (a group of 8 bits) received, including framing characters, on the second network interface.

interfaces.ifTable.ifEntry.ifOutOctets.2.1.3.6.1.2.1.2.2.1.16.2This OID indicates the total number of octets (a group of 8 bits) transmitted, including framing characters on the second network interface.

SNMP Interface to the PI System 71

Page 69: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix D:Basic SNMP for PI Users

This section of the document gives basic SNMP information to users who are familiar with the PI System, but not SNMP. For a more detailed explanation about SNMP, consult a book such as SNMP, SNMPv2, SNMPv3, and RMON 1 and 2, Third Edition, by William Stallings (Addison-Wesley, 1999, ISBN 0201485346).

What is SNMP?SNMP stands for Simple Network Management Protocol. It is a protocol for communications among devices of a computer network. SNMP runs on top of TCP/IP. As an analogy, OSIsoft’s PINet protocol also runs over TCP/IP. The PINet protocol allows communication between PI Server and PI data collection interfaces programs; between PI Server and PI-ProcessBook; and so on. SNMP allows communications between devices such as PCs, routers, bridges, and switches.

Communications via PINet protocol

Communications via SNMP protocol

What Software is Necessary for SNMP to Run?Just as OSIsoft’s PINet protocol requires PINetMgr software (residing on the PI Server node) and PI-API software (used by PI data collection interface programs and PI client applications), SNMP devices have either SNMP Manager software or SNMP Agent software. Because PI-SNMP behaves like an SNMP Manager:

SNMP Interface to the PI System 73

PI Server

PI-SNMP

router/bridge/switch

PI Server

PINetMgr

PI-APIPI-SNMP

SNMP Agentrouter/bridge/switch

Page 70: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

What Type of Information is Available via SNMP?Various types of information are available. Currently, the most common are related to network performance and management. For example, most routers have SNMP Agent software running on them. These Agents allow SNMP Managers to retrieve

standard information as defined by standards bodies (e.g., ISO)

proprietary information specific to a particular device or manufacturer

How Does the SNMP Manager and SNMP Agent Agree on what Information is Available?

The type of information exchanged between the SNMP Manager and the SNMP Agent is defined by MIBs (Management Information Base). The most common MIB is called MIB-II (or MIB-2). This MIB is related to network management. It defines information such as

the number of octets (group of 8 bits) received on a particular physical interface

the number of octets (group of 8 bits) sent on a particular physical interface

A particular element in a MIB is called an OID (Object Identifier). For example, the OID for each of the above are:

.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets

.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifOutOctets

Because the use of MIB-II is widely prevalent, the above is often abbreviated as:

interfaces.ifTable.ifEntry.ifInOctets

interfaces.ifTable.ifEntry.ifOutOctets

The numerical representations of these two OIDs are:

.1.3.6.1.2.1.2.2.1.10

.1.3.6.1.2.1.2.2.1.16

A particular occurrence of an OID is called an instance. This instance number is added to the end of the OID. Continuing with the examples above, “the number of octets received on the first physical interface” is given by

interfaces.ifTable.ifEntry.ifInOctets.1

.1.3.6.1.2.1.2.2.1.10.1

For OIDs where there is only a single occurrence, a zero is used. For example,

system.sysUptime

is “the time since the network management portion of the system was last reinitialized”. Thus, the only instance of system.sysUptime is

system.sysUptime.0

SNMP Interface to the PI System 74

Page 71: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

What is a COUNTER Value?Some OID values are given in terms of a COUNTER. A COUNTER is an unsigned 32-bit integer ranging from 0 to 4,294,967,295. When a COUNTER value reaches the maximum, it rolls over to 0. In particular,

interfaces.ifTable.ifEntry.ifInOctets

interfaces.ifTable.ifEntry.ifOutOctets

are both COUNTERs. Therefore, if PI-SNMP stores the raw values for these OIDs, such values will be continuously increasing numbers up to the maximum. A graphical trend of these numbers probably will not be meaningful.

Alternatively, PI-SNMP can be configured to store COUNTER values per unit time. If Location2 is set to 1, PI-SNMP will store the difference between two successive readings divided by the scan time. For example,

scanned value = 2000previous value = 200scan time = 1 minutestored value = (2000 – 200)/60 = 30

A graphical trend of such values will be more meaningful because it provides the number of octets transferred per second.

What is SNMPv3?SNMPv3 was drafted in response to the perceived security deficiencies of earlier SNMP specifications. SNMPv3 adds authentication and privacy enhancements to the existing SNMP standard. SNMPv3 uses a user-based security model instead of community strings, and SNMPv3 messages can be securely signed and encrypted using authentication and privacy passwords.

SNMP Interface to the PI System 75

Page 72: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix E:Tutorial on Using PI-SNMP with Routers

PI-SNMP is ideally suited for monitoring the performance of network routers. By definition, a router is a device that connects two or more data networks and routes traffic among them.

Example casesConsider an organization with three departments: Sales, Accounting, and Engineering. Each department’s computers are on its own separate network. In addition, the company itself has a connection to the Internet via its ISP (Internet Service Provider). So, its network diagram may look like the following:

A typical provisioning of the interfaces on the router may be:

Interface Description Speed Connection to

Ethernet0 10 Mbps Sales

Ethernet1 10 Mbps Accounting

FastEthernet 100 Mbps Engineering

Serial1/0 512 Kbps ISP

That is,

Another example is the case of the Internet Service Provider itself. It too has a router, which directs traffic from an Internet backbone to its many customers:

SNMP Interface to the PI System 77

FastEthernet

Ethernet1

Ethernet0

Serial1/0

router

Sales

Accounting

Engineering

ISP

router

Page 73: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

A typical router provisioning may be:

Interface Description Speed Connection to

ATM2/0.1 512 Kbps Customer1

ATM2/0.2 384 Kbps Customer2

ATM2/0.3 384 Kbps Customer3

Serial2 1.544 Mbps Internet backbone

That is,

A final example is the operation of the PI Universal Data Server/Data Archive receiving data from different areas of a plant, each with its own PI data collection interface program:

SNMP Interface to the PI System 78

Customer2router

Customer1

Customer3

backbone

Internet

ATM2/0.3

ATM2/0.2

ATM2/0.1

Serial2 router

PI-Honeywellrouter

PI-Foxboro

PI-Yokogawa

PI Server

Page 74: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

A typical router provisioning may be:

Interface Description Speed Connection to

Ethernet1 10 Mbps Foxboro area of the plant

Ethernet2 10 Mbps Honeywell area of the plant

Ethernet3 10 Mbps Yokogawa area of the plant

Ethernet0 10 Mbps PI Server area of the plant

That is,

SNMP and InterfacesUnder SNMP, the interfaces in a router are indexed by an Object Identifier (OID) called ifIndex. This index is a positive integer, and allows the user to reference and correlate other interface OID variables (e.g., interface speed). The SNMP Agent on the router automatically assigns the value of ifIndex.

Examples of interface descriptions (interfaces.ifTable.ifEntry.ifDescr) and speeds (interfaces.ifTable.ifEntry.ifSpeed) in our first example are:

ifIndex OID variable OID value

3 OID=interfaces.ifTable.ifEntry.ifDescr.3 Serial1/0

4 OID=interfaces.ifTable.ifEntry.ifDescr.4 Ethernet0

5 OID=interfaces.ifTable.ifEntry.ifDescr.5 Ethernet1

100 OID=interfaces.ifTable.ifEntry.ifDescr.100 FastEthernet

3 OID=interfaces.ifTable.ifEntry.ifSpeed.3 512,000

4 OID=interfaces.ifTable.ifEntry.ifSpeed.4 10,000,000

5 OID=interfaces.ifTable.ifEntry.ifSpeed.5 10,000,000

100 OID=interfaces.ifTable.ifEntry.ifSpeed.100 100,000,000

SNMP Interface to the PI System 79

Ethernet3

Ethernet2

Ethernet1

Ethernet0 router

Page 75: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix E: Tutorial on Using PI-SNMP with Routers

For the example ISP:

ifIndex OID variable OID value

101 OID=interfaces.ifTable.ifEntry.ifDescr.101 ATM2/0.1

102 OID=interfaces.ifTable.ifEntry.ifDescr.102 ATM2/0.2

103 OID=interfaces.ifTable.ifEntry.ifDescr.103 ATM2/0.3

200 OID=interfaces.ifTable.ifEntry.ifDescr.200 Serial2

101 OID=interfaces.ifTable.ifEntry.ifSpeed.101 512,000

102 OID=interfaces.ifTable.ifEntry.ifSpeed.102 384,000

103 OID=interfaces.ifTable.ifEntry.ifSpeed.103 384,000

200 OID=interfaces.ifTable.ifEntry.ifSpeed.200 1,544,000

For PI Server receiving data, examples may be:

ifIndex OID variable OID value

1 OID=interfaces.ifTable.ifEntry.ifDescr.1 Ethernet0

2 OID=interfaces.ifTable.ifEntry.ifDescr.2 Ethernet1

3 OID=interfaces.ifTable.ifEntry.ifDescr.3 Ethernet2

4 OID=interfaces.ifTable.ifEntry.ifDescr.4 Ethernet3

1 OID=interfaces.ifTable.ifEntry.ifSpeed.1 10,000,000

2 OID=interfaces.ifTable.ifEntry.ifSpeed.2 10,000,000

3 OID=interfaces.ifTable.ifEntry.ifSpeed.3 10,000,000

4 OID=interfaces.ifTable.ifEntry.ifSpeed.4 10,000,000

Be aware that the value of ifIndex does not have to start at 1, and that these indices are not necessarily consecutive. Also, note that the value for the OID variable

interfaces.ifTable.ifEntry.ifSpeed.X,where X is an ifIndex value, reflects engineering units of bits per second.

Traffic monitoringIn order to determine the amount of traffic traversing on a router’s particular interface (i.e., for ifIndex=X), look at the values for the following OID variables: interfaces.ifTable.ifEntry.ifEntry.ifInOctets.X interfaces.ifTable.ifEntry.ifEntry.ifOutOctets.XSNMP defines the former as the total number of octets (a group of 8 bits) received on the interface, including framing characters. The latter OID variable represents the total number of octets transmitted on the particular interface, including framing characters.

80

Page 76: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

For the given examples:

These OID variables indicate the total number of octets received/transmitted. However, the per unit time versions of these variables may be of interest. That is, it may be desirable to know

the number of octets per second received on the interface

the number of octets per second transmitted on the interface

PI-SNMP performs such a measurement if a PI point is configured with Location2 set to 1. (Please see the main section of this manual for details.)

So, for the three example scenarios cited above, use PI-SNMP to monitor the amount of traffic for each interface provisioned on the router. Consequently, it becomes easy to determine which department (e.g., Sales, Accounting, or Engineering), which customer (Customer1, Customer2, or Customer3), or which area of the plant (Foxboro, Honeywell, or Yokogawa) is utilizing the most bandwidth.

PI SNMP Tag Builder Plug-in for PI SMT 3.x

As mentioned previously, the interfaces that are provisioned on a router are indexed by the ifIndex variable. Correlating this interface index number (e.g., 4) to an interface description (e.g., Ethernet0) and other interface OID variables is often difficult. For this reason, OSIsoft provides the PI SNMP Tag Builder plug-in for PI SMT 3.x. Consult the plug-in documentation for details.

SNMP Interface to the PI System 81

.ifInOctets.4

router

Sales.ifOutOctets.4

.ifInOctets.101router

Customer1

.ifOutOctets.101

.ifInOctets.2router

PI-Foxboro

.ifOutOctets.2

Page 77: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix F:PI-SNMP Technical Details

Message SizeFor PI tags whose Location3 field is zero, PI-SNMP does not group multiple requests for information into a single SNMP GetRequest message. In other words, the PDU (Protocol Data Unit) that PI-SNMP sends to a network device contains a GetRequest for only a single OID. The size of such a message is of the order of 80 octets.

The size of a GetResponse PDU from the network device depends on the OID value requested, and can vary greatly. For example, the value for system.sysDescr.0 returned by the network device may be a descriptor such as:IOS (tm) 3600 Software (C3660-DS-M), Version 12.0(5)T1, RELEASE SOFTWARE (fc1)Copyright (c) 1986-1999 by cisco Systems, Inc.Compiled Thu 19-Aug-99 18:15 by cmong

The above returned value by itself consists of 213 octets. With the addition of the various headers (SNMP, UDP, IP), the size of the complete message is about 280 octets.

When PI-SNMP retrieves numeric values, the size of the returned message is also about 80 octets. For comparison, a single PING message from a Windows machine contains about 64 octets.

Supported MIBs The current version of PI-SNMP supports textual OIDs for the following branches of the MIB-II (.1.3.6.1.2.1) tree:

system (1)

interfaces (2)

ip (4)

icmp (5)

tcp (6)

udp (7)

transmission (10)

snmp (11)

rmon (16)

For example, the user may specify eithersystem.sysUptime.0or.1.3.6.1.2.1.1.3.0in the Extended Descriptor field of the PI tag configuration.

However, OIDs from other branches of the MIB-II tree need to be configured with numeric values. In particular, vendor specific OIDs (those which begin

SNMP Interface to the PI System 83

Page 78: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

with .1.3.6.1.4.1) need to be specified in their numeric form. When in doubt about the validity of a textual OID within PI-SNMP, use the snmpget program to confirm.

SNMP Interface to the PI System 84

Page 79: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix G:ifAlias Support

Re-assignment of IndicesWhen a router reboots, the SNMP agent on this router often assigns a different index number to a particular instance of one of its interfaces. For example, an interface named Serial1/0.1 has an ifIndex value of 25. Thus, the OID variable

interfaces.ifTable.ifEntry.ifInOctets.25

represents the number of inbound octets received on this Serial1/0.1 interface. Accordingly, a PI tag called tag1 may be configured with an extended descriptor such as:

OID_I=ifInOctets.25

After a router reboot, the Serial1/0.1 interface may be assigned an ifIndex of 31. Therefore, the number of inbound octets received on the interface is now given by the OID

interfaces.ifTable.ifEntry.ifInOctets.31

However, the tag tag1 is still configured with an extended descriptor containing the ifIndex of 25. As a result, tag1 is no longer is collecting data for Serial1/0.1. In addition, it may be difficult to realize that the ifIndex for Serial1/0.1 has changed from 25 to 31.

Non-volatile Feature of ifAliasRFC 2233 specifies that if an SNMP agent supports the ifAlias OID variable, then its value must not change during a router reboot:

... the ifAlias name is non-volatile, and thus an interface must retain its assigned ifAlias value across reboots, even if an agent chooses a new ifIndex value for the interface.

Thus, if the router supports ifAlias, PI-SNMP can be configured so that it will collect correct data even after a router reboot. To find out whether the router supports ifAlias, run a command such as the following:C:> snmpwalk -M .\mibs 10.8.10.1 public .1.3.6.1.2.1.31.1.1.1.18

For the above commands, use the IP address of the router and the correct community string. If the above command results in items similar toifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.1 = to ISPifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.2 = to LANifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.3 = remote office

then the router supports ifAlias. If the results do not containifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias

then the router doses not support ifAlias.

SNMP Interface to the PI System 85

Page 80: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix G: ifAlias Support

Data Collection Based on ifAliasTo collect data based on ifAlias, specify in the Extended Descriptor OID_I=ifInOctets (to retrieve inbound traffic values) or OID_I=ifOutOctets (outbound traffic). Do not specify the interface index number.

The value of the ifAlias must also be specified for the particular interface. The keyword is IFALIAS. For the above example ifAlias values, to collect inbound traffic values for the network interface that represents “to LAN”, put OID_I=ifInOctets; IFALIAS="to LAN"

into the Extended Descriptor of a PI tag such as tag1. (Note that double quotes must be used because of the space between “to” and “LAN”.)

During data retrieval for tag1, PI-SNMP obtains all the ifAlias names from the router. It then matches the IFALIAS value of tag1 with these ifAlias names to determine the interface index number. In this example, the interface number is 2. PI-SNMP then internally constructs the OID interfaces.ifTable.ifEntry.ifInOctets.2and sends the appropriate request to the router.

If the router reboots and the SNMP agent reassigns interface indices such that ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.1 = remote office ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.2 = to ISP ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifAlias.3 = to LAN PI-SNMP still reads correct values for tag1 because it will now internally construct the OID

interfaces.ifTable.ifEntry.ifInOctets.3in order to get the data from the router.

ConfigurationTo configure PI-SNMP to use ifAlias based data collection, specify –device= on the startup command file, with the value of this parameter being the IP address or name of the router. For example, pisnmp –ps=$ -id=1 –host=localhost:5450 –device=10.8.10.1 …

PI-SNMP needs to retrieve the various ifAlias names at startup. Thus, it needs the community string of the router. Specify this community string via the pisnmp.pwd file. For example,

host=10.8.10.1; CS=public; community string for 10.8.10.1

LimitationsBecause a particular router (via device=) needs to be specified at PI-SNMP startup, this configuration limits data collection to a single device. Also, for simplicity, PI-SNMP groups all tags into sets, regardless of the value of Location3. Finally, the specified router must also support the OID system.sysUptime.0

86

Page 81: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

If this OID is not supported, PI-SNMP exits.

Summary1. Run one of the following to determine whether the router supports ifAlias: snmpwalk -M .\mibs 10.8.10.1 public .1.3.6.1.2.1.31.1.1.1.18 snmpwalk -M ./mibs 10.8.10.1 public .1.3.6.1.2.1.31.1.1.1.18

2. Configure PI tags with Extended Descriptors containing OID_I=ifInOctets; IFALIAS="ifAlias_name_of_the_interface"or OID_I=ifOutOctets; IFALIAS="ifAlias_name_of_the_interface"The former specifies data collection for inbound traffic while the latter outbound traffic. Note: Do not specify the interface index number.

3. Specify the router by adding –device= to the startup command line. For example, pisnmp –ps=$ -id=1 –host=localhost:5450 –device=10.8.10.1 …

4. The Extended Descriptor need not contain the host= specification because all data comes from the router specified by –device= on the startup command line.

5. The Extended Descriptor need not contain the CS= specification because PI-SNMP uses the community string in the pisnmp.pwd file. So, this file must be configured accordingly.

6. PI-SNMP groups all tags into sets, regardless of the value of Location3.

7. The router must support the OID system.sysUptime.0Otherwise, PI-SNMP exits.

8. It is still ok to specify non-interfaces tags. For example, a tag can be configured with an Extended Descriptor OID=system.sysUptime.0;to retrieve the uptime of the router.

SNMP Interface to the PI System 87

Page 82: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix H:Known Issues

Restart of SNMP AgentWhen an SNMP Agent restarts (e.g., after a reboot of the network device), it generally resets all COUNTER variables to zero. Such a restart will result in a subsequent value for PI tags configured as time-normalized values (i.e., with Location2=1) not being correct.

Consider the following example for PI_tag1, which is configured for the OID interfaces.ifTable.ifEntry.ifInOctets.1:

During the case of a normal operation (i.e., no SNMP Agent restart), if PI-SNMP is configured for 5 minute scan intervals on the hour (-f=00:05:00,00:00:00) and the OID values on the network device and scan times are:

08:00:00 (a scan time for PI-SNMP)

OID value = 400,000 (value x)

08:02:59 (not a scan time for PI-SNMP)

OID value = 500,000 (value y)

08:05:00

OID value = 600,000 (value z)

The number of octets received during the above 5-minute time interval is 200,000 (z -x). Thus, the time-normalized value—and that which is stored in PI_tag1—is 666.67 (200,000/300) octets/second.

If an SNMP Agent were to restart between PI-SNMP scans:

08:00:00 (a scan time for PI-SNMP)

OID value = 400,000

08:03:00 (SNMP Agent restart, and not a scan time for PI-SNMP)

OID value = 0 because of an SNMP Agent restart

08:05:00 (a scan time for PI-SNMP)

OID value = 100,000

For this situation, PI-SNMP determines that the number of octets received during this 5-minute interval is 4,294,667,296. (100,000 - 400,000 = –300,000, or Hexadecimal FFFB6C20; for an unsigned value, this is 4,294,667,296.)

Meanwhile, because of the possibility of the above situation, the user should configure a tag that records system.sysUptime.0 for each of the network devices that are providing data to PI-SNMP. In this manner, the user will know the approximate time at which the SNMP Agent restarted.

SNMP Interface to the PI System 89

Page 83: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix H: Known Issues

If a user knows beforehand that an SNMP Agent will restart (for example, because of the need to reboot a router), he should first stop the PI-SNMP program. He can then re-run PI-SNMP after the restart of the SNMP Agent.

90

Page 84: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix I:Acknowledgments

PI-SNMP contains components from the Net-SNMP and OpenSSL projects. Copyright notices and acknowledgments follow.

Net-SNMP

Part 1: CMU/UCD copyright notice:

Copyright 1989, 1991, 1992 by Carnegie Mellon University

Derivative Work - 1996, 1998-2000

Copyright 1996, 1998-2000 The Regents of the University of California

All Rights Reserved

Permission to use, copy, modify and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of CMU and The Regents of the University of California not be used in advertising or publicity pertaining to distribution of the software without specific written permission.

CMU AND THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL CMU OR THE REGENTS OF THE UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM THE LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Part 2: Networks Associates Technology, Inc copyright notice:

Copyright (c) 2001-2003, Networks Associates Technology, Inc All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

SNMP Interface to the PI System 91

Page 85: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

* Neither the name of the Networks Associates Technology, Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Part 3: Cambridge Broadband Ltd. copyright notice:

Portions of this code are copyright (c) 2001-2003, Cambridge Broadband Ltd. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* The name of Cambridge Broadband Ltd. may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Part 4: Sun Microsystems, Inc. copyright notice:

SNMP Interface to the PI System 92

Page 86: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Copyright © 2003 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

Use is subject to license terms below.

This distribution may include materials developed by third parties.

Sun, Sun Microsystems, the Sun logo and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of the Sun Microsystems, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Part 5: Sparta, Inc copyright notice:

Copyright (c) 2003-2004, Sparta, Inc All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of Sparta, Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

SNMP Interface to the PI System 93

Page 87: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix I: Acknowledgments

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Part 6: Cisco/BUPTNIC copyright notice:

Copyright (c) 2004, Cisco, Inc and Information Network Center of Beijing University of Posts and Telecommunications. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of Cisco, Inc, Beijing University of Posts and Telecommunications, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

OpenSSLPortions of this program are Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved.

94

Page 88: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. All advertising materials mentioning features or use of this software must display the following acknowledgment:

"This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)"

4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact [email protected].

5. Products derived from this software may not be called "OpenSSL" nor may “OpenSSL" appear in their names without prior written permission of the OpenSSL Project.

6. Redistributions of any form whatsoever must retain the following acknowledgment:

"This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)"

THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright (C) 1995-1998 Eric Young ([email protected])

All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. All advertising materials mentioning features or use of this software must display the following acknowledgement:

SNMP Interface to the PI System 95

Page 89: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Appendix I: Acknowledgments

"This product includes cryptographic software written by Eric Young ([email protected])"

The word 'cryptographic' can be left out if the routines from the library being used are not cryptographic related :-).

4. If any Windows specific code (or a derivative thereof) is included from the apps directory (application code) an acknowledgement must be included:

"This product includes software written by Tim Hudson ([email protected])"

96

Page 90: PI-SNMP - OSIsoftcdn.osisoft.com/interfaces/2099/PI_PISNMP_1.3.1.2.doc · Web viewLocation5 Debugging 0 none 1 minimal 2 medium 3 maximum If a PI-SNMP point is not receiving the values

Revision HistoryDate Author Comments

8-Sep-2003 E Tam Interface v1.2.0.0; used skeleton v1.12

3-Oct-03 Chrys Fixed some typos

25-Oct-2003 E Tam change version to be v1.2.0.2

14-May-2004 T Johnson SNMPv3 support.

25-Oct-04 T Johnson New command line parameters, new ICU control, pisnmputil replaced with SMT 3.x plug-in, acknowledgments.

08-Nov-2004 E Tam SNMP SETs (PI outputs) and –out startup parameter

18-Nov-2004 E Tam Updated ICU control screenshot (-out parameter)

10-Jan-05 T Johnson Version 1.3.0.4

15-Feb-05 T Johnson Rev B: Revised SMT3 Tag Builder info

16-Feb-05 Chrys Version 1.3.0.4 Rev C: changed note that tag builder is part of interface install; made minor format changes; moved common problems into error section; fixed section breaks

18-Feb-05 MPKelly Fixed sample pisnmp.bat file to correct placement of quotes around the /stopstat=”Intf Shut” parameter.

20-Sep-05 T Johnson Added -cr command line parameter.

09-Nov-2005 T Johnson Corrected snmpget syntax

09-Nov-2005 T Johnson Version 1.3.1.2

11-Nov-2005 Janelle Version 1.3.1.2, Rev A: removed references from the first person, changed to third person; fixed headers and footers. Alphabetized the command line parameter section; alphabetized parameters in the sample bat file section.

14-Nov-2005 T Johnson Version 1.3.1.2, Rev B: Added Windows 2003 (Intel) in supported platforms; removed –f from required parameters in .bat file, put in optional parameters.

SNMP Interface to the PI System 97