NAME

ZipTie::Adapters::GenericAdapter


SYNOPSIS

    use ZipTie::Adapters::GenericAdapter;
        ZipTie::Adapters::GenericAdapter::execute_cli_commands($cli_protocol, $commands, $defaultPrompt);


DESCRIPTION

This module contains methods that can be of use to any adapter. For example, they use the ZipTie::CliProtocol or use public SNMP mibs through the ZipTie::SNMP module.

METHODS

execute_cli_commands($cli_protocol, $commands, $defaultPrompt)
Runs a series of CLI based commands against the provided $cli_protocol object.
        $cli_protocol - Implementation of ZipTie::CLIProtocol
        $commands - Implementation of ZipTie::CommandSet
        $defaultPrompt - a regex for the prompt
        
An XML document containing the adapter responses will be printed to STDOUT or
whichever filehandle the Utils call offers up.

get_snmp($snmp_session)
Using the provided Net::SNMP->session object, this method retrieves common:SNMP elements as explained by the SNMP element of the ZiptieElementDocument XSD.

get_interfaces($snmp_session)
Using the provided Net::SNMP->session object, this method retrieves common:Interface elements as explained by the SNMP element of the ZiptieElementDocument XSD.

scp_restore($connectionPath, $restoreFile)
Does an SCP 'put' of the provided $restoreFile
$connectionPath - an instance of ZipTie::ConnectionPath
$restoreFile - an instance of ZipTie::RestoreFile


LICENSE

 The contents of this file are subject to the AlterPoint Open Technology
 License (the "License"); you may not use this file except in
 compliance with the License. You may obtain a copy of the License at
 http://inventory.alterpoint.com/license
 Software distributed under the License is distributed on an "AS IS"
 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 License for the specific language governing rights and limitations
 under the License.


AUTHOR

  Contributor(s): rkruse
  Date: Aug 24, 2007