Showing posts from 2012

OPatch failed with error code = 41

Trying to pacth Oracle 11g on Windows.

Log file location: x:\oracle\xxx\11203\cfgtoollogs\opatch\14223718_Sep_27_2012_1

Recommended actions: OPatch needs to modify files which are being used by some p

OPatch failed with error code = 41

Found this help:
Its a know bug and the fix is renaming belo files temporarily.


Just rename it to anything, and run opatch apply again. It will then succeed.


Solaris 10 SUnOS 5.10 not detect Intel 82562EZ NIC on x86 System

So we installed Solaris 10 on a crappy Dell Optiplex 170L
It does not detect the integrated Ethernet NIC network card

Googled the spec and believe its the Intel 82562EZ Ethernet

Googled again and found this site which really helped.

below mirror for me self:

Solaris 10 – x86 – Getting intel 82562EZ (Asus P5GD1) working (Solaris Driver) I added
iprb "8086,1050"
iprb "8086,1064"
to /etc/driver_aliases
and then
touch /etc/dhcp.iprb0
touch /etc/hostname.iprb0
followed by

shutdown -i6 -g0 -y
And I was able to get the Intel 10/100 VE Network Interface (82652 EZ) functioning as it should under solaris. The driver is included with Solaris 10 for x86 but you need to do the above to get the driver working with this board.

BUT! mine was to change the 8086 part to pci8086 to become somewhat:

iprb "pci8086,1050"
iprb "pci8086,1064"

and everything works OK after wards.


SAP: Manual Transports between System/Clients

it so happen that RFC connection became a problematic issue i on of my clients' landscape.
But there was few urgent transport requests.
RFC problem means cannot retrieve/import/export files in STMS.

Temporary workaround? Manually copy over file and add transport request in target system.

Example scenario:
- from DEV to PRD
- TR number is 900277

1. In DEV, locate your /usr/sap/trans directory.
2. there should be many folders, but we are concern with 'data' and 'cofiles'
3. format for data file and cofiles file is this:

Data file: R.  for example: R900277.DEV
Cofiles file: K.  for example: K900277.DEV

4. Copy from DEV's data/R900277.DEV and cofiles/K900277.DEV into PRD's data/ and cofiles/ folder respectively.
5. Open SAPGui, and go to tcode STMS
6. CLick on the Transport icon (the lorry)
7. Click on the PRD system
8. In Menu Bar, Extras > Other Requests > Add as below screenshot:

9. Enter your request number as following format: K, in our case: DEVK9002…

WSB: Full backup vs. System State backup

WSB or Windows Server Backup utility gives you a quite basic and direct backup utility.
You can have it scheduled and dump it on a saperate net share or however settings you may have in your environemtn.

Theres Full Backup and System State Backup?
What are them? Google.

Whats the difference? Well, from this ref link i basically confirms my understanding which is Full Backup includes a System State Backup.

Thats all. Just fo my own note.

- System State Backup restoration



Full and System State Active Directory Server Backup through Command Line

- AD server physical disk crashed.
- Bpught a new replacement HDD and restored from a Acronis backup image (.tib).
- Restored AD boots up but seem to fail when loading services.
- To no avail, planning to do a Windows Server Backup (full) from a redundant server and restore from Directory Services Recovery Mode (DSRM) - advance boot options.
- a side note: Somehow, booting into DSRM works.


- i choose CLi coz i think its less complicated.
- i set up a shared folder on diff server, and planned to write it to the shared folder.
- syntax used:
wbadmin start backup -include:c: -backuptarget:\\\WinBackup_1\ -quiet
- currently in progress:

And for the sake of it, i have a system state backup too:
wbadmin start systemstatebackup -backuptarget:\\vantage02\Vantage\WinBackup_1\  -quiet

Ouh! a System State Backup can't be saved on a Shared Folder.. okayguy.jpg So simple, just save it locally and export ti late…

The following error occurred attempting to join the domain: An error with no description has occurred

A server in our network seems not yet in our domain, so i am trying to register/insert it into our domain.
But following error occurred:

The following error occurred attempting to join the domain:
An error with no description has occurred.

Not sure why. Didn't google yet ho. So i went RDP into my Domain Controller.
Discovered the Computer Name was Disabled.


i don't know. So, i enabled it back. Click on Computers on the left pane. Then Right Click on the Computer Name, and Enable Object.

however, that DID NOT solve my issue. Hmm.. Google it is.
i gogled and stumnble upon this:

Followed that conversation betweet IT ete and Customer and realize the keyword: DNS!! :D

Did two things:

1) set the Domain Controller IP as the DNS server (Primary)
2) add the Domain Controller's IP and hostname into the server's c:\windows\system32\drivers\etc\hosts file. but i …

Could not start transport control program TP

The case:
i was about to do a Transport. and in SE09, trying to releasing the TR, the following error occurred:

"Could not start transport control program TP"

Straight away, went to sm21:

And in st22:

A quick googling is in order!

And according to this site:
It recommends me to do a connection test RFC..

And i did.. and it failed!

And this is the moment when i realize this:

- few days back i was trying to make my DEV server to have internet connection.
- after some time i discovered it does not resolve any domains, thus logical thing to do is assigned it with a local DNS name server, which i did.
- that apparently caused the issue. Darn it!

So resolution? Simple, just remove back the name servers and everything back to normal. The things is, all in this environment uses /etc/hosts statically defining ech server involve. A name server really confuses them. Haha

Ok. #LessonLearnt

- Adam

SAP: User Type 'CF' Does Not Exist in Price List during USMM

We had a case where we had to do a User Measurement Exefcise. Required by SAP. In our contract stated user type CF - SAP Business Expert User but in USMM that User Type for Price List "SAP Applications" does not seem to exists.

Resolution:  -> ‘Named User Measurement’ -> ‘Measurement Program Tips & Tricks’ -> then click the link based on your SAP_BASIS RELEASE
gamba dlm email
In my case, its SAP_BASIS 7.xx. So proceed as the instruction:
1 - Log on to the target system 2 - Open the ABAP editor, transaction SE38 3 - Create a new report, for example, ZTUTYP_UPD

4 - Choose attribute "Type" as "Executable program"

5 - Save your entries as "Local object"

6 - Load the report text from the download to the text editor (notepad) and save the text on the clipboard 7 - Return to the ABAP editor and insert the text from the clipboard

8 - Save, activate, and run the report

Now go to USMM, choose the corr…

AppleSingle and AppleDouble magic number signature

Below magic number (the four 4-bytes) in header for AppleDouble and AppleSingle file format..

The magic signature of AppleSingle files is 0x00051600, while it is 0x00051607 for AppleDouble files



Second Time

Freeze agaiN! :D


Service does not support chkconfig

I wanted to add a script to run automatically on startup/reboot.
chkconfig it is.

my original script:

#!/bin/bashecho "ayam" > /tmp/test.txt

But when adding to chkconfig, using chkconfig --add
received the error:

Service does not support chkconfig.

Googling, found this two URLS:

But the 2nd link seems not that proper. We still need the "#" before chkconfig word. My final script was as below:

#!/bin/bash # chkconfig: 2345 95 20 # description: Description of the script # processname: Echoing ayam. echo "ayam" > /tmp/test.txt

Now works like a charm.


Enable/Disable ping replies although Windows firewall is up

How to still alow ping reply although you already enable Widows Firewall

enable ping replies: netsh firewall set icmpsetting 8
disable ping replies: netsh firewall set icmpsetting 8 disable

Ripped off from some site.


FUDCon APAC: KL 2012 : Pre-registration & funding request is now open

FUDCon APAC: KL 2012 : Pre-registration & funding request is now open!!

Location: UCTI-APIIT, Bukit Jalil, Kuala Lumpur
Date: 18-20th May 2012

FUDCon is the Fedora Users and Developers Conference, a major free software event held in various regions around the world, usually annually per region by the Fedora Project, a GNU/Linux distribution community.

FUDCon is a combination of sessions, talks, workshops, and hackfests in which  contributors work on specific initiatives. Topics include infrastructure, feature development, community building, general management and governance, marketing, testing and QA, packaging, etc.

This year, Malaysia gets the opportunity to host this premier event for the Asia Pacific region and we are inviting everyone, developers and users alike,to participate in this event which will be a span of 3 days, at The AsiaPacific University College of Technology and Innovation (UCTI a.k.a APIIT), Bukit J…

Testing SAP conn using NIPING with SAPRouter

To test NIPING direct simply something like:

niping.exe -c -H

In case to test with SAPRouter, its soemthing like:

niping.exe -c -H /H/

A reference from here :


Windows 2003 W2k3 Getting Current MTU Size

I am trying to get the current running MTU sieze configured on a windows 2003 (W2K3) server. Got a ref from here :

But during running the netsh command, got some error saying 'command not found'. It turns out the real command for ipv4 is not ipv4 but just 'ip' and ithe one i'm trying to use is not 'subinterfaces' but just 'interface'. SO my final command that wokred as below:

netsh interface ip show interface
And the result shown is as below, and you can get hell lot of details. :)


SAP check SAPRouter validity and expiry

You can check SAPRouter expiry or validity period by below:

It would look like below:

p/s: found this because we hit an error "router permission denied"


Windows for loop - add multiple ports to exception using netsh.exe

Adding multiple ports to exception list on windows firewall
using netsh.exe comand line utility.

using for loop in windows batch.

for %i in (3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3298 3299 3600 3601) do netsh firewall add portopening TCP %i "SAP Router Port %i - Added by Adam 27-Jan-2012"

or for a port range without skipping:

for /L %i in (9000-9600) do echo %i


Linux Hardening

A rip from two sites i guess..

If you run your own Linux server here are some tips on server hardening, liberally stolen from the CFS security GUI script for cPanel/WHM, that I have become only too familiar with since yesterday:

On your firewall (you do have one don’t you?) check the incoming MySQL port and if 3306 is open, close it. If this port is left open it can pose both a security and server abuse threat since not only can hackers attempt to break into MySQL, any user can host their SQL database on your server and access it from another host and so (ab)use your server resources

Check /tmp permissions. /tmp should be chmod 1777

Check /tmp ownership /tmp should be owned by root:root

Check /etc/cron.daily/logrotate for /tmp noexec workaround. Due to a bug in logrotate if /tmp is mounted with the noexec option, you need to have logrotate use a different temporary directory. If you don…

Perl: Removing duplicated entry between two files

A rip of from a ripp one liner Perl solution.

I have two files, with more or less duplicated entries in both. SOltuion:

cat textfile | perl -ne '$H{$_}++ or print'Source:

Installing NitDroid on N900

Well, Atiezul gotten herself a N900, but she wanted WhatsApp anyways, whcih unfortunately not available for N900. So? NitDroi d it is! :D

I was lucky enuf to penetrate this virgin N900 of gers, Phun. :D

Action logs:

1) I have made a 5GB partition on /dev/mmcblk1p1
2) Format it to ext3

Nokia-N900:~# mkfs.ext3 /dev/mmcblk1p1 mke2fs 1.41.3.maemo0 (12-Oct-2008) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 320000 inodes, 1279999 blocks 63999 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1312817152 40 block groups 32768 blocks per group, 32768 fragments per group 8000 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done                           Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 22 mounts or…

Partitioning N900's memory card

So i was preparing Atiezul's MicroSD card for instaling NitDroid on her N900.
Just some reminder for me self on partitioning N900 memory card.

Hope this help someone.

I had gotten meself a 8GB MicroSD. The settings i wanted was 5GB Linux parttiton (ext3) and balance of 3GB Fat (vfat?). Below the things i done:

Nokia-N900:~# umount /media/mmc1 Nokia-N900:~# sfdisk -uM /dev/mmcblk1 << EOF > ,5000,L > ,2647,D > ,,L > ,, > EOF Checking that no-one is using this disk right now ... OK Disk /dev/mmcblk1: 244704 cylinders, 4 heads, 16 sectors/track Old situation: Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0    Device Boot Start   End    MiB    #blocks   Id  System /dev/mmcblk1p1         0+  4999   5000-   5119999+   c  W95 FAT32 (LBA) /dev/mmcblk1p2      5000   7646   2647    2710528    d  Unknown /dev/mmcblk1p3         0      -      0          0   83  Linux /dev/mmcblk1p4         0      -      0          0    0  Empty …