Thursday, May 6, 2021

Bad people around me

 1.  The Status Conscious, Double-Faced Mother In Law

Made my son kneel down and scolded him for misplacing his homework papers.

Accused me of being a bad daughter-in-law for not having any pictures of her or her husband in my house.


2.  The Psycho Sister In Law

Lied through her teeth.

Took stuff from me and never returned.

Made my husband pay her for living with their mom and "being a driver".

Took my kids gift money from grandma, $26,000.

Made my husband pay for the pearl necklace, a gift from my MIL for the marriage.  $10,000.


3. The "Keeping Up with the Jones" Sister

Never appreciative of whatever help she got from us family.  Money, housing, cooking, car, etc.


4.  The Negative Complainer

Always have a truckload of negativity to dump on others. Always talk to get information from others but never share any useful information.


5.  The Snake-like Manager

One of the worst manager in my previous workplace.  No decency or courtesy to his female coworkers whatsoever.  Just slave drive everyone and step on them to move up. Expertise in taking credits from the team as his own.  Also very stingy as a manager and biased and unfair.  Really make going to work a nightmare!  He did well for himself but everyone else moved on - far away from him or chose to retire.


6.  The Putin-like Manager

Classic chauvinistic male manager who would ask the females to make a coffee for him, go ahead order team lunch or plan a team outing.  And always asks the female to take meeting minutes, send it out to the team and update the Team Wiki.  Females are stuck with doing all the clerical work!  Again minimal reward for these extra efforts on top of the already tight work schedules.  I think half of his team left him after the project and he also moved on to some other group.  


7.  The Busy, Know-it-all (yeah right.)

Young guy who always shows he knows everything and pretend to be so busy carrying the majority of the team's workload when in fact that's far from the truth.  He just want all the visibility he could get.  Not an open, honest person.  Definitely someone to avoid at all costs.


8.  Laziest Teammate you will ever encountered

Always politely play dumb and need your help or guidance. Acts the same way even after going through the same thing 3-4 times.  His standard saying is "I am not sure.  You know best." to try to avoid doing anything or leading.  Just hide behind others and do minimal, simple tasks.  Come in to work just to social and have lunch with his buddies.  Of course, another type to avoid at all cost.  Don't trust or have this kind of team mate.  It's just a waste of headcount.  The thing is they try to act and talk super nice and polite but when you hear the content of their words, you will be furious and be in shock on what you just heard from them.  No lie is too outrageous to tell for them as long as they say it humbly.


9. Lazy Young Female Engineers)

Again do minimal, just serve the manager, talk nice, organize party and order goodies for the team to gain like.  Did minimal and crappy engineering work and move up to Manager after getting married and have a baby!  Now as manager, they, too, are slave drivers.  Scary bunch.


10.  Overweight, Obsolete Manager. 

He is in all meetings but just sit there and listen.  Not much contribution to the discussion but will just listen to issues and see if any thing falls into his plate to be assigned. His job is just to be in project and management meetings, nothing ever trickles down, information or bonus, never.  No one more stingy than this guy.  When an important engineer left, only those who is currently working with him can be in the farewell lunch.  Everyone else who had worked with him or in the same team as him or know him can not come to the farewell party.  People like him in the company is really good for nothing.  Not making an impact and not building people up.


11.  The Fake Leader

The one who rolled up other people's statuses and present it in the program/project/team meeting.  Don't do actual work nor have any leadership guidance in the team.  Have been in the company for a long time and know which team to join to continue the cruising and in auto retirement mode.


12.  The Stress Transferor

Never smile, focus only about the program issues, schedules and milestones.  Forgot about the human side of the team.  You get very stressed working under him and actually very unhappy, too.  You forgot why you need to work so hard and ended up burnout and want to quit.


13.  Useless Behind-Kissing Director.

Make suggestions from time to time but for the most part just handle or the social activities in the business unit.  Serve the VP's ESG agendas and carry out the holiday celebration/decoration/planning, video recording, team building type of activities.  Try to show off as to have good taste in food selection or decorations for the festive events, all on the company expenses of course.


14.  Young ambitious bixxx

Non stopping pinging you with questions, copy confluence pages and slides you have created and make it like she created it.  Quick to put other down saying their work is a bit wonky and always tried to remind others she has been in the company longest compare to the most of the folks.  But she forgot she's not a developer or doing development work, just support projects.  Avoid such person at all cost.


There are many more, but these are the key players that can make work life and life outside work miserable.  The best thing would be to stay away and cut ties with them.






Friday, April 30, 2021

Early Retirement - the good and the bad...

 So, I have tried early retirement from Oct 5 to May 16.  

The goods... not that much.

I did the 15-9, 16-8 eating schedule since I can wake up late and totally lost my belly fat.  That's one tough goal achieved!!

I get to "adopt" and outdoor cat that comes everyday around the same time.  I feed and play with her.

I brushed up on skills needed for my interview and the path to my next career.

I made a new friend who lives close by.  She is someone I can call and talk to about anything.  It almost felt like we have known each other since elementary school.

I managed to catchup on many dramas and movies and had a good time finishing them. (But that needs not be something to do or start only in retirement.)

I got my daughter back to swim training and started her on her path to getting braces.

I get to watch some Hong Kong show on YouTube. (but stopped after a while)

I get the opportunity to think and tried asset management.

Played with my stamp collections and ordered more.  (But got tired and have had enough of it)

Started looking at crypto stuff...

I decluttered a little, ordered a few thing...


The bad...

Well, because of the lockdown, I was not able to fly and visit my dad.  He passed away.  :-(

I was depressed and have nothing to occupy my mind with the lost of my dad.  I stayed in bed a lot.

I was not motivated.  I was not a better mom or wife or homemaker.  I don't get up early or have a fixed schedule.  I felt empty.

I spent too many hours on games on the cell phone.  It's ridiculous!!  It's addiction!  Cut it out already!

Retirement without your spouse also retiring is just not the right way to go about it.

Days went by without achieving much and no income flow.  Not good.

You feel obsolete living in the High Tech area when everyone is busy and engaged in something.



Friday, April 23, 2021

How to see dad in my dream

 I have found out a way to see my dad in my dream recently.

I have my dad's picture at my bedroom mirror.

I have small LED candle lights that will flicker that I bought from Amazon set up near the picture.

I have placed a small plant near the mirror.

Before going to sleep, I will turn off the light in the room and turn on the LED candle lights and close the bedroom door to make sure it's all quiet.

I will remember the great times I have with my dad and say it out these happy times and thank him.

I will thank him for his love and for being who he is and for my happy childhood.

I will thank him for being so generous with us, which is something I should learn from him now that I am a mom.  

I will tell him I love him and I wish him well even he is no longer in this world.

I will let my tears flow and I will fill my heart with gratefulness and love for my dad.

I will stay quiet for some more time and just let myself immerse in my thoughts of him.  

When I am ready, I will turn off all the LED lights and go to bed.

That night, I indeed saw my dad when he is still in good health.

My mom, my brother and I took him to somewhere as we checked-in to a hotel.

He was wearing a suit jacket and he was telling me now he's not used to wearing a suit top, even though he has been wearing one during his 40 years of corporate life being a Director in a Japanese company.

I told him this suit like top is much thinner and softer so it's not really a suit top.  And it looks good on him.  

We kept on walking and went to a restaurant inside the hotel to have Shabu Shabu.  Or was it Sukiyaki?  I could not remember.  But it was some good family time!!

After that, we walked to a place, also within the hotel, to what seemingly a reserved appointment for sauna and massage.  Something my dad has always loved!  I thought I have forgotten about that but subconsciously I still remember that and it appeared in my dream to remind me!  How amazing our subconscious could be!

While my dad went in for this appointment, my mom talked to the lady there who seemed to be the owner.  She is maybe 5-10 years younger than my mom and was very hospitable.  They talked about something from the past, their experiences when they were younger.  

Then I remember my brother saying, "The beef we just had was not the best."  (That's actually how I remembered my brother was actually in my dream!). My mom was so smooth that she quickly changed the subject with the owner maybe worried that she also own or know the owner of the restaurant.  She moved on to talking about her experiences in Japan.  

I think I have everyone right in my dream.  What they are like and what they will say... well, at least according to me.  

I have also dreamed of my dad multiple times before that, while my mom said she has not even once saw my dad in her dream after he passed.

The following are some short memories from my dreams:

1.  I saw dad waiting at a bus stop near my brother's primary school with a bunch of other people also waiting at the bus stop.  I did not talk to my dad but more like an observing from some distance seeing the scene.

2.  I dreamed that my mom and I were on a road trip with dad to visit an older couple.  After the seemingly long drive, we arrived at their house which is very open, very Japanese, wooden countryside like with large openings with not glass as the windows.  We sat with them and chat over tea.  Then my dad fell asleep (as he used to do in his late years) and we just kept on talking with the couple and let me dad sleep.  

3.  In my dream, I saw dad asking me why his forehead's skin is peeling.  And I saw indeed there are white dry skin peeling on his forehead.  He tried to rub off the dried skin but they it started to thinned the skin and turned red and bloody.  I felt so sad and woke up still feeling sad.

I hope I will see my dad more often in my dream.  I regret I have not told him how much I really love him and how much I want to thank him for being my dad.  But I hope he will feel and sense it in another "world" and is "living" as his younger, stylish, intelligent self.



Monday, March 29, 2021

Family Trip

Because of the tough task I need to achieve in 2017 in Taiwan, the family trip with mom and dad ends up to be one of the most important and memory trip and gift in my lifetime.

It was the last trip my dad ever take.

It was the last meal we ever had with dad's 100 years old sister.

It was the first and last time we visited dad's sister's house in Taiwan and took pictures of her album with dad's photos when he was young.




Monday, March 15, 2021

Start writing everyday.

I miss my dad.  I bought a stuffed animal, which is a bunny, two days ago.  Now I made the connection that my dad was born in the Year of the Rabbit...

I am not happy with how my kids are not doing and learning more.  I don't communicate properly with them enough to be their better self.  I don't know how to motivate them.  I also am not setting a good example to them myself.  I need to change.

Maybe I can introduce her to blogger?  It's good to have an outlet to express.

My son lost 3 teeth this week!  His third, fourth and fifth.





Wednesday, December 30, 2020

清空腦子

 1.  Some people, you just can't help them.  They can still lie and be ungrateful.  Said she never got her $75 CAN and dare to say other people had no friends when she is the one that truly has no friends.

2.  I really HATE people born in the year of the monkey, especially females.  My MIL, sis and SIL!!  They make my life miserable.

3.  Days go by so fast without work.  I don't even know what has been accomplished since I stopped working.

4.  Dad was not well cared for for the last 10 years.  He was lonely with no one to talk to or care about him.  The helper was not doing what she is supposed to do.  She is there mainly in the kitchen cooking and cleaning and shopping for groceries.  She did not do enough!

5.  Mom is incapable and selfish even though she is 15 years younger than my dad.  I would never forgive her for not being there by my dad's side when he needed her most.

6.  I am glad the buy out of the Vancouver place did not happen.  I bet once mom sold it, it will happen.

7.  The trust is giving me headaches.  I feel it's not written correctly.  It focused on the not so important stuff and has no real substance to it.

8. 



Thursday, December 10, 2020

My Dad's Favorite

 Before I forget...

Inari Sushi - He ate that when he was in elementary school in Japan.  His older brother, Frank, was there, too.

He likes girls with short hair.  

獅球嘜花生油 香港 80年代廣告女主角

Dad loves Papaya Milk, tuna fish sandwich with chopped pickled mixed in, white asparagus, cha-shu bun, red bean ice, 


Wednesday, December 9, 2020

Time Line

2000:

Summer: Europe trip with TY & Amelia

Oct 12: Bought Yarmouth

2001:

Aug: Fanny came pregnant with son to attend ONJ concert.

Aug: Met our cousin Eugene Zhu Xia  (夏杼) for the first time with Shirley.

Dec: Flew back to HK (Kai and Angel were there too) met MSS friend Eugenia's newborn daughter

2002:

Jan:  Family Trip to Taiwan and to Tainan (Mom, Dad, Kai and me)

Mar: Found 4 kittens in the backyard and took them in. (Bagel, Twister, Toby, Bebe)

May 10-15:  Trip to Toronto (to Alice's wedding) 5/12-15 Montreal, dropped off kittens to Sung?

Aug: Tracy's wedding

Sep: I was in Vancouver, attended a wedding with mom (Wong's daughter)

Oct: Set up MSS server and informed classmates

Nov: Trip to LA and hang out with Iris at Getty Museum


2003:

July 7: Nicky was born

Sep 19-23: Trip to Honolulu, Hawaii (Orbitz $764)

Dec 25: TY's dad passed away.

Dec 31-Jan 2 (2003):  SJC to Burbank (Funeral)

2004:

Jun 5-17:  TY to Taiwan with his mom

July 3: Parents in town 

July 8-11:  Family trip to Las Vegas

Sep. 4: Trip to Monterey with TY, his mom and sis

Dec 15: Bought Hercules 980

2005:

Mar 21 - 27: Business Trip to Japan

May 17 - Jun 5: Mom from Vancouver to meet with TY's mom?

Sep 23: Wedding (Mom & dad in town)

Oct 14 - 17: LA wedding, Dad flew from SJC to Orange County

Dec 15: Bought personalized iPod as my Christmast gift.

2006:

Mar 6 - Apr 12: Parent went on a trip to Beijing, China (Great wall) with friends and sold the house in Shanghai

Apr 27: Sold Yarmouth

Dec 13 - Jan 17(2007): In HK, then trip with parents to Shanghai and later Japan with dad and TY

Dec 20 - 25: HKG to Shanghai

Dec 27: Parents' 40th Wedding Anniversary

Dec 30: Ran into Edna 

Dec: TY and his mom and sis to LA

Dec 31:  Spent cafe hopping with dad and had New Year's eve dinner with dad in TST!  

2007:

Jan 2 - 17: TY fly out from SF to HK then to Japan then to SF (our actual honeymoon)

Jan x: Went to Macau (1st time) and with TY & dad

Jan 2: Dinner with Edna and Christine at Christine's house at 19A 38.  She told me to read the book "Children are from heavens"

Jan 10-17: Japan with Dad, then we fly back to SF.  On the last 2 days, dad with 2 friends to 日光駅~中禅寺温泉

Feb 22: Made strawberry cheesecake for sis's birthday

May 27: TY down in LA to pick up Prius (-_-)

Aug: Was in LA to attend Joe's wedding

Nov 23: Gave birth to Ami

2008:

Mar 24 - Apr 27: Mom from Vancouver to SF and back (to help for 1 month)?

April:  Picture with CEO John Chambers during April b-day

Aug 15-29: Trip to Vancouver to see mom and dad.  (Ami less than a year old).

Aug 26: Callum was born

Dec 17 - Jan 11(2009): Mom to SF from Vancouver

2009:

July 9:  Iris stopped by my house!

Kai motorbike accident - broke 3 bones

Aug: Callum and Nicky came to the pool party to celebrate b-day together with TY.

Sep 17-29: Family Trip to Oregon, Seattle, and Vancouver.  Went to the zoo in Seattle.

2010:

Jun 22 - July 8:  Family trip to Vancouver to see mom and dad

Oct 9: Family Trip to Napa

Dec 22-26:  Family Trip to LA & Vegas (23-26) with Mimi

2011:

Aug 15: Saddle Rack

Aug 16-28: TY flew to Vancouver for work.  We made it a family trip to Vancouver to see Mom and Dad (Ami 3+)

2012:

Jun 8: Bought Warbie

Nov 17: Get quotes based on City's approved drawings

Nov 29: Family trip to Vancouver, flying into Seattle and pick up a car rental from Seattle airport.

Dec 5: Drove down from Vancouver and stayed in Oregon and mom bought an iPad.

Dec 30: Mom flew back to Vancouver

2013:

Jun 4 - 13: Flew to Vancouver while pregnant and coughing like crazy to handle Lexus registration.

Sep 6: Gave birth to Abi (same birthday as my ex-boss)

Nov 8 to 11: Trip to LA and San Diego Legoland

Dec 22 - 24:  Lake Tahoe, stayed at Reno Silver Legacy (with Abi very chubby)

Dec 31: Warbie closed to complete

2014:

Feb 27 -March 19: Trip to HK while still breastfeeding and pumping

March 8 - 11:  Trip to Seoul with Margaret

July 7-10: Family trip to LA and San Diego beach

Dec 23 to Jan 5:  Mom came from Vancouver to SF

2015:

Mar 22 - 30: SF to Seattle to Vancouver (Abi's first trip to Vancouver, at 2+)

Sep 17 - 19: Disneyland (Ami 7+)

Nov 2 - 23: SF to Hong Kong (by myself)

Nov 5 - 9: from Hong Kong to Taipei (Dad and I)

Nov 11-18: from Hong Kong to Japan (Dad and I)

Nov 16: Hakone

2016:

April 11 - 17: Family trip to Seattle and Vancouver

Dec 27:  Parent's 50th wedding anniversary - didn't do anything. :-(

2017:

Apr 7:  Bought Westridge

May 27 - Jun 25: Fly from SF to HK to take dad's money back from Taiwan

Jun 5 - 8: Mom and I flew to Taiwan, Dad refused to fly

June 14 - 18: Flew from Hong Kong to Taiwan to help dad transfer his money back (Dad, mom, and me)

Aug 19 - 21:  Total Solar Eclipse trip to Oregon (Western Oregon University)

Sep 8: Sold Hercules 845

Nov 16 - 29:  SF to Hong Kong (Ami and me for her 10th b-day!)

2018:

May 25 - 27: Yosemite Trip

Jun 11 - 25: Took Ami to HKG

Oct 17 - Dec 26:  took Abi to HK to spend time with dad and mom came, too!

2019:

Mar 24:  Flew back to HK for Kai's wedding (mom)

2020:

Feb 7:  B Liu passed away in the morning.

March: COVID shelter-in-place

Jun: Went to ER

Oct 5: Last day at work

Dec 6: Dad passed away at 6pm. :'(

Dec 6-7: I got really sick.  Stomach pains, threw up on the street, came back, had the chills, and more stomach pains, took pain killer and potato starch + salt. 

Dec 11: Abi bumped his head running around in the house and bled.

Monday, October 12, 2020

Trade Notes

 Turtle:

What to buy

How much to buy

When to buy 

When to get out of a winning position/ a losing position

===============================================

More volatile, smaller position - can only have 1% loss

Short Term Breakout: 20-DMA 

Long Term Breakout : 55-day Average price

Turtles with no stops go broke!

You can never go broke taking a profit.

10% in cash.

TSLA, SQ, 










                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

Retirement log - first 30 days

Oct 5.  Did not attend any meeting.  Signed the ER doc and signed off before noon.  

Day 1, very excited.  Got up early.  Look at stocks and listen to CNBC.  Had lunch, and tea time, snacks.  Enjoyed my dad thoroughly.  Talked to ex-coworker on LinkedIn to discuss on solo 401k plan.  Took online LinkedIn training...

Day 2, not as excited.  Did not look at stock that much.  Drank 3 coffee, had massage before going to sleep.

Day 3, not as excited.  Decided to apply for a job with friend's referral.  Got very excited, decided to read up on the company and prepare for interview questions.  Talk to LinkedIn friend about looking for a job on the 3rd day of ER.  LOL.

Day 4, got rejected saying they have decided to proceed with other candidates.  Feel sad, mad, insulted.  Not even a chance to talk and got rejected.... Stopped all reading about the company. Then in the middle of the night, got another rejection from another company that I submitted my resume.  Something about my LinkedIn or resume is not right.  I need to fix it.

Then I got the inspiration to write the movie script:  liang bei zi.

Texted my other friend at work and found out he got LR... but his package is still better.  

Tuesday, September 29, 2020

 def active_stdby_status (uut,stk_count):
    flag = 1
    log.info('Check the stack has elected Active and Standby')
    if stk_count == 1:
        output = uut.execute('show switch')
        match = re.search('Active',output)
        if match:
            log.info('The Active has come up')
        else:
            log.info('The Active has not come up')
            flag = 0
            self.failed('The Active has not come up')
    
    else:
        loop_cnt = 50
        for i in range(1,loop_cnt):
            time.sleep(20)
            output = uut.execute('show switch')
            match = re.search('Standby',output)
            match1 = re.search('Active',output)
            if not match:
                continue
            elif match and match1:
                log.info('The stack has elected Active and Standby')
                log.info('Now Check the stack are in Ready state')
                l_cnt = 15
                for j in range(1,l_cnt):
                    time.sleep(20)
                    out = uut.execute('show switch')
                    match = re.search('HA sync in progress',out)
                    if match:
                        continue
                    else:
                        time.sleep(20)
                        break
                input = uut.execute('show switch')
                regex = re.compile('Ready')
                check = regex.findall(input)
                log.info('Check : %s',check)
                status_count = len(regex.findall(input))
                log.info('Status_count = %s', status_count)
                if status_count!=stk_count:
                    flag = 0
                    log.info('Please Check the switch which is not in Ready state. Test Aborted')
                break

            elif i== 29:
                log.info('Active and Standby Election not done properly')
                flag = 0
            
    return flag

def chk_atv_stdby(uut,stk_count):
    output = uut.execute('show switch')
    match = re.search('Active\s+([a-z0-9.]+)\s+(\d+).*Ready',output)
    active_mac = match.group(1)
    active_priority = match.group(2)
    if stk_count>1:
        match1 = re.search('Standby\s+([a-z0-9.]+)\s+(\d+).*Ready',output)
        stdby_mac = match1.group(1)
        stdby_priority = match1.group(2)
        return (active_mac,active_priority,stdby_mac,stdby_priority)
    else:
        return (active_mac,active_priority)
 
 
def getshowswitchinfo (uut):
    log.info('Entering in to the getshowinfo proc %s' %uut)
    switchinfo = defaultdict(dict)
    uut.execute('enable')
    output=uut.execute('show switch')
    lines = output.splitlines()
    for line in lines:
        
        match = re.search("(\d+)\s+(\w+)\s+(\w+.\w+.\w+)\s+(\d+)\s+(\w+)\s+(\w+)", line)
        '''
        Switch/Stack Mac Address : 007e.9500.3000 - Local Mac Address
        Mac persistency wait time: Indefinite
                                                     H/W   Current
        Switch#   Role    Mac Address     Priority Version  State
        ------------------------------------------------------------
         *1       Active   007e.9500.3000     1      P2B     Ready                
          2       Standby  682c.7bf7.1380     1      P2A     Ready                
          3       Member   682c.7bf7.ce00     1      P2A     Ready                
        '''
        if match:
            number = match.group(1)
            switchinfo[number]['switch_no'] = int(match.group(1))
            switchinfo[number]['role'] = match.group(2)
            switchinfo[number]['mac_address'] = match.group(3)
            switchinfo[number]['priority'] = int(match.group(4))
            switchinfo[number]['version'] = match.group(5)
            switchinfo[number]['state'] = match.group(6)
    print(switchinfo)
    return switchinfo
    
def get_reset_reason(uut,stacklen,tot_sw_no):
        
        last_reset_reason = defaultdict(dict)
        
        for sw_no in tot_sw_no:
            cmd_to_execute = 'show logging onboard switch ' + sw_no + ' uptime detail'
            reset_reason = uut.execute(cmd_to_execute)
            reset_reason = reset_reason.splitlines()
            for line in reset_reason:
                if "Current reset reason" in line:
                    cur_reset_reason = line.split(':')[1]
                    cur_reset_reason_update = " ".join(cur_reset_reason.split())
                    log.info("Current Reset Reason is %s"%cur_reset_reason_update)
                    break
            last_reason_line = re.search("([\d/]+)\s([\d:]+)\s+(.*)(\d+\s+\d+\s+\d+\s+\d+\s+\d+\s)",reset_reason[-3])
            last_reason_line = " ".join(last_reason_line.groups()[2].split())
            last_reset_reason[sw_no]['switch_number'] = sw_no
            last_reset_reason[sw_no]['current_reset_reason'] = cur_reset_reason_update
            last_reset_reason[sw_no]['last_reason_line'] = last_reason_line
        return last_reset_reason
    

stack3-nyquist-1#sho logg onboard switch 1 uptime det
--------------------------------------------------------------------------------
UPTIME SUMMARY INFORMATION
--------------------------------------------------------------------------------
First customer power on : 12/21/2018 07:25:42
Total uptime            :  1  years  18 weeks  6  days  20 hours  12 minutes
Total downtime          :  0  years  21 weeks  4  days  4  hours  16 minutes
Number of resets        : 932
Number of slot changes  : 6
Current reset reason    : Image Install
Current reset timestamp : 09/25/2020 14:54:39
Current slot            : 1
Chassis type            : 0
Current uptime          :  0  years  0  weeks  4  days  17 hours  0  minutes
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
UPTIME CONTINUOUS INFORMATION
--------------------------------------------------------------------------------
Time Stamp          | Reset                       | Uptime
MM/DD/YYYY HH:MM:SS | Reason                      | years weeks days hours minutes
--------------------------------------------------------------------------------
09/22/2020 16:39:24   Reload reason not captured    0     0     0     0     10
09/22/2020 16:44:06   Reload Command                0     0     0     0     0  
09/22/2020 16:51:56   Reload reason not captured    0     0     0     0     5  
09/22/2020 17:07:14   Reload reason not captured    0     0     0     0     10
09/25/2020 12:27:14   Image Install                 0     0     0     2     59
09/25/2020 14:54:39   Image Install                 0     0     0     2     0  
--------------------------------------------------------------------------------
def Cycle(uut,ip,power_port,outlet_number,power_unit_username,power_unit_password,pdu_type,telnet_ssh):
        time.sleep(4)
        child = pexpect.spawn(telnet_ssh + " " + ip + " " + power_port,timeout = 300)
        if pdu_type == '':
            child.expect('Username:',timeout = 300)
            child.sendline(power_unit_username)
            child.expect('Password:',timeout = 300)
            child.sendline(power_unit_password)
            child.expect(['#', '>'],timeout = 300)
        else:
            child.expect(['#', '>'],timeout = 300)
        log.info(child)
        try:
            if pdu_type != '':
                outlet_number = outlet_number.replace(',',' ')
                poweroff_cmd = "/OFF " + str(outlet_number) + ',y'
                poweron_cmd = "/ON " + str(outlet_number) + ',y'
            else:
                poweroff_cmd = "power outlets "+outlet_number+" off /y"
                poweron_cmd = "power outlets "+outlet_number+" on /y"
                    
            child.sendline(poweroff_cmd)
            child.sendline('\r')
            log.info('sent off to outlet %s %s'%(ip,outlet_number))
            time.sleep(10)
            child.sendline(poweron_cmd)
            child.sendline('\r')
            log.info('sent on to outlet %s %s'%(ip,outlet_number))
            child.sendline('\r')
            child.expect(['#', '>'],timeout = 300)
            string_op = child.before.decode('utf-8')
            log.info("Power cycle command was issued and executed")
            if(re.search(r"\^",string_op)):
                raise InvalidExcpt
        except InvalidExcpt:
            log.info("Power Cycle command was not executed \n Command to power cycler was invalid")
       
        return
 
 
#sho iox

IOx Infrastructure Summary:
---------------------------
IOx service (CAF)              : Running
IOx service (HA)               : Running
IOx service (IOxman)           : Running
IOx service (Sec storage)      : Not Running
Libvirtd                       : Running
Dockerd                        : Running
Application DB Sync Info       : Available
Sync status                    : Successful
Last application sync time     : 2020-09-28 20:46:50.069589

    
        out=uut1.execute("show iox-service")

        if((re.search("IOx\s+service\s+\(HA\)\s*\:\s*Running",out)) and (re.search("IOx\s+service\s+\(CAF\)\s*\:\s*Running",out)) and (re.search("IOx\s+service\s+\(IOxman\)\s*\:\s*Running",out
)) and (re.search("Libvirtd\s*\:\s*Running",out))) :
            log.info('PASS : IOX service is running')
        else :
            self.failed('FAIL : IOX service is NOT running')




Friday, September 25, 2020

Questions to ask Interviewer

 

  1. What are the main reasons you work for [Company]?
  2. What is main organizational values and work culture like?
  3. How often do you work on weekends or till late at night?
  4. How is performance review conducted here?
  5. What is the main difference between your previous work environment and [company]?