Monday, April 21, 2008

Remove Unix User Expiry Date

To remove expiry date of a user's password the following command can be used:
usermod -e "" username
The command will change shadow file, not manually. The value of parameter -e can be a date to set a new expiry date.

Sunday, April 13, 2008

.rhosts and remote login

To allow a username can be used for remote login and tools like rcp, in the home directory of that user should add a file .rhosts and add the trusted host name or ip in that. To allow all host can use + char.

A point should be considered is that the permissions of the owner of this file should be set. (chmod [700, 600,500,400] .rhosts).
-rwx------ 1 user1 other 20 Apr 13 17:39 .rhosts

Another file that is used by system to remote access after checking of .rhosts is /etc/hosts.equiv. Each recored line in this file contain hostname [username], means which user from which machine can access without password to this machine. Same as previous file + char can be used to indicate all host or/and all users.

Attend to this point that user is local user that exist in /etc/passwd of
server machine.

Saturday, April 12, 2008

Unix Change Timezone & Cron Job

To change timzone in unix should set and export TZ variable
TZ=IRST-4:30
format of this variable value depends on platform.

The file /etc/TIMEZONE should be chnaged to reflex settings after reboot.

after changing the timezone cron task should be restarted to apply new timezone information,
/etc/init.d/cron stop
/etc/init.d/cron start

or kill /usr/bin/cron task and start it again.

Tuesday, April 8, 2008

Internal Causes of Call release in Siemens IN 7b

1 = unallocated (unassigned) number
2 = no route to specified transit network
3 = no route to destination
4 = send special information tone
5 = misdialled trunk prefix
6 = TCAP-Cause: missing customer record
16 = normal call clearing
17 = user busy
18 = no user responding
19 = no answer from user (user alerted)
21 = call rejected
22 = number changed
27 = destination out of order
28 = address incomplete
29 = facility rejected
31 = normal – unspecified
34 = no circuit available
38 = network out of order
41 = temporary failure
42 = switching equipment congestion
44 = requested channel not available
47 = resource unavailable – unspecified
50 = requested facility not subscribed

55 = incoming calls barred within CUG
57 = bearer capability not authorized
58 = bearer capability not presently available
63 = service/option not available – unspecified
65 = bearer capability not implemented
69 = requested facility not implemented
70 = only restricted information bearer capability is available
79 = service or option not implemented – unspecified
87 = called user not member of CUG
88 = incompatible destination
91 = invalid transit network selection
95 = invalid message, unspecified
97 = message type non-existent or not implemented
99 = par. non-existent or not implemented – discarded
103 = par. non-existent or not implemented – passed on
111 = protocol error, unspecified
127 = interworking, unspecified

Sunday, April 6, 2008

Swap VoMS Application or Database Cluster

If we want to switch Siemens VoMSXpress application from one machine to another it's use scswitch command. Be informed this configuration uses Sun Cluster technology, in other technology such as Veritas it should be different.

1- chris application should be stopped and when starting the framework should run as last application
(/opt/xpress/SxFramework/scripts/Sx.sh SxFrameWork stop|start)

2- check sun cluster status
scstat
The status of cluster, like which app or db on which cluster, online or offline

Node name Status
--------- ------
Cluster node: voms1 Online
Cluster node: voms2 Online

3- Stop appropriate resource group
scswitch -F -g [rg_sxfwapp|rg_sxfwdb] (-F make offline)

4- Change primary node
scswitch -z -D [appvol|dbvol] -h [voms2|voms1] (-z change primary node)

5- Make resource online
scswitch -Z -g [rg_sxfwapp|rg_sxfwdb] (-Z make resources online)

6- Start chris application as mentioned above

Thursday, April 3, 2008

Sending Double Message in Dialogic Sigtran

The problem of sending 2 or more message once you send 1 message from top of stack pretending to sctp. In new version of host software package(5.05) a new configuration command -CNTOS- is supported to setup timing for sctp and m2pa.

To prevent sending more than one same message the retransmission configuration of both side must be same. In dialogic side it's done by CNTOS command and RMIN(retransmission min) and RMAX(retransmission max) parameters. In cisco itp side can be seen by sh cs7 m3ua command.

Windows XP Timezone and Daylight Saving

Some useful information and a good tool to configure proper daylight saving configuration for windows:

http://support.microsoft.com/kb/914387

TZEdit can edit time zone information.