Skip to main content

Posts

Showing posts with the label Operating System

HOW TO INSTALL NAGIOS SOLARIS 11.X WITH AGENT SOLARIS 10

HOW TO INSTALL NAGIOS SOLARIS 11.X WITH AGENT SOLARIS 10 1.- Download  solaris-nrpe-agent.tar.gz #wget http://assets.nagios.com/downloads/nagiosxi/agents/solaris-nrpe-agent.tar.gz 2.- Create the following Symbolic Links because nagios cl ient needs the f ollowing libssl and with solaris 11 .X it is pointing to libssl.so.1.0 .0 #ln -s /lib/libssl.so /usr/lib/libssl.so.0.9.7   #ln -s /lib/libssl.so /usr/lib/libcrypto.so.0.9.7 3.-Uncompress the tar.gz file " solaris-nrpe-agent.tar.gz" #tar -xvf solaris-nrpe-agent.tar.gz  4.- Edit the following script " solaris-nrpe-agent/init.sh" and change the line "5.10" for "5.11" as below    if [ $ver = "5.10" ] put    if [ $ver = "5.11" ] 5.- Finally execute the installation script #./fullinstall  6.- In the line "allowed_hosts" add the nagios server or servers   allowed_hosts=127.0.0.1, 10.1.1.2 7.- Restart th

HOW TO CREATE VNIC OVER INTERFACES SOLARIS 11.X

HOW TO CREATE VNIC OVER INTERFACES SOLARIS 11.X     1.- The first that you need to know is what interfaces is available   #dladm show-phys LINK              MEDIA      STATE      SPEED  DUPLEX    DEVICE net0              Ethernet    up        0      unknown   vnet0  2.- You will need to plumb the interface, in previous solaris release you can use "ifconfig net0 plumb" , however in Solaris 11.X, we will need to use the command ipadm #ipadm create-ip net0 3.- Now you need to assign ip address to the net0 and add the Default GW  #ipadm create-addr -T static -a 10.1.1.3/24 net0/ipv4 #route -p add default 10.1.1.1 4.-Finally you can create VNIC's or Virtual Interfaces with the aliases  #ipadm create-addr -T static -a 10.1.1.4/24 net0/prote #ipadm create-addr -T static -a 10.1.1.5/24 net0/prder #ipadm create-addr -T static -a 10.1.1.6/24 net0/prder1 NAME              CLASS/TYPE STATE        UNDER      AD

How to mount a CIFS Solaris / Linux

Use the mount command in order to mount #mount -t cifs -o username=canio // 10.1.1.1/cantus /mnt Edit the fstab or vfstab for the Operating System //IP_SERVER/Resource_to_share    /mountpoint    cifs   noauto,users,username=XXXXXX, workgroup=XXXXX,password=XXXXX   0   0 Example with Linux panel:/panel# more /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point>   <type>  <options>       <dump>  <pass> proc            /proc           proc    defaults        0       0 /dev/sda5       /               ext3    defaults,errors=remount-ro 0       1 /dev/sda1       /boot           ext3    defaults        0       2 /dev/sda7       /tmp            ext3    defaults        0       2 /dev/sda8       /usr            ext3    defaults        0       2 /dev/sda6       /var            ext3    defaults        0       2 /dev/sda2       none            swap    sw              0       0 /dev/hda        /media/

LUN re-scans Linux Red Hat RHEL

 LUN re-scans  RHEL 1.- Validate the fc_host that you are using for the disks on the server # ls /sys/class/fc_host host0 host1  2.-Execute the command in both fc_host in order to scan them. #echo "1" > /sys/class/fc_host/ host0 /issue_lip #echo "- - -" > /sys/class/scsi_host/ host0 /scan #echo "1" > /sys/class/fc_host/ host1 /issue_lip #echo "- - -" > /sys/class/scsi_host/ host1 /scan 3.-Validate that you have the new disks on the server # fdisk -l    

FOR/WHILE COMMAND how to halt/boot all the containers/zones with a for/while command (Solaris 10/11)

FOR COMMAND HOW TO HALT/BOOT  (Containers/Zones) with a FOR command 1.- List zones / containers in running state in order to check what zones you need  stop/boot after finishing the task that you perform on the global zone # zoneadm list -v ID NAME STATUS PATH 0 global running / 1 zone1 running /zones/zone1 2 zone2 running /zones/zone2 3 zone3 running /zones/zone3 6 zone4 running /zones/zone4 7 zone5 running /zones/zone5 8 zone6 running /zones/zone6 9 zone12 running /zones/zone12 12 zone15 running /zones/zone15 14 zone16 running /zones/zone16 19 zone17 running /zones/zone17 2.- Send the zones list to a file only with the NAME of the zones to zones.txt file #zoneadm list -v | awk '{print $2}' | egrep -v global >> zones.txt 3.- List the information capture in order to verify zones.txt # cat zones.txt 4.- Halt Zones with a for command # for i in `cat zones.txt`; do zoneadm -z $i halt; done   5.- Boot Zones with a for command   # for i in

How to boot a server across the network and restore zfs root file system from snap

How to boot a server across the network and restore zfs root from snap You will need the mac-address from the client server in order to generate in the server with the media the following files In the Server with the DVD Rom and Solaris Media add the following root@client# vi /etc/ethers 0:22:11:77:a4:b8 testing       Add in the /etc/hosts file the IP address root@client# vi /etc/hosts ##WAN BOOT### 192.168.1.2  testing           Add the client from server wan boot and architecture root@server# cd /cdrom/sol_10_509_sparc/Solaris_10/Tools command : add_install_client client_server architecture root@server# ./add_install_client testing sun4u This variable need to be blank in the client, you will need to execute it from OK prompt ok> ok> set-defaults network-boot-argument ok> boot net -s  (-s single user) or ok> boot net - install    (install server from the media across network) After server is up and running, you can configure the inte

How to boot a Solaris Server across the network and Restore root ufs

How to boot a server across the network and restore from DUMP You will need the mac-address from the client server in order to generate in the server with the media the following files In the Server with the DVD Rom and Solaris Media add the following root@client# vi /etc/ethers 0:22:11:77:a4:b8 testing       Add in the /etc/hosts file the IP address root@client# vi /etc/hosts ##WAN BOOT### 192.168.1.2  testing           Add the client from server wan boot and architecture root@server# cd /cdrom/sol_10_509_sparc/Solaris_10/Tools command : add_install_client client_server architecture root@server# ./add_install_client testing sun4u This variable need to be blank in the client, you will need to execute it from OK prompt ok> ok> set-defaults network-boot-argument ok> boot net -s  (-s single user) or ok> boot net - install    (install server from the media across network) After server is up and running, you can configure the interface in