Using adb to set "dosynctodr" on Solaris 2.3

2007-12-25 11:51:00

To recap, I was trying to set a kernel variable in a running kernel.

The issues are (including one or two I neglected to mention):

  - The variable is called "dosynctodr"

  - It is related to running xntpd (search this list for more info)

  - I have already put "set dosynctodr=0" in /etc/system so that it

    will be set each time each system boots.

  - The "tickadj" program, which can set this variable, compiles but

    does not run for me.

  - I thought I was having success on Solaris 2.4 and 2.5, but not 2.3

The problem actually was that I was using adb incorrectly. I was

winging it on what I had seen in a couple of Sun bug reports, and a

quick scan of the manual. So, in summary:

1 - To start adb on the running kernel (this should work on any

version of Solaris 2, while other incantations work on a subset):

        # adb -kw /dev/ksyms /dev/mem

2 - To print the value of the variable "dosynctodr" in the running

kernel:

        dosynctodr /

2a - To print the value of the variable "dosynctodr" in the running

kernel, as a long decimal:

        dosynctodr /D

3 - To print the value of "dosynctodr" and also set it to "0" (in that

order):

        dosynctodr /W 0

Thanks to all who responded.

Tim


--
Tim Cook, Unix Support Team Leader, BHP Information Technology
Address: PO Box 21, Whyalla, Australia 5600
Phone: +61 86 404596 Fax: +61 86 404760
URL (BHP only): http://www.itwhy.bhp.com.au/unix

Comments

Got something to say?

You must be logged in to post a comment.