Archive for the ‘Solaris’ Category

Solaris Limit Processes per User

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org  To limit processes per user /etc/system set maxuprc = number

How to Tell if Solaris is Configured For 32 or 64 Bit

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org If Solaris has been configured for 32 bit, the output of: isainfo -v   will be: 32-bit sparc applications ---- If Solaris has been configured for 64 bit, the output of: isainfo -v   will be: 64-bit sparcv9 applications 32-bit sparc applications ---- OR: isainfo -b will return either 32 or 64

How to Change IP and Hostname on a Solaris Box

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org Change in the following files: ----------------------------- /etc/hosts /etc/netmasks /etc/defaultrouter /etc/hostname.(hme0)     >> type of network card specific /etc/nodename /etc/net/*/hosts /etc/passwd ----------------------------- **        rename the directory under /var/crash to match your new hostname ** &&        type hostname to view hostname &&        type hostname <newhostname> to change name without reboot To bind an IP address to a Network Interface Card   ...

How to Recover Solaris 8 Root Password

Tuesday, August 7th, 2007

Tip courtesy of Kyle Reynolds at http://www.camelrichard.org To recover root password    1. Boot with Solaris 8 CD    2. ok> boot cdrom -sw    3. # csh    4. # setenv TERM sun or    5. # export TERM=sun or #export TERM=vt100    6. # mount /dev/dsk/c0t0d0s0 /a (for Ultra)    7. # vi /a/etc/shadow   (before modification)   ...

How to Create a Virtual IP in Solaris

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org 1) create /etc/hostname.<interfacename>:<n> containing the hostname of the virtual IP         example:         /etc/hostname.hme0:1 2) add the hostname and virtual IP to /etc/hosts 3) use the following commands to configure the interface:    ifconfig <interfacename>:<n> plumb         example:         ifconfig hme0:1 plumb    ifconfig <interfacename>:<n> <IP address> netmask <netmask> broadcast + up         ...

How to Create a Solaris Boot Device Alias

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org Step 1: ok probe-scsi-all Step 2: ok show-disks Step 3: Set boot-device Method 1: OBP ok nvalias    eg.    ok nvalias disk2 /iommu@f,e0000000/sbus@f,e0001000/esp@f,800000/sd@3,0:a    ok nvalias disk2 /pci@1f,0/pci@1/scsi@3,1/disk@3,0 ok setenv boot-device disk2 ok reset Method 2: nvedit ok nvedit 0: devalias disk2 /iommu@f,e0000000/sbus@f,e0001000/esp@f,800000/sd@3,0:a ^c (control c) ok nvstore ok setenv use-nvramrc? true ok reset Method 3: Using the existing device ...

Force Full Duplex

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org (for V-series, no entry in /etc/system) bge0: (no entry in /etc/system: add this script to rc2.d) S68net-tune ################################################ #!/sbin/sh # /etc/rc2.d/S68net-tune PATH=/usr/bin:/usr/sbin echo "Implementing Solaris ndd Tuning Changes " # bge-Interfaces # bge-Interfaces # Force bge0 to 100fdx autoneg off ndd -set /dev/bge0 adv_1000fdx_cap 0 ndd -set /dev/bge0 adv_1000hdx_cap 0 ndd -set /dev/bge0 adv_100fdx_cap 1 ndd -set /dev/bge0 adv_100hdx_cap ...

Solaris Disk Quotas

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org  Disk Quotas under Solaris ************************* Create a quotas file (on root of filesystem): --------------------------------------------- # /usr/bin/touch quotas # /usr/bin/chmod 600 quotas Display user's quota on all mounted file systems where quotas exist: ------------------------------------------------------------------- # quota -v username which will output something similar to this: Disk quotas for user1 (uid 1175): Filesystem usage quota limit timeleft ...

Discover Global Zone Name from Local Zone

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org from the local zone, run: arp -a | grep SP example: # arp -a | grep SP bge1 zone1.domain.com 255.255.255.255 SP 00:03:ba:51:37:8e bge0 host1.domain.com 255.255.255.255 SP 00:03:ba:51:37:8d bge1 zone2.domain.com 255.255.255.255 SP 00:03:ba:51:37:8e bge2 zone3.domain.com 255.255.255.255 SP 00:03:ba:51:37:8f

Disable FTP

Tuesday, August 7th, 2007

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org Enable/Disable FTP in: /etc/inetd.conf uncomment/comment line: ##ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd start/stop: /etc/init.d/inetsvc start /etc/init.d/inetsvc stop reverse process to disable To Disable/Enable ftp in Solaris 10: -------------------------------------- svcadm disable ftp svcadm enable ftp