Profile

Cover photo
Joseph Phillips
Attended Wallace State Community College
26 followers|52,177 views
AboutPostsPhotosYouTube

Stream

Joseph Phillips

Shared publicly  - 
 
I'm not found!!!
3
Add a comment...

Joseph Phillips

Discussion  - 
 
Using Unison File Synchronizer

I have had to setup a new web server recently to separate the database from the app server and to place the web server in the DMZ. The developer that maintains the code will not have direct access to the server in the DMZ, so I had to come up with a way for him to make changes to the code and send it to the web server. My first thought was to use rsync but that can be a nightmare to setup. That is where Unison comes in to take care of the sync.

Unison can sync folders over ssh which is what I needed since the only ports open to the DMZ are ssh and database ports from the database server.  

I am going to walkthrough a simple setup to sync to folders. More detailed information can be found in the user manual from the link provided.

First,

Install Unison
sudo apt-get install unison

Next,

Let's sync folder */a** and folder /b**.*
Command: **unison root1 root2

unison /a /b

Now if you look at the contents of both directories they we be exact copies. You can set a file watcher to monitor the directories and run that command or set a cron job to run the command on a schedule. I chose to use a cron job.

To get more complex, you can set many different options from the command line or set everything in a profile file located in the .unison directory in the user's home directory. In this file you can set the roots to sync and set other options such as creating backups of files that change. Here is a sample file:

#Set_ the roots or folders to sync_
root=/a
root=ssh://user@hostname//path/to/folder
#Notice_ the "//" after the hostname. This is need to specify an_ absolute path or else the path would be relative to the user's home directory.

#Set_ other options._
owner=true _#copies__  owner_
group=true _#Copies__  group_
repeat=60 _#Runs__  the command every 60 secs_

You can call the profile by the following:
unison profilename

A note to keep in mind is that you will need to setup key logins to uses the ssh sync unattended. A guide for setting this up is here:
https://help.ubuntu.com/community/SSH/OpenSSH/Keys
Overview. Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica ...
4
1
Brian Tissue's profile photo
 
I like that a lot. This would be a great way to mirror/backup. I also like the keyless feature. 
Add a comment...

Joseph Phillips

Shared publicly  - 
 
Old 2924 I found in a conference room today and had to replace.
1
Brian Tissue's profile photoEdward Willis's profile photoJoseph Phillips's profile photo
5 comments
 
+Edward Willis It stopped working. I had to scrap that marvelous piece of equipment. 
Add a comment...

Joseph Phillips

Shared publicly  - 
 
Yep!
1
1
Brian Tissue's profile photo
Add a comment...

Joseph Phillips

Shared publicly  - 
 
Streaming live all day! Who is going to be watching the landing tonight.
1
Luke Lewis's profile photoJoseph Phillips's profile photo
4 comments
 
I have it streaming at work but it was muted. I also looked at CET which is Central European Time and not CST.  Oops
Add a comment...
Have him in circles
26 people
Jacob Young's profile photo
James L Phillips's profile photo
Kali “Butterfly” Worthey's profile photo
Derek Wright's profile photo
selena john's profile photo
charles baer's profile photo
Charlie Jimmerson's profile photo
Admin Certkingdom's profile photo
Victoria Puterry's profile photo

Joseph Phillips

Shared publicly  - 
 
On Friday, February 27, Leonard Nimoy, best known for playing Mr. Spock on "Star Trek," died from the end stages of chronic obstructive pulmonary disease. He was 83 years old, and left behind many friends and family, including his wife Susan who confirmed his death and its cause. Although Nimoy played other big roles in Hollywood, directing box-office smash movies and voicing animated characters in some of Disney's most-loved films, he will forev...
8
1
Richard Arnold (KB4RMA)'s profile photo
Add a comment...

Joseph Phillips

Shared publicly  - 
 
My latest non-IT project. I still have to stain the rest, poly coat and assemble it.

FYI...It is a shoe rack.
2
Add a comment...

Joseph Phillips

Shared publicly  - 
 
Recently I have been tasked with preventing one of my routers from falling back to primary after a failover event has been triggered and resolved. The logic behind this was to prevent a second outage during peak operations. The expected way for this to operate is if an issue comes up on the primary circuit, the backup circuit automatically takes over. This circuit remains in operation until off-peak hours and the primary circuit issues have been resolved.

My first thought when presented with this was that I would have to manually log into the device and disable the BGP peer. Fortunately, my Google-foo is strong! Not long after searching for ways to automate this process, I found Cisco EEM.

I read up on the features and how to implement this feature. I then built a mock network in GNS3 to test different options and the overall operation of an EEM applet. I was unable to get the complete feature set with GNS3 as the device compatibility is limited, but it was close enough to test the basics. Cisco's VIRL (virl.cisco.com) would have been better suited for this task.

With EEM, I was able to configure an applet to monitor the routing table for specific routes to be removed, which would indicate a circuit failure on either end of the path. This would then disable the BGP peer and publish a couple of events to the syslog that I would be able to search for with another EEM if needed.

I have found this to be an extremely flexible and powerful tool at my disposal. I know organizations cannot always afford to purchase the Cisco name, but features like this and the embedded packet capturing (another post for later maybe) seem to make them a worthwhile investment.

Here is a link to the EEM command reference:
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/command/eem-cr-book.html
Cisco IOS Embedded Event Manager (EEM) provides real-time network event detection and onboard automation.
1
Add a comment...

Joseph Phillips

Shared publicly  - 
1
Add a comment...

Joseph Phillips

Shared publicly  - 
 
I have been using the new Inbox app from Google and just recently got the updated Gmail app as well. 

Before you ask, I do NOT have any invites for Inbox.

I  have two screenshots from the Inbox app and one from the tablet version of Gmail. The only difference in the a tablet version I have noticed is the sidebar to quickly change between accounts and priority inbox.

So far the new designs and layout seem very functional and pleasing to the eye. Inbox will require some learning and retraining for those of us who never adopted the "zero inbox" and those who like to quickly delete messages with a swipe or quick tap. I can still see the benefits in how this new Inbox can be helpful and a little frustrating at times.

As for the new Gmail app, it really didn't change much in the way it works. I do, however, wish they would have used a different color for the top bar. The red makes it seem like you are in the G+ app. I do like the sidebar on the tablet and the ability to add external IMAP/POP accounts. I have not done so yet, but I may in the future. Some people will comment on privacy issues with Google and the app having all your email. Honestly, I don't care since the accounts I use do not have anything interesting or critically confidential in them and I already use Gmail as my primary personal email account. All of my others are simply trash collectors that I have to remember to empty from time to time.
1
Richard Arnold (KB4RMA)'s profile photoJoseph Phillips's profile photoGrace Herman's profile photoLuke Lewis's profile photo
4 comments
 
Can I get an invite?





Sorry had to. ;-)

I do like inbox - but I'm still not sure of it's place. I use tags and filters to do all if not more than what inbox currently does. Time will tell if it's worth wild or not to me. 

I also hate the red - blue would fit me much better! Maybe they could make it customizable?!
Add a comment...
People
Have him in circles
26 people
Jacob Young's profile photo
James L Phillips's profile photo
Kali “Butterfly” Worthey's profile photo
Derek Wright's profile photo
selena john's profile photo
charles baer's profile photo
Charlie Jimmerson's profile photo
Admin Certkingdom's profile photo
Victoria Puterry's profile photo
Work
Occupation
Network Engineer
Basic Information
Gender
Male
Story
Tagline
Network Engineer and amateur developer
Education
  • Wallace State Community College
    CIS / networking
Links