Install Sybase Perl module in Solaris 10
Installing Perl modules in Sun Solaris is not as straight forward but is not very difficult as well. Perl module installations in Sun Solaris needs GNU Make rather than the default make tool installed. And, requires using perlgcc to build the Makefile.PL than the default perl binary.
dladm – Display Link status,speed,duplex,statistics,MTU
In the past we have to mess around with the NDD commands and stats tools like kstat to find the network link status, speed, duplex information in Sun Solaris. With Solaris 10, this has become much easier with the dladm utility.
dladm is the admin utility for Data-Link Interface which helps to display informarthe like Link Status (UP/DOWN), Speed, Duplex, MTU, VLAN Tagged and crucially statistics of network traffic on each of the interfaces historically as well as in real time. dladm can also configure and admin Link Aggregation on multiple NICs which we will not focus here.
Read more
PCP script to find open TCP ports and PIDs related in Solaris
PCP is a very useful security and adminitration script that can help you quickly find Processes (PIDs) having particular TCP Port(s) open, TCP ports open by specific PIDs or even list all the TCP Ports open by all PIDs running on your system.
Enable/Disable IP Forwarding in Solaris 10 without reboot
IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface.
In Solaris 10, IP Forwarding can be enabled or disabled using the routeadm & ifconfig commands as against the ndd commands in Solaris 9 and earlier. The advantage is the change dynamic and real-time and the change persist across reboot unlike the ndd command.
Control/Modify dhcpagent configuration in Sun Solaris
Do you you DHCP to get the IP Address for your Solaris Server or workstation then its worth understanding what your DHCP Agent by default requests for from the DHCP server and help avoid certain network issues like “unknown” hostname issue as I’ve descrbed here.
The DHCP Agent by default requests for the
Subnet Mask
Default Router
Hostname
DNS Domain
Broadcast Address
Encapsulated Vendor Option (vendor specific information as described in RFC 2132)
Fix: No hostname when using DHCP in Sun Solaris 8/9/10
If you are using DHCP to receive IP Address for your Sun Solaris system, you may end up with no hostname assigned to the system. This can be confirmed when there is no hostname at the prompt or if the output for the command “hostname” is as follows:
# hostname
unknownor the /etc/hosts file has an entry as follows:
# cat /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.0.3 unknown # Added by DHCP
Solaris 10 – Change IP Address without reboot
Adding or editing the IP address on a Solaris 10 server is different from the previous versions of the OS (Solaris 9, Solaris 8 etc).
In the previous versions of the Solaris Operating System, you need to edit the /etc/hosts file and add/edit the entry for the IP address and the hostname.
How to add a Static Route (persistent) in Sun Solaris
To add a Static Route in Sun Solaris operating system, you can use the route command. This will dynamically update the Kernel IP Routing table. However, when a server is restarted, these routes will be lost. To prevent this from happening, add a startup script S76static-routes with all the route commands for the static route that needs to persist. This will ensure that the route gets added at boot time.
How to disable IP Forwarding in Sun Solaris
IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface. While this is a job for the network router, Servers with multiple interfaces connected to different network can perform this action as well. This behaviour as a router is a default in Sun Solaris Operating Systems.
Install & Run Sun VTS in Solaris 10 for hardware & Stress test
In my previous write up here, I wrote a brief description of the Sun VTS (Validation and Test Suite) which can help one to run tests on any Sun Supported hardware and hardware components and report the health status and identify faulty devices. Now, lets get installing and run Sun VTS in Solaris 10.

