Saturday, September 6, 2008

CSA: HP-UX 11i v3 Certification

My last plan exam for 2008.
HP-UX 11i v3 System AdministrationExam #HP0-A01
I have no confidence on this exam.

Recommneded courses from HP;
UNIX Fundamentals#51434S - Instructor-led (5 days)
-and-
HP-UX system and setwork administration I#H3064S - Instructor-led (5 days)
-and-
HP-UX system and network administration II#H3065S - Instructor-led (5 days)
-or-
HP-UX for experienced UNIX system administrators#H5875S - Instructor-led (5 days)

For information. CSA - HP-UX 11i v3, http://www.hp.com/certification/credential/index.html?credcode=c107

Target Date for exam: 21 October 2008

Wednesday, August 13, 2008

Solaris version check! 32-bit or 64-bit?

To check Solaris is x86-64, x86, sparc9, sparc64, execute the following commands;

isainfo
isainfo -v
isainfo -kv

Examples;
myhost1# isainfo -kv
64-bit sparcv9 kernel modules

# isainfo
amd64 i386

# isainfo -kv
64-bit amd64 kernel modules

Thursday, July 10, 2008

SCNA 10 - CX310-302 - 10 July 2008 : done

Finally, i passed my CX310-302 with 93/100.
i am entitled for HP iPAQ 612. hurray...!

Wednesday, July 9, 2008

SCNA 10 - CX310-302 - 10 July 2008

I reschedule my exam to Thurday, 10 July. Wish me Good luck and get score .. >92% ..
Tired to study already ..

CX310-200, Solaris 10 Admin I: 91%
CX310-202, Solaris 10 Admin II: 92%
CX310-302, Solaris 10 Network: ???

Thursday, July 3, 2008

ifconfig & route for Linux & Solaris

Linux;
# Set the ip & bring up the interface
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up

# Add/Del default route
route add default gw 192.168.0.1
route del default gw 192.168.0.1
OR
route add default gw 192.168.1.1 eth0

# Add route to network
route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0
route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0

# Add route to host
route add -host 10.10.10.45 gw 192.168.0.1

===============

Solaris;
# Enable network interface
ifconfig vmxnet0 plumb up

# Set the ip & bring up the interface
ifconfig hme0 192.168.1.13 netmask 255.255.255.0 up

# + sign will refer to default network configuration file
ifconfig hme0 192.168.1.13 netmask + broadcast + up

ifconfig hme0 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255 up


# Add default route
route add default 192.168.1.1

# Add static route to network
route add net 192.168.68.0 192.168.0.1 -netmask 255.255.255.0
# 192.168.0.1 is gw

# Add static route to host
route add host 192.168.1.2 192.168.5.1
# 192.168.5.1 is gw

# Add the persistent route,
# The static routes will be stored in file /etc/inet/static_routes.
route -p add 192.168.15.0 192.168.15.1

HP-UX
# Set IP and bring up the NIC
ifconfig lan0 16.118.112.135 netmask 255.255.255.0 up

# Bring down NIC
ifconfig lan0 down

> Network configuration file;
/etc/rc.config.d/netconf

Wednesday, June 25, 2008

Solaris NIC

Installing an Ethernet Card

To install an additional Ethernet interface (let's call it le1):

1) Put the card in and from the ok> prompt do a boot -r

a) create /etc/hostname.le1 that contains the host name

b) make the interface known to the system:

ifconfig le1 plumb

3) configure the interface:

ifconfig le1 up netmask + broadcast +

4) test the connection


Sun Network Interface Duplex
Checking and setting the link parameters of Sun hme network interfaces requires the use of the ndd command. The procedure for qfe interfaces is similar, except that the instance must be specified. For example, the Sun QuadFast Ethernet card would have instances 0-3: qfe0, qfe1, qfe2, qfe3.

Checking the current running speed(s):

Choose the interface instance:

# ndd -set /dev/qfe instance 0

That selects the first instance: qfe0. Note that the default instance is 0.

Check the status, speed & mode:

# ndd -get /dev/qfe link_status
1 = up
0 = down
# ndd -get /dev/qfe link_speed
1 = 100 Mb
0 = 10 Mb
# ndd -get /dev/qfe link_mode
1 = Full Duplex (FDX)
0 = Half Duplex (HDX)

Hot to configure individual interfaces via ndd commands:

These commands are usually placed in a startup script such as /etc/rc2.d/S99qfe.

Hot to force 100Mbs Full Duplex (FDX) on qfe1:

ndd -set /dev/qfe instance 1
ndd -set /dev/qfe adv_100T4_cap 0
ndd -set /dev/qfe adv_100fdx_cap 1
ndd -set /dev/qfe adv_100hdx_cap 0
ndd -set /dev/qfe adv_10fdx_cap 0
ndd -set /dev/qfe adv_10hdx_cap 0
ndd -set /dev/qfe adv_autoneg_cap 0

It is important to run these commands in the above order. The link will be renegotiated when the final command is run.

Tuesday, June 24, 2008

Solaris Zone Config File

Solaris Zone config file; then execute “zonecfg -z zoneA -f /var/tmp/zoneA_config” to configure the non-global zone.

To get the config from existing zone;
# zoneadm -z zoneB halt
# zonecfg -z zoneB export > /var/tmp/zoneB_config
# zoneadm -z zoneB boot

Zone Config file
# cat zoneA_config
create -b
set zonepath=/export/home/zones/zoneA
set autoboot=true
set pool=cwp1-pool
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt/zoneshare
end
add fs
set dir=/opt/precom
set special=/opt/cwpqv04
set type=lofs
add options rw
add options nodevices
end
add net
set address=147.243.251.57
set physical=e1000g0
end
add net
set address=10.188.149.57
set physical=e1000g1
end
add net
set address=10.190.149.57
set physical=e1000g3
end
add attr
set name=comment
set type=string
set value="my server"
end