IRRd-Discuss
Date Prev | Date Next |
Date Index |
Thread Index |
Author Index |
Historical
Re: sh database returns nothing
- From: Vinay Kumar
- Date: Tue Dec 05 18:50:28 2000
thanks it works. The odd behaviour is if i add the lines to the
irrd.conf and then start the irrd it works fine. If i start the irrd w/o
a irrd.conf. then add the following line in config mode
> irr_directory /usr/irrdatabase
> irr_database radb
then reload the radb. It does not work.
thanks
/vinay
* Gerald Andrew Winters <gerald@merit.edu> [001205 14:51]:
> Vinay
>
> The problem is irrd is not finding the DB on bootstrap
> and so it is not finding a DB.
>
> The solution is to execute the uii command "reload radb"
> (ie, just after logging into the uii) after you have defined
> the irr_directory and database (be sure to exit from config mode
> first before executing the reload command.
>
> Alternately, put the following into your irrd.conf file:
>
> irr_directory /usr/irrdatabase
> irr_database radb
>
> The default path for the irrd.conf file is /etc/irrd.conf
> or you can specify it on the irrd command line with the -f flag,
> eg, /usr/local/sbin/irrd -f /user/local/home/.../irrd.conf
>
> Let me know how this works out.
>
> --jerry
>
> >
> >
> > Hi ,
> >
> > to load the db i did the following. I copied the db file in a cache dir.
> > Then i ran the irrd daemon from the command line with the option
> >
> > /usr/local/sbin/irrd -d /opt/irrdatabase -v
> >
> > and then i ran this command
> >
> > telnet 127.0.0.1 irrd
> > Trying 127.0.0.1...
> > Connected to 127.0.0.1.
> > Escape character is '^]'.
> > IRRd version 2.0.0 Alpha [08/22/2000]
> >
> > No Access Verification
> >
> > gupt Password: ******
> > gupt IRRd# sh database
> > Listening on port 43 (fd=7)
> > Memory-only indexing
> > Unknown Syntax, all DB's empty
> >
> > Default Database Query Order:
> >
> > Database Size (kb) Rt Obj AutNum Obj Serial # Last
> > Export #
> > ------------- --------- ------ ---------- --------
> > -------------
> > TOTAL 0.0 0 0
> >
> > gupt IRRd# conf t
> > Unrecognized Command: "conf t"
> > gupt IRRd# conf
> > gupt Config> irr_directory /usr/irrdatabase
> > gupt Config> irr_database radb
> > gupt Config>exit
> > gupt IRRd# sh database
> > Listening on port 43 (fd=7)
> > Memory-only indexing
> > Unknown Syntax, all DB's empty
> >
> > Default Database Query Order: radb
> >
> > Database Size (kb) Rt Obj AutNum Obj Serial # Last
> > Export #
> > ------------- --------- ------ ---------- --------
> > -------------
> > TOTAL 0.0 0 0
> >
> > gupt IRRd#
> >
> >
> > I also tried what yu mentioned in your mail. That is i copied the db
> > file into /var/tmp. Then ran the irrd.
> >
> > telnet 127.0.0.1 43
> > Trying 127.0.0.1...
> > Connected to 127.0.0.1.
> > Escape character is '^]'.
> > !Bradb
> > Connection closed by foreign host.
> >
> > Dec 5 14:30:32 [7] IRRD IRR connection from 127.0.0.1:9
> > Dec 5 14:31:44 [7] IRRD Command: !Bradb
> > Dec 5 14:31:44 [7] IRRD close (9) -> 0 in telnet.c at 411
> > Dec 5 14:31:44 [7] IRRD IRR Closing a connection from 127.0.0.1:9 (1
> > connections)
> > Dec 5 14:31:44 [7] IRRD thread IRR 127.0.0.1 exit
> > Dec 5 14:34:02 [5] UII command exit
> >
> > that is what i got..
> >
> > /vinay
> >
> > Gerald Andrew Winters <gerald@merit.edu> [001205 13:53]:
> > > Hello Vinay,
> > >
> > > How did you do the reload? We have not documented this yet
> > > but if you used the !B command the usage has changed. To reload
> > > you can do it in the following ways:
> > > -Use the !B command (irrd expects the db file to be in the
> > > /var/tmp or in the temp dir you have defined in your
> > > irrd.conf file).
> > > -Do a cp from the command line into the DB cache and kill and
> > > restart irrd. (not recommended)
> > >
> > > I think the above is the problem. Let me know if this
> > > fixes things.
> > >
> > > --jerry
> > >
> > >
> > > >
> > > > Hi,
> > > >
> > > > I downloaded the radb.db.gz , unziped it in a dir. I reloaded the
> > > > database radb. When i telnet to the port 43 and run commands like
> > > > !as or !man it returns value. Make me think that it has loaded the radb.
> > > > But i don't see anything when i do "sh database".
> > > >
> > > > gupt IRRd# sh ver
> > > > 2.0.0 Alpha [08/22/2000]
> > > > gupt
> > > > SunOS 5.6 Generic_105181-20 sun4u
> > > > Compiled on Dec 4 2000
> > > > UP for 0.02 hours
> > > >
> > > > why is "sh database returning nothing ?
> > > >
> > > > thanks
> > > >
> > > > /vinay
> > > >
> > > >
> >
> > --
> > Vinay Kumar
> > Backbone Engineer
> > 408-346-2329
> > US-AS3967 UK-AS8709
> >
> >
--
Vinay Kumar
Backbone Engineer
408-346-2329
US-AS3967 UK-AS8709
|