<?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: Edit Binary Files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210429#M168410</link>
    <description>Yeah .. I am trying my luck and let you if I succeed .. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Karthik S S</description>
    <pubDate>Fri, 05 Mar 2004 07:14:30 GMT</pubDate>
    <dc:creator>Karthik S S</dc:creator>
    <dc:date>2004-03-05T07:14:30Z</dc:date>
    <item>
      <title>Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210419#M168400</link>
      <description>Is there a tool to edit binary files like "/etc/lvmtab" / "/etc/cmcluster/cmclconfig"??. I am not asking about vgscan/cmquerycl which can recreate these files.&lt;BR /&gt;&lt;BR /&gt;I just want play around with these files by modifying them.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Karthik S S</description>
      <pubDate>Fri, 05 Mar 2004 05:53:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210419#M168400</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-05T05:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210420#M168401</link>
      <description>Karthik,&lt;BR /&gt;&lt;BR /&gt;Boy, am I glad you don't work on my systems!&lt;BR /&gt;&lt;BR /&gt;;^)&lt;BR /&gt;&lt;BR /&gt;Seriously, I'm unaware of such a tool (though there may well be one) and I would have to question the wisdom of doing such a thing anyway.  I think you would be better off to follow the conventional methods.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 05 Mar 2004 05:59:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210420#M168401</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-03-05T05:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210421#M168402</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;why not alter the kernel while you are at it..  I would try it on other files. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;BR /&gt;PS. A collegeu of mine did it with Perl, but i do not know how.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 06:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210421#M168402</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-03-05T06:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210422#M168403</link>
      <description>Karthik,&lt;BR /&gt;&lt;BR /&gt;Like all above, you don't want to mess arround with these files by just filling in some data.&lt;BR /&gt;Or do you like to simulate system crashes.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 05 Mar 2004 06:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210422#M168403</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2004-03-05T06:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210423#M168404</link>
      <description>Hi Pete,&lt;BR /&gt;&lt;BR /&gt;Don't worry .. I have no plans as of now to work for "Holstein Association, Inc" .. :-)) ..&lt;BR /&gt;&lt;BR /&gt;I have got few test machines where I can afford to perform these kind of destructive things ...&lt;BR /&gt;&lt;BR /&gt;Well, the reason why I need to edit the cmclconfig is to change the lock device path when the cluster is running (In a huge SAN env. the device files may change and it is not possible to update the cluster unless otherwise you stop the cluster and do a cmquery and cmapplyconf). I am not sure this way if it will work or not but no harm in giving it a try ..&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Karthik S S</description>
      <pubDate>Fri, 05 Mar 2004 06:09:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210423#M168404</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-05T06:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210424#M168405</link>
      <description>These are some of the commands I learnt from forum&lt;BR /&gt;same discussion in the past,&lt;BR /&gt;&lt;BR /&gt;#vis -n /etc/lvmtab &amp;gt;/tmp/outfile&lt;BR /&gt;Make changes to outfile&lt;BR /&gt;#inv -n /tmp/outfile &amp;gt;/tmp/binaryoutfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 06:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210424#M168405</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-03-05T06:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210425#M168406</link>
      <description>I have done this before but only as a joke,  I changed a lot of the strings in a word processing application to give a, well, more relaxed attitude.&lt;BR /&gt; &lt;BR /&gt;You can use any hex editor, several of them exist even some versions of "vi" will do it.&lt;BR /&gt; &lt;BR /&gt;I belive GXedit does too and this is available here&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Editors/GXedit-1.23/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Editors/GXedit-1.23/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Careful now though Karthik :)</description>
      <pubDate>Fri, 05 Mar 2004 06:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210425#M168406</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-05T06:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210426#M168407</link>
      <description>Hi Manikandan,&lt;BR /&gt;&lt;BR /&gt;That was a good command .. using that I recreated the lvmtab by changing the device file names for some VG. When tried any VG related commands it throws the following error,&lt;BR /&gt;&lt;BR /&gt;The version of /etc/lvmtab file is not correct.&lt;BR /&gt;Remove /etc/lvmtab file and execute vgscan command to recreate the file.&lt;BR /&gt;vgdisplay: No volume group name could be read from "/etc/lvmtab".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Fri, 05 Mar 2004 06:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210426#M168407</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-05T06:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210427#M168408</link>
      <description>Karthik,&lt;BR /&gt;&lt;BR /&gt;So, you want to change the lock device path on the fly, while the cluster is running?  The repercussions from that are absolutely scary to even contemplate.  &lt;BR /&gt;&lt;BR /&gt;Make absolutely sure that you are doing this within your test environment.  I think most of us have at least one incident in our past where we "thought" we were on the test machine . . .&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 05 Mar 2004 06:41:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210427#M168408</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-03-05T06:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210428#M168409</link>
      <description>Ok, if you do this in a test-cluster and you are lucky to change the lockdisk on the fly I like to know how, so please post your test results please.&lt;BR /&gt;Still I think it's dangerous.&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 05 Mar 2004 07:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210428#M168409</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2004-03-05T07:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210429#M168410</link>
      <description>Yeah .. I am trying my luck and let you if I succeed .. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Karthik S S</description>
      <pubDate>Fri, 05 Mar 2004 07:14:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210429#M168410</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-05T07:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210430#M168411</link>
      <description>Hi Karthik,&lt;BR /&gt;&lt;BR /&gt;For the fun only - I won't edit such a file&lt;BR /&gt;on a prod system-&lt;BR /&gt;&lt;BR /&gt;# xd toto&lt;BR /&gt;0000000 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000010 0000 0001 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000020 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;*&lt;BR /&gt;0000100 0000 0010 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000110 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000120 0000 0002&lt;BR /&gt;0000124&lt;BR /&gt;&lt;BR /&gt;# adb -w toto&lt;BR /&gt;PA-32 adb ($h help $q quit)&lt;BR /&gt;adb&amp;gt;10?W 10000&lt;BR /&gt;10:             1               =       10000&lt;BR /&gt;adb&amp;gt;140?W 2&lt;BR /&gt;140:            =       2&lt;BR /&gt;# xd toto&lt;BR /&gt;0000000 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000010 0001 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000020 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;*&lt;BR /&gt;0000100 0000 0010 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000110 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000120 0000 0002 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000130 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000140 0000 0002&lt;BR /&gt;0000144&lt;BR /&gt;adb&amp;gt;100,3?4Xa&lt;BR /&gt;100:            10              0               0               0&lt;BR /&gt;110:            0               0               0               0&lt;BR /&gt;120:            2               0               0               0&lt;BR /&gt;&lt;BR /&gt;by default adb uses hexadecimal&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 08:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210430#M168411</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2004-03-05T08:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210431#M168412</link>
      <description>My weapon of choice for this is hexedit. It's quite good and easy to use. What you do with it is completely up to you.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Development/Tools/hexedit-0.9.7/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Development/Tools/hexedit-0.9.7/&lt;/A&gt;</description>
      <pubDate>Fri, 05 Mar 2004 09:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210431#M168412</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-05T09:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210432#M168413</link>
      <description>Ditto on hexedit, allthough debuggers like adb are pretty handy also.&lt;BR /&gt;&lt;BR /&gt;Now in perl it is relatively easy to construct any funky byte pattern through the 'pack' function. Here is an example to replace 'short' in lvmtab on line 0000400:&lt;BR /&gt;&lt;BR /&gt;$ xd /etc/lvmtab | grep 0000400&lt;BR /&gt;0000400 0000 0000 0000 0000 0000 0000 b65a 8e24&lt;BR /&gt;$ cat zap&lt;BR /&gt;#!/bin/perl&lt;BR /&gt;while (&amp;lt;&amp;gt;){&lt;BR /&gt;$old = pack("S",0xb65a );&lt;BR /&gt;$new = pack("S",0x0123 );&lt;BR /&gt;  s/$old/$new/;&lt;BR /&gt;  print;&lt;BR /&gt;  }&lt;BR /&gt;$ zap &amp;lt; /etc/lvmtab &amp;gt; x&lt;BR /&gt;$ xd x | grep 0000400&lt;BR /&gt;0000400 0000 0000 0000 0000 0000 0000 0123 8e24&lt;BR /&gt;$ ls -l x /etc/lvmtab&lt;BR /&gt;-rw-------   1 root       sys           2094 Jul 22  2003 /etc/lvmtab&lt;BR /&gt;-rw-r--r--   1 root       sys           2094 Mar  5 21:53 x&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 21:58:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210432#M168413</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-03-05T21:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210433#M168414</link>
      <description>Hi Karthik,&lt;BR /&gt;&lt;BR /&gt;you can also ftp file to pc and use editor like ultraedit.&lt;BR /&gt;&lt;BR /&gt;remember: only softies use sam for kernel rebuild. Real mean do use a hexeditor. ;-)&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Mar 2004 03:07:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210433#M168414</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-03-06T03:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Binary Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210434#M168415</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I was able to edit the cmclconfig file and do some changes to the cluster lock PV but as expected the changes were not reflected to the running cluster. I have identified (with ITRC help) few work arounds for this problem and I have posted them at,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=493491" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=493491&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Pl. have a look and respond .. I am waiting for your inputs on this :-) &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;KarthiK S S</description>
      <pubDate>Mon, 08 Mar 2004 03:33:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-binary-files/m-p/3210434#M168415</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-08T03:33:49Z</dc:date>
    </item>
  </channel>
</rss>

