Is it possible to add a list of ips (csv, txt file, etc) to ziptie - without having to go one device at a time. With 10 devices this is not a problem - but I have 100s of devices to add- and can find this very time consuming. The discovery does not seem to add everything necessary on the site.
Thanks
There isn't a way in the UI
There isn't a way in the UI to do it but we have a Perl script that will do the trick.
http://fisheye.ziptie.org/browse/~raw,r=1.4/ZipTie/PerlClient/import.pl
You'll need the ZipTie::Client module for this as well.
Just build a CSV file with three columns.....
ip,hostname,adapter-ID
So something like.....
10.10.10.1,boston-rtr,ZipTie::Adapters::Cisco::IOS
10.10.10.7,boston-pix,ZipTie::Adapters::Cisco::SecurityAppliance
Then call the import script, with the first argument being the name of your CSV file.....
perl import.pl mydevices.csv
ZipSOap issue
Still having a small issue:
C:\Program Files\ZipTie Server>perl import.pl mydevices.csv
SOAP::Lite version 0.69 required--this is only version 0.55 at C:/Perl/site/lib/
ZipTie/Client.pm line 140.
BEGIN failed--compilation aborted at C:/Perl/site/lib/ZipTie/Client.pm line 140.
Compilation failed in require at import.pl line 6.
BEGIN failed--compilation aborted at import.pl line 6.
Trying to upgrade using ppm gui in windows but having problems
The latest version of
The latest version of SOAP-Lite doesn't seem to be on active state. Try this on a command line..
ppm install http://trouchelle.com/ppm/SOAP-Lite.ppd
or configure your PPM UI to add the trouchelle repository.
- Leo
More errors
C:\Documents and Settings\cnc>ppm install http://trouchelle.com/ppm/SOAP-Lite.pp
d
ppm install failed: Can't find any package that provide IO-Socket-SSL for SOAP-L
ite
Can't find any package that provide Net-Jabber for SOAP-Lite
Can't find any package that provide Crypt-SSLeay for SOAP-Lite
Now when I just try to do ppm or ppm install i get :
C:\Documents and Settings\cnc>ppm
No Perl script found in input
I really do appreciate your help on this one Leo!
I'm not very familiar with
I'm not very familiar with ppm. Is there a way to add trouchelle as a repository in the GUI? My guess is that even though it is pulling SOAP-Lite from trouchelle, it still tries to resolve the dependencies from the default repository.
- Leo
PPM
I will try removing the default instance of activestates ppm4 package server - and usings trouchelle's primarily.
Hopefully a logout and login will fix perl - after putting in their repository - i have been unable to call up ppm again.
S
My suggestion...
My suggestion is to blow away your ActiveState install, and lay down a new one (5.8.8 preferred). Then download the newest version of our perlcheck.pl file from here:
http://fisheye.ziptie.org/browse/~raw,r=1.23/ZipTie/Build/perlcheck.pl
It uses the trouchelle ppm repository, shouldn't screw up your default ppm configuration, and as far as I know "just works".
Give it a shot.
-Brett
i'm not familiar with the
i'm not familiar with the ppm UI options, but i can tell you what you need to do via the ppm CLI:
1. from a cmd window, run 'ppm-shell'
2. add the trouchelle repository by running 'rep add http://trouchelle.com/ppm'
once you've done that, whether you choose to install a module via the cli or from the ppm UI it will include the new repository in the search list.
-Z
Include the tag of devices in this perl script
Is it possible to include the tagging of devices in this perl import.pl script ? That would be most excellent.
Also - in future - could there be a way to associate TAGS with Credentials - right now I have to enter info twice, which can be a pain.
Thanks
The import.pl uses the
The import.pl uses the ZipTie::Client Perl module, which hits our SOAP APIs. So you could modify it to apply some set of tags as you wish.
Here is the CPAN page for our ZipTie::Client that shows some examples
http://search.cpan.org/~lbayer/ZipTie-Client-1.3/lib/ZipTie/Client.pm
Here is the tag example from it....
$client->devicetags()->addTag('HQ'); $client->devicetags()->tagDevices('HQ', '10.1.2.1@Default');
Still not completely sure how to update import.pl
Still not completely sure how to update import.pl to allow a 4th column, with the TAG.
I see the line of code used to parse the csv file, but it is daunting to me on how it would be modified for this custom purpose.
Please advise - it would be greatly appreciated.
Steve
I updated the import.pl
I updated the import.pl script to handle a 4th column from your import CSV file that is the tag name.
Go here for the latest import script.
http://fisheye.ziptie.org/browse/~raw,r=1.5/ZipTie/PerlClient/import.pl
Can this be put into the gui?
Can this be put into the gui? Under the add devices screen, can there be a batch import, where we can paste in a csv file, and have the import script work accordingly?
This would help a lot of linux newbies avoid using vi, and the linux command line for me.
If so, would I put this in bugzilla, or feature requests in the forum?
Please advise.
Please put in a bugzilla
Please put in a bugzilla enhancement request at bugs.ziptie.org.