Cisco CiscoWorks Network Compliance Manager 1.8 Developer's Guide

Page of 25
28
Appendix A
Satellite User Guide for CiscoWorks Network Compliance Manager
To install any of the required modules, use one of the following commands:
ppm install SOAP-Lite
cpan install SOAP::Lite
 Note that PPM (ppm.exe) is part of the ActivePerl distribution. If you are using ActivePerl, it 
is recommended that you use the PPM method. You can also run PPM without arguments and 
then issue the install command. You may need to do this for some Perl modules that have 
multiple versions to choose from, followed by install # where # is the item in the list returned 
by the install command. Keep in mind that PPM prefers to use the '-' as a namespace 
separator in place of the Perl '::' separator.
Keep in mind that the installation could fail if your Perl installation does not meet certain 
requirements. See the section 
 on page 21. In addition, the 
Opsware::NAS Perl modules are distributed as compressed tarballs, similar modules on 
CPAN. They are located in $NCM_HOME/client/perl_api/Opsware/.
To untar and uncompress all of the modules at one time, use the ptar command. ptar is 
distributed as part of the Perl Archive::Tar module, which is included in the standard 
ActivePerl distributions. To view the contents of the directory and to extract the contents into 
your current directory, enter: ptar -xzvf PATH/TO/whatever.tar.gz.
For each of the following modules, uncompress and untar the module(s) and change to the 
directory that was created:
Opsware::NAS::Util
Opsware::NAS::Client
Opsware::NAS::Connect
To install the Perl API on a Windows platform with ActivePerl (or any platform running a 
version of Perl that has the Module::Build module installed):
perl Build.PL
perl Build build
perl Build test
perl Build install
You may also use the traditional CPAN method. Enter:
perl Makefile.PL
make
make test
make install
NMAKE.EXE is installed when installing NCM on a Windows platform. It is located the /cli-
ent directory. CPAN is simply a wrapper for the perl -MCPAN -e shell command. The CPAN 
command (or cpan.exe) is part of the core Perl install on all Perl versions since 5.8.0 (includ-
ing ActivePerl).
If you are using the CPAN method on a Windows platform, enter nmake rather than make.