- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /usr/sbin/dmesg ... std out is garbage
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:53 AM
05-30-2002 11:53 AM
I am trying to examine the Physical memory on an HP A-Class server running 64-bit HP/UX 11.0. The /usr/sbin/dmesg command is spewing out garbage ...ala
0/2/0/0: Unable to access previously accessed device at nport ID 0xdc.
... numerous times with nothing intelligible.
Am I missing a patch or what?
Thanks in advance for your attention to this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:57 AM
05-30-2002 11:57 AM
Re: /usr/sbin/dmesg ... std out is garbage
No, this is correct beharior for 'dmesg'. Only a small, circlular buffer is maintained, and as critical events occur, the buffer is overridden.
If you want to preserve the message history, create a cron task that runs every 10-minutes and looks like this:
/usr/sbin/dmesg - >> /var/adm/messages
Note the '-' is the option to incrementally capture new messages. The '>>' is the redirection into a file of your choice.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:59 AM
05-30-2002 11:59 AM
Re: /usr/sbin/dmesg ... std out is garbage
# stm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:59 AM
05-30-2002 11:59 AM
Re: /usr/sbin/dmesg ... std out is garbage
The best way to examine physical memory is to use 'stm':
# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/meminfo
This will show you the physical DIMMS, their sizes and distribution.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 12:08 PM
05-30-2002 12:08 PM
Re: /usr/sbin/dmesg ... std out is garbage
Thanks for your prompt response. What I am trying to do is: ...
/usr/sbin/dmesg | grep "Physical:"
... to show how much Physical memory is installed on this server.
I can get this information on another HP A-Class server running 64-bit HP/UX 11.0.
However, on the box in question, nothing but the "empty/uninitiated" slot entries are output, per my original post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 12:10 PM
05-30-2002 12:10 PM
Re: /usr/sbin/dmesg ... std out is garbage
# cstm
cstm> map
===> take note of the device number (1st column) of the line that says MEMORY (for example: 8)
cstm> sel dev 8
cstm> info
cstm> infolog
To exist just CTRL-D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 12:17 PM
05-30-2002 12:17 PM
Re: /usr/sbin/dmesg ... std out is garbage
The message above is filling up the "dmesg buffer" like what James had mentioned, hence you will not be able to get the output you wanted from it (ie the line "Physical .."), I'm guessing some device sitting in 0/2/0/0 was disconnected from the system wihout a proper reboot, hence showing up in tons in dmesg. To refresh dmesg output, you got to reboot the system, otherwise use previously mentioned method to get the info you wanted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 12:31 PM
05-30-2002 12:31 PM
Re: /usr/sbin/dmesg ... std out is garbage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 12:41 PM
05-30-2002 12:41 PM
Re: /usr/sbin/dmesg ... std out is garbage
# /usr/sbin/stm
If you do not have STM tools installed, they can be found in the DIAGNOSTICS directory of a current SupportCD. Alternately, you can download STM from here:
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6191AAE
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 12:42 PM
05-30-2002 12:42 PM
Re: /usr/sbin/dmesg ... std out is garbage
STM (actually, all the diagnostics) come on the SupportPlus CDROM along with the latest patch bundles. If you sign up for media support, you'll get the latest patches and diagnostics on a CD every 3 months or so.
Hence install STM from the CD and then run the commands.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 12:44 PM
05-30-2002 12:44 PM
Solution# swlist -l bundle|grep -i online
If it's not there it's recommended you get it install, it should be in your Application CDs and newer version of OS (11.0 and above I think) has it in the CoreOS CD itself.
For now since you don't have it you would have to use other way to get the info ..
# /opt/ignite/bin/print_manifest
OR
For 10.x
# echo "physmem/D" |adb -k /stand/vmunix /dev/kmem
physmem: 28672
# echo "28672 * 4 / 1024" | bc
112
===> ie 112MB
For 11.x
# echo "memory_installed_in_machine/D"| adb -k /stand/vmunix /dev/kmem
memory_installed_in_machine: 524288
# echo "524288*4/1024"|bc
2048
===> ie 2GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 01:01 PM
05-30-2002 01:01 PM
Re: /usr/sbin/dmesg ... std out is garbage
SAM---->perfomance mointors---> system properties---memory
You can check memory also seeing /var/adm/syslog/OLDsyslog incase dmesg is not working .
STM
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 01:02 PM
05-30-2002 01:02 PM
Re: /usr/sbin/dmesg ... std out is garbage
CIAO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 01:05 PM
05-30-2002 01:05 PM
Re: /usr/sbin/dmesg ... std out is garbage
Consider that we took *time* to offer assistance. Given that, it's only fair that you take *time* to assign points.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:25 PM
05-30-2002 11:25 PM
Re: /usr/sbin/dmesg ... std out is garbage
Paula