Posts

Showing posts with the label Linux

Setup Local Yum Repository

[root@server ~]# mount /dev/cdrom /mnt/ Now the CentOS installation DVD is mounted under /mnt directory. Next install vsftpd package and make the packages available over FTP to your local clients. To do that change to /mnt/Packages directory:

Sudo on Linux

Linux doesn't use sudo by default. Unlike Ubuntu, where the first user set up in the installer has rights to run anything with sudo, CentOS gives no such rights to anybody. By default, the only way to run programs with root privileges is to log in as root, by running su in a terminal. If you want to enable sudo for you or others, you'll need to edit the sudoers list, using the command visudo. This uses the editor defined in $EDITOR or, if that's not set, Vi. This method checks the syntax before committing it to the real file, which avoids you locking yourself out with a typing error. Run it with

Hide Password Entry in UNIX script:

We can use 'stty' to hide the password entry in UNIX command prompt, which is like entering password when you login to the UNIX. stty: 'stty' sets options for your terminal Ex : stty erase \^h --- set the backspace as erase key stty sane stty

FTP auto-login Script

FTP auto-login.  "ftp" to a site and have the password stored. For instance, here's a sample ".net" file in a user's home directory for uploading to sourceforge. Note, sourceforge will take any password, so m@temp.com is used here for login "anonymous".

RPM Commands in Linux

Install an RPM Package    RPM packages have file naming conventions like package-5.1-7.i868.rpm, which include the package name (package), version (2.0), release (4), and architecture (i386). Also notice that RPM understands FTP and HTTP protocols for installing and querying remote RPM files. rpm -ivh package-5.1-7.i868.rpm rpm -i ftp://ftp.redhat.com/pub/redhat/RPMS/package-1.0-1.i386.rpm rpm -i http://oss.oracle.com/projects/firewire/dist/files/kernel-2.4.20-18.10.1.i686.rpm

DataStage Unix processes

Following are unix process list for a healthy DS system (Engine + Services + Metadata repository)

Linux script to collect system statistics and send to your email

This script can use to daily send the system statistics server. It will also reformat the output to replace tabs with 5 spaces so it will display nicely on your email client. 

Commands to delete files in &PH& directories in IBM InfoSphere DataStage

How should we manage cleaning up the &PH& directories for my DataStage projects? Can the process be automated? Files in the  &PH&  directories under DataStage project directories store runtime information when jobs are run and need to be cleared out periodically.  

How to install Linux / UNIX *.tar.gz tarball files

tar.gz also known as tarball, an archive format for electronic data and software. Most Linux tarball contains a source code for software. If you are new to Linux I recommend using apt-get, rpm and yum command to install all binary packages. Tarballs are a group of files in one file. Tarball files have the extension .tar.gz, .tgz or .tar.bz2. Most open source software use tarballs to distribute programs/source codes.

Hostname Change i n Linux

Hostname Change There are 4 steps in a hostname change, luckily all the steps are easy. Sysconfig/Network Open the  /etc/sysconfig/network  file with your favorite text editor. Modify the  HOSTNAME=  value to match your FQDN host name. Hosts File Change the host that is associated to your main IPaddress for your server, this is for internal networking (found at /etc/hosts):

Setting up "CRON" Jobs in Linux

If you want to use the emacs editor for editing cron jobs, then, set the following in your "/home/user/.bash_profile" EDITOR=emacs Then, to edit cron jobs $ crontab -e You may want to put in the following header

Something about CRON in Linux

cron is a Nix utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs in Nix.  Crontab (CRON TABle) is a file which contains the schedule of cron entries to be run and at specified times. This document covers following aspects of Unix cron jobs  Crontab Restrictions  Crontab Commands  Crontab file – syntax  Crontab Example  Crontab Environment  Disable Email  Generate log file for crontab activity

Starting IBM Information Server and WebSphere Application services

To start IBM Information Server and WebSphere Application services:    1. Start WebSphere Application Server. Windows Click  All Programs  >  IBM WebSphere  >  Application Server [v6/v7/..]  >  Profiles >  default  >  Start the server . If you installed IBM Information Server in a different WebSphere Application Server profile, you must select the correct profile. Your path will vary if you installed IBM Information Server in a different location or used a different profile.   C:\IBM\WebSphere\AppServer\bin\profiles\default\bin\startServer.bat server1 -username <WAS_Username> -password <WAS_Password>

Shutting down the IBM Information Server[DataStage] and WebSphere Application services WAS

To shut down the IBM Information Server services and WebSphere Application Server services: 1.        Stop the following services:   ASB  Agent, Logging Agent, DataStage  Telnet Service, DSRPC Server, and DataStage Engine Resource Service .  The engine services will only be present if you installed both the services tier and the engine tier on the same machine. Windows To stop the services: a.        Log in with a user that has local administrator privileges.       b.        Stop these services in the order that they appear in the table. Note:  On Windows, you can use the Services Administrative Tool or the  sc  command line tool to stop services.  Order that services must be stopped before backing up IBM Information Server Service Full Name Service Short Name Process Name DSRPC Service dsrpc dsrpcd...

Create Users and Groups for IBM Information Server DataStage

To create users and groups for IBM Information Server: 1.        On the computer where you installed the clients, log in to the Web console, which is on the computer where the domain is installed. o          Windows: Click  Start  >  IBM Information Server  >  IBM Information Server Web Console  and log in to the console with your suite administrator credentials. o          Linux or UNIX:  Open Microsoft Internet Explorer on a Windows computer and go to the URL of the Web console. Log in to the Web console with your suite administrator credentials.  The URL takes the form  http:// host_server : port .  host_server  is the name or IP address of the computer where the domain is installed.  port  is the port number for the Web console. The default port number is 9080. 2.      ...

List of Service Agents in DataStage

1) ASB Agent ASB agent is a Java background process run on the server or on the computer where the DataStage engine and client tiers are installed. When a service that runs on the Service tier receives a service request that needs processing on Information Server components then this agent receives this request and pass it on. In Linux, it is running as daemons that are named ASBAgent. In Windows, running as services that are named ASBAgent. ASB agents include: Connector access services agent Conveys service requests between the ODBC driver components on the engine tier and the connector access services component on the services tier. InfoSphere Information Analyzer  agent Conveys service requests between the engine components on the engine tier and the  InfoSphere Information Analyzer  services component on the services tier. InfoSphere Information Services Director  agent Conveys service requests between the engine components on the engin...