handsomeplanet.com
HandsomePlanet » Cisco IOS CLI regular expressions, Part II — ‘AND’
http://www.handsomeplanet.com/archives/11
Technology and other perplexities. Laquo; Cisco IOS CLI regular expressions (“Ceci n’est pas une pipe.”). Upgrading an Ubuntu server from the command line. Cisco IOS CLI regular expressions, Part II ‘AND’. In an earlier post. I talked about Cisco command line regular expressions, and held off on giving any good examples of using the CLI regexp tools to get ‘AND’ functionality. ( I pointed out there that the ‘ ’ (pipe symbol) could be used as a simple ‘OR’ function.). IOS-rtr#sh run inc privi. Privilege c...
handsomeplanet.com
HandsomePlanet » linux
http://www.handsomeplanet.com/archives/tag/linux
Technology and other perplexities. Server set-up: Fixing locale and unknown key issues on VPS / Ubuntu “cloud” images. Here are a couple of problems I’ve seen with newly created instances of virtual servers, and their solutions. When running apt-get upgrade for the first time, many errors appeared regarding an “unset” locale. My locale is US/English, so the fix was:. Sudo locale-gen en US en US.UTF-8. Errors regarding unknown or missing keys. MISSINGKEY] is the string in the error message. For i in $LIST...
handsomeplanet.com
HandsomePlanet » shell
http://www.handsomeplanet.com/archives/tag/shell
Technology and other perplexities. Comparing rancid files on two different servers. Usually, I just use rsync to keep files in sync, but this runs through all of the files. Starting on server #1, inside the rancid base directory (/var/lib/rancid for me),. With $LIST OF GROUPS from /etc/rancid/rancid.conf,. Using ssh with port 2022 ,. REMOTE = DNS name of remote server :. To run vimdiff to see or manually sync a single file:. Note that this uses 2022 as an alternate ssh port for scp (as called by vimdiff).
handsomeplanet.com
HandsomePlanet » sort files by size
http://www.handsomeplanet.com/archives/308
Technology and other perplexities. Laquo; streaming tar. Working with dates and timestamps in GNU Linux. Sort files by size. Du -sh * sort -h. Output should be sorted like this (K, M, G for Kilobytes, Megabytes, Gigabytes):. 80K em.vlan.txt. 12M textarchive.tar.gz. Du and sort from GNU coreutils 8.23. This entry was posted on Tuesday, March 26th, 2013 at 2:35 pm by admin and is filed under tech. You can follow any responses to this entry through the RSS 2.0. Click here to cancel reply. To post a comment.
handsomeplanet.com
HandsomePlanet » bash
http://www.handsomeplanet.com/archives/tag/bash
Technology and other perplexities. Comparing rancid files on two different servers. Usually, I just use rsync to keep files in sync, but this runs through all of the files. Starting on server #1, inside the rancid base directory (/var/lib/rancid for me),. With $LIST OF GROUPS from /etc/rancid/rancid.conf,. Using ssh with port 2022 ,. REMOTE = DNS name of remote server :. To run vimdiff to see or manually sync a single file:. Note that this uses 2022 as an alternate ssh port for scp (as called by vimdiff).
handsomeplanet.com
HandsomePlanet » Server set-up: Fixing locale and unknown key issues on VPS / Ubuntu “cloud” images
http://www.handsomeplanet.com/archives/349
Technology and other perplexities. Laquo; Trailing slash or no trailing slash with an rsync path argument? Cisco IOS regex behavior — the misunderstood underscore? Server set-up: Fixing locale and unknown key issues on VPS / Ubuntu “cloud” images. Here are a couple of problems I’ve seen with newly created instances of virtual servers, and their solutions. When running apt-get upgrade for the first time, many errors appeared regarding an “unset” locale. My locale is US/English, so the fix was:.
handsomeplanet.com
HandsomePlanet » tech
http://www.handsomeplanet.com/archives/category/tech
Technology and other perplexities. Why yes, it probably is: “Single Pain of Glass”. Today via the dubious but ever-eager TechTarget.com vendor information dissemination engine, I received notice of the immediate availablility of an important “white paper”/marketing position statement:. How to gain a single-pain-of-glass view into your systems operations. At least the headline writer slices right to the heart of the matter, etc., etc. February 23rd, 2015 admin Categories: tech. Comments: No Comments.
handsomeplanet.com
HandsomePlanet » Working with dates and timestamps in GNU Linux
http://www.handsomeplanet.com/archives/312
Technology and other perplexities. Laquo; sort files by size. Vim syntax highlighting, line numbers. Working with dates and timestamps in GNU Linux. Print time as seconds from the epoch, or, “. Seconds since 1970-01-01 00:00:00 UTC. Convert timestamp or epoch dates into familiar day and time :. Mon Apr 8 11:39:26 CDT 2013. Usage from GNU coreutils 8.x, and may work elsewhere. This entry was posted on Monday, April 8th, 2013 at 11:45 am by admin and is filed under tech. Click here to cancel reply.
handsomeplanet.com
HandsomePlanet » Cisco
http://www.handsomeplanet.com/archives/tag/cisco
Technology and other perplexities. Cisco IOS regex behavior — the misunderstood underscore? Many demonstrations of Cisco IOS regular expression use over-simplify or misstate the actual use and definition of the underscore wildcard. This may lead to unexpected behavior in some situations. Here’s what the documentation says about the underscore:. Matches a comma (,), left brace ({), right brace (}), left parenthesis ( , right parenthesis ), the beginning of the string, the end of the string, or a space.