I am following along with the ZipTie vide tutorial on how to develop an adapter, and the trouble I am having is reaching the remote host. Here is the error message I recieve after selecting an adapter and attempting to Execute the backup:

Select an adapter: 0
Executing 'backup' using 'ZipTie::Adapters::Demo::API'...
2008-07-18 14:34:11,532 INFO : 2008-07-18 14:34:11 [ZipTie::Adapters::Utils] Logging adapter output to STDOUT
2008-07-18 14:34:11,688 INFO : 2008-07-18 14:34:11 [PerlServer::Pack1] Use of uninitialized value in pattern match (m//) at scripts/ZipTie/SnmpSessionFactory.pm line 29, line 169.
2008-07-18 14:34:11,688 INFO : 2008-07-18 14:34:11 [PerlServer::Pack1] Use of uninitialized value in division (/) at scripts/ZipTie/SnmpSessionFactory.pm line 38, line 169.
2008-07-18 14:34:14,735 INFO : 2008-07-18 14:34:14 [ZipTie::Adapters::GenericAdapter] [SNMP_ERROR]
2008-07-18 14:34:14,735 INFO : 2008-07-18 14:34:14 [ZipTie::Adapters::GenericAdapter] Error getting SNMP request: No response from remote host '10.127.64.16' at scripts/ZipTie/Adapters/GenericAdapter.pm line 94
2008-07-18 14:34:14,735 INFO : 2008-07-18 14:34:14 [ZipTie::Adapters::GenericAdapter]java.lang.reflect.InvocationTargetException: [SNMP_ERROR]Error getting SNMP request: No response from remote host '10.127.64.16' at scripts/ZipTie/Adapters/GenericAdapter.pm line 94

at org.ziptie.adapters.AdapterInvokerElf.getException (AdapterInvokerElf.
java:157)
at org.ziptie.adapters.AdapterInvokerElf.invoke(AdapterInvokerElf.java:1
42)
at org.ziptie.adaptertool.AdapterCli.run(AdapterCli.java:101)
at org.ziptie.adaptertool.AdapterCli.main(AdapterCli.java:328)
Caused by: org.ziptie.perl.PerlException: [SNMP_ERROR]
Error getting SNMP request: No response from remote host '10.127.64.16' at scrip
ts/ZipTie/Adapters/GenericAdapter.pm line 94

at org.ziptie.perl.PerlServer.readResponse(PerlServer.java:452)
at org.ziptie.perl.PerlServer.eval(PerlServer.java:275)
at org.ziptie.adapters.AdapterInvokerElf.invoke(AdapterInvokerElf.java:1
________________________________________________________________________

...I also try to Telnet to the device through Network Authority, and it gives me a Java error stating:

Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:518)
at java.net.Socket.connect(Socket.java:468)
at java.net.Socket.(Socket.java:365)
at java.net.Socket.(Socket.java:208)
at com.alterpoint.net.terminal.datasource.TelnetDataSourceImpl.connect(TelnetDataSourceImpl.java:50)
at com.alterpoint.net.terminal.adapter.TelnetTerminalAdapterImpl.performConnect(TelnetTerminalAdapterImpl.java:35)
at com.alterpoint.net.terminal.BaseTerminalAdapter.doConnect(BaseTerminalAdapter.java:446)
at com.alterpoint.net.terminal.adapter.TelnetTerminalAdapterImpl.connect(TelnetTerminalAdapterImpl.java:40)
at com.alterpoint.ine.telnet.agent.IneTelnetAgent.performConnect(IneTelnetAgent.java:58)
at com.alterpoint.ine.telnet.agent.IneTelnetAgent.connect(IneTelnetAgent.java:44)
at com.alterpoint.ine.telnet.editors.IneTelnetProvider$2.run(IneTelnetProvider.java:308)
at java.lang.Thread.run(Thread.java:619)

The error was detected in Class: com.alterpoint.ine.telnet.editors.IneTelnetProvider$2$3

I am totally lost on this one any help would be much appreciated.

Thanks,

>>

The first error in your post

The first error in your post is an SNMP_ERROR. This indicates that your device does not respond to SNMP. The adapter video tutorial shows you how to create an adapter that works with SSH/Telnet and SNMP. So either enable SNMP on the device or edit the adapter to stop using SNMP. If you don't want to use SNMP then you can remove the lines dealing with the SnmpSessionFactory and all things it creates. If you're going that route then also remove SNMP from the backup protocols in the adapter metadata.xml file.

Your second error is not related to ZipTie. You should bring this up with an AlterPoint support person instead of posting it to this forum.

I seem to have another

I seem to have another problem when trying to create this adapter. I can not Telnet to the specified host 10.127.64.16 why is this? the error I recieve is:

2008-07-21 09:56:28,698 INFO : 2008-07-21 09:56:28[ZipTie::SNMP] .1.3.6.1.2.1.4.20.1.3.10.127.64.16 => 255.255.255.02008-07-21 09:56:28,713 INFO : 2008-07-21 09:56:28 [ZipTie::SNMP] .1.3.6.1.2.1.4.20.1.4.10.127.64.16 => 1 2008-07-21 09:56:28,713 INFO : 2008-07-21 09:56:28 [ZipTie::SNMP] .1.3.6.1.2.1.
4.20.1.5.10.127.64.16 => 180242008-07-21 09:56:28,713 INFO : 2008-07-21 09:56:28 [ZipTie::CLIProtocolFactory]
Using 'ZipTie::Telnet' as the implementation of the specified CLI protocol "Telnet".
2008-07-21 09:56:28,713 INFO : 2008-07-21 09:56:28 [ZipTie::Adapters::Demo::API::AutoLogin] Protocol in use: Telnet
2008-07-21 09:56:28,713 INFO : 2008-07-21 09:56:28 [ZipTie::Telnet] Invalid port '-1' defined. Defaulting to port '23'.
2008-07-21 09:56:28,713 INFO : 2008-07-21 09:56:28 [ZipTie::Telnet] About to connect to 10.127.64.16 over port 23 ...
2008-07-21 09:56:29,635 INFO : 2008-07-21 09:56:29 [ZipTie::Telnet] [TELNET_ERROR]
2008-07-21 09:56:29,651 INFO : 2008-07-21 09:56:29 [ZipTie::Telnet] problem connecting to "10.127.64.16", port 23: Unknown error at scripts/ZipTie/Telnet.pm line 571
2008-07-21 09:56:29,651 INFO : 2008-07-21 09:56:29 [ZipTie::Telnet]
java.lang.reflect.InvocationTargetException: [TELNET_ERROR]
problem connecting to "10.127.64.16", port 23: Unknown error at scripts/ZipTie/Telnet.pm line 571

at org.ziptie.adapters.AdapterInvokerElf.getException(AdapterInvokerElf.
java:157)
at org.ziptie.adapters.AdapterInvokerElf.invoke(AdapterInvokerElf.java:1
42)
at org.ziptie.adaptertool.AdapterCli.run(AdapterCli.java:101)
at org.ziptie.adaptertool.AdapterCli.main(AdapterCli.java:328)
Caused by: org.ziptie.perl.PerlException: [TELNET_ERROR]
problem connecting to "10.127.64.16", port 23: Unknown error at scripts/ZipTie/T
elnet.pm line 571

at org.ziptie.perl.PerlServer.readResponse(PerlServer.java:452)
at org.ziptie.perl.PerlServer.eval(PerlServer.java:275)
at org.ziptie.adapters.AdapterInvokerElf.invoke(AdapterInvokerElf.java:1
29)
... 2 more

_________________________________________________________________

*******Line 571 in the telnet.pm shows:*************

sub _log_and_die
{
my $error_message = shift;
# If "eof" is in the error message, construct a more verbose error message
if ( $error_message =~ /eof/mi )
{
$LOGGER->fatal( "[$TELNET_ERROR]\nCould not match regular expression because connection to device no longer exists!" );
}
else
{
(LINE 571) $LOGGER->fatal( "[$TELNET_ERROR]\n" . $error_message );
}
}

sub DESTROY
_________________________________________________________________________

...any advice would be greatly apprecieated!

Thanks much,

>>

Manually

Can you manually telnet to 10.127.64.16 from the machine that the ZipTie server is installed on, or is it blocked? Seems like a simple connection failure. Either access is blocked from the ZipTie machine (due to firewall or TACACS), or the device isn't enabled for Telnet (SSH only).

-Brett