Coder Social home page Coder Social logo

problem with mrt about mrtparse HOT 16 CLOSED

t2mune avatar t2mune commented on June 13, 2024
problem with mrt

from mrtparse.

Comments (16)

t2mune avatar t2mune commented on June 13, 2024

" clone directory " represents the directory, that git clone command created.

Here is my log:

t2mune@ubuntu13-openstack:$ git clone https://github.com/YoshiyukiYamauchi/mrtparse.git
Cloning into 'mrtparse'...
remote: Reusing existing pack: 907, done.
Receiving objects: 100% (907/907), 2.36 MiB | 569.00 KiB/s, done.
remote: Total 907 (delta 0), reused 0 (delta 0)
Resolving deltas: 100% (509/509), done.
Checking connectivity... done
t2mune@ubuntu13-openstack:
$ cd mrtparse
t2mune@ubuntu13-openstack:/mrtparse$ sudo python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying mrtparse.py -> build/lib.linux-x86_64-2.7
running install_lib
copying build/lib.linux-x86_64-2.7/mrtparse.py -> /usr/local/lib/python2.7/dist-packages
byte-compiling /usr/local/lib/python2.7/dist-packages/mrtparse.py to mrtparse.pyc
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/mrtparse-1.0.egg-info
t2mune@ubuntu13-openstack:
/mrtparse

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

Did it go well?

from mrtparse.

rohan718 avatar rohan718 commented on June 13, 2024

hi again sir - I think , we(my classmate and I) have big problem with this code and it causes to more study about code in Ubunto, we don't want to take your time,but really need this code to install and initial the TCAM in my project, it's about IP lookup in Ipv6 so we need real bgptable like your example but we can't open it.

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

Could you show me your log to check the problem?

from mrtparse.

YoshiyukiYamauchi avatar YoshiyukiYamauchi commented on June 13, 2024

Hi, rohan718
I want to check your log, too.
Here is my log on Ubuntu Server 14.04 LTS

yoshiyuki@ubuntu:~$ git clone https://github.com/YoshiyukiYamauchi/mrtparse.git
Cloning into 'mrtparse'...
remote: Reusing existing pack: 907, done.
Receiving objects: 100% (907/907), 2.36 MiB | 648.00 KiB/s, done.
remote: Total 907 (delta 0), reused 0 (delta 0)
Resolving deltas: 100% (509/509), done.
Checking connectivity... done
yoshiyuki@ubuntu:~$ cd mrtparse
yoshiyuki@ubuntu:~$ ls
ChangeLog  LICENSE  README-ja.md  README.md  examples  mrtparse.py  setup.py

from mrtparse.

rohan718 avatar rohan718 commented on June 13, 2024

hi sir again
thanks for your reply ,

rohan026@ubuntu:$ cd mrtparse
rohan026@ubuntu:
/mrtparse$ ls
build examples mrtparse.py README-ja.md setup.py
ChangeLog LICENSE mrtparse.pyc README.md
rohan026@ubuntu:~/mrtparse$

after that I installed the Python but I don't know after that what should i to do,

from mrtparse.

YoshiyukiYamauchi avatar YoshiyukiYamauchi commented on June 13, 2024

Hi, rohan718

Thank you for your log, here is usage.

Install

$ cd mrtparse
$ sudo python setup.py install
running install
running build
running build_py
running install_lib
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/mrtparse-1.0.egg-info

Download MRT format data

EXAMPLE - from RIPE(http://data.ris.rpe.inet/rrc00/)

$ cd example
$ sudo wget http://data.ris.ripe.net/rrc00/latest-update.gz

Displays the contents of a MRT format file

$ python print_all.py latest-update.gz
---------------------------------------------------------------
MRT Header
    Timestamp: 1392828028(2014-02-20 01:40:28)
    Type: 16(BGP4MP)
    Subtype: 5(BGP4MP_STATE_CHANGE_AS4)
    Length: 24
BGP4MP_STATE_CHANGE_AS4
    Peer AS Number: 100
    Local AS Number: 64512
    Interface Index: 0
    Address Family: 1(AFI_IPv4)
    Peer IP Address: 192.168.1.21
    Local IP Address: 192.168.1.100
    Old State: 5(OpenConfirm)
    New State: 6(Established)
---------------------------------------------------------------
MRT Header
    Timestamp: 1392828028(2014-02-20 01:40:28)
    Type: 16(BGP4MP)
    Subtype: 4(BGP4MP_MESSAGE_AS4)
    ...

from mrtparse.

rohan718 avatar rohan718 commented on June 13, 2024

I really confused, as you know I don't have any experience in Ubunto ,
what's problem ?

47

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

Probably,

python ../mrtparse/examples/print_all.py latest-update.gz

from mrtparse.

rohan718 avatar rohan718 commented on June 13, 2024

I should try this code :

python ../mrtparse/examples/print_all.py latest-update.gz

???

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

Otherwise,

python $HOME/mrtparse/examples/print_all.py $HOME/Downloads/latest-update.gz

from mrtparse.

rohan718 avatar rohan718 commented on June 13, 2024

Oh, it's Work , but for last question, for otherwise , for instance real BGP like

"http://data.ris.ripe.net/rrc00"

what should I do ?

from mrtparse.

rohan718 avatar rohan718 commented on June 13, 2024

Ok - I find my problem . thanks dear t2mune & YoshiyukiYamauchi .

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

You're welcome.
I hope that your project will go well.

from mrtparse.

YoshiyukiYamauchi avatar YoshiyukiYamauchi commented on June 13, 2024

You're welcome.
Thank you for using mrtparse.

from mrtparse.

t2mune avatar t2mune commented on June 13, 2024

Now I close this case.

from mrtparse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.