This chapter provides overview and installation information needed to use the Java application programming interface (API) with Cisco License Manager Release 2.0 and contains the following sections:
Cisco License Manager provides an object-oriented Java API for client programs to invoke functions implemented in the Cisco License Manager back-end server.
The API is a set of Java class libraries in a single Java archive (JAR) file. The top-level class License Manager contains all functions that can be invoked by client programs. This is the same class library set used by the Cisco License Manager graphical user interface (GUI). This guide provides the external Java API as seen by its client programs and includes the following functions:
The API requires Java Development Kit (JDK) Version 1.5.
The following table provides details of the recommended software and hardware requirements for the Cisco License Manager server. These recommended requirements support the maximum data capacity (30,000 Cisco devices in the network). Also use these requirements if you are installing the server and client on the same host.
Table 1-1 Server Recommended Software and Hardware Requirements
Requirement Type
Recommended Requirement
Processor
Intel Pentium 4 3.2 GHz or equivalent CPU-based machine
Sun UltraSPARC IIIi or equivalent CPU-based machine
Software
Operating system
•Windows Server 2003 R2 Standard Edition
•Windows XP Professional
•Solaris 10 (SPARC system only)
RAM
2 GB
Disk
10 GB
The following table provides details of the recommended software and hardware requirements for the Cisco License Manager client workstation.
Table 1-2 Client Workstation Recommended Software and Hardware Requirements
Requirement Type
Recommended Requirement
Processor
Intel Pentium 4 3.2 GHz or equivalent CPU-based machine
Sun UltraSPARC IIIi or equivalent CPU-based machine
Software
Operating system
•Windows Server 2003 R2 Standard Edition
•Windows XP Professional
•Solaris 10 (SPARC system only)
RAM
1 GB
Disk
10 GB
Network connectivity
Server must be reachable from the client software.
Java requirements
Version 1.5
Installing the Cisco License Manager SDK
Cisco recommends that you install the Cisco License Manager Software Developer Kit (SDK) on the same machine on which the server resides.
To install the Cisco License Manager SDK, complete the following steps:
Step 1 Copy clm_java_sdk.zip from the CD to a local drive.
Step 2 Unzip the file.
The folder "CiscoLicenseManager_JAVA_SDK" is created on the local drive. It contains these files:
clm-sdk.jar
clm_ssl_rmi.cert
conf, a folder containing the file ClmErrorMessages.properties.
Using the SDK
Complete the following steps to begin using the SDK:
Step 1 Add clm-sdk.jar to the Java classpath when compiling and running the client program.
javac -classpath clm-sdk.jar MyProgram.java
Step 2 If the Cisco License Manager License Manager server is SSL enabled:
Run the following command to import the Cisco License Manager certifcate file, clm_ssl_rmi.cer, to the trust store on your client system:
where <keystore_file_path> is the trust store of your client system, for example, C:\jdk1.5\jre\lib\security\cacerts, and <clm_ssl_rmi_cer_file_path> is the fullpath of the clm_ssl_rmi.cer file, for example, C:\CLM2.0_SDK\clm_ssl_rmi.cer.