Archive

Posts Tagged ‘network’

solaris: adding openssh to core solaris installation

May 4th, 2009 bayu No comments

Have you ever confused about how to install a minimal-but-enough installation of solaris OS? Well I had.

It was some time ago I wanted to install Sun Solaris without graphical environment, but I still want some services like ssh and ftp server, and the powerful shell bash. You can always customize the software installation at the installation process, but I found it a bit frustating, because I have to examine the package one-by-one. On the other hand, installing a software by hand from the DVD might takes time to look for the right software since the filename is shortened.

Read more…

Installing MySQL replication in solaris

May 3rd, 2009 bayu No comments

Replication is one of the MySQL technology to replicate the whole database, whether it will be used for load balancing, data backup, or High Availability (need 3rd party software or script to switch the connection).

This post sill show you a step-by-step installation of MySQL in Sun Solaris. I’m using MySQL 5.0.51a in this post, but it is applicable to other versions. First, download the MySQL from http://dev.mysql.com/downloads or your favorite mirror closest to you.

Read more…

Categories: solaris Tags: , , , , , ,

Solaris: disabling DHCP

May 3rd, 2009 bayu No comments

This is how to stop the machine requesting IP address to the DHCP server.

  1. Delete /etc/dhcp.[interface-name] file
  2. Put the hostname inside /etc/hostname.[interface=name]
  3. Put the static IP and hostname inside /etc/hosts
  4. Restart the system
Categories: solaris Tags: , , , ,

solaris: changing hostname

May 3rd, 2009 bayu No comments

I thought changing the machine’s hostname is as simple as I usually did in linux, it turns out not that easy. In solaris, I have to modify the hostname in at least 3 files:

  • /etc/hostname.[interface name]
  • /etc/hosts
  • /etc/nodename

Even more for an older solaris versions, I have to modify these also:

  • /etc/net/ticlts/hosts
  • /etc/net/ticots/hosts
  • /etc/net/ticotsord/hosts
  • /etc/inet/ipnodes

phuuuh…

Categories: solaris Tags: , , , ,

Configure Vlan & Vlan Trunking/tagging in GbE2c

May 3rd, 2009 bayu 1 comment

GbE2c is an Ethernet swich in C-class HP Blade. It’s quite confusing when I was trying to understand how to configure the switch, and finding documents about this switch is not as easy as looking for cisco switch documents.

The difference of “trunking” term in cisco and GbE2c has just make it worse, because it turns out “trunking” is called “tagging” in GbE2c, and “trunking” in GbE2C is the same as Cisco’s Etherchannel or Portchannel.

Configuring GbE2c from the command line interface can be done by using Alteon OS (OS) or ISCLI. AOS is a super simple CLI, and ISCLI is a CLI that’s imitates Cisco IOS. If you familiar with cisco IOS, most likely you will choose ISCLI, don’t you? You’re wrong.  ISCLI is a very bad imitation of Cisco IOS!

What will be explained here is how to configure vlan tagging in GbE2c. Vlan tagging is using the IEEE 802.1q standard -called dot1Q-, so it will communicate with the same protocol with cisco ISL trunking dot1Q.

The following are the ports mapping on GbE2C switches :

1-16 : Connected to NIC embedded blade
17,18 : Cross link, is a trunk (=cisco etherchannel) connection to the switch of the opposite bay
19 : management port
20-24 : uplink ports

Port 17 and 18 has to be enabled and added as vlans members that going to be passed over it.

For example, to add vlan 10 and 30 into trunk 17 and 18, you can issue these commands inside AOS command line:

/cfg/port 17/tag   -> activates vlan trunkin on port 17
/cfg/port 18/tag

/cfg/vlan 10/add 17  -> adds vlan 10 to the trunk on port 17
/cfg/vlan 10/add 18
/cfg/vlan 30/add 17
/cfg/vlan 30/add 18

If let’s say port 20 will be used as an uplink trunk (connected to the backbone or another switch), you can use these commands::

/cfg/port 20/tag
/cfg/vlan 10/add 20
/cfg/vlan 30/add 20

Dont forget to “apply”, because the new configuration is not effective before you manually issued the “apply” command.

To see the current vlan configuration, use:

/info/vlan

Categories: network Tags: , , , , ,

hp ux: Network tools

May 3rd, 2009 bayu No comments

The HP UX is bundled with several network adminitration tool:

  • lanscan : to see MAC Adress, interface status, and hardware path

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x00306EC32104 0 UP lan0 snap0 1 ETHER Yes 119

  • ifconfig : looks like the same command in linux, to see of configure the IP Addresses, turning on/off the NIC, etc.

# ifconfig lan0
lan0: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
inet 150.150.8.1 netmask ffff0000 broadcast 150.150.255.255

  • lanadmin : to see detailed LAN interfaces of the machine

LAN INTERFACE STATUS DISPLAY
Tue , Jun 17,2008 09:12:05

PPA Number = 0
Description = lan0 HP PCI 10/100Base-TX Core [10BASE-T,HD,AUTO,TT=1500]
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 10000000
Station Address = 0x306ec32104
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 1186783
Inbound Octets = 42032376
Inbound Unicast Packets = 15518
Inbound Non-Unicast Packets = 501152
Inbound Discards = 1
Inbound Errors = 0
Inbound Unknown Protocols = 14605
Outbound Octets = 1719024
Outbound Unicast Packets = 17140
Outbound Non-Unicast Packets = 722
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
Ethernet-like Statistics Group

Index = 1
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 1053
Multiple Collision Frames = 99
Deferred Transmissions = 136
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 0
Frames Too Long = 0
Internal MAC Receive Errors = 0

  • linkloop : a tool to tests layer 2 connectivity

# linkloop 0x00108303aabf
Link connectivity to LAN station: 0x00108303aabf
– OK

Categories: hp ux Tags: , , , , ,

Using remote X font server

May 3rd, 2009 bayu No comments

When using an X application remotely, sometimes the application needs specific fonts that are not available on our X server. Some of them might still work with a different fonts. Unluckily, one of mine doesn’t

I found some messages when I use remote X server on an application :

ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Unable to load any usable fontset
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Cannot convert string “-*-helvetica-medium-r-*-120-*” to type FontSet

The solution is to use the font server in which the application is installed

on apllication side (in this example is an hp-ux server) :

  1. open /etc/rc.config.d/xfs , set RUN_X_FONT_SERVER=1.
  2. Execute ”/sbin/init.d/xfs start”

on X server side (my laptop is using OpenSUSE linux) :

  1. Log on as user that going to run the application remotely.
  2. Execute ”xset +fp tcp/<hp-ux_hostname>:7000” .
  3. Execute ”xset fp rehash” .
  4. Execute ”xset -q”.
  5. Do a remote log on, secure tunnel might helps much if you have a firewall issue.
  6. Set DISPLAY variable if needed – “export DISPLAY=x.x.x.x:0.0″
  7. Run the X application remotely.

Credits: http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1212545170579+28353475&threadId=224569

Categories: hp ux Tags: , , , , ,

Switch to our mobile site