Tuesday, July 31, 2007

LVM

[ROOT abc123]home/root # uname -a
HP-UX abc123 B.11.11 U 9000/800 170187401 unlimited-user license
[ROOT abc123]home/root # lvextend -L 600 /dev/vgs12xyz/lvxyz
[ROOT abc123]home/root # fsadm -F vxfs -b $((600*1024)) /db99/S99/db


Note: If you encounter "errno 28" then you need to free up some space before extending the fs

Monday, July 30, 2007

SunOS: Route delete problem

If you ever encouter problem deleting routing in SunOS, make sure you specify the netmask.

read more...

Friday, July 27, 2007

..

I must learn to be more confident in decision making.

read more...

Monday, July 23, 2007

Still... haven't started my engine..

For the past 2 weeks, I've done nothing but trained myself to familiarize with new surroundings, new tasks that I'm gonna be in deep shit later, and finding the right food(s) to eat when it is time to eat.

I would say, I enjoy the every bit of that moment, saving it up for the future.

read more...

Sunday, July 22, 2007

Read-More hacks

Got it from here.

read more...

300 new servers? By next Tuesday?




Advice to employees on the proper use of the System Administrator's valuable time

(In following examples, we will substitute the name "Ted" as the System Administrator)

* Make sure to save all your MP3 files on your network drive. No sense in wasting valuable space on your local drive! Plus, Ted loves browsing through 100+ GB of music files while he backs up the servers.
* Play with all the wires you can find. If you can't find enough, open something up to expose them. After you have finished, and nothing works anymore, put it all back together and call Ted. Deny that you touched anything and that it was working perfectly only five minutes ago. Ted just loves a good mystery. For added effect you can keep looking over his shoulder and ask what each wire is for.

read more...

Wednesday, July 11, 2007

Gentlemen, start your engines!

Well, basically I haven't started mine. Just got my new laptop on Monday and had been messing around this new gadget for 2 days already. But today is even better, I started to read, alot. So, don't expect any intelligent post(s) for today.

The new environment is, of course, different. But kinda like it here. Hopefully this gonna be my next long stop.

There's a lot of new things that I need to digest real quick and pray to God my brain won't explode. Those 'things' are most welcome by my brain, maybe because I'm new here, or maybe because of my willingness to accept that 'things'. I've been waiting for a very long time to learn that new 'things'!! Have you ever seen so damn many 'things' in one para? I know I did.

New friends, new workplace, new cubicle, new laptop, and (soon) new headache(s).

Oo-lala.

Sunday, July 8, 2007

The new beginning

Well, last Friday was my last day at SXXX. I missed my colleagues already. I missed the sweet old days I had with em and yah, the bitter days. But, a man's gotta do what a man's gotta do.

Tomorrow will be the new era of my life. I'm gonna start doing system administration, the one that has been one of my passion all this time. All that I hope is that my passion will eventually lead me somewhere far.

I'm not the type who has a lot of idea to write/type, especially when I'm started to write, so I'm gonna stop right here, for today of course.

Wish me luck, and God Bless you all.

Tuesday, July 3, 2007

awk notes

AWK syntax:
awk [-Fs] "program" [file1 file2...] # commands come from DOS cmdline
awk 'program{print "foo"}' file1 # single quotes around double quotes
# NB: Don't use single quotes alone if the embedded info will contain the
# vertical bar or redirection arrows! Either use double quotes, or (if
# using 4DOS) use backticks around the single quotes: `'NF>1'`

# NB: since awk will accept single quotes around arguments from the
# DOS command line, this means that DOS filenames which contain a
# single quote cannot be found by awk, even though they are legal names
# under MS-DOS. To get awk to find a file named foo'bar, the name must
# be entered as foo"'"bar.

awk [-Fs] -f pgmfile [file1 file2...] # commands come from DOS file

If file1 is omitted, input comes from stdin (console).
Option -Fz sets the field separator FS to letter "z".

AWK notes:
"pattern {action}"
if {action} is omitted, {print $0} is assumed
if "pattern" is omitted, each line is selected for {action}.

Fields are separated by 1 or more spaces or tabs: "field1 field2"
If the commands come from a file, the quotes below can be omitted.

read more...

sed and awk notes

Some useful notes:

Chart of similar operations with sed and awk
--------------------------------------------

string
======

sed "s/from/to/" awk '{sub("from","to"); print}'

sed "s/from/to/g" awk '{gsub("from","to"); print}'

sed "s/from/to/3" awk '{$0=gensub("from","to",3); print}'


regex
=====

sed "s/reg.*$/_&_/" awk '{sub(/reg.*$/, "_&_"); print}'

sed "s/reg[ex]/YY/g" awk '{gsub(/reg[ex]/, "YY"); print}'

sed "s/reg[ex]/ZZ/4" awk '{$0=gensub(/reg[ex]/, "ZZ", 4); print}'

Taken from: http://www.student.northpark.edu/pemente/awk/awk_sed.txt

read more...

Monday, July 2, 2007

marriages

Lately, I received a lot of marriage invitations.. yeah of course, it's my friends that are getting married. Here some interesting excerpt of the ym conversation I just had with my friend:



Hehe.

read more...