Wednesday, May 27, 2009

Solaris Routing

  • Add a route
    # route add net 128.50.3.0 bigbox
     
  • Add a default route [host|net] dest. [ gateway]
    # route add default  maingw
     
  • Delete a route
    # route delete net 128.50.3.0 sword-r

  • Lookup and display the route for a destination:
    # route get 128.50.2.0

  • Get routing reports continuously
    # route monitor

  • Flush the routing table:
    # route flush

  • Add the multicast path for 224.0.0.0:
    # route add 224.0.0.0 `uname -n` 0

  • Use
    the "route add net" command with the -netmask option to make the route
    command to take the netmask specified on the command line

    # route add net 192.168.68.0 128.50.1.250 1 -netmask 255.255.255.192

Q1. Which command manipulates the routing table ?

 A: route

 Q2: Command to add a route to server1 via router1:

 A: route add host server1 router1

Q3. Which command will add a route to the network 128.251.0.0 via 128.144.1.254 ?

 A: route add net 128.251.0.0 128.144.1.254

Q4. Which command would delete a route to host server1 via router1 ?

 A: route delete host server1 router1

Q5. Which command will delete the route to the network 128.251.0.0 via 128.144.1.254 ?

 A: route delete net 128.251.0.0 128.144.1.254

Q6. Which command will remove all entries from the routing table ?

 A: route flush

Q7. Which command allows you to monitor the routing requests that are not getting resolved from the routing table ?

 A7: route monitor

Q8. Which script starts the in.named daemon ?

A:  Depend on the Solaris version:

  • /etc/init.d/inetsvc


Source: http://www.softpanorama.org/Net/Netutils/route.shtml

Sunday, May 17, 2009

Review: Angels and Demons

http://www.imdb.com/title/tt0808151/

Well I went to watch this movie today. Having read the book 4 times I come to the conclusion that it wasn't what Dan Brown wrote. The story was changed quite a bit to adapt it for the screen. However I liked the movie.

I know people are going to judge the movie based on the book but if you watch the movie from a standpoint where you don't expect whats in the book to happen and let the story unfold its a good watch. The story made sense and the reinterpretation of events from the book was fluent. However I would have loved it if they kept it the same way and made an 8-10 hr movie covering everything.

The major reason I wanted to watch this movie was to get a sense of vatican architecture which is covered extensively in the book. I thought the filming of churches was good and presented the sense of grandeur which I imagined through the eyes of the book having never been there. I do have a wish now to visit vatican. The acting was fine and not the best i've seen. I think the hassasins character was a bit week than whats in the book and could have been a potential improvement. Also CERN should have been covered in more detail which I was actually looking forward to.

Anyways I cannot say that the movie did justice to the book but I can say it was an above average effort. I'd highly recommend the book though to all the people whether they have watched the movie or not.

Friday, May 8, 2009

Extract files from a Solaris 10 .pkg Package

To extract the files just use this

mkdir tmp

pkgtrans pkgfile tmp

All the files will be extracted without any package installation


Readd files

pkgtrans -s /tmp /tmp/name.pkg