Friday, September 21, 2007

Display Slot information on pSeries

I used to login to HMC and see the slot informations. Just found that there is an easier way:

To list all the PCI hot plug slots, enter:

lsslot -c pci

The system displays a message similar to the following:

Slot name Description Device(s) Connected
U0.4-P1-I1 PCI 64 bit, 33MHz, 3.3 volt slot empty
U0.4-P1-I2 PCI 64 bit, 33MHz, 3.3 volt slot scsi0
U0.4-P1-I3 PCI 64 bit, 33MHz, 3.3 volt slot unknown
U0.4-P1-I5 PCI 64 bit, 33MHz, 3.3 volt slot empty

Also can use -a and -o for available and occupied resources

Also, can use "lsslot -c slot" to display virtual-slot as well

Ref: http://www.ncsa.uiuc.edu/UserInfo/Resources/Hardware/IBMp690/IBM/usr/share/man/info/en_US/a_doc_lib/cmds/aixcmds3/lsslot.htm

Friday, September 14, 2007

HMC with command line

HMC webconsole is a good tool for doing LPAR administration, but it would be better if I can manage some jobs in command level:

Get the system name
lssyscfg -r sys -F name

Get the LPAR names, id and state
lssyscfg -m -r lpar -F name,lpar_id,state

Details of a LPAR
lssyscfg -m -r prof --filter "lpar_ids=2"

List resources
lshwres -r mem -m --level sys

List LPAR resources location
lshwres -m -r io --rsubtype slot -F description,unit_phys_loc,bus_id,phys_loc,lpar_id (--filter "lpar_ids=x")

Ref: http://www-941.ibm.com/collaboration/wiki/display/LinuxP/HMC+command+line

Sunday, September 09, 2007

Cisco VPN client

vpnc is Cisco VPN client for Linux. I always use it to connect to my company at home. However, I found that I couldn't connect on one day. After checking, it was because I have updated the Ubuntu vpnc package. The new config file need to add a "NAT Traversal Mode cisco-udp":

...
IPSec gateway
IPSec ID
IPSec secret
Xauth username
Xauth password

NAT Traversal Mode cisco-udp
...

After added the list line, everything is okay again :>

Tuesday, August 07, 2007

How to setup a Wiki in 5 seconds

Yes, it just takes 5 seconds to the following site, download the file and open it with your favorite browser, and then you will have your own wiki. The syntax is not complex but I have to admit that its function is not very cool. Nevertheless, it is good enough, especially you put it in a usb trumb drive and have a 'portable wiki'

Of course, if you are building a large wiki, some other power wikis such as MoinMoin and TWiki should be consider. Personally I like MoinMoin as its syntax is easy but powerful.

Ref: http://stickwiki.sourceforge.net/

Monday, July 09, 2007

AOL Active Virus Shield Save Me!

I used to think I am a 'careful' person. I don't install untrusted software, make my Windows as 'clean' as possible. However, my notebook still got infected.

Actually I have installed the F-Secure anti virus, but obviously that it failed to scan the virus. As a result, it always prompted out a "service.exe error 1073740972" and ask to restart in 60 seconds. I am so frustrated!. While I search the web for solution, a page mentions that try to use AOL Active Virus in safe mode. Okay, so I did have a try...

AOL Active Virus Shield use Kaspersky engine. It is totally free, and the most important thing is that it does help me. After a full scan, I found that my notebook was infected with 1 virus and 2 trojans(how come the F-Secure doesn't help?!). It was PECompact, Trojan.Win32.Dialer.qn and Trojan-Proxy.Win32.Agent.mx. I deleted the files without hesitation. Now my notebook runs smoothly and no more services.exe error comes out. Thanks AOL Anti Virus Shield!!

Finally, just let you know that apart from AOL Anti Virus Shield, there are still free anti virus software, such as AVG and ClamAV (Windows version). Just put the name and you should find the things.