Vacation Project
After cut down the forest in front of my house, I've started to work in something that I hope call garden after some weeks of work =)
January, 06
January, 07
January, 08
January, 09
January, 11
Eating and Drinking
"Buddy, have you eaten cheddar over here?"
It's a stupid question, but I had to ask this to a friend today in the morning, and I explain you why. During this week I went outside the office, have my lunch and after some walk I found a place which serves "Jacket Potatoes". I picked my fillings: Bacon and Cheddar. For my surprise I got my potato with bacon, and a yellow cheese, very similar to our muzzarela in Brazil. I though that I had asked it wrong, or the may be the guy didn't understand well what I asked.
Some days after, I bought a sandwich at Tesco... Hamburger and cheddar, and again there was the yellow cheese. This time it was not possible to be my mistake, it was written in the pack!
After a long talk about these events I knew that Orange Fanta is not orange, it's yellow! (and not good, don't taste!).
Beer is much more easier... Here you can have Guinness, paying the price of a "national" beer, it's great!
The cooker of my apartment looks like a spaceship panel, and I had no time to read the instructions yet and learn how "to fly" the machine, That's why I'm buying just fast food.
If you have some tip about how to eat better in London, they are all welcome=)
Cya!
First days @ London
Since last Saturday I'm @ London, and I'll be here for more 45 days, so I decided to post the most interesting things of this trip.
I do believe that have some notes written in some place about this trip will be much more funny to me than to who reads this posts, I really hope you like it, but if don't please don't look for me to complaint about.
After 4 days, the major feeling is that I'm trapped in Brazil. May be explored would be the right word. And I'm not talking about the work, I'm talking about our government. This city has amazing things that I will not live to see in Brazil. The subway (tube) is really amazing, its possible to reach anywhere in a few minutes. The subway cars are very clean and the punctuality (notice the cliche) is Britain!
It's hard to explain how funny is the feeling of to cross a street, look to the cars and have the impression that they are driving by themselves. Or look at the parked cars and have the impression that the passenger is seated, waiting for the driver. I though that the right side wheel was a issue which would affect just the driver, but it's not! By the way, I'll get dead crossing these streets, because I always do look, the wrong way. And the worst part is, when I get used to look to the right side, when I come back to Brazil, then I'll be surely get hit, since I'm sure no Brazilian drivers will stop, and wait for me cross the street =)
People from Curitiba, you are sympathetic! At least when compared to Londoner people. Take this as complement or insult, it's up to you).
London also has its "Curinthia" (Okay, I have to explain a little bit this part for non-Brazilian people). We have a soccer team in Brazil named "Corinthians", but the name is too complicate for their cheering. So they say the name the best way they can) . The "Curinthia's brother team is the Tottenham, says the legend that they are not able to win in the in the elimination phase of the Champions League.
Last Sunday I went to Greenwhich park (GMT-ZERO hehehehe). It is huge, but I didn't walk so long, I was kind of worried, thinking that I could have lost my cellphone. In the end I just forgot it at home.
I bought a digital cam, it should arrive next Friday, then I can post some photos!
Cya!
GNS: OSPF Multi Area
A lot of people did like the early project: GNS: Routing redistribution example, so I decied to do another project, this one about OSPF Multi Area, subject suggested by a user at Linked In. Just like the previous project this subject is very important for those whishing todo the 642-901 (BSCI) test. A better understanding about stub areas, not so stub areas and virtual links are the main point of this project.
This is the scenary:
- Area 0: R1 and R2 (Area backbone)
- Area 1: R2 and R3 (Area configured as virtual link)
- Area 2: R3 and R4 (Area connected to ISP and nssa)
- Area 3: R1 and R5 (Area totally stub)
GNS: Route redistribution example
Nowadays I'm Cisco CCNA, and I plan to take the CCNP certification during this year. The first test I decided to do is the BSCI. A important topic for this test is route redistribution, so I made this GNS Project to explore some aspects of this feature, and I would like to share with anyone interested.
This is the scenario:
- Routers running RIP: R1, R2, R4 and R5
- Routers running OSPF (Area 0): R1, R3 and R5
- R1 has both routing protocols and it is the responsible to redistribute they.
- R4 and R5 are interconnected through RIP too, and the default behavior of R5 is try to reach R4's networks through OSPF routes (longer path), because OSPF has a better administrative distance than RIP.
Get application pid listening on a network port on Solaris
This week, a coworker asked my opinion about a problem. He needed to startup a service, but the port which this service needed to bind was already in use.
The problem seemed simple, figure out which process was binded on this port, check if it was an stuck instance of the same service previously ran or a legitimate service and then take appropriate action.
Usually the netstat command has a parameter to inform the process associated to the port, it's -p on Linux, -b on windows and so on. But, what about Solaris? Damn! Solaris's netstat hasn't this feature.
I found away various ideas to solve the problem, but all they using one of two approaches, lsof or pfiles. The lsof isn't built-in on Solaris, so only left me pfiles.
Cisco IOS configuration management using SCP
SCP is a powerfull featured introduced in IOS 12.2(2)T which allows administrators to securely transfer files to and from routers. Beside the file transfering through encrypted connections we can also authenticate accesses on the router.
It's easy to deploy, easy to use and Cisco recommends to use in the Guide to Harden Cisco IOS Devices, so why do not use it?
It relays on SSH and AAA, so both features have to be enabled on the device:
Router(config)#hostname MRXROUTER
MRXROUTER(config)#crypto key generate rsa general-keys modulus 512
% The key modulus size is 512 bits % Generating 512 bit RSA keys, keys will be non-exportable...[OK]
MRXROUTER(config)#
MRXROUTER(config)#aaa new-model
MRXROUTER(config)#aaa authentication login default local
MRXROUTER(config)#aaa authorization exec default local
In order to use scp to manage configuration we must have an user account with enough privileges to access it:
MRXROUTER(config)#
MRXROUTER(config)#username admin privilege 15 secret 0 topsecret
Finally, we can turn the scp server on:
MRXROUTER(config)#ip scp server enable
On the client side we can use an utility such as pscp from PuTTY suite (windows) or the native scp client on Linux, to interact with our SCP server – the router!
C:\>pscp.exe PuTTY Secure Copy client Release 0.59
Usage: pscp [options] [user@]host:source target
pscp [options] source [/source] [user@]host:target
pscp [options] -ls [user@]host:filespec
For example, we can download the startup-config and put it on a directory (a backup?):
C:\>pscp.exe admin@192.168.0.42:nvram:startup-config C:\MyConfigs\MRXROUTER.cfg
admin@192.168.0.42's password: MRXROUTER.cfg | 0 kB | 0.6 kB/s | ETA: 00:00:00 | 100%
C:\>
It's already time to left tftp rest in peace
References
Cisco.com: Cisco Guide to Harden Cisco IOS Devices
Cisco.com: Cisco Secure Copy (SCP) Feature Guide – 12.2T
PuTTY: A Free Telnet/SSH Client
The ldconfig trap
It happened to me, and googling around I discovered that I was not the first and probably not the last person in throuble with ldconfig on OpenBSD. If you found this post searching for "openbsd ldconfig" at Google, you are probably a victim too. Linux users compiling new software on OpenBSD invariably fall into this trap: ldconfig without arguments.
In linux the directories that should be included by ldconfig to create the links/cache dynamic libraries are listed in /etc/ld.so.conf. Build a new library and install it into a directory already listed in this file is part of cotidian, and a simple "ldconfig" it's enough to rebuild the links/cache. But on OpenBSD the path to be searched is the ldconfig's argument, and if you don't inform this path... well, you probably already got it.
Don't panic!
/usr/lib will remain linked so everything you really need, still working, which doesn't include X, bash, among other things.
Moreover ldconfig is properly ran when the O.S. boots, so a simple reboot would solve the problem. But if you think, (like me) this isn't the wise way to solve the problem you can do it by yourself:
# . /etc/rc.conf
# ldconfig /usr/local/lib /usr/X11R6/lib $shlib_dirs
# exit
and be happy !








My name is André and I'm 27 years old. I've been working in various areas of IT in the last years and this blog is about the most interesting things I found into my day after day... See more