- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- adb: info: Option -k is deprecated.
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
10-27-2004 01:07 AM
10-27-2004 01:07 AM
Now, it has to work on HP-ux 11.i but I receive the following warning :
adb: info: Option -k is deprecated.
The command is the following one :
case $OS in
10)
VitesseCPU=`echo 'itick_per_tick/D' | adb /stand/vmunix /dev/kmem | \
tail -n 1 | awk '{print $2}'`
;;
11)
VitesseCPU=`echo 'itick_per_tick/D' | adb -k /stand/vmunix /dev/kmem | \
tail -n 1 | awk '{print $2}'`
;;
esac
May I remove the -k option for 11.11 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:11 AM
10-27-2004 01:11 AM
Re: adb: info: Option -k is deprecated.
-k seems fine on mine 11i v1
# echo 'itick_per_tick/D' | adb -k /stand/vmunix /dev/kmem | \
> tail -n 1 | awk '{print $2}'
4000000
# ll /usr/bin/adb
-r-xr-xr-x 1 bin bin 212992 Nov 14 2000 /usr/bin/adb
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:14 AM
10-27-2004 01:14 AM
Re: adb: info: Option -k is deprecated.
All about adb :
root:/# ls -al /usr/bin/adb
-r-xr-xr-x 1 bin bin 212992 May 31 2003 /usr/bin/adb
root/# file /usr/bin/adb
/usr/bin/adb: PA-RISC1.1 shared executable dynamically linked
root/# type /usr/bin/adb
/usr/bin/adb is /usr/bin/adb
root/# what /usr/bin/adb
/usr/bin/adb:
$Revision: B.11.11_EP_PATCH_28774
Sat May 31 10:42:26 IST 2003 $
Its not the same on 11.00...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:17 AM
10-27-2004 01:17 AM
Re: adb: info: Option -k is deprecated.
root:/# echo 'itick_per_tick/D' | adb -k /stand/vmunix /dev/kmem | \
_root@y8ri06l# tail -n 1 | awk '{ print $2 }'
adb: info: Option -k is deprecated.
4400000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:19 AM
10-27-2004 01:19 AM
Re: adb: info: Option -k is deprecated.
/usr/bin/adb:
$Revision: B.11.11_LR
Fri Oct 27 01:03:42 PDT 2000 $
So yours is patched - what's in the man page?
Is the man page still at "November 2000" or has it been updated?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:21 AM
10-27-2004 01:21 AM
SolutionHere's what I use:
HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi
MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:23 AM
10-27-2004 01:23 AM
Re: adb: info: Option -k is deprecated.
Just modified a script called hpmem:
# cat /usr/local/bin/hpmem
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval*4/1024 # convert pages to MB
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nflocks"
print nflock: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval
adb works without the -k
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:26 AM
10-27-2004 01:26 AM
Re: adb: info: Option -k is deprecated.
The man files I've found :
-r--r--r-- 1 bin bin 11294 Nov 14 2000 /usr/share/man/ja_JP.SJIS/man1.Z/adb.1
-r--r--r-- 1 bin bin 11221 Nov 14 2000 /usr/share/man/ja_JP.eucJP/man1.Z/adb.1
-r--r--r-- 1 bin bin 10543 Jun 2 2003 /usr/share/man/man1.Z/adb.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2004 01:35 AM
10-27-2004 01:35 AM
Re: adb: info: Option -k is deprecated.
So, to summarize, I've to use -k only on 11.00. For 10.x and 11i, it's not a mandatory option.
Thank a lot for your help !