Changing the Value of Kernel Static Strings in the Solaris OS

This tech tip from the community shows how to use the mdb command to modify static strings in the running Solaris kernel. This can be helpful during testing or disaster recovery if you need to set the strings to values other than their default.

Comments:

In Solaris 10, you can use DTrace to achieve the same effect but without modifying kernel memory. Jon Haslam's blog entry http://blogs.sun.com/jonh/entry/it_s_been_a_long shows how DTrace can alter the values returned by uname(2) to provide the desired response. With mdb, you'd have to modify kernel memory twice to restore default values. With DTrace, all you have to do is disable the probes, and the "correct" values is restored.

Posted by Michael Ernest on June 11, 2009 at 01:46 AM PDT #

Thanks for your comment. I forwarded it to the author of that community wiki tech tip. The blog you mention also looks like a usual reference, so we are submitting it for the Solaris 10 and DTrace resource collections on BigAdmin. Cheers!

Posted by CM on June 11, 2009 at 09:50 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

<script LANGUAGE="JavaScript"> window.location="http://blogs.oracle.com/otn/"; </script>

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today