Friday, March 5, 2010

HPUX download lsof site

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/

REDHAT: To Test New Kernel Reboot Once

We want to change default=0 to default=1 This will boot your old kernel (not the upgraded one). Grub starts at 0, which will be your new kernel. We will switch to the new kernel later.

Save and exit.

Step 3: Configure server to boot once with the new kernel.

Now we will configure the server to boot the new kernel only once in case it fails. This is the most important step, if its not done and the new kernel fails your out of luck.

Type the following from command line (one at a time):

grub
savedefault --default=0 --once
quit

Step 4 – Reboot

Then reboot the server or computer. When it comes back up run uname -a to make sure it has the new kernel. (Note: if it does not come back up, reboot it again and it will load the old kernel.)

Then switch the grub.conf to boot the new kernel permanently.

nano /boot/grub/grub.conf

change default=1 to default=0

Save and exit. Thats it you have successfully updated your kernel.

Tuesday, February 9, 2010

Solaris:How can I use the Solaris ?Explorer? program to collect information on my zone(s)

Explorer 5.0 can be run on Solaris 10 in a global zone. It can be used to collect information on containers (non-global zones) with the -w option.

Solaris: How do I modify the network configuration of a running zone?

global# ifconfig bge0 addif  192.168.200.2 zone myzone
global# ifconfig bge0 removeif 192.168.200.2

Or remove and add again interface via zonecfg -z myzone

Thursday, July 30, 2009

Solaris 10 zones fatal signal 9

If your zones trying to boot endlessly looping like this....

Jul 29 13:05:52 global zone last message repeated 158764 times
Jul 29 13:05:52 global zone genunix: [ID 729207 kern.warning] WARNING: init(1M) for zone localzone (pid 1800) exited on fatal signal 9: restarting automatically
Jul 29 13:11:47 global zone last message repeated 140032 times
Jul 29 13:11:52 global zone genunix: [ID 729207 kern.warning] WARNING: init(1M) for zone localzone (pid 24509) exited on fatal signal 9: restarting automatically
Jul 29 13:12:32 global zone last message repeated 15167 times
Jul 29 13:12:32 global zone genunix: [ID 729207 kern.warning] WARNING: init(1M) for zone localzone (pid 24509) exited on fatal signal 9: restarting automatically

Your library libc.so.1 might be in trouble. Try copy from global zone. and it will able to boot again.
root@globalzone # /zones/localzone/root/liblibc.so.1
-rwxr-xr-x 1 root bin 0 Jul 29 09:44 libc.so.1


see the zlogin console, localzone is booting...

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...