ZipTie::Adapters::GenericAdapter
use ZipTie::Adapters::GenericAdapter;
ZipTie::Adapters::GenericAdapter::execute_cli_commands($cli_protocol, $commands, $defaultPrompt);
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.
execute_cli_commands($cli_protocol, $commands, $defaultPrompt)
$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)get_interfaces($snmp_session)scp_restore($connectionPath, $restoreFile)| Does an SCP 'put' of the provided $restoreFile | |
| $connectionPath - an instance of ZipTie::ConnectionPath | |
| $restoreFile - an instance of ZipTie::RestoreFile |
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.
Contributor(s): rkruse Date: Aug 24, 2007