Discussion:
[rancid] HELP RACNID LOOKING GLASS
Tarranum Kamal
2017-05-26 05:12:28 UTC
Permalink
I use your method. The location of perl i think I am sure (see below)

/usr/local/htdocs/lg % cd /usr/local/bin/perl
perl* perl5* perl5.24.1* perlbug* perldoc* perlivp*
perlthanks*


Perl version in use:

perl -v

This is perl 5, version 24, subversion 1 (v5.24.1) built for
amd64-freebsd-thread-multi
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2016, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Thanks for replying

BR
Did you install the modules using the method I gave?
Are you sure about the location of the perl modules?
I've never played with the LG and I don't do http.
On Thu, May 25, 2017 at 11:57 AM, Tarranum Kamal
Hi Aaron
Thanks for your swift reply. Is this going to install CGI and Lockfile
module for me ?
FYI, httpd.conf file
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule perl_module libexec/apache24/mod_perl.so
ScriptAlias /lg /usr/local/htdocs/lg
<Directory "/usr/local/htdocs/lg/.htaccess">
AllowOverride None
AddHandler cgi-script .cgi .pl
Options ExecCGI
DirectoryIndex lgform.cgi
Require all granted
</Directory>
[Thu May 25 16:01:48.035497 2017] [cgi:error] [pid 17135] [client <IP
address:port>] AH01215: (8)Exec format error: exec of
'/usr/local/htdocs/lg/index.html' failed: /usr/local/htdocs/lg/index.
html
[Thu May 25 16:01:48.035557 2017] [cgi:error] [pid 17135] [client <IP
address:port>] End of script output before headers: index.html
Best Regards
As far as the Perl stuff
try
# perl -MCPAN -e shell
At cpan> shell prompt install module using install module::Name
# cpan> install MIME::Lite
# cpan -i MIME::Lite
0down votefavorite
<https://serverfault.com/questions/852134/rancid-looking-glass#>
I am beginner to server world and in general scripting and OS. I have
managed to run Rancid on my server running Freebsd. Now i am trying
to
confiugre RANCID Looking glass, i have followed REAMDE.lg that comes
with
rancid package but to be honest this is too difficult to understand
with
lots of hidden assumptions . ANyways i followed the instricution in
it
)
(whatever I could understand) , when I try to access it thru browser
it
displays text instead webpage, now I am clueless. The readme says it
required CGI and Lockfile perl modules, how can I check if these
modules
are present on my servers
I would appreciate if anyone has installed rancid looking glass who
can
help me out or if anyone can provide me a better installation guide
for
freebsd.
its been a while since i've setup the lg freshly and the i have yet to
review the suggestion last week from another user on the cisco-nsp
list.
i'll try to do that next week, otherwise the README.lg file is the
only
instruction I have for you ATM.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Tarranum Kamal
2017-05-29 17:13:50 UTC
Permalink
HI Again

I managed to fix my cgi issues. Now I need some help in what needs to be
updated in conf file to make it work with Nokia routers?

Thanks
Post by Tarranum Kamal
I use your method. The location of perl i think I am sure (see below)
/usr/local/htdocs/lg % cd /usr/local/bin/perl
perl* perl5* perl5.24.1* perlbug* perldoc* perlivp*
perlthanks*
perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for
amd64-freebsd-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Thanks for replying
BR
Did you install the modules using the method I gave?
Are you sure about the location of the perl modules?
I've never played with the LG and I don't do http.
On Thu, May 25, 2017 at 11:57 AM, Tarranum Kamal
Hi Aaron
Thanks for your swift reply. Is this going to install CGI and Lockfile
module for me ?
FYI, httpd.conf file
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule perl_module libexec/apache24/mod_perl.so
ScriptAlias /lg /usr/local/htdocs/lg
<Directory "/usr/local/htdocs/lg/.htaccess">
AllowOverride None
AddHandler cgi-script .cgi .pl
Options ExecCGI
DirectoryIndex lgform.cgi
Require all granted
</Directory>
[Thu May 25 16:01:48.035497 2017] [cgi:error] [pid 17135] [client <IP
address:port>] AH01215: (8)Exec format error: exec of
/usr/local/htdocs/lg/index.html
[Thu May 25 16:01:48.035557 2017] [cgi:error] [pid 17135] [client <IP
address:port>] End of script output before headers: index.html
Best Regards
As far as the Perl stuff
try
# perl -MCPAN -e shell
At cpan> shell prompt install module using install module::Name
# cpan> install MIME::Lite
# cpan -i MIME::Lite
0down votefavorite
<https://serverfault.com/questions/852134/rancid-looking-glass#>
I am beginner to server world and in general scripting and OS. I
have
managed to run Rancid on my server running Freebsd. Now i am trying
to
confiugre RANCID Looking glass, i have followed REAMDE.lg that comes
with
rancid package but to be honest this is too difficult to understand
with
lots of hidden assumptions . ANyways i followed the instricution in
it
)
(whatever I could understand) , when I try to access it thru
browser it
displays text instead webpage, now I am clueless. The readme says it
required CGI and Lockfile perl modules, how can I check if these
modules
are present on my servers
I would appreciate if anyone has installed rancid looking glass who
can
help me out or if anyone can provide me a better installation guide
for
freebsd.
its been a while since i've setup the lg freshly and the i have yet
to
review the suggestion last week from another user on the cisco-nsp
list.
i'll try to do that next week, otherwise the README.lg file is the
only
instruction I have for you ATM.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Tarranum Kamal
2017-05-30 11:40:19 UTC
Permalink
Hello again

I am getting this error when i try to execute ping command
You must at least choose a Query and a router. Try buying a clue
Post by Tarranum Kamal
HI Again
I managed to fix my cgi issues. Now I need some help in what needs to be
updated in conf file to make it work with Nokia routers?
Thanks
Post by Tarranum Kamal
I use your method. The location of perl i think I am sure (see below)
/usr/local/htdocs/lg % cd /usr/local/bin/perl
perl* perl5* perl5.24.1* perlbug* perldoc* perlivp*
perlthanks*
perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for
amd64-freebsd-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Thanks for replying
BR
Did you install the modules using the method I gave?
Are you sure about the location of the perl modules?
I've never played with the LG and I don't do http.
On Thu, May 25, 2017 at 11:57 AM, Tarranum Kamal
Hi Aaron
Thanks for your swift reply. Is this going to install CGI and Lockfile
module for me ?
FYI, httpd.conf file
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule perl_module libexec/apache24/mod_perl.so
ScriptAlias /lg /usr/local/htdocs/lg
<Directory "/usr/local/htdocs/lg/.htaccess">
AllowOverride None
AddHandler cgi-script .cgi .pl
Options ExecCGI
DirectoryIndex lgform.cgi
Require all granted
</Directory>
[Thu May 25 16:01:48.035497 2017] [cgi:error] [pid 17135] [client <IP
address:port>] AH01215: (8)Exec format error: exec of
/usr/local/htdocs/lg/index.html
[Thu May 25 16:01:48.035557 2017] [cgi:error] [pid 17135] [client <IP
address:port>] End of script output before headers: index.html
Best Regards
As far as the Perl stuff
try
# perl -MCPAN -e shell
At cpan> shell prompt install module using install module::Name
# cpan> install MIME::Lite
# cpan -i MIME::Lite
0down votefavorite
<https://serverfault.com/questions/852134/rancid-looking-glass#>
I am beginner to server world and in general scripting and OS. I
have
managed to run Rancid on my server running Freebsd. Now i am
trying to
confiugre RANCID Looking glass, i have followed REAMDE.lg that
comes
with
rancid package but to be honest this is too difficult to understand
with
lots of hidden assumptions . ANyways i followed the instricution
in it
)
(whatever I could understand) , when I try to access it thru
browser it
displays text instead webpage, now I am clueless. The readme says
it
required CGI and Lockfile perl modules, how can I check if these
modules
are present on my servers
I would appreciate if anyone has installed rancid looking glass
who can
help me out or if anyone can provide me a better installation
guide for
freebsd.
its been a while since i've setup the lg freshly and the i have yet
to
review the suggestion last week from another user on the cisco-nsp
list.
i'll try to do that next week, otherwise the README.lg file is the
only
instruction I have for you ATM.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Tarranum Kamal
2017-06-02 06:36:30 UTC
Permalink
Anyone who can answer my query. I have fixed my previous issues and now
when try to execute ping from my LG webpage, it gives me error "Unknown
device type nokia: . I am trying to configure it for Nokia routers
(formerly Alcatel Lucent).

Here is how my rancid.types.conf looks like

nokia;script;nkrancid
nokia;login;nklogin
nokia;module;timos
nokia;command;timos::ping
nokia;inloop;timos::inloop

and nklogin /nkrancid are located in /usr/local/libexc/rancid and are
writeable by rancid user only.

Thanks for your reply.

BR
Post by Tarranum Kamal
I use your method. The location of perl i think I am sure (see below)
/usr/local/htdocs/lg % cd /usr/local/bin/perl
perl* perl5* perl5.24.1* perlbug* perldoc* perlivp*
perlthanks*
perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for
amd64-freebsd-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Thanks for replying
BR
Did you install the modules using the method I gave?
Are you sure about the location of the perl modules?
I've never played with the LG and I don't do http.
On Thu, May 25, 2017 at 11:57 AM, Tarranum Kamal
Hi Aaron
Thanks for your swift reply. Is this going to install CGI and Lockfile
module for me ?
FYI, httpd.conf file
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule perl_module libexec/apache24/mod_perl.so
ScriptAlias /lg /usr/local/htdocs/lg
<Directory "/usr/local/htdocs/lg/.htaccess">
AllowOverride None
AddHandler cgi-script .cgi .pl
Options ExecCGI
DirectoryIndex lgform.cgi
Require all granted
</Directory>
[Thu May 25 16:01:48.035497 2017] [cgi:error] [pid 17135] [client <IP
address:port>] AH01215: (8)Exec format error: exec of
/usr/local/htdocs/lg/index.html
[Thu May 25 16:01:48.035557 2017] [cgi:error] [pid 17135] [client <IP
address:port>] End of script output before headers: index.html
Best Regards
As far as the Perl stuff
try
# perl -MCPAN -e shell
At cpan> shell prompt install module using install module::Name
# cpan> install MIME::Lite
# cpan -i MIME::Lite
0down votefavorite
<https://serverfault.com/questions/852134/rancid-looking-glass#>
I am beginner to server world and in general scripting and OS. I
have
managed to run Rancid on my server running Freebsd. Now i am trying
to
confiugre RANCID Looking glass, i have followed REAMDE.lg that comes
with
rancid package but to be honest this is too difficult to understand
with
lots of hidden assumptions . ANyways i followed the instricution in
it
)
(whatever I could understand) , when I try to access it thru
browser it
displays text instead webpage, now I am clueless. The readme says it
required CGI and Lockfile perl modules, how can I check if these
modules
are present on my servers
I would appreciate if anyone has installed rancid looking glass who
can
help me out or if anyone can provide me a better installation guide
for
freebsd.
its been a while since i've setup the lg freshly and the i have yet
to
review the suggestion last week from another user on the cisco-nsp
list.
i'll try to do that next week, otherwise the README.lg file is the
only
instruction I have for you ATM.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Tarranum Kamal
2017-06-06 06:45:58 UTC
Permalink
Hi All

Can anyone give me some tip?
Post by Tarranum Kamal
Anyone who can answer my query. I have fixed my previous issues and now
when try to execute ping from my LG webpage, it gives me error "Unknown
device type nokia: . I am trying to configure it for Nokia routers
(formerly Alcatel Lucent).
Here is how my rancid.types.conf looks like
nokia;script;nkrancid
nokia;login;nklogin
nokia;module;timos
nokia;command;timos::ping
nokia;inloop;timos::inloop
and nklogin /nkrancid are located in /usr/local/libexc/rancid and are
writeable by rancid user only.
Thanks for your reply.
BR
Post by Tarranum Kamal
I use your method. The location of perl i think I am sure (see below)
/usr/local/htdocs/lg % cd /usr/local/bin/perl
perl* perl5* perl5.24.1* perlbug* perldoc* perlivp*
perlthanks*
perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for
amd64-freebsd-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Thanks for replying
BR
Did you install the modules using the method I gave?
Are you sure about the location of the perl modules?
I've never played with the LG and I don't do http.
On Thu, May 25, 2017 at 11:57 AM, Tarranum Kamal
Hi Aaron
Thanks for your swift reply. Is this going to install CGI and Lockfile
module for me ?
FYI, httpd.conf file
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule perl_module libexec/apache24/mod_perl.so
ScriptAlias /lg /usr/local/htdocs/lg
<Directory "/usr/local/htdocs/lg/.htaccess">
AllowOverride None
AddHandler cgi-script .cgi .pl
Options ExecCGI
DirectoryIndex lgform.cgi
Require all granted
</Directory>
[Thu May 25 16:01:48.035497 2017] [cgi:error] [pid 17135] [client <IP
address:port>] AH01215: (8)Exec format error: exec of
/usr/local/htdocs/lg/index.html
[Thu May 25 16:01:48.035557 2017] [cgi:error] [pid 17135] [client <IP
address:port>] End of script output before headers: index.html
Best Regards
As far as the Perl stuff
try
# perl -MCPAN -e shell
At cpan> shell prompt install module using install module::Name
# cpan> install MIME::Lite
# cpan -i MIME::Lite
0down votefavorite
<https://serverfault.com/questions/852134/rancid-looking-glass#>
I am beginner to server world and in general scripting and OS. I
have
managed to run Rancid on my server running Freebsd. Now i am
trying to
confiugre RANCID Looking glass, i have followed REAMDE.lg that
comes
with
rancid package but to be honest this is too difficult to understand
with
lots of hidden assumptions . ANyways i followed the instricution
in it
)
(whatever I could understand) , when I try to access it thru
browser it
displays text instead webpage, now I am clueless. The readme says
it
required CGI and Lockfile perl modules, how can I check if these
modules
are present on my servers
I would appreciate if anyone has installed rancid looking glass
who can
help me out or if anyone can provide me a better installation
guide for
freebsd.
its been a while since i've setup the lg freshly and the i have yet
to
review the suggestion last week from another user on the cisco-nsp
list.
i'll try to do that next week, otherwise the README.lg file is the
only
instruction I have for you ATM.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Aaron Dudek
2017-06-06 11:56:16 UTC
Permalink
I would look to see what there is for Alcatel Lucent or SROS instead of Nokia
Anyone who can answer my query. I have fixed my previous issues and now when
try to execute ping from my LG webpage, it gives me error "Unknown device
type nokia: . I am trying to configure it for Nokia routers (formerly
Alcatel Lucent).
Here is how my rancid.types.conf looks like
nokia;script;nkrancid
nokia;login;nklogin
nokia;module;timos
nokia;command;timos::ping
nokia;inloop;timos::inloop
and nklogin /nkrancid are located in /usr/local/libexc/rancid and are
writeable by rancid user only.
Thanks for your reply.
BR
Post by Tarranum Kamal
I use your method. The location of perl i think I am sure (see below)
/usr/local/htdocs/lg % cd /usr/local/bin/perl
perl* perl5* perl5.24.1* perlbug* perldoc* perlivp*
perlthanks*
perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for
amd64-freebsd-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Thanks for replying
BR
Did you install the modules using the method I gave?
Are you sure about the location of the perl modules?
I've never played with the LG and I don't do http.
On Thu, May 25, 2017 at 11:57 AM, Tarranum Kamal
Hi Aaron
Thanks for your swift reply. Is this going to install CGI and Lockfile
module for me ?
FYI, httpd.conf file
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule perl_module libexec/apache24/mod_perl.so
ScriptAlias /lg /usr/local/htdocs/lg
<Directory "/usr/local/htdocs/lg/.htaccess">
AllowOverride None
AddHandler cgi-script .cgi .pl
Options ExecCGI
DirectoryIndex lgform.cgi
Require all granted
</Directory>
[Thu May 25 16:01:48.035497 2017] [cgi:error] [pid 17135] [client <IP
address:port>] AH01215: (8)Exec format error: exec of
/usr/local/htdocs/lg/index.html
[Thu May 25 16:01:48.035557 2017] [cgi:error] [pid 17135] [client <IP
address:port>] End of script output before headers: index.html
Best Regards
As far as the Perl stuff
try
# perl -MCPAN -e shell
At cpan> shell prompt install module using install module::Name
# cpan> install MIME::Lite
# cpan -i MIME::Lite
0down votefavorite
<https://serverfault.com/questions/852134/rancid-looking-glass#>
I am beginner to server world and in general scripting and OS. I have
managed to run Rancid on my server running Freebsd. Now i am trying
to
confiugre RANCID Looking glass, i have followed REAMDE.lg that comes
with
rancid package but to be honest this is too difficult to understand
with
lots of hidden assumptions . ANyways i followed the instricution in
it
)
(whatever I could understand) , when I try to access it thru
browser it
displays text instead webpage, now I am clueless. The readme says it
required CGI and Lockfile perl modules, how can I check if these
modules
are present on my servers
I would appreciate if anyone has installed rancid looking glass who
can
help me out or if anyone can provide me a better installation guide
for
freebsd.
its been a while since i've setup the lg freshly and the i have yet to
review the suggestion last week from another user on the cisco-nsp
list.
i'll try to do that next week, otherwise the README.lg file is the
only
instruction I have for you ATM.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Tarranum Kamal
2017-06-07 03:36:04 UTC
Permalink
Hi Aaron

Yes you are right, the original equipment is from Alcatel running SROS. Its
a Unix like machine and I am trying to test ping for now. I am attached my
type.conf , nkrancid and nklogin files. I gor nkrancid from
https://github.com/buraglio/alurancid (after fixing one line it worked fine
for me) however alulogin file on the same repositiory is meant to work for
old version of rancid so i just copied jlogin that comes wih rancid3.0 and
renamed it , is it right thing to do ?

files on my systems are attached.

Thanks for your help.

BR
Tarranum
Post by Aaron Dudek
I would look to see what there is for Alcatel Lucent or SROS instead of Nokia
Post by Tarranum Kamal
Anyone who can answer my query. I have fixed my previous issues and now
when
Post by Tarranum Kamal
try to execute ping from my LG webpage, it gives me error "Unknown device
type nokia: . I am trying to configure it for Nokia routers (formerly
Alcatel Lucent).
Here is how my rancid.types.conf looks like
nokia;script;nkrancid
nokia;login;nklogin
nokia;module;timos
nokia;command;timos::ping
nokia;inloop;timos::inloop
and nklogin /nkrancid are located in /usr/local/libexc/rancid and are
writeable by rancid user only.
Thanks for your reply.
BR
On Fri, May 26, 2017 at 1:12 PM, Tarranum Kamal <
Post by Tarranum Kamal
I use your method. The location of perl i think I am sure (see below)
/usr/local/htdocs/lg % cd /usr/local/bin/perl
perl* perl5* perl5.24.1* perlbug* perldoc* perlivp*
perlthanks*
perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for
amd64-freebsd-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or
Post by Tarranum Kamal
Post by Tarranum Kamal
the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to
the
Post by Tarranum Kamal
Post by Tarranum Kamal
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.
Post by Tarranum Kamal
Post by Tarranum Kamal
Thanks for replying
BR
Did you install the modules using the method I gave?
Are you sure about the location of the perl modules?
I've never played with the LG and I don't do http.
On Thu, May 25, 2017 at 11:57 AM, Tarranum Kamal
Hi Aaron
Thanks for your swift reply. Is this going to install CGI and
Lockfile
Post by Tarranum Kamal
Post by Tarranum Kamal
module for me ?
FYI, httpd.conf file
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule perl_module libexec/apache24/mod_perl.so
ScriptAlias /lg /usr/local/htdocs/lg
<Directory "/usr/local/htdocs/lg/.htaccess">
AllowOverride None
AddHandler cgi-script .cgi .pl
Options ExecCGI
DirectoryIndex lgform.cgi
Require all granted
</Directory>
[Thu May 25 16:01:48.035497 2017] [cgi:error] [pid 17135] [client <IP
address:port>] AH01215: (8)Exec format error: exec of
/usr/local/htdocs/lg/index.html
[Thu May 25 16:01:48.035557 2017] [cgi:error] [pid 17135] [client <IP
address:port>] End of script output before headers: index.html
Best Regards
As far as the Perl stuff
try
# perl -MCPAN -e shell
At cpan> shell prompt install module using install module::Name
# cpan> install MIME::Lite
# cpan -i MIME::Lite
0down votefavorite
<https://serverfault.com/questions/852134/rancid-looking-glass#>
I am beginner to server world and in general scripting and OS. I have
managed to run Rancid on my server running Freebsd. Now i am
trying
Post by Tarranum Kamal
Post by Tarranum Kamal
to
confiugre RANCID Looking glass, i have followed REAMDE.lg that comes
with
rancid package but to be honest this is too difficult to
understand
Post by Tarranum Kamal
Post by Tarranum Kamal
with
lots of hidden assumptions . ANyways i followed the instricution
in
Post by Tarranum Kamal
Post by Tarranum Kamal
it
)
(whatever I could understand) , when I try to access it thru
browser it
displays text instead webpage, now I am clueless. The readme says it
required CGI and Lockfile perl modules, how can I check if these
modules
are present on my servers
I would appreciate if anyone has installed rancid looking glass
who
Post by Tarranum Kamal
Post by Tarranum Kamal
can
help me out or if anyone can provide me a better installation
guide
Post by Tarranum Kamal
Post by Tarranum Kamal
for
freebsd.
its been a while since i've setup the lg freshly and the i have
yet
Post by Tarranum Kamal
Post by Tarranum Kamal
to
review the suggestion last week from another user on the cisco-nsp
list.
i'll try to do that next week, otherwise the README.lg file is the
only
instruction I have for you ATM.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Tarranum Kamal
2017-06-09 04:49:34 UTC
Permalink
Hi Forum

Any advice ? It seems to me that LG script is not able to login to router
as i do not see any login attempts from server IP on my router. However
rancid can login (i tested following instrustions on
http://joe-ma-how-to.blogspot.sg/search/label/Rancid

Thanks for your kindl advice.

BR
Hi Aaron
Yes you are right, the original equipment is from Alcatel running SROS.
Its a Unix like machine and I am trying to test ping for now. I am attached
my type.conf , nkrancid and nklogin files. I gor nkrancid from
https://github.com/buraglio/alurancid (after fixing one line it worked
fine for me) however alulogin file on the same repositiory is meant to work
for old version of rancid so i just copied jlogin that comes wih rancid3.0
and renamed it , is it right thing to do ?
files on my systems are attached.
Thanks for your help.
BR
Tarranum
Post by Aaron Dudek
I would look to see what there is for Alcatel Lucent or SROS instead of Nokia
Post by Tarranum Kamal
Anyone who can answer my query. I have fixed my previous issues and now
when
Post by Tarranum Kamal
try to execute ping from my LG webpage, it gives me error "Unknown
device
Post by Tarranum Kamal
type nokia: . I am trying to configure it for Nokia routers (formerly
Alcatel Lucent).
Here is how my rancid.types.conf looks like
nokia;script;nkrancid
nokia;login;nklogin
nokia;module;timos
nokia;command;timos::ping
nokia;inloop;timos::inloop
and nklogin /nkrancid are located in /usr/local/libexc/rancid and are
writeable by rancid user only.
Thanks for your reply.
BR
On Fri, May 26, 2017 at 1:12 PM, Tarranum Kamal <
Post by Tarranum Kamal
I use your method. The location of perl i think I am sure (see below)
/usr/local/htdocs/lg % cd /usr/local/bin/perl
perl* perl5* perl5.24.1* perlbug* perldoc* perlivp*
perlthanks*
perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for
amd64-freebsd-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2016, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or
Post by Tarranum Kamal
Post by Tarranum Kamal
the
GNU General Public License, which may be found in the Perl 5 source
kit.
Post by Tarranum Kamal
Post by Tarranum Kamal
Complete documentation for Perl, including FAQ lists, should be found
on
Post by Tarranum Kamal
Post by Tarranum Kamal
this system using "man perl" or "perldoc perl". If you have access to
the
Post by Tarranum Kamal
Post by Tarranum Kamal
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.
Post by Tarranum Kamal
Post by Tarranum Kamal
Thanks for replying
BR
Did you install the modules using the method I gave?
Are you sure about the location of the perl modules?
I've never played with the LG and I don't do http.
On Thu, May 25, 2017 at 11:57 AM, Tarranum Kamal
Hi Aaron
Thanks for your swift reply. Is this going to install CGI and
Lockfile
Post by Tarranum Kamal
Post by Tarranum Kamal
module for me ?
FYI, httpd.conf file
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache24/mod_cgi.so
LoadModule perl_module libexec/apache24/mod_perl.so
ScriptAlias /lg /usr/local/htdocs/lg
<Directory "/usr/local/htdocs/lg/.htaccess">
AllowOverride None
AddHandler cgi-script .cgi .pl
Options ExecCGI
DirectoryIndex lgform.cgi
Require all granted
</Directory>
[Thu May 25 16:01:48.035497 2017] [cgi:error] [pid 17135] [client
<IP
Post by Tarranum Kamal
Post by Tarranum Kamal
address:port>] AH01215: (8)Exec format error: exec of
/usr/local/htdocs/lg/index.html
[Thu May 25 16:01:48.035557 2017] [cgi:error] [pid 17135] [client
<IP
Post by Tarranum Kamal
Post by Tarranum Kamal
address:port>] End of script output before headers: index.html
Best Regards
As far as the Perl stuff
try
# perl -MCPAN -e shell
At cpan> shell prompt install module using install module::Name
# cpan> install MIME::Lite
# cpan -i MIME::Lite
0down votefavorite
<https://serverfault.com/questions/852134/rancid-looking-glass#
I am beginner to server world and in general scripting and OS. I have
managed to run Rancid on my server running Freebsd. Now i am
trying
Post by Tarranum Kamal
Post by Tarranum Kamal
to
confiugre RANCID Looking glass, i have followed REAMDE.lg that comes
with
rancid package but to be honest this is too difficult to
understand
Post by Tarranum Kamal
Post by Tarranum Kamal
with
lots of hidden assumptions . ANyways i followed the
instricution in
Post by Tarranum Kamal
Post by Tarranum Kamal
it
)
(whatever I could understand) , when I try to access it thru
browser it
displays text instead webpage, now I am clueless. The readme
says
Post by Tarranum Kamal
Post by Tarranum Kamal
it
required CGI and Lockfile perl modules, how can I check if these
modules
are present on my servers
I would appreciate if anyone has installed rancid looking glass
who
Post by Tarranum Kamal
Post by Tarranum Kamal
can
help me out or if anyone can provide me a better installation
guide
Post by Tarranum Kamal
Post by Tarranum Kamal
for
freebsd.
its been a while since i've setup the lg freshly and the i have
yet
Post by Tarranum Kamal
Post by Tarranum Kamal
to
review the suggestion last week from another user on the
cisco-nsp
Post by Tarranum Kamal
Post by Tarranum Kamal
list.
i'll try to do that next week, otherwise the README.lg file is
the
Post by Tarranum Kamal
Post by Tarranum Kamal
only
instruction I have for you ATM.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Loading...