Monday, May 17, 2010

Sed in Unix/Linux

Sed has several commands, but most people only learn the substitute command: s. The substitute command changes all occurrences of the regular expression into a new value. A simple example is changing "day" in the "old" file to "night" in the "new" file:

sed s/day/night/ new

Or another way (for Unix beginners),

sed s/day/night/ old >new

and for those who want to test this:

echo day sed s/day/night/

This will output "night".

I didn't put quotes around the argument because this example didn't need them. If you read my earlier tutorial, you would understand why it doesn't need quotes. However, I recommend you do use quotes. If you have meta-characters in the command, quotes are necessary. And if you aren't sure, it's a good habit, and I will henceforth quote future examples to emphasize the "best practice." Using the strong (single quote) character, that would be:

sed 's/day/night/' new

I must emphasize the the sed editor changes exactly what you tell it to. So if you executed

echo Sunday sed 's/day/night/' new

This would output the word "Sunnight" bacause sed found the string "day" in the input.

There are four parts to this substitute command:

s Substitute command
/../../ Delimiter
day Regular Expression Pattern Search Pattern
night Replacement string


The search pattern is on the left hand side and the replacement string is on the right hand side.

Tuesday, May 11, 2010

Clustering (note this is Microsoft clustering)

MSCS Clustering

MSCS is the Microsoft clustering-solution software used with Windows NT Server, Enterprise Edition. MSCS version 1.0 supports clusters of two, specially linked servers running Windows NT Server, Enterprise Edition. The primary function of MSCS occurs when one server in a cluster fails or is taken offline. With MSCS, the other server in the cluster takes over the failed server's operations. Clients using server resources experience little or no interruption of their work as the resource functions move from one server to the other.

There are two main components of MSCS: clustering software and Cluster Administrator.

The clustering software enables the two servers of a cluster to exchange specific types of messages that trigger the transfer of resource operations at the appropriate times. The clustering software has two chief features: the Cluster Service and the Resource Monitor. The Cluster Service runs on every cluster server and controls cluster activity, communication between cluster servers, and failure operations. The Resource Monitor facilitates communication between the Cluster Service and the application resources.

The Cluster Administrator is a graphical application that you use to manage a cluster. You can install and run Cluster Administrator on any computer running Service Pack 3 with version 4.0 of either Windows NT Workstation or Windows NT Server. You can administer any MSCS cluster from a cluster server, a non-clustered Windows NT Server, or from a computer running Windows NT Workstation.

You can also administer clusters using Cluster.exe, a command line tool, or custom administration tools developed using the MSCS automation interfaces. For more information on Cluster.exe, see "Administering Clusters from the Command Line" in Chapter 4, "Managing MSCS." For more information on the MSCS automation interfaces, see the Microsoft Platform Software Development Kit (SDK).


Advantages of Clustering


Network clients connect to cluster resources the same way they connect to any network server, so using clusters requires no additional training for end users. Clustering also enables static load balancing: the distribution of processes across servers.

MSCS clustering provides three main benefits for networks and network administrators: high availability of resources, scalability, and centralized administration, which are discussed in the following sections.

Monday, May 10, 2010

Sample Shell Script

#!/bin/sh

date > monitor.in

file1=./

date=`echo $file1 awk -F "_" '{print $2}' awk -F "." '{print $1}'`

#echo "EVENT_TYPESDR_TYPESDR_OPERATION_TIME_LOCALMSG_IDSUBMIT_TIME_LOCALVALIDITY_PERIODMESSAGE_SIZEA_TYPEA_MSISDNB_TYPEB_MSISDN" > SDR_filter_$date.unl

while read linef1
do

readLine=`echo $linef1 awk -F "," '{print $4""$5""$6""$10""$11""$12""$14""$22""$24""$30""$32}'`
echo $readLine >> SDR_filter_$date.unl

done < $file1 date >> monitor.in


ps. any question about script, please drop in comments section.

Wednesday, May 5, 2010

Intelligent Network (IN)

The Intelligent Network, typically stated as its acronym IN, is a network architecture intended both for fixed as well as mobile telecom networks. It allows operators to differentiate themselves by providing value-added services in addition to the standard telecom services such as PSTN, ISDN and GSM services on mobile phones.

The intelligence is provided by network nodes on the service layer, distinct from the switching layer of the core network, as opposed to solutions based on intelligence in the core switches or telephone equipments. The IN nodes are typically owned by telecommunications operators (Telecommunications Service Providers).

IN is based on the Signaling System #7 (SS7) protocol between telephone network switching centers and other network nodes owned by network operators.


resource: http://en.wikipedia.org/wiki/Intelligent_network#Examples_of_IN_services

Tuesday, May 4, 2010

Apa itu TELCO?

Secara umum telco dalam inggeris membawa maksud "TELECOMMUNICATION". Jika dilihat, ia seolah gabungan perkataan tele+communication iaitu gabungan HUBUNGAN & KOMUNIKASI.

Gambaran telekomunikasi:
  • komunikasi melalui suara.
  • melalui data.
  • melalui gambaran.
  • melalui tindak balas.

Jika ada tambahan info tentang telekomunikasi, boleh share dekat ruang comment. TQ.

Diterbit pada 04/05/2010 11:00 PM

Assalam'mualaikum & salam sejahtera,


Di harap laman web ini dapat menjadi rujukan, inspirasi, panduan bg sesiapa yg berminat dalam bidang telekomunikasi. Di harap kita dapat berkongsi idea, pengalaman dan segala tentang telco.

Amin!