<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: List of common mistakes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704608#M613562</link>
    <description>Is there a best way to avoid mistake by &lt;BR /&gt;copy pasting the commands using mouse on PUTTY session ?</description>
    <pubDate>Thu, 28 Oct 2010 15:29:23 GMT</pubDate>
    <dc:creator>Manoj1</dc:creator>
    <dc:date>2010-10-28T15:29:23Z</dc:date>
    <item>
      <title>List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704575#M613529</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Is there a list on common mistakes to be avoided while performing system admin tasks on HP-UX ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Manoj</description>
      <pubDate>Mon, 25 Oct 2010 18:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704575#M613529</guid>
      <dc:creator>Manoj1</dc:creator>
      <dc:date>2010-10-25T18:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704576#M613530</link>
      <description>Make sure you are in the right directory when removing directory trees.&lt;BR /&gt;Make sure you are on the right machine before rebooting.&lt;BR /&gt;Be vary cautious when using "chown/chmod -R".</description>
      <pubDate>Mon, 25 Oct 2010 18:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704576#M613530</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-10-25T18:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704577#M613531</link>
      <description>Remember you are root before you do anything!!!&lt;BR /&gt;&lt;BR /&gt;you may be so experienced, still you can make typo. Recheck each command before you run it.&lt;BR /&gt;&lt;BR /&gt;verify thrice , before you use -R &lt;BR /&gt;&lt;BR /&gt;Never do the changes in which you have doubt!!&lt;BR /&gt;&lt;BR /&gt;More important: Never deviate from the process defined by your firm. They will forgive you for manual errors but not for deviating from the process..&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sooraj</description>
      <pubDate>Tue, 26 Oct 2010 01:39:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704577#M613531</guid>
      <dc:creator>SoorajCleris</dc:creator>
      <dc:date>2010-10-26T01:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704578#M613532</link>
      <description>1. take huge care of tar files, just think twice how tar files has been created specially if given by any other people.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; tar does not ask anything it just replace.&lt;BR /&gt;&lt;BR /&gt;2. never use * with rm commands in any way.&lt;BR /&gt;&lt;BR /&gt;3. don be too fast in doing things take your time.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2010 03:00:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704578#M613532</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-10-26T03:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704579#M613533</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Using SAM reduces the complexity of most administration tasks. SAM minimizes or eliminates the need for detailed knowledge of many administration commands, thus saving valuable time. Use SAM whenever possible, especially when first mastering a task. Some tasks  cannot be done by SAM, in which case you will need to use the HP-UX commands. Sometimes you will need to use commands manually for troubleshooting and specialized tasks However, SAM is the tool of choice for most administration work.&lt;BR /&gt;&lt;BR /&gt;Even elephants do slip...</description>
      <pubDate>Tue, 26 Oct 2010 03:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704579#M613533</guid>
      <dc:creator>P Arumugavel</dc:creator>
      <dc:date>2010-10-26T03:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704580#M613534</link>
      <description>&lt;!--!*#--&gt;Hello..&lt;BR /&gt;&lt;BR /&gt;1. While performing any activity, record everything using "script" command to have details of each and every step/output and/or increase the buffer size of the window depending on the situation. This will help troubleshoot the problem if anything goes wrong in the activity.&lt;BR /&gt;&lt;BR /&gt;2. Sometimes, we as root will be working on a terminal and will use previous command keys (ctrl+k) to immediately execute the last command. But if someone else is also logged in as root, he may be running some other commands. So we would, by mistake run the last command (issued by another user). Bottomline, if you are using "ctrl+k" key for using previous commands, have a look on them before executing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regds..</description>
      <pubDate>Tue, 26 Oct 2010 06:05:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704580#M613534</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2010-10-26T06:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704581#M613535</link>
      <description>Hi Manoj,&lt;BR /&gt;&lt;BR /&gt;Yes, all can avoid common mistakes while doing system admin tasks.&lt;BR /&gt;1) We should more attention to work while running any command.&lt;BR /&gt;2)While rebooting or shutdown the server check the hostname and IP address to verify ur working on correct system.&lt;BR /&gt;3)While flushing the mount points also we should assure that we are on correct system before u do that.&lt;BR /&gt;4)While taking clone also u should be careful.&lt;BR /&gt;5)While remove directory dont use * unless ur confident to do that.&lt;BR /&gt;6)While chmod/chown check ur on correct directory where u want to change otherwise u will land in trouble.&lt;BR /&gt;&lt;BR /&gt;Experience is the BEST Teacher, U should learn from ur mistakes, not to repeat it.&lt;BR /&gt;&lt;BR /&gt;Hope ur query resolved.&lt;BR /&gt;Don't forget to assign points&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Vishnu Khandare&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2010 06:22:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704581#M613535</guid>
      <dc:creator>vishnu.khandare</dc:creator>
      <dc:date>2010-10-26T06:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704582#M613536</link>
      <description>Be sure your backup is up-to-date and readable.&lt;BR /&gt;UX has no trash can, so what you delete is deleted.&lt;BR /&gt;&lt;BR /&gt;V.</description>
      <pubDate>Tue, 26 Oct 2010 07:12:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704582#M613536</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2010-10-26T07:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704583#M613537</link>
      <description>-- NEVER -- log in AS root; only su into root, WITH a trace. AND MAKE SURE THAT IS TRUE FOR EVERYONE: block direct login to root as soon as system is not single-user.&lt;BR /&gt;Of course I am now writing about systems that have multiple people with kernel-level access.&lt;BR /&gt;&lt;BR /&gt;(even the concept of the need to login as root makes me a little sick. Other OSes have  facilities to grant enhanced rights to selected individuals. THAT makes tracing much easier, and responsibilities much clearer).&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Tue, 26 Oct 2010 08:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704583#M613537</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2010-10-26T08:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704584#M613538</link>
      <description>Hi Manoj,&lt;BR /&gt;&lt;BR /&gt;A few from me here..&lt;BR /&gt;&lt;BR /&gt;(a) Always refer syslog for any error related to system before start looking in to the issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(b) Prepare an Action Plan ,Roll back Plan and Identify the Risks involved and Plan to Mitigate the risks before doing any major change.&lt;BR /&gt;&lt;BR /&gt;(c) Always capture the below o/p before reboot the box.&lt;BR /&gt;&lt;BR /&gt;bdf &lt;BR /&gt;swapinfo -tam&lt;BR /&gt;strings /etc/lvmtab&lt;BR /&gt;grep initdefault /etc/inittab&lt;BR /&gt;&lt;BR /&gt;(d) Do changes one at a time during trobleshooting&lt;BR /&gt;&lt;BR /&gt;(e) Update latest patches (double stared ones) ,qualerly and update HW firmwares yearly.&lt;BR /&gt;&lt;BR /&gt;Thanks for initiating a this thread,this is a good experience sharing thread. &lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;Aneesh</description>
      <pubDate>Tue, 26 Oct 2010 08:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704584#M613538</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2010-10-26T08:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704585#M613539</link>
      <description>name resolution, &lt;BR /&gt;&lt;BR /&gt;sometimes due the nature of your network a misconfigured /etc/nsswitch.conf can give you many timeouts.</description>
      <pubDate>Tue, 26 Oct 2010 10:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704585#M613539</guid>
      <dc:creator>sombriks</dc:creator>
      <dc:date>2010-10-26T10:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704586#M613540</link>
      <description>Create an ignite tape and verify that you have a good backup before you make any major change.</description>
      <pubDate>Tue, 26 Oct 2010 13:58:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704586#M613540</guid>
      <dc:creator>Mike Miller_8</dc:creator>
      <dc:date>2010-10-26T13:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704587#M613541</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i'm using cfg2html once a month for all server, and archive the output.&lt;BR /&gt;&lt;BR /&gt;So that i could see any changes.&lt;BR /&gt;&lt;BR /&gt;best regards,&lt;BR /&gt;butti&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2010 16:48:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704587#M613541</guid>
      <dc:creator>butti</dc:creator>
      <dc:date>2010-10-26T16:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704588#M613542</link>
      <description>A few of mine:&lt;BR /&gt;If inexperienced read up on the subject. I regularly peruse through the forums and if I see something of use or interest I copy the information into a document or bookmark the page. I spent a lot of time just reading threads here and pdf documents provided by HP as well as using google. &lt;BR /&gt;&lt;BR /&gt;Create a regular user with permission to su to root. Only su when doing tasks that require root access. With SAM and SMH you can give regular users special permissions to use those utilities. (For example look up restricted SAM)&lt;BR /&gt;&lt;BR /&gt;On that note configure and tweak as necessary your sudoers file. Use visudo to edit. Create a root users group and groupadd your user profile to this group. &lt;BR /&gt;&lt;BR /&gt;It's helpful to set your PS1 to know which server you are logged into. We have this set in /etc/profile:&lt;BR /&gt;PS1="$LOGNAME"@`hostname`:'$PWD'"&amp;gt; "&lt;BR /&gt;export PS1&lt;BR /&gt;&lt;BR /&gt;Before doing any work create a maintenance log. I use excel to list out the tasks I am going to do in descending order with additional columns for start and end time. In other words have a plan of action. &lt;BR /&gt;&lt;BR /&gt;Make sure you have some backup method in place before doing any major system work like patches, volume group work, etc.&lt;BR /&gt;&lt;BR /&gt;Be very careful with the rm command. Be very careful with vgexport command as well.&lt;BR /&gt;&lt;BR /&gt;Schedule your maintenance for off hours. Be aware you are creating additional IO with each patch install, lvextend, etc. If possible test the commands and actions on a non-prod server.&lt;BR /&gt;&lt;BR /&gt;Read the patch requirements. Some patches require a system reboot, others do not. A lot of patches have dependencies.  &lt;BR /&gt;&lt;BR /&gt;As suggested above create a script so you can review work that was done. For example everytime I had to extend a lvol, add a disk, etc. I'd create a script in /tmp. (script /tmp/scriptname) It was especially helpful to review. Name your script something useful.</description>
      <pubDate>Tue, 26 Oct 2010 16:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704588#M613542</guid>
      <dc:creator>S. Ney</dc:creator>
      <dc:date>2010-10-26T16:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704589#M613543</link>
      <description>How does below commands work as root user ?&lt;BR /&gt;Which one is dangerous and never be used and why ?&lt;BR /&gt;&lt;BR /&gt;cd /home/sun/moon/mercury/&lt;BR /&gt;&lt;BR /&gt;#/home/sun/moon/mercury/&amp;gt; rm -rf ../*&lt;BR /&gt;&lt;BR /&gt;#/home/sun/moon/mercury/&amp;gt; rm -rf ../*.*&lt;BR /&gt;&lt;BR /&gt;#/home/sun/moon/mercury/&amp;gt; rm -rf *&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Manoj&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2010 22:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704589#M613543</guid>
      <dc:creator>Manoj1</dc:creator>
      <dc:date>2010-10-26T22:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704590#M613544</link>
      <description>Hi,&lt;BR /&gt; #/home/sun/moon/mercury/&amp;gt; rm -rf ../*&lt;BR /&gt;Delete all the file and dirs under moon directory.&lt;BR /&gt;&lt;BR /&gt;#/home/sun/moon/mercury/&amp;gt; rm -rf ../*.*&lt;BR /&gt; Delete  the files and dirs which have a dot symbol and under moon directory. &lt;BR /&gt;&lt;BR /&gt;#/home/sun/moon/mercury/&amp;gt; rm -rf *&lt;BR /&gt;  &lt;BR /&gt; Delete all the files and dirs under mercury directory. &lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2010 23:59:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704590#M613544</guid>
      <dc:creator>Bijeesh</dc:creator>
      <dc:date>2010-10-26T23:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704591#M613545</link>
      <description>&amp;gt;&amp;gt;List of common mistakes&amp;lt;&amp;lt;&lt;BR /&gt; 1)Like RK mentioned in second part, same type of problem happens while copy paste the commands using mouse on PUTTY session.&lt;BR /&gt;  The left button selected  words get copied in buffer and at any time if you press the left button it pasted on the screen.So be alert while selecting the words/commands using mouse on PUTTY terminal. &lt;BR /&gt; 2)Read the man page to avoid confusing options with commands.&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Oct 2010 00:33:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704591#M613545</guid>
      <dc:creator>Bijeesh</dc:creator>
      <dc:date>2010-10-27T00:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704592#M613546</link>
      <description>Editing a file without taking backup of it and then realising that u need to revert it back.&lt;BR /&gt;Always keep a backup of the file u edit.&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Oct 2010 06:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704592#M613546</guid>
      <dc:creator>shrady</dc:creator>
      <dc:date>2010-10-27T06:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704593#M613547</link>
      <description>#/home/sun/moon/mercury/&amp;gt; rm -rf ../*.*&lt;BR /&gt;&amp;gt; Delete the files and dirs which have a dot symbol and under moon directory.&lt;BR /&gt;&lt;BR /&gt;This answer indicates you didn't understand the danger of this command.&lt;BR /&gt;&lt;BR /&gt;Remember that every directory has two special sub-directory entries: "." and "..".&lt;BR /&gt;&lt;BR /&gt;This command will delete /home/sun/moon/*.*, which includes:&lt;BR /&gt;/home/sun/moon/.. = /home/sun/&lt;BR /&gt;/home/sun/moon/../.. = /home&lt;BR /&gt;/home/sun/moon/../../.. = /&lt;BR /&gt;&lt;BR /&gt;And when "rm -rf" deletes a directory, it will also delete all files and sub-directories in it...&lt;BR /&gt;&lt;BR /&gt;In other words, this command will delete *EVERY FILE AND DIRECTORY ON THE SYSTEM*.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 27 Oct 2010 07:16:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704593#M613547</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-10-27T07:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: List of common mistakes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704594#M613548</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;When changing the root password, kindly make sure the passwd is working/changed properly by taking a separate session before logging out the session.&lt;BR /&gt;&lt;BR /&gt;This practice will be keep us tension free on root passwd issues.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nirmal G</description>
      <pubDate>Wed, 27 Oct 2010 08:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-of-common-mistakes/m-p/4704594#M613548</guid>
      <dc:creator>Nirmal G</dc:creator>
      <dc:date>2010-10-27T08:49:10Z</dc:date>
    </item>
  </channel>
</rss>

