Wednesday, May 20, 2009

Test ftp data transfer rate without actual transfererring

ftp targethost
username/passwd...
bin
hash
put "dd if=/dev/zero bs=32k count=1000" /dev/null


: ciao..

Sunday, May 17, 2009

Employers still grapple over IT pay, skills

Despite recent changes in the global economy, the cost of hiring quality IT staff remains a challenge for employers, say human resource experts.

According to Sommer Owens, manager of IT contract division at Robert Walters Hong Kong, IT salaries in the Chinese territory have been holding steady, but some employees are prepared to lower their pay expectations.

"Candidates who have been caught up in corporate restructuring are willing to accept a lower salary than they were previously getting to stay competitive in...[the] market," Owens said in an e-mail interview.

However, E. Balaji, CEO of India-based recruitment agency Ma Foi Management Consultants, noted that while it is true the bargaining power has swung in favor of employers, the expanding workers pool and lowering salaries relate more to generic IT skills.

A year ago, Balaji explained in an e-mail, most prospective candidates had more than one job offer and candidates were aggressively negotiating salaries and benefits, thereby pushing up the cost of quality talent. "With the current slowdown, this has subsided," he said, adding that the economic downturn has provided cash-rich companies with the opportunity to recruit quality talent at optimal cost.

"[However], for specific levels of expertise and niche skills, potential candidates in a company are generally 'ring-fenced'. Hopes of attracting them at less attractive terms may not materialize," he noted.

Yeo Gek Cheng, director of IT and telecommunications at Hudson Singapore, said the perception that employers now have a wider pool of candidates from which to choose "cannot be further from the truth", particularly for mid- to senior hires who are strong in their field.

"Those who are gainfully employed are unwilling to move due to the perceived risk of changing jobs now," Yeo told ZDNet Asia in an e-mail, adding that employees' annual salary increments have also remained unchanged.

While businesses still face a challenge recruiting candidates, this is less of an issue now as there are fewer job offers available to IT professionals, she said. Yeo noted that the lack of candidates in Asia cannot be resolved simply by an economic downturn. "What is a tight labor pool remains tight," she added.

Agreeing, Owens said some IT skills are still in short supply.

by Sol E. Solomon, ZDNet Asia

read more -->http://www.zdnetasia.com/news/business/0,39044229,62054088,00.htm

Terminate a socket without terminating a process:HP-UX

PROBLEM

Terminate a socket without terminating a process

RESOLUTION

Refer to man page on ndd:

#man 1m ndd

ndd -h supported (will display supported ndd parameters)
ndd -h unsupported (will display unsupported ndd parameters)

Here is an example using the tcp_discon parameter:

#ndd -get /dev/tcp tcp_discon number

NOTE: This number is obtained by running the following command:

#ndd -get /dev/tcp tcp_status

The tcp_status will give you a long list of connected sockets. Find the one
that needs to be killed (use netstat -a (if you have the name of the
host, use the -n option if you have the IP of the host you are looking
for) and then compare to ouput of the -get command below to find the
hostname or the ip). Then use the number on the far left of the output
(LEADING ZEROS must be removed from the number) and prepend it with a 0x to
show its hex.

Example of commands:

* #ndd -get /dev/tcp tcp_status
* #ndd -set /dev/tcp tcp_discon 0x010203404

If using the tcp_discon_by_addr variable convert the ip address into the
hexadecimal representation.

#ndd -set /dev/tcp tcp_discon_by_addr [hex number]

Where '[hex number]' is the one that needs to be killed.

:ciao..

Wednesday, May 6, 2009

Crontab : HP-UX

Many times admins forget the field order of the crontab file
and alway reference the man pages over-and-over.

Make your life easy. Just put the field definitions in your crontab file
and comment (#) the lines out so the crontab file ignores it.

# minute (0-59),
# | hour (0-23),
# | | day of the month (1-31),
# | | | month of the year (1-12),
# | | | | day of the week (0-6 with 0=Sunday).
# | | | | | commands
3 2 * * 0,6 /some/command/to/run
3 2 * * 1-5 /another/command/to/run

export EDITOR=vi ;to specify a editor to open crontab file.

crontab -e Edit your crontab file, or create one if it doesn't already exist.
crontab -l Display your crontab file.
crontab -r Remove your crontab file.
crontab -v Display the last time you edited your crontab file. (This option is only available on a few systems.)


Here are some examples.

0 0 * * * -- midnight every day
0 0 * * 1-5 -- midnight every weekday
0 0 1,15 * * -- midnight on 1st and 15th of month
0 0 1 * 5 -- midnight on 1st of month and every Friday

Crontab example:

A line in crontab file like below removes the tmp files from /home/someuser/tmp each day at 6:30 PM.

30 18 * * * rm /home/someuser/tmp/*


Cheers !!!

Sunday, May 3, 2009

Pacquiao Blows Out Hatton in Two


Sun, 03 May 2009...It was two rounds of brutal action and a two round blowout for Filipino sensation Manny “The Pacman” Pacquiao as he walked through, around, and all over Ricky “The Hitman” Hatton (45-2 with 32 KOs).


Saturday, May 2, 2009

HP-UX How can I disable non-root logins?

Add the following to /etc/profile, then 'touch /etc/nologin'; this will disable all new logins, except by root:

uid=`id -u`
if [ -f /etc/nologin -a $uid -ne 0 ]; then
echo "Sorry, no logins allowed; try later!"
sleep 5
exit 0
fi

::gudluck!

Friday, May 1, 2009

Root Lost Password : HP-UX... ;)

... but... what if your system is trusted mode???
..you can use some steps of this procedure if you want re-stablish a password than can not be set by cyclic problems...

The steps to reactivate the root account:
1. Boot the system in to single user mode.
2. Mount /usr file systems.# mount /usr
Note: The file system might need file system check (fsck) before mounting.
3. Systems that are not using Trusted System security skip to step #4.For Trusted Systems (presence of a /tcb directory), follow these additionalsteps:
a) Use the following command to reactivate the 'root' account:# /usr/lbin/modprpw -k root
b) Use the 'modprpw' command to null the password, so that the passwd commanddoes not prompt for the old password.
10.x# /usr/lbin/modprpw -w "" root
11.x# /usr/sam/lbin/usermod.sam -F -p "" root
NOTE: To untrust the system, use: tsconvert -r
4. Change the root account password.# passwd root
5. Boot the system in to multi user mode.

fyi la....