WYAE - FWTOOLS Mailing List Archive
| RE: [fwtools] FWTools Problems
|
| From: | "Deric Scott" |
| Date: | Wed, 2 May 2007 16:26:17 -0400
|
Actually, the frst step completes fine; it is the piping of that output
into the python scripts that generates the issue. Please see the
following output from these attempts:
> perl fw1r55_to_fwdoc.pl --rules=3Druleset.W --objects
=3Dobjects.C --with_implicit_rules > ruleset.fwdoc
- by Volker Tanger
> tail ruleset.fwdoc
,"SunRPC_ypupdated": {
"name": "SunRPC_ypupdated",
"protocol": "SunRPC"
}
,"SunRPC_ypxfrd": {
"name": "SunRPC_ypxfrd",
"protocol": "SunRPC"
}
}
> cat ruleset.fwdoc | fwdoc_to_html.py
cat: write error on standard output: The pipe is being closed.
Traceback (most recent call last):
File " fwdoc_to_html.py", line 45, in
fwdoctxt =3D sys.stdin.read(MAXSIZE)
IOError: [Errno 9] Bad file descriptor
cat ruleset.fwdoc | fwdoc_used_objects.py
> cat: write error on standard output: The pipe is being closed.
Traceback (most recent call last):
File " fwdoc_used_objects.py", line 56, in
fwdoctxt =3D sys.stdin.read(MAXSIZE)
IOError: [Errno 9] Bad file descriptor
=20
Thank you.
Deric Scott
=20
=20
=20
=20
-----Original Message-----
From: Volker Tanger [mailto:volker.tanger@wyae.de]=20
Sent: Wednesday, 02 May, 2007 3:28 PM
To: fwtools@wyae.de
Subject: Re: [fwtools] FWTools Problems
Greetings!
On Mon, 30 Apr 2007 11:40:34 -0400
"Deric Scott" wrote:
> I am trying to use the latest versions of the FWTools applications to
> generate a document showing the configuration of a CheckPoint
> firewall I am migrating.
> File "H:\Temp\FWDOC\fwdoc_used_objects\fwdoc_used_objects.py", line
> 56, in
> fwdoctxt =3D sys.stdin.read(MAXSIZE)
> IOError: [Errno 9] Bad file descriptor
>=20
> =20
>=20
> After playing with it, I decided just to use one of my Linux boxes to
> get things going. Here, though, I get the following message:
[...] =20
> json.ReadException: Nothing to read: ''
>
> In both environments, I am using the same command:
> perl fw1r55_to_fwdoc.pl --rules=3Dfwrules.W --objects=3Dobjects.C
> --with_implicit_rules | fwdoc_used_objects.py | fwdoc_to_html.py
I guess the output of fw1r55_to_fwdoc.pl has a problem - probably the
program even quits with an error.
What happens if you run the generation of the FWDOC file and its
processing in two steps?
perl fw1r55_to_fwdoc.pl \
--rules=3Dfwrules.W \
--objects=3Dobjects.C \
--with_implicit_rules \
> ruleset.fwdoc
and if that works fine:
cat ruleset.fwdoc | fwdoc_used_objects.py | fwdoc_to_html.py
I guess you already have a problem in the first step.
Bye
Volker
--=20
Volker Tanger http://www.wyae.de/volker.tanger/
--------------------------------------------------
volker.tanger@wyae.de PGP Fingerprint
378A 7DA7 4F20 C2F3 5BCC 8340 7424 6122 BB83 B8CB
----------------------------------------------------------=20
FireWallTOOLS-Mailinglist fwtools@wyae.de
----------------------------------------------------------
to unsubscribe send a mail to: minimalist@wyae.de with the
subject: unsubscribe fwtools =20