Community discussions

MikroTik App
 
Dani1250
just joined
Topic Author
Posts: 13
Joined: Wed Apr 14, 2021 6:21 pm
Location: Lisbon, Portugal

LSA Body field

Mon Jul 12, 2021 7:26 am

Good night,

I'm trying to use the LSA Body field data in a script, but all the commands I found on the official website or here on the forum didn't reproduce the expected result because
when I run the commands I get nothing.
I'll leave an example here: ":put [/routing ospf lsa get [find type="network"] body];"

Any help, I appreciate it.

Compliments,
Daniel Rodrigues
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: LSA Body field

Mon Jul 12, 2021 11:41 am

you use ospf or ospf-v3 ?
 
Dani1250
just joined
Topic Author
Posts: 13
Joined: Wed Apr 14, 2021 6:21 pm
Location: Lisbon, Portugal

Re: LSA Body field

Mon Jul 12, 2021 4:57 pm

Good afternoon,

I am using OSPF and i wanted to use the IPv4 addresses that are in the Body field in the LSA. That's why I want to use a script.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: LSA Body field

Mon Jul 12, 2021 6:05 pm

paste this on terminal and publish the result after having CENSORED (not deleted) sensitive data on the forum
:put [/routing ospf lsa print as-value]
 
Dani1250
just joined
Topic Author
Posts: 13
Joined: Wed Apr 14, 2021 6:21 pm
Location: Lisbon, Portugal

Re: LSA Body field

Mon Jul 12, 2021 6:38 pm

I can publish the data because it's private and test addresses.
I get this:
".id=*81b8ae8;age=169;area=backbone;id=172.16.0.1;originator=172.16.0.1;sequence-number=2147483651;type=router;.id=*81b8a48;age=168;area=backbone;id=172.16.0.3;originator=172.16.0.3;sequence-number=2147483652;type=router;.id=*81a3648;age=169;area=backbone;id=10.0.0.1;originator=172.16.0.1;sequence-number=2147483649;type=network"

However, the Body data does not appear.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: LSA Body field

Mon Jul 12, 2021 6:54 pm

I maked you to use that command for see what you can request,
no body, no party
 
Dani1250
just joined
Topic Author
Posts: 13
Joined: Wed Apr 14, 2021 6:21 pm
Location: Lisbon, Portugal

Re: LSA Body field

Mon Jul 12, 2021 7:28 pm

Thank you for your help rextended
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: LSA Body field

Mon Jul 12, 2021 7:32 pm

Sorry if I can not help further, but if that field is not "exported" on that's way, can not be readed directly
 
Dani1250
just joined
Topic Author
Posts: 13
Joined: Wed Apr 14, 2021 6:21 pm
Location: Lisbon, Portugal

Re: LSA Body field

Mon Jul 12, 2021 7:40 pm

Thanks anyway, I'll have to find some solution.

Who is online

Users browsing this forum: No registered users and 14 guests