rpslcheck

The rpslcheck program checks the syntax of the aut-num object for Autonomous System registered in the Internet Routing Registry (IRR).

The man page:

rpslcheck(1)                                                      rpslcheck(1)



NAME
       rpslcheck

SYNOPSIS
       rpslcheck [flags] [<as-no>]

DESCRIPTION
       rpslcheck   syntax-checks   any  RPSL  object.  If  the  object  passes
       rpslcheck’s syntax check it will not cause errors to any of  the  tools
       in  IRRToolSet,  such as RtConfig. However, the syntax constraints of a
       particular IRR can differ from the ones in RPSL.

       The input can be supplied via "-as <ASnum>" option  (only  AS-numbers).
       If  no  option is specified the object is expected as a standard input.
       The input can contain multiple objects.

       Future versions of this tool will generate better error messages and do
       more than just syntax checking.

IRRToolSet COMMON OPTIONS
              -help  Print summary of command-line options and abort.

              -T [whois_query | whois_response | input | all]
                     Trace the argument. Useful for debugging.

              -D <integer>
                     Print  debugging  messages of debug channel <integer> (if
                     compiled with DEBUG defined).

              -version
                     Print the version number and quit.

              -h <host-name>
                     Establish a whois connection to  host  <host-name>.   The
                     default is whois.radb.net

              -p <port-no>
                     Establish  a  whois  connection  to  port <port-no>.  The
                     default is 43.

              -protocol <protocol>
                     Use the <protocol> to connect to the IRR server.  <proto‐
                     col>  can  be  irrd(rawhoisd), ripe(bird), and ripe_perl.
                     The default is irrd. The ripe_perl option should be  used
                     with the old ripe server.

              -s <source-list>
                     Consider  the  sources  specified  in the comma separated
                     <source-list>.  If  an  object  is  defined  in  multiple
                     sources  in  <source-list>,  prcheck  uses the definition
                     first encountered in <source-list> from left to right.

              -rusage
                     Print resource usage upon completion.

              -ignore_errors
                     Do not print error and warning messages due to communica‐
                     tion to the database server or parsing policy objects.

              -report_errors
                     Print  error and warning messages due to communication to
                     the database server or parsing policy objects.

OTHER OPTIONS
              -as <as-no>
                     Syntax check the aut-num object  for  <as-no>.   If  this
                     option is not supplied, stdin is parsed.

              -echo  Print the aut-num object before matching.

ENVIRONMENT VARIABLES
              IRR_HOST
                     Specifies the IRR host to connect.

              IRR_PORT
                     Specifies the IRR port number to connect.

              IRR_SOURCES
                     Specifies  the source list (comma separated) to consider.

       Command line options take precedence over environment variables.

EXAMPLES
            % ./rpslcheck
            Congratulations no errors were found in parsing AS226
            % rpslcheck AS3130
            Congratulations no errors were found in parsing AS3130
            % rpslcheck AS86
            Error: *it: AS701 192.41.177.6/32 192.41.177.249 (pref=MED) ANY
            Error:                            ^^^^^^^^^^^^^^


ERROR AND WARNING MESSAGES
       Error: no object for AS <as_no>

              Aut-num object for <as_no> is not found  in  specified  IRR  for
              specified  source. You could mistype the source, hostname or AS-
              number, or the object is truly non-existent.

       For more error descriptions, please see Errors manual page.

AUTHORS
       Cengiz Alaettinoglu <cengiz@isi.edu>
       Katie Petrusha <katie@ripe.net>