On Hebdo Cowardice and Ditching the News

While I was sitting around this morning considering the things I have to be happy about, I came up with this: “I’m happy that we live in an age where we can just search for the ##CharlieHebdo cartoons ourselves using Google.”

This is, of course, in reference to stories that the mainstream media have avoided reprinting the Charlie Hebdo cartoons and covers in full. Some people take this as the latest piece of evidence of their cowardice and I have to say I find it hard to disagree. Devils advocate against my own position: from what I have read about the Hebdo publication a lot of it is in poor taste so one might have other grounds for not reprinting certain pieces.

At any rate, this is a good time to talk about the news I think. For the last year I have not listened to the news but rather I let things bubble up via Twitter and Facebook. There are lots of things that happen in the world that I am late to know about. But I also don’t hear a lot of irrelevant BS that has nothing to do with my life, most specifically my consciously chosen values, and is only designed to be sensationalist in order to sell advertising. (Never let a tragedy go to waste)

If you haven’t stopped listening to daily news, I urge you to try it for a period of a week, and if that works out, a month. I got this idea from Tim Ferris’s Four Hour Work Week. He has a strategy he calls the “Low Information Diet” and ditching news is a big part of it. I hypothesize that you will still find out about the important things but you will not experience the anxiety induced by the regular doses of tragedy porn and outrage porn, which is all the news seem to consist of these days.

Start the Day with Better Questions

This is something I know: If you want to feel stuck and miserable its a really simple thing. Just focus on something that makes you unhappy and ask yourself “why” things are the way they are.

Tony Robbins suggests these questions instead. They are mostly “what” questions and are a challenge to inventory the good things and to be present to the way they make you feel.

If anyone is moved to try this exercise consistently, I’d love to hear from you on whether you find it to be effective as part of your morning routine to put yourself into peak state.

The Morning Power Questions

Using Neo Ruby Koans to Reinforce Ruby Knowledge

I’ve just finished doing the Neo Ruby Koans. Mountains are again merely mountains. It’s an interesting way to get a sense of how the language works by looking at edge cases. If I have a knock on it, it’s that you spend more time reading and filling in the blanks than coding.

Unfortunately, it also only speaks to Ruby 1.8 and 1.9. Anything peculiar to the newer versions of Ruby will not be present. All in all, I recommend going through it. The more you know, the better you are. And I think Neo/Edgecase did a great service by making it free to the world.

With love and gratitude,

Franco

#TitleII is Not The Solution to #NetNeutrality (Or Anyone's Problems)

I’ve seen a lot of discussion recently promoting the idea that reclassifying broadband internet under Title II is the solution under some kind of idea that regulation is what we need to keep the internet free. Here’s what I think I know about regulation.

Regulation means less competition and innovation.

Even when it doesn’t prevent people from going into business (as Insurance commisions do), it stifles small businesses through increased compliance costs and entrenches large ones. And since no business operates at a loss, who pays for the extra onerous paperwork the ISPs will have to do? We all will. It is guaranteed to raise the cost of bandwidth.

The entrenchment of large businesses creates what I call the “slum lord effect” by ensuring that you, the consumer, don’t have any place to go when you want to “vote with your feet” and go to a competitor. You can pretty much infer that service will take longer to deliver and repair. Just like the ones that run NYC hovels, the slum lords of the business world do not worry about losing business to competitors because they know you, the consumer, no longer have viable options.

Federal Regulation is not responsive, and certainly not to a broad consensus.

I think people trust politicians less than they ever have in history. And I think they are right to do so. With this in mind, I really have to wonder what leap of logic a person has to make in order to go from not trusting politicians to trusting a board regulators who was appointed by the President and confirmed by the Senate.

The President and the Senate are our LEAST accountable policitians. Ever try to ask any of them for anything? Ever try to vote them out of office when you disagree? You can’t make them feel any amount of fear that your wrath as a voter means doodly-squat to their re-election. Only PR disasters move their worlds.

Also, the “Title II” which some people seem to argue is THE SOLUTION to net neutrality is, in fact, Title II of the Communications Act of 1934. I’m sure it has been amended but let’s be clear. It’s old and… NO ONE HAS READ THE 682 PAGES OF TITLE II.

Some people argue that the fact that the FCC have the discretion to not enforce parts of the Act means that it will be less onerous. To me, it just means they have the right to be arbitrary. Consider this question: are they likely to act in a way that favors the consumer or in a way that favors the big company being regulated? If you believe in the revolving doors between regulated companies and regulating authorities then you have no reason whatsoever to trust that a regulatory agency permitted to be arbitrary will be in your best interests.

Fundamentally, I ask you to consider this: Do we really know what we are asking for? Or is Title II a deal with the devil?

The Fundamental Problem is Regulation

“Regulation makes it hard to innovate,” said Kevin Lo from the Google Fiber project. And he’s right.

The fundamental problem with broadband innovation and competition is that it is too difficult to work with local municipalities to get into the Broadband business. I argue that the net neutrality problem is fundamentally caused by regulation. And you can’t fix regulation with more regulation.

Here’s Kevin Lo from the same article:

“Governments across the country control access to the rights-of-way that private companies need in order to lay fiber. And government regulation of these rights-of-way often results in unreasonable fees, anti-investment terms and conditions, and long and unpredictable build-out timeframes. The expense and complexity of obtaining access to public rights-of-way in many jurisdictions increase the cost and slow the pace of broadband network investment and deployment.”

My solution: Reduce regulation

Marc Andreeson, in a recent tweet storm laid out his thoughts on disruptive innovation.. He described disruptive innovation as pro-consumer and world-improving, especially for those of low-income. To put these into my own words: The best protection we can have is the one that allows for disruptive innovation when it legitimately improves the lot of all.

And to do improve the chance for disruptive innovation in Broadband, we have to find a way to reduce regulation. We had considerably less disruptive innovation before the Telecom Act of 1996 deregulated telecom toward a model that allowed for more disruptive innovation.

The question we have to answer is: Is there some way can make it easier for new businesses to bring online disruptive broadband services? Is there a way to reduce the friction for “voting with our feet”?

If we can, then we have a better lever than onerous and unpredictable outcomes of Faustian bargains such as Title II. I don’t have a specific long term solution to propose but I suggest that we tread carefully with begging for the internet to be regulated.

Luxury to me is not owning a lot of stuff. Luxury to me is feeling unrushed. It is designing a life that allows you to do what you want with high leverage (with many options) feeling unrushed.
— Tim Ferris on Luxury from Tim Ferris Podcast Ep. 49

#QuickTips: Savor A Bit of Gelato

Gelato

My “sweet tooth” is a bit unusual. A lot of the time, I can only have a little bit and then I just stop. My girlfriend doesn’t know how I can just have a few spoonfuls of gelato and then I’m done.

So I thought about it and here’s what I think are the key factors that may add up to a quick and dirty dessert strategy:

  1. I only buy pints of gelato. No cheap stuff. I like Talenti Coffee Chip.
  2. I eat directly from the container while standing up. No need to be comfy, I won’t be long. Just need a clean spoon. (note: This won’t work if you have kids and you’re trying to get them to eat at the table, so alter to your needs.)
  3. I try to savor the flavor of each spoon. When I stop pausing to notice how awesome it is, I’m done. Put the spoon in the sink, put the gelato back in the freezer.
  4. I only get to eat gelato once a day. Usually after a meal, but not while I feel “full”. And it’s better as an irregular impulse than an expected sequence.

It sounds a bit uncivilized when I write it out, but I dare say I enjoy each spoon of my gelato a lot more this way than in large and regular doses.

(Photo Credit.)

@TonyRobbins on #Influence

From James Altucher Podcast - Ep. 62 at about 52 minutes or so.

During this podcast, Tony Robbins opines about things that hold us back from effectively influencing others and the necessary preconditions. I transcribed it below.

What does it take for any of us to be effective?

We have to be able to influence people that don’t think like us.

If you only influence people who think like you do, then you divide yourself (…your company, your family, your nation) in half. And it doesn’t matter if you think you’re right or not. Even if you are right… We have to… You know one of the things I’ve learned about the most effective communicators on Earth is they’ve been able to enter other peoples worlds… better than other people.

And so you can’t influence somebody if you don’t know what already influences them and you can’t influence somebody when you’re judging them. And so I think that’s one of the challenges, not only for our president, but for both parties right now. We’ve become so polarized…

…it used to be people would fight like hell and they’d go have a beer together. Now they fight like hell and that’s all they do…

What follows are my own thoughts and notes on influence.

Hornet’s Nests

There’s definitely evidence of this divisive dynamic all over social media. You don’t have to search very hard to find a “hornet’s nest” post on Facebook. A hornet’s nest post begins with a person posting something they feel strongly about. (And I love when people are passionate about things…) But what happens a lot of the time is that the post is written as an unconstructive tirade that doesn’t promote discussion oversimplifies things and paints as immoral or ignorant those that dissent. These are posts that were made for the Like button and not for the comments box.

The only people who will want to discuss will be a number of people will feel mischaracterized or demonized or worse. They will feel defensive. And they may respond with venom or with attempts at discussion but even when the original poster and the commenting dissenter are able to have a civil discussion, there’s a good chance that some inflammatory troll will try to shut things down with a moral oversimplification. (We all have that one “friend” or relative.)

We have to choose influence with integrity over “being right”.

I truly believe we all want to be effective people. If you were convinced by Tony Robbins, as I was, that you can only do so by being able to influence people who don’t already think like you do, then we have some work to do to avoid falling into the easy trap of using moral bludgeons and putting more hornet’s nests into the world. If your intent is to “write the internet you would want to read”, I would have to consider this a failure.

Who won’t I influence?

This one is a personal choice. I try to only engage with thinking people because I don’t care to keep people in my life who are drama-laden. If I have reasons to deem that a particular person is irrational, immoral, or ignorant… I’m more likely to try not to have anything to do with that person than to try to influence them.

As Tim Ferris says, you can’t reason a person out of a position they didn’t reason themselves into.

When is it appropriate to try to influence somebody?

For it to be worth the time of all invoved, we should choose to attempt influence only when think that a person’s life (or the lives of those around them) would be dramatically improved if they changed an idea, started doing something, or stopped doing something. The intent has to purely come from an interest in their well-being and we should plan to let it go if they are not receptive to suggestions..

In what manner is it appropriate to try to influence somebody?

Style matters a lot here, especially on social media, because attention spans are barely-there and, because of the mix of content types, people will not be reading things closely on the first go. So… it is critically important to be brief, clear, and nonjudgmental.

We must avoid the use of blame and shame. I want the reader’s thinking brain chewing on some “food for thought”. I don’t want them defensively crafting the perfect response to what they perceive as an attack.

We must only appeal to the best within people: Their reason and their desire to do and be better than they are today. They can have their fears manipulated by the news with a push of a button. That won’t come from me.

#QuickTips: The three most important things most people can do to improve the quality of their coffee.

Photo by Allagash Brewing

  1. Buy whole bean coffee. Grind just before brewing. Preferably with a burr grinder for consistent grind.

  2. Buy fresh locally roasted coffee. If your coffee has a “roasted on” date you can figure out freshness. If it has an expiration date, you can’t. There are no consistent standards for coffee expiration.

  3. Take the time to taste test beans from different regions and roasters. I thought I loved oily dark roasts but after trying a lightly roasted, clover-brewed, Yirageffe from Starbucks, I sought out Ethiopian beans from roasters whose product I found in my local Whole Foods. I found that Ceremony Coffee Roasters in Annapolis Maryland will roast small batches of Ethiopian heirlooms for me after my order and ship via USPS for $5. I have found true coffee love.

Bonus tip: also test out different brew processes for yourself. I have been single cup brewing for years but manual processes such as aeropress or pour over (with some stirring) work best for the kind of rich extraction I want. I own a Breville hot water heater with selectable temperature to help make this part automatic.

Photo Credit: Allagash Brewing

Tony Robbins on The Real Source of Depression

Tony Robbins. His name is everywhere lately. And particularly, his ideas are present in my daily life. It’s because I’m reading his new book, Money: Master the Game - 7 Steps to Financial Freedom. But beyond that, I am taken by his strong grasp of the mental and emotional factors that help or hurt when you’re trying to take what he calls “massive action”.

His ideas and his strategies are powerful and moving. I love his energy and passion around enabling everyone he can. It’s inspiring.

“Where focus goes, energy flows” -Tony Robbins

In a recent interview with James Altucher on his podcast, Tony talks about the relationship between focus and depression. He believes there are three fundamental mistakes people can make in their patterns of thinking that will make people angry, depressed, sad, or helpless:

  1. Focusing on what you can’t control rather than what you can control.
  2. Focusing on what you don’t have rather than what you do.
  3. Focusing on the past instead of what you can do Now.

Psychologist Michael Hurd, says that in psychology circles depression is defined as “learned helplessness”. It sounds like Tony is echoing that definition and, in his strategic and tactical way, also identifying specific ways that people arrive at learned helplessness.

Tony goes on to say that as individuals, we have to constantly ask ourselves what we can control rather than focusing on the past, or on blame. What solutions and actions are available rather than lamenting why it has to be. It’s okay to be pissed off, and he admits that he is (about the financial crisis of 2008):

“…I’m not willing to buy into the story of ‘Oh my god, they’ve done this to us!!!’ I know that’s true. I know that we’ve been screwed royally… all of us. But to spend my time more on that old story? I’d rather spend my time on the solution. Every great person I know spends 1% of their time on the problem, 99% of their time on the solution.”

I love it. We’re pissed off… we don’t ignore that. But we put our time toward the solutions. We orient ourselves toward action. Sounds to me like the perfect recipe to avoid victimhood and blame and instead focus on action and our abilities as human beings to do amazing things in our lives.

I’m going to paraphrase his words to leave you with a parting thought. Tony says we, as human beings, tend to overestimate what we are able to achieve in a short period of time and they tend to underestimate what we are able to achieve over a long stretch of time such as a couple of decades. This is where I plan to put my money: Relentless self-improvement to deliver the most value to as many people as I can.

Cable Internet Self-Install... Not for Non-Techies

I spent more than an hour trying to get cable working at the new house this weekend. It’s really not for people who aren’t comfy with getting dirty. And you need to have a good grasp of physical layer troubleshoooting.

If I had it to do over, I would start outside and try to figure out which cable is the one coming from the Cable company. Outside of my house, there was a Verizon FIOS box and an orange cable, which was new looking and capped with a terminator. I took a guess the Orange one was the Comcast XFinity drop since the previous owner had FIOS and the orange cable wasn’t connected to anything.

Step 1 - First… use a long cable and connect your modem directly to the outside drop and make sure it can acquire signal. Consult your Cable Modem user guide for how to read the indicator lights. If you can’t get this working, nothing else will matter.

Step 2 - assuming step 1 passes, try to learn about the cabling inside yourself using a tool like the Klein Tools VDV512-058 Coax Explorer Plus Tester. This seems like the right tool. There are four color coded terminators and one tester unit and the lights tell you which terminator is on the far end allowing you to have some confidence that you have identified both ends of a cable drop.

Step 3 - Connect the exterior cable to one of your internal cable drops and connect the modem on the far side of the cable drop inside the house.

If your modem indicator lights can’t acquire your cable may have too much signal degradation. You can try other internal drops if any are available.

If your modem indicator lights show that it was able to get signal you’re pretty much good to go to call the cable company and begin the more painful part of being forwarded around and placed on hold and so forth to activate your service and register your Cable Modem.

I don’t recommend this for people who aren’t very technical. Pay the extra money for the install if it makes sense to do so.

Use Version Sort to Get Smarter Sorting - GNU Tools

output with normal sort (sort):

node-c10-20-location
node-c12-20-location
node-c2-20-location
node-c4-20-location

output with version sort (sort -V):

node-c2-20-location
node-c4-20-location
node-c10-20-location
node-c12-20-location

Per @onetruedabe it’s only available on newer version of linux… not CentOS or OSX.

Having trouble getting to Self-Love? Try Self-Kindness.

I believe in self-love as a fundamental value. I think that fundamentally, self-love imposes a “redline” for how much you can authentically love anyone else. And it’s what you fall back on when it seems like no one else out there gets you in a given moment.

But love as a word is overloaded. It’s carrying too much. It’s big and many-headed like a hydra.

It is used simultaneously to describe a state of being and a state of doing. (Try to wrap your head around it… seriously. How the heck does that work? :))

This is particularly problematic for someone like me. I grew up in a home that was broken and re-forged by separation and divorce and remarriage. Most problematically… the only guidance I was given for the temper I displayed as a child was abusive yelling and intimidation, shame, and ostracism. I was literally on my own to figure out how to manage my temper.

Consequently, I have had to undo the many years of programming that are all about how I’m not enough and I’m going to be alone if people don’t like what I do. Self-love feels unreachable and inauthentic for a person struggling with that kind of doubt. It’s too big and too far away.

But kindness is not overloaded or too big or too far away. Kindness is imaginable. It is only a state of action, not a state of being. How do I know this? Kindness has no meaning without expression of some sort. (I think we call the state of being “empathy”).

Kindness is handing a tissue to someone crying. It’s sitting and listening when someone seems a alone. It’s “just being there” when other people can’t seem to “go there”. It’s also sharing a bite of a delicious cake! It doesn’t require suffering to be present in order to come into existence.

In regards to yourself, kindness is eliminating the thoughts the make you feel like a failure… the “shoulds”. It’s reminding yourself verbally that you were not born perfect or omniscient and you’re a work in progress as everyone is and you’re enough as you are… even as you strive to be more capable and sincere. It’s reminding yourself what you have and what you’re working toward rather than what you don’t and who’s to blame.

Practicing self-kindness is a virtue. It is action-oriented, responsible, and will repair the damage from some of the stupid life traumas you don’t know are affecting your decisions. And it will increase your capacity to live and love fully.

So… maybe next time you find you’re in a situation where you need to love yourself a bit better, start with a different question:

“What would I do if I were being kind to a person in my situation?”

I have borrowed Ayn Rand’s concepts of value and virtue rather liberally here but you can find more in her very incisive writings on ethics.

Inspired by Michael Hyatt on Leadership

This morning I listened to Michael Hyatt’s podcast episode on the nature of leadership. Much of it is character driven (ala Stephen Covey) and, even as I try my hardest to avoid confirmation bias, I find so much strength and encouragement to carry on in my own ways, which sometimes feel naive and pollyanna-ish, because of the words he has said.

An example of how I might be naive is that I believe and act as if conflict in the workplace cannot exist without blame. To me, blame is as oxygen to the fire of conflict. This requires that I put aside the matter of “justice” while resolving disputes and instead to side-step my own desire to blame. Instead I choose to lean in, try to understand, and to pursue collaboration toward a resolution. Things get fixed faster and, I believe, people feel free to improve themselves when they are not in reaction against the perceived judgment from others. It doesn’t mean that I don’t value justice. But it does mean that I choose to exercise a bit of faith that management/reality/whatever will act justly in the long term, a principle I think I picked up from Robert Stephen Kaplan.

Hyatt’s podcast is so very much about the individual nature of leadership characteristics. Even as you try to influence others, the seeds of it are in your choices and what you choose to give prime status in your view of things and where you put your efforts. I am almost moved to tears when I think about how beautiful a world of people trying to live these ideas would be. We could do so much together.

(Personal note: I honestly didn’t think of myself as any kind of leader until my manager at Juniper Networks, Kim Order, the only manager-mentor-hybrid I’ve ever had, tried to convince me of it. This episode makes me think of her and how much appreciation I have for my time working for her. I’m glad she saw this in me and I like trying to live up to it.)

Trusting in Non-Linearity as the FNG

I’m officially two months in at Salesforce.com and it’s really kind of neat to be in a non-telecom environment for the first time. I’ve had to really get settled with the idea that I am not going to be “fully productive” or feel the confidence of “understanding the unique value that I own” in my place of work for some time. (I’ve known this all along but getting the gut to catch up with the head is hard work sometimes.)

This is the plight of the new guy. There’s just too much you don’t know and the only way to get to know it is to buckle down and start doing stuff… probably badly. There are three things I am trusting here. I have trust in myself because I have managed to become top-tier effective wherever I have applied myself. I have trust that my team is going to give me the feedback I need so that I can work with them in a way that is congruent with the goal and with their work in progress. And I trust in the non-linear nature of this kind of learning.

What do I mean by non-linear? Don’t make too much fun of my “line”. I was too lazy to use a straight-edge but not too lazy to use a scanner.

Anyway, I trust that as I apply myself to my work, the things I learn will gather, have sex in my brain, and multiply such that I can understand much more than two times what I can understand today when we reach the four months mark. And, hopefully, that translates into smarter results, better output which factors in the many requirements from our many constituents and clients.

Things I Learned About Nexus Power-On Auto Provisioning (POAP)

I’ve spent the last few days working with Cisco Nexus switches and trying to get them to auto-provision using DHCP and I wanted to document some of the things I learned in the process.

POAP uses DHCP and delivers an IP address along with the name of a tftp server and a filepath to an install-script file the switch. If the switch is in a sufficiently unconfigured state, it will automatically being the POAP process when it boots up. I say sufficiently unconfigured because it is possible to be overconfigured and underconfigured. You’re overconfigured if there is a startup-config. You’re underconfigured if your box boots to the Loader> prompt as the first box I touched did. (You can fix this by booting up and running “install all” for any image)

The POAP install-script can be downloaded in the same area of the Cisco.com site where you download the kickstart image. This is counter-intuitive placement on Cisco’s part but Arista is also guilty of placing things like config guides in their code download area. It’s not a bad way to go but I would prefer that they indicate it more clearly.

You will have to tailor the POAP script to suit your environment.

I had to update it to reflect the code images I wanted to use and I also added an entropy value to the destination filenames for the kickstart and system images because the script doesn’t copy the files if they already exist. And the sample POAP install-scripts seem to all be hard-configured to save the files as n3k.k and n3k.s. The result for me was that I ended up with a version of code other than what I wanted on my switches.

The sample POAP scripts also don’t seem to include downloading image files from a remote server so that is something you will have to adjust as well. I’m still learning about what kind of documentation is available for the python API so I can’t make strong recommendations about how to fix that just yet.

More later.

Vagrant and Juniper's Firefly Perimeter

Looks like Juniper is working hard to get their Firefly perimeter usable on Vagrant. See also, the firefly-packer github for info and caveats.

fluong@fluong-ltm:vagrant$ mkdir firefly010
fluong@fluong-ltm:vagrant$ cd firefly010/
fluong@fluong-ltm:firefly010$ ls
fluong@fluong-ltm:firefly010$ vagrant init juniper/ffp-12.1X46-D20.5
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
fluong@fluong-ltm:firefly010$ ls
Vagrantfile
fluong@fluong-ltm:firefly010$ vim Vagrantfile
fluong@fluong-ltm:firefly010$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'juniper/ffp-12.1X46-D20.5' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'juniper/ffp-12.1X46-D20.5'
    default: URL: https://vagrantcloud.com/juniper/ffp-12.1X46-D20.5
==> default: Adding box 'juniper/ffp-12.1X46-D20.5' (v0.1.2) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/juniper/boxes/ffp-12.1X46-D20.5/versions/3/providers/virtualbox.box
    default: Progress: ##########################################################==> default: Successfully added box 'juniper/ffp-12.1X46-D20.5' (v0.1.2) for 'virtualbox'!
==> default: Importing base box 'juniper/ffp-12.1X46-D20.5'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'juniper/ffp-12.1X46-D20.5' is up to date...
==> default: Setting the name of the VM: firefly010_default_1411482071141_14275
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default:
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
fluong@fluong-ltm:firefly010$ vagrant ssh
--- JUNOS 12.1X46-D20.5 built 2014-05-14 20:38:10 UTC
vagrant>

vagrant> show interfaces terse
Interface               Admin Link Proto    Local                 Remote
ge-0/0/0                up    up
ge-0/0/0.0              up    up   inet     10.0.2.15/24
gr-0/0/0                up    up
ip-0/0/0                up    up
lsq-0/0/0               up    up
lt-0/0/0                up    up
mt-0/0/0                up    up
sp-0/0/0                up    up
sp-0/0/0.0              up    up   inet
                                   inet6
sp-0/0/0.16383          up    up   inet     10.0.0.1            --> 10.0.0.16
                                            10.0.0.6            --> 0/0
                                            128.0.0.1           --> 128.0.1.16
                                            128.0.0.6           --> 0/0
dsc                     up    up
gre                     up    up
ipip                    up    up
lo0                     up    up
lo0.16384               up    up   inet     127.0.0.1           --> 0/0
lo0.16385               up    up   inet     10.0.0.1            --> 0/0
                                            10.0.0.16           --> 0/0
                                            128.0.0.1           --> 0/0
                                            128.0.0.4           --> 0/0
                                            128.0.1.16          --> 0/0
lo0.32768               up    up
lsi                     up    up
mtun                    up    up
pimd                    up    up
pime                    up    up
pp0                     up    up
ppd0                    up    up
ppe0                    up    up
st0                     up    up
tap                     up    up
vlan                    up    down

JunosV Firefly Perimeter in VirtualBox and Serial Ports

Today I learned:

  • OVA files are zip files that contain OVFs, VMDKs, and Manifests
  • You can unpack the JunosV Firefly OVA using unzip.
  • Edit the OVF to make it compatible with VirtualBox. Look for the string %iid% and replace it with a hard sequence number (for my file it was after 1 and before 3 so I used ‘2’.)
  • Then you need to calculate a new SHA1 sum for the OVF and replace the sum in the manifest (.mf) file.

To get the serial port working on Mac OSX:

  • Modify Virtual Box to add a serial port
  • make it for COM1/IRQ4/0x3F8
    • But change Port Mode to 'Host Pipe’
    • Check “Create Pipe”,
    • and set a filename in the tmp folder such as /tmp/pipe
  • To get networking to work, use “Paravirtualized network adapter (virtio-net)” adapters. I was able to get this to work with host-only networking. Additional steps may be required to increase multicast TTL on the host config if you want it to work with Virtualbox NAT networking.

  • install socat if you don’t already have it (using homebrew).

    • brew install socat
  • then use it to associate the host pipe with a PTY
    • socat -d -d /tmp/pipe PTY
  • the logs will include the /dev/ttySXXX path…
    • 2014/08/14 19:40:07 socat[96334] N PTY is /dev/ttys006
  • note the /dev/ttySXXX in the output and use screen to connect.

See also: http://tonejito.blogspot.com/2012/05/virtualbox-serial-console-on-mac-os-x.html