Post

Visualizzazione dei post da novembre, 2011

Solaris 10: How to restart network service 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. Example: 192.168.1.1 myhost However, in Solaris 10, you should edit the /etc/hosts file (a symlink to /etc/inet/hosts file) and the /etc/inet/ipnodes file and add an entry for IP address and hostname. Once done, restart the Network service using # svcadm restart network/physical or reboot the server for the changes to take effect. Although, the /etc/inet/ipnodes files is primarily for IPv6 only, without adding an entry to the file, the IP address (IPv4) doesn’t become active. This seems to be a known problem but the good news is this is now fixed in the Solaris 10 U4 (08/07 build). Also, ensure that the /etc/netmasks file with the network ID and the netmask.

How to manage services in Solaris 10

svcs command System administrators can more easily monitor services using Solaris Service Manager’s service status information and service activation/deactivation interfaces based on the commands ( svcs , svcadm , etc). Until Solaris 9, it was a complicated procedure to understand service status. Service level information was not provided and system administrators have to assume service status from their own analysis of kernel level information. A slow and error prone process. svcadm command Services and the services on which they depend are started in their appropriate order using the Solaris Service Manager svcadm command. System administrators are longer required to run complicated service startup operations. With Solaris 10 the traditional service stop procedure using the kill or pkill commands is no longer available. This is because, once stopped, Solaris Service Manager will automatically restart them. So a new command, svcadm is now used for stopping services.     References

Networking in Solaris 10: Gestione delle schede di rete

In questo articolo spiegheremo la gestione della rete da parte di SUN SOLARIS 10 , e come configurare schede fisiche e schede logiche, in maniera temporanea o permanente. Gli identificativi delle schede di rete sono vari, solitamente quelli che si possono trovare su sistemi ad architetture diverse sono: - pcnX - bgeX - hmeX dove per X intendiamo un numero da 0 a N . Per ottenere informazioni riguardo le schede installate e configurate sul sistema, digitare da riga di comando “ ifconfig –a ”. Questo comando è disponibile, in configurazione standard, soltanto come utente root o come super user . L’output generato dal comando è di questo tipo: bash-3.00# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1         inet 127.0.0.1 netmask ff000000 lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1         zone apache_zone         inet 127.0.0.1 netmask ff000000 lo0:2