Skip to main content

Posts

Open SUSE Administration Commands

        YaST Administration Tool Run YaST using Qt GUI # yast –-qt Run YaST using Gtk GUI # yast --gtk Run YaST in text-mode # yast --ncurses Install package using YaST # yast -i packagename.rpm Remove package using YaST # yast --remove packagename.rpm Update package using YaST # yast --update packagename.rpm List available YaST modules # yast -l Use modules # yast modulename ZYpp System List repositories # zypper lr Add repository # zypper ar -f <URL> <alias> Refresh repositories # zypper ref Update installed packages # zypper up Perform a distribution upgrade # zypper dup   RPM Installing a package # rpm -ivh package.rpm Upgrading a package # rpm -Uvh package.rpm Upgrading a package # rpm -Uvh package.rpm Network View network interfaces # ifconfig -a # ip a s # iwconfig   Connect to wireless network # iwlist wlan0 scan # iwconfig wlan0 essid NETWORK_ID key WIRE

RHEL 4.X 5.X 6.X Bond that is going between two switches

            When using a pair of redundant switches how the bond be configured to ensure maximum availability     # vi /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 BOOTPROTO=static IPADDR=192.168.0.2 NETMASK=255.255.255.0 ONBOOT=yes BONDING_OPTS="mode=1 arp_ip_target =192.168.0.1 arp_interval =1000" arp_ip_target Specifies the IP addresses to use as ARP monitoring peers when arp_interval is > 0. These are the targets of the ARP request sent to determine the health of the link to the targets.Specify these values in ddd.ddd.ddd.ddd format. Multiple IP addresses must be separated by a comma. At least one IP address must be given for ARP monitoring to action. The maximum number of targets that can be specified is 16. The default value is no IP addresses.   arp_interval Specifies the ARP link monitoring frequency in milliseconds. The ARP monitor works by periodically checking the slave devices to  determine whe

HOW TO INSTALL AND CHANGE LOCALE IN SOLARIS 11

HOW TO INSTALL AND CHANGE LOCALE IN SOLARIS 11 Installing Argentina Locales #pkg change-facet facet.locale.es_AR*=True # locale -a C POSIX de_DE.ISO8859-1 de_DE.ISO8859-15 de_DE.UTF-8 en_US.ISO8859-1 en_US.ISO8859-15 en_US.UTF-8 es_AR.ISO8859-1 es_AR.UTF-8 Change locale to es_AR.ISO8859-1 #svccfg -s svc:/system/environment:init setprop environment/LC_ALL = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_COLLATE = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_CTYPE = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_NUMERIC = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_TIME = astring: "es_AR.ISO8859-1" #svccfg -s svc:/system/environment:init setprop environment/LC_MONETARY = astring: "es_AR.ISO8859-1" #svcadm refresh svc:/system/environme

IPTRACE FOR AIX

1.Run iptrace on AIX interface en2 to capture port 8080 traffic from a single client IP to Server ip. #iptrace -a -i en2 -s clientip -b -d serverip -p 8080 portcapture.out  This trace will capture both directions of the port 8080 to the file portcapture.out. 2.Validate the iptrace running. #ps -ef|grep iptrace 3.-Kill the process #kill <pid> -15  

HOW TO CONFIGURE SENDMAIL IN AIX OS (USING RELAYHOST MAILSERVER)

How to set sendmail in AIX Check if sendmail is running on the AIX Server     Run the following commands: #lssrc -s sendmail #ps -ef |grep sendmail Edit the sendmail.cf and you can add in the line DS #vi /etc/sendmail.cf Change: #DwYourHostName If the sendmail is not running you can start the service with the following command #startsrc -s sendmail -a "-bd -q30m" Validate that sendmail is running with a ps command #ps -ef |grep sendmail This should echo: root  5404     1   0 13:22:42      -  0:00 sendmail: accepting connections on port 25 - Ensure that the ‘sendmail’ daemon is started on reboot, comment in the ‘sendmail’ startup line in ‘/etc/rc.tcpip’ #vi /etc/rc.tcpip Comment in the following line: start /usr/lib/sendmail "$src_running" "-bd -q${qpi}" - Create an ‘/etc/netsvc.conf’ file, this is to tell sendmail to use ‘/etc/hosts’ for DNS #vi /etc/netsvc.conf Add the following: hosts=local,bind4 - Change t

FAN Fully Automated Nagios monitoring tool

If you need install an application to monitor, with a simple installation and no many configuration or compilation, you can use FAN versiĆ³n 2.1 We have a tool that is integrated with Nagios, Centreon, Nagvis and DocuWiki OS Centos 5.9 Centreon 2.4.1 Nagvis 1.7 Nagios and DocuWiki You can download the ISO and Documentation from the following link, it is a very easy software to install in order to monitor the servers. http://www.fullyautomatednagios.org/

How to Install Boot Blocks Solaris

How to Install Boot Blocks for a ZFS Root  FS (rpool) As root user run the following: #installboot -F zfs /usr/platform/`uname i`/lib/fs/zfs/bootblk /dev/rdsk/c#t#d#s0 #init 6   How to Install Boot Blocks Solaris Sparc As root user run the following: #installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c#t#d#s0 #init 6 How to install Boot Block Solaris x86 As root user run the following: #/sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c#t#d#s# #init6 What are the grub stage1 and stage 2? below the explanation /boot/grub/stage1 partition boot file. /boot/grub/stage2 boot block code. For each command you will need to reboot in order to check or verify that is correctly installed #init 6