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 :>