Operating System - HP-UX
1753943 Members
8983 Online
108811 Solutions
New Discussion юеВ

Re: adb command : 11.11 vs11.31

 
SOLVED
Go to solution
MikeL_4
Super Advisor

adb command : 11.11 vs11.31

We use the adb command on 11.11 server to gather information on the servers as:

=>/usr/bin/adb -k /stand/vmunix /dev/kmem
PA-64 adb ($h help $q quit)
adb>itick_per_tick/D
itick_per_tick:
itick_per_tick: 7999952
adb>processor_count/D
processor_count:
processor_count: 2
adb>vps_pagesize/D
vps_pagesize:
vps_pagesize: 4
adb>phys_mem_pages/D
phys_mem_pages:
phys_mem_pages: 261632
adb>$q
=>

But when we try these same commands on our new 11.31 servers we are receiving the following:

:>/usr/bin/adb -k /stand/vmunix /dev/kmem
adb: info: Option -k is deprecated.
adb> itick_per_tick/D
itick_per_tick:
adb: warning: Unrecognized format character - 'D'.
adb> processor_count/D
processor_count:
adb: warning: Unrecognized format character - 'D'.
adb> q
:>

What do I need to do to get this command working on our 11.31 servers...
13 REPLIES 13
James R. Ferguson
Acclaimed Contributor
Solution

Re: adb command : 11.11 vs11.31

Hi Mike:

At the very least, add the '-o' switch to 'adb' to enable backward compatability. I don't have an 11.31 server to comment further, though.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: adb command : 11.11 vs11.31

Shalom,

1) Check the man page, they may have changed how it works.

2) Bring your system up to date with the latest bi-annual patch set. This may simply be a bug.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Krastev
Honored Contributor

Re: adb command : 11.11 vs11.31

Use -o switch:

#echo "itick_per_tick/D" | adb -wo /stand/vmunix /dev/kmem
itick_per_tick:
itick_per_tick: 12999852


regards,
ivan
MikeL_4
Super Advisor

Re: adb command : 11.11 vs11.31

Is there a list of the different symbols, i.e.: phys_mem_pages, that can be used ??
Dennis Handly
Acclaimed Contributor

Re: adb command : 11.11 vs11.31

>Is there a list of the different symbols, i.e.: phys_mem_pages, that can be used

Just about anything from:
nm -px /stand/vmunix | grep " [NrbBdD] "

>ivan: adb -wo /stand/vmunix /dev/kmem

You probably don't want to use -w if you are just looking.

Venkatesh BL
Honored Contributor

Re: adb command : 11.11 vs11.31

All kernel globals can be looked up using adb. As a superuser, you must be able to find them using 'nm' on the /stand/vmunix file.

But, note that setting some of these values using adb does not neccessarily mean that they will be 'effective' immediately.
Dave Olker
HPE Pro

Re: adb command : 11.11 vs11.31

Is there a reason you're still using adb on 11.31 systems? Most every kernel tunable has been converted to kctune now and have associated man pages. Are there still some adb tunables that are not kctune-aware?

Dave
I work for HPE

[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
MikeL_4
Super Advisor

Re: adb command : 11.11 vs11.31

Our Performance group has scripts that they run against servers that pulls some information using adb command... On the new 11.31 servers there scripts don't work any longer..

We are using adb to change any parameters...
Dave Olker
HPE Pro

Re: adb command : 11.11 vs11.31

Hi Mike,

My point is that it might be a better solution to update the script to use kctune instead of adb to pull these statistics. Kctune has been available since 11.23 and most labs are moving away from using adb tunables and converting them to kctune.

In some cases the kctune version of the variable is named differently than the original adb version of the tunable. There are also situations where some adb tunables are obsoleted in newer versions of HP-UX. If there are specific adb tunables that you're needing to query that don't work on 11.23 or 11.31, let me know and I'll see if I can figure out whether they've migrated to kctune or been obsoleted.

Regards,

Dave
I work for HPE

[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo