Paradyne SLM 5.5 manual XML and XSL Examples, Additional Resources

Page 107

B. Using XML to Produce Reports

XML and XSL Examples

The XML format of the report requests and the report outputs are documented through examples. The primary report request example, with comments showing XML tags, attributes, and possible values, is at

/opt/pdn/OpenLane/samples/xml/reports/CommentedExampleRequest.xml.

For more specific inventory report requests (applicable for all device types) see the files in

/opt/pdn/OpenLane/samples/xml/reports/DeviceReports/Requests/.

Examples of the outputs for those reports are in

/opt/pdn/OpenLane/samples/xml/reports/DeviceReports/Reports.

For more specific SLV/SLM report requests (only for FrameSaver devices) see the files in

/opt/pdn/OpenLane/samples/xml/reports/SlvReports/Requests/.

Examples of the outputs for those reports are in

/opt/pdn/OpenLane/samples/xml/reports/SlvReports/Reports.

here is also an XSL transformation example at /opt/pdn/OpenLane/samples/xml/reports/noRequestTag.xsl. Normally, when the report output is in XML, the report request is returned as part of the report. This can hinder the import of the XML into a row-based or table-based tool such as Microsoft Access. The XSL transformation in the example removes all non-row data such as the request and messages from the output to facilitate that kind of import.

Additional Resources

For information about XML and for the XML and XSL specifications, see:

www.w3.org/XML

www.w3.org/Style/XSL

For information about XML editors and other software, see:

www.xmlsoftware.com

7800-A2-GB32-00

January 2002

B-3

Image 107
Contents OpenLane SLM Copyright 2002 Paradyne Corporation All rights reserved Contents Apache User Access Authentication Installing OpenLane on WindowsConfiguring Distributed Components Adding Devices and Customer Profiles OpenLane MaintenanceBuilding and Using a Firmware Library Index Using XML to Produce ReportsOLCmd Reference Document Summary About This GuideDocument Purpose and Intended Audience Library → Technical Manuals Product-Related DocumentsNetwork Monitoring Easy InstallationIntroduction to OpenLane SLM OpenLane SLMOpenLane Features About These Instructions Installing OpenLane on SolarisPlanning the Installation Software Requirements Installation RequirementsMinimum Hardware Requirements Checking the Java Runtime Environment Version ProcedureCd /opt/OV/pdn/PerfWiz UnInstallToOV Uninstalling DCE ManagerUninstalling Performance Wizard DCEinstallOpt/pdn/OpenLane OpenLane Installation ProgramOpt/apache User = nobody Group = nobody Obtaining a License Key Installing from Paradyne’s Web SiteSetup.sh Installing from FTP Files Installing from CD-ROMSetenv Display localhostname0.0 Installing Remotely UsingInstalling the Permanent License Key Export DISPLAY=localhostname0.0OLCmd key Locating the License Key On an Installed SystemMigration to Current Release for Oracle Displaying the License Key Expiration DateStopping OpenLane Web and Database Services Starting OpenLane Web and Database ServicesConfiguring Apache to Use a Different Port Installing OpenLane on Solaris January Installing OpenLane on Windows MHz Processor Web Client Software Requirements Cd \opt\OV\pdn\PerfWiz uninstalltoov \opt\pdn\OpenLane \Program Files\Apache Group\Apache\opt\apache Procedure Cd \opt\pdn\OpenLane Migration to Current Release for Oracle Starting OpenLane Web and Database Services Stopping OpenLane Web and Database Services Http//olserver.com8080/openlane Installing OpenLane on Windows January OpenLane Distributed Components Configuring Distributed ComponentsOpenLane in /opt/pdn/OpenLane Setting Up Web Server DistributionSolaris Http//172.20.1.10/OpenLane Operational NotesCd /opt/pdn/OpenLane/uhpoller mkdir pollerpoller1 Setting Up the Distributed Poller and ReaderDistributed Poller/Reader Management Server Setup Cd /opt/pdn/OpenLane OLControl stopOLCmd logsvc OLCmd Dbconfig ‘-m 172.20.1.10’OLCmd Dbconfig ‘-m 172.20.1.101521’ Cd /opt/pdn/OpenLane OLControl startREADERDOMAIN=default Distributed Poller/Reader Poller/Reader SetupDOMAIN=default OLControl stop User Access Authentication Apache User Access AuthenticationChange to the /opt/apache/bin Solaris or c\opt\apache\bin Configuring Http Challenge/ResponseCd /opt/apache Solaris cd \opt\apache Windows OLCmd confauth off Removing a User’s Access\opt\pdn\OpenLane Windows OLCmd confauth onApache User Access Authentication January Adding Devices and Customer Profiles Accessing the OpenLane Web ApplicationsAdding a Device AdminNew Device Field Names Field Description Adding a Customer Profile 7800-A2-GB32-00 January Adding Devices and Customer Profiles Task Importance Ideal Frequency OpenLane MaintenanceOracle Database Backing Up OpenLane FilesOpt/pdn/OpenLane/data Gzip -d /backupdir/backup.tar.gz tar xvf backup.tarBacking Up OpenLane Under Solaris Restoring OpenLane Under SolarisRestoring OpenLane Under Windows Backing Up OpenLane Under WindowsFrequency Deleting Older Records from the DatabaseCd /opt/pdn/OpenLane OLCmd processreports Using Cron Under Solaris to Automate ReportsGenerating Scheduled Reports Automating the Generation of Scheduled ReportsCd \opt\pdn\OpenLane OLCmd processreports Using AT under Windows to Automate ReportsRebuilding Oracle Database Indexes SQL Database Log File Monitoring Log FilesApache Log Files Legacy Logger Log Files OLCmd clean logs .logArchiving and Deleting Log Files Click on Click here to schedule the tasks Uploading ConfigurationsOpenLane Maintenance January 01.02.01=R010201.ocd Building and Using a Firmware LibraryBuilding a Firmware Library Version=filename9880=fw9880 New Device Models Not Supported by OpenLaneModel=directory Dslasn Model=devicetypeDbm DslaanDownloading and Activating Firmware Building and Using a Firmware Library Building and Using a Firmware Library January OLCmd Reference Olcmd viewlog -h OLCmd HelpsCd \opt\pdn\openlane olcmd confauth on OLCmd addcust Rent-a-Phone.com Rent-a-PhoneGmbH Rent-a-PhoneUSA OLCmd addcust -a realtime -c ExactCorporationOLCmd assigndev -c ExactCorporation -l exactdevices.txt OLCmd assigndevOLCmd assigndev -c ExactCorporation -a OLCmd chgrawfileext -d dallas -o bad -e raw OLCmd chgrawfileextOLCmd chgrawfileext -o raw -e ftp OLCmd clean \opt\apache\logs .log 21 admin OLCmd cleanOLCmd confauth on off OLCmd confauthOLCmd dbage OLCmd dbconfig -d c o -a instance -l -h OLCmd dbconfigUrl OLCmd dbcopy d OracleStatsDB OLCmd dbcopyOLCmd dbip OLCmd dbipOLCmd dbip address OLCmd dbroll -e 20010101000000 -r OLCmd dbrollDatabaseinstance IpaddressOLCmd delcust -l ex-customers.txt OLCmd delcustOLCmd delcust -ccustomer -lcustomer-list OLCmd deldev OLCmd deldevOLCmd deldev ipaddress OLCmd dumpldap host OLCmd dumpldapLdiffile OLCmd importldifOLCmd importldif -h host ldiffile OLCmd key WZBCK-AAM6E-U898Q-MX5HK OLCmd keyOLCmd key licensekey OLCmd OLCmd ldapmodify -D c=US -w admin -a -c data/new.ldifOLCmd ldapmodify OLCmd ldapsearch OLCmd ldapsearch -n-D bindDN -w password -h host -p portDebuglevel OLCmd logsvc ipaddress OLCmd logsvcOLCmd processreports -date 05/13/2001 -customer ExactCorp OLCmd processreportsDate date Enddate enddateOLCmd snmpget 135.26.10.37 OLCmd snmpgetOLCmd snmpget communityname ipaddress objectid ObjectidOLCmd snmptest 135.26.10.37 nmswrite Ipaddress Is the address of the device to be accessedOLCmd snmptest OLCmd snmptest ipaddress communitynameOLCmd sync OLCmd sync Poller-name OLCmd uhread -ccommand -npoller-nameCommand OLCmd uhreadOLCmd unassigndev -c ExactCorporation -l exactdevices.txt OLCmd unassigndevOLCmd unassigndev -c ExactCorporation -a OLCmd viewlog OLCmd viewlog -f fi -sd 05/07/2000 -ed 05/13/2000 UHReader Firmware/Configuration/Feature MaintenanceUHLister Poller Controller UHReader Database ReaderXsltransformfile OLCmd xmlreportXmlrequestfile XmloutputfileOLCmd Reference January XML Reports Using XML to Produce ReportsCommand Line Interface OLCmd xmlreport Opt/pdn/OpenLane/samples/xml/reports/xmlentry.html. You can Servlet Interface SlvXmlServletWriting an Interface to the Servlet Opt/pdn/OpenLane/OLServlets/pdn.webcgi.SlvXmlServletOpt/pdn/OpenLane/samples/xml/reports/DeviceReports/Reports XML and XSL ExamplesAdditional Resources Opt/pdn/OpenLane/samples/xml/reports/DeviceReports/RequestsUsing XML to Produce Reports January IN-1 IndexIN-2 IN-3 IN-4