Solaris

Solaris : Emulex Firmware Upgrade

You will require the following files before you begin the upgrade:   solaris-2.1a18-6.02f-1a.tar lpfc-6.02f-sparc.tar EmlxApps300a39-Solaris.tar 1.Copy configuration files # cp -p /kernel/drv/lpfc.conf /kernel/drv/lpfc.conf.date # cp -p /kernel/drv/sd.conf /kernel/drv/sd.conf.date # cp -p /kernel/drv/st.conf /kernel/drv/st.conf.date # cp -p /etc/path_to_inst /etc/path_to_inst.date 2.Copy Driver / Firmware updates from shared area to local disk # mkdir /var/tmp/emulex # cp –p …

Solaris : Emulex Firmware Upgrade Read More »

How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ?

To identify processes to kill we need to view the FULL output from the ps command (we use the comm field). But by default we are not able to view full command.  So here is the solution.. Solaris : /usr/ucb/ps -awux You may need two “w” options. From ps(1b): -w Uses a wide output format …

How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ? Read More »

How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ?

To identify processes to kill we need to view the FULL output from the ps command (we use the comm field). But by default we are not able to view full command.  So here is the solution.. Solaris : /usr/ucb/ps -awux You may need two “w” options. From ps(1b): -w Uses a wide output format …

How do I extend the terminal width or set term variables with ksh? / Not Getting the full command info from ps in Unix terminal ? Read More »

Adding Static Route on Solaris System

How we can add static route onto solaris system using command line: # route add -net 10.0.0.0 10.1.50.250 Add to startup script: # vi /etc/init.d/static_routes /usr/sbin/route add -net 10.0.0.0 10.1.50.250 # ln -s /etc/init.d/static_routes S99static_routes

How to check and install missing perl modules

Check if module is installed. Errors mean missing module. # perl -MModule::Name -e 1 See documentation of the module if installed. # perldoc Module::Name Open CPAN shell # perl -MCPAN -e shell To reconfigure the shell if needed. cpan>o conf init Install an available module. cpan> install HTML::Template You can run the Perl CPAN module …

How to check and install missing perl modules Read More »

How to get a copy of root’s email or forward it to an smtp email address

We can edit the aliases file for the system and set our address as the destination for root. so you can edit /etc/aliases (or wherever the aliases file has gone) and look at the existing aliases. There is probably an entry for root (possibly commented out) that shows a fictitious user. Add an entry like: …

How to get a copy of root’s email or forward it to an smtp email address Read More »

How to undelete any open, deleted file on linux / solaris

# uname -a SunOS cmsgcc 5.10 Generic_137137-09 sun4v sparc SUNW,SPARC-Enterprise-T5220 # echo “Undelete any open file” > test.txt # tail -f test.txt & 25552 # Undelete any open file # rm test.txt # ls /proc/25552/fd 0 1 2 # cat /proc/25552/fd/0 Undelete any open file # cp /proc/25552/fd/0 ./test.txt # cat ./test.txt Undelete any open …

How to undelete any open, deleted file on linux / solaris Read More »

Scroll to Top