<?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: scsi debugging in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192764#M461925</link>
    <description>&lt;!--!*#--&gt;Hi Bill,&lt;BR /&gt;&lt;BR /&gt;As you said, looks like I am getting normal outputs from logger command.&lt;BR /&gt;&lt;BR /&gt;I have attached of what I did..please check.&lt;BR /&gt;&lt;BR /&gt;But why am I not getting any debug messages from scsi device say a disk.&lt;BR /&gt;&lt;BR /&gt;I am using below command for debugging a boot disk (just to see if it works):&lt;BR /&gt;# scsimgr set_attr -a escsi_log_dev=0xbc002003&lt;BR /&gt;&lt;BR /&gt;I must be going wrong somewhere..&lt;BR /&gt;Totally confused..&lt;BR /&gt;&lt;BR /&gt;Regds..</description>
    <pubDate>Mon, 24 Aug 2009 04:10:31 GMT</pubDate>
    <dc:creator>R.K. #</dc:creator>
    <dc:date>2009-08-24T04:10:31Z</dc:date>
    <item>
      <title>scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192753#M461914</link>
      <description>&lt;!--!*#--&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;I want to enable scsi debugging for 11.31.&lt;BR /&gt;&lt;BR /&gt;Can it be done globally or for a subsystem or only specific to a device?&lt;BR /&gt;&lt;BR /&gt;I tried this for a disk:&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;# scsimgr set_attr -a escsi_log_dev=0xbc04b300&lt;BR /&gt;Value of attribute escsi_log_dev set successfully&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;&lt;BR /&gt;But cannot find any messages in syslog.log.&lt;BR /&gt;Is this the correct way?&lt;BR /&gt;&lt;BR /&gt;And what are the "escsi_dbg_lvl" levels?&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance..&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Aug 2009 04:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192753#M461914</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-08-13T04:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192754#M461915</link>
      <description>Any suggestions or advice?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance..</description>
      <pubDate>Thu, 13 Aug 2009 17:54:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192754#M461915</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-08-13T17:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192755#M461916</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Try restarting syslog.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/syslogd stop&lt;BR /&gt;/sbin/init.d/syslogd start&lt;BR /&gt;&lt;BR /&gt;Also why do you expect the logging to be in syslog.log? Is it perhaps in its own file?&lt;BR /&gt;&lt;BR /&gt;lvl stands for level in escsi_log_lvl. Higher levels generally dictate more detail.&lt;BR /&gt;&lt;BR /&gt;Careful this can get verbose.&lt;BR /&gt;&lt;BR /&gt;Why do you need this data? Do you suspect a scsi problem? Inquring minds want to know.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can it be done globally or for a subsystem or only specific to a device?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note the dev statement.&lt;BR /&gt;&lt;BR /&gt;I tried this for a disk:&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;# scsimgr set_attr -a escsi_log_dev=0xbc04b300&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 13 Aug 2009 18:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192755#M461916</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-08-13T18:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192756#M461917</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;I have gone through man page of scsimgr which says that changes like enabling/disabling scsi object will log message in syslog.&lt;BR /&gt;Yes we suspect scsi issues for which I was asked to do this.&lt;BR /&gt;&lt;BR /&gt;1. Is there any other file also that contains debug logs?&lt;BR /&gt;&lt;BR /&gt;2. Is this correct command to enable scsi logging?&lt;BR /&gt;  # scsimgr set_attr -a escsi_log_dev=0xbc04b300&lt;BR /&gt;&lt;BR /&gt;3. And lastly, scsi debugging is done on device level ?&lt;BR /&gt;&lt;BR /&gt;@SEP:&lt;BR /&gt;Once I get back to work, I will definitely try resarting syslogd.&lt;BR /&gt;&lt;BR /&gt;Regds..</description>
      <pubDate>Thu, 13 Aug 2009 18:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192756#M461917</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-08-13T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192757#M461918</link>
      <description>By default, the HP-UX syslog will ignore debug messages. You should adjust the /etc/syslog.conf configuration to log the debug messages (perhaps into a separate logfile), then send a kill -HUP to syslogd.&lt;BR /&gt;&lt;BR /&gt;You may also want to add the "-v" option to syslogd (using /etc/rc.config.d/syslogd) and restart syslogd. This will add the facility/priority code to each log message. Being able to see the priority levels of each message will make it easier to further refine your syslog.conf configuration.&lt;BR /&gt;&lt;BR /&gt;NOTE: when editing /etc/syslog.conf, remember to use TABs between message selectors and their associated log destinations, not spaces. See the man page of syslog for more information.</description>
      <pubDate>Thu, 13 Aug 2009 18:41:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192757#M461918</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-08-13T18:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192758#M461919</link>
      <description>&lt;!--!*#--&gt;Thanks so far..&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;You should adjust the /etc/syslog.conf configuration to log the debug messages&lt;BR /&gt;&lt;BR /&gt;Que 1: I am not sure on how to edit this file to enable the debugging. Need more help on this.&lt;BR /&gt;&lt;BR /&gt;I have changed /etc/rc.config.d/syslogd from "-D" to "-D -v". Restarted syslogd. But still could NOT see any logging in syslog.&lt;BR /&gt;&lt;BR /&gt;Que 2: How can I verify/test that logging is been done by system?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 16 Aug 2009 13:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192758#M461919</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-08-16T13:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192759#M461920</link>
      <description>syslog logging is configured by the file /etc/syslog.conf. The /etc/rc.config.d file configures how syslogd is started and stopped.&lt;BR /&gt; &lt;BR /&gt;-v turns on the facility and priority which will be useful later on. The change you need to make is in /etc/syslog.conf. Typically it looks like this:&lt;BR /&gt; &lt;BR /&gt;mail.debug              /var/adm/syslog/mail.log&lt;BR /&gt;*.info;mail.none        /var/adm/syslog/syslog.log&lt;BR /&gt;*.alert                 /dev/console&lt;BR /&gt;*.alert                 root&lt;BR /&gt;*.emerg                 *&lt;BR /&gt; &lt;BR /&gt;In this example, only mail messages will be logged all the way down to the debug level. Temporarily, you need to change the syslog.log line from *.info to *.debug. Now before you make the change, a very, very important rule: syslog.conf must have *NO* spaces between items. Any space in this file turns the line into a comment! (as far as I know, this is the only Unix command with this bizarre rule).&lt;BR /&gt; &lt;BR /&gt;Secondly: once you make the change, open an extra window to monitor the size of syslog. The debug level can cause syslog.log to grow enormously fast (many MB in a few seconds) so you may need to switch back to *.info fairly quickly. &lt;BR /&gt; &lt;BR /&gt;Now to prevent excessive syslog.log growth, you can redirect the scsimgr debug messages to a different file. To do this, you must first identify scsimgr messages in syslog with debug level set. Right after the date (when syslogd is run with -v), you'll see a 2 character code like 5B or 3D. This is the syslog sorting code -- numbers = priority or importance, letters = facility or category. Use the man page for syslog to find the character codes.&lt;BR /&gt; &lt;BR /&gt;To redirect scsimgr debug messages to a different file, find the facility code (letters A through X) then edit the syslog.conf file. Suppose the scsimgr facility is LOCAL6 (letter = W) then syslog.conf should look like this:&lt;BR /&gt; &lt;BR /&gt;*.info;mail.none;local6.none /var/adm/syslog/syslog.log &lt;BR /&gt;local6.debug /var/adm/scsimgr.log&lt;BR /&gt; &lt;BR /&gt;This says: ignore all mail and all local6 messages for syslog.log, and send all messages for LOCAL6 to the file /var/adm/scsimgr.log file.&lt;BR /&gt; &lt;BR /&gt;Now you can get the debug details without seeing a bunch of other service messages.</description>
      <pubDate>Sun, 16 Aug 2009 22:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192759#M461920</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-08-16T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192760#M461921</link>
      <description>Almost forgot: &lt;BR /&gt; &lt;BR /&gt;&amp;gt;How can I verify/test that logging is been done by system?&lt;BR /&gt; &lt;BR /&gt;logger. This command can create a message at any priority and for any facility. Usage:&lt;BR /&gt; &lt;BR /&gt;logger [-p facility.priority] "Some message" &lt;BR /&gt; &lt;BR /&gt;So for LOCAL6 at a WARN level:&lt;BR /&gt; &lt;BR /&gt;logger -p local6:warn "testing local6"&lt;BR /&gt; &lt;BR /&gt;Then look in syslog.log (or scsimgr.log). Note also that any changes to syslog.conf must be followed by:&lt;BR /&gt; &lt;BR /&gt;kill -HUP `cat /var/run/syslog.pid`&lt;BR /&gt; &lt;BR /&gt;which will cause syslogd to re-reada the conf file.</description>
      <pubDate>Sun, 16 Aug 2009 22:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192760#M461921</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-08-16T22:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192761#M461922</link>
      <description>Thanks a lot guys..!!&lt;BR /&gt;&lt;BR /&gt;Will get back again in case I need more help.&lt;BR /&gt;&lt;BR /&gt;Regds..</description>
      <pubDate>Tue, 18 Aug 2009 00:21:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192761#M461922</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-08-18T00:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192762#M461923</link>
      <description>&lt;!--!*#--&gt;Hi Again,&lt;BR /&gt;&lt;BR /&gt;I have changed *.info to *.debug and followed steps as said.&lt;BR /&gt;&lt;BR /&gt;-Changed syslog.conf&lt;BR /&gt;-Made it verbose&lt;BR /&gt;-Restarted syslogd&lt;BR /&gt;&lt;BR /&gt;BUT still I am not getting any debug messages logged into syslog.log.&lt;BR /&gt;&lt;BR /&gt;Logger command is working fine.&lt;BR /&gt;&lt;BR /&gt;Any suggestions....what could be the issue?&lt;BR /&gt;&lt;BR /&gt;Thanks..&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Aug 2009 02:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192762#M461923</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-08-22T02:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192763#M461924</link>
      <description>Are you getting the 2-char code right after the data in syslog (like 5D: or 6Q:). If not, syslogd isn't running with the -v option. If you are getting the 2-char code, do you see any "7" messages (ie, 7D or 7Q or 7B)? If not, then debug messages are not being logged. Make sure *.info was changed to exactly *.debug. Then use logger to generate a debug message:&lt;BR /&gt; &lt;BR /&gt;logger -p local1.debug "testing local1.debug"&lt;BR /&gt; &lt;BR /&gt;That should show the logger message with the code 7R:. If not, use:&lt;BR /&gt; &lt;BR /&gt;logger -p local1.warn "testing local1.warn"&lt;BR /&gt; &lt;BR /&gt;and that will log the message as 4R:</description>
      <pubDate>Sun, 23 Aug 2009 14:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192763#M461924</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-08-23T14:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192764#M461925</link>
      <description>&lt;!--!*#--&gt;Hi Bill,&lt;BR /&gt;&lt;BR /&gt;As you said, looks like I am getting normal outputs from logger command.&lt;BR /&gt;&lt;BR /&gt;I have attached of what I did..please check.&lt;BR /&gt;&lt;BR /&gt;But why am I not getting any debug messages from scsi device say a disk.&lt;BR /&gt;&lt;BR /&gt;I am using below command for debugging a boot disk (just to see if it works):&lt;BR /&gt;# scsimgr set_attr -a escsi_log_dev=0xbc002003&lt;BR /&gt;&lt;BR /&gt;I must be going wrong somewhere..&lt;BR /&gt;Totally confused..&lt;BR /&gt;&lt;BR /&gt;Regds..</description>
      <pubDate>Mon, 24 Aug 2009 04:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192764#M461925</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-08-24T04:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192765#M461926</link>
      <description>&amp;gt; Aug 23 21:49:36 7R:xxxxxxx root: testing local1.debug&lt;BR /&gt; &lt;BR /&gt;The 7E: code indicates that everything is working with syslogd so the problem is with scsimgr. The manual doesn't mention anything about syslog debug at all:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://docs.hp.com/en/scsimgr/scsimgr_whp_AR0709.pdf" target="_blank"&gt;http://docs.hp.com/en/scsimgr/scsimgr_whp_AR0709.pdf&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;The man page for scsimgr does mention the word debug one time for the option escsi_dbg_lvl.</description>
      <pubDate>Mon, 24 Aug 2009 13:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192765#M461926</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-08-24T13:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: scsi debugging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192766#M461927</link>
      <description>Thanks a lot for your help..&lt;BR /&gt;Looks like something is wrong in devices I am trying to debug....will try it on different devices.&lt;BR /&gt;&lt;BR /&gt;Regds..</description>
      <pubDate>Sat, 05 Sep 2009 20:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scsi-debugging/m-p/5192766#M461927</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2009-09-05T20:12:38Z</dc:date>
    </item>
  </channel>
</rss>

