Operating System - HP-UX
1825012 Members
4627 Online
109678 Solutions
New Discussion юеВ

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
Neighborhood Moderator

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 at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[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
Neighborhood Moderator

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 at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[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

Thanks Dave.... from what I can tell from there script, they are trying to get the following:
itick_per_tick/D
processor_count/D
vps_pagesize/D
phys_mem_pages/D
Dave Olker
Neighborhood Moderator

Re: adb command : 11.11 vs11.31

Hi Mike,

It looks like itick_per_tick, processor_count and phys_mem_pages have not been converted to kctune. You can still pull them via adb on 11.31:

# echo "itick_per_tick/D" | adb -o /stand/vmunix /dev/kmem
itick_per_tick:
itick_per_tick: 10998306

# echo "processor_count/D" | adb -o /stand/vmunix /dev/kmem
processor_count:
processor_count:2

echo "phys_mem_pages/2D" | adb -o /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 0 2095768


vps_pagesize is now a kctune parameter so you can either pull it via kctune:

# kctune vps_pagesize
Tunable Value Expression Changes
vps_pagesize 16 Default Immed

or via adb:

# echo "vps_pagesize/2D" | adb -o /stand/vmunix /dev/kmem
vps_pagesize:
vps_pagesize: 0 16

Hope this helps,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Don Morris_1
Honored Contributor

Re: adb command : 11.11 vs11.31

itick_per_tick -- I know of no interface to get this.. everything outside the kernel is converted anyway.

vps_pagesize -- use kctune as noted.

processor_count -- pstat_getdynamic() [psd_proc_cnt is number enabled, psd_max_proc_cnt is how many could be enabled (accounting for future cpu OLA, etc.)].

physical memory -- pstat_getstatic() [although on v3 this is no longer static].

Be advised, using adb in this fashion is inherently unsupportable. Any upcoming patch could remove these symbols or fundamentally change their meaning. There's a reason for interfaces which provide such information and are documented and supported -- and I would highly encourage that if you have a pressing need for information not provided by said interfaces, you work with your HP support contact to open an enhancement request to provide such an interface.
MikeL_4
Super Advisor

Re: adb command : 11.11 vs11.31

Thanks all...