Sponsored Content
Operating Systems HP-UX Linux - HP UX Command options Post 302221730 by buffoonix on Tuesday 5th of August 2008 04:39:05 AM
Old 08-05-2008
Unfortunately, the HP-UX iostat only gives KB/s transferred, Seeks/s and ms/seek per disk device
and not the detail the Linux implementation does.
If that doesn't suffice you would need Glance (which requires an extra license).
With Glance installed you can get virtually any system metric,
and you could write a so called Adviser script (shell like syntax) which you can run from a shell script on glance in adviser-only mode (i.e. not the usual interactive mode of glance).

However, with the network stats per NIC we have more luck.
On HP-UX you only use a different interface, viz. the lanadmin command.
So for instance to get the MIB counters of lan0 on this HP box I could issue
Code:
$ /usr/sbin/lanadmin -g mibstats 0

This produces lots of counters which I omitted here for brevity,
and which you will have to parse for interesting data.
Important is the final arg which is the so called PPA (physical point of attachment, HP's way of enumerating NICs so to speak)
To get an overview of which NICs are built into the box and supported by the kernel you can run
Code:
$ /usr/sbin/lanscan

or more tersely to take only active NICs into account
Code:
$ netstat -in

 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to? launch command with string of command line options

my description from another thread... here's my code: #!/bin/bash IFS=$'\n' function OutputName() { input=$1 echo $input input=`echo "$input" | sed -e 's/.//'` input=`echo "$input".avi` output_name=$input } if ]; then echo... (5 Replies)
Discussion started by: TinCanFury
5 Replies

2. Red Hat

How can i disable force options for linux commands

Sir , Is there any way for me to disable force (-f ) options to linux commands like rm. I tried to alias rm -f. alias rm -f = "rm -i" but it shows bad alias name error I need this command specifically for rm. Atleast i want this command to be interactive whether I issue rm ,rm... (2 Replies)
Discussion started by: iamjayanth
2 Replies

3. Shell Programming and Scripting

Need to disable options from a command

Hi, I am working on a Linux machine. I need to disable 2 options from the available 6 options of a command. For eg. in the "ls" command we have various options like "l ,r, t, a, .... " From this, I need to disable option "a" So when the users type in "ls -a", they should get an error or... (4 Replies)
Discussion started by: aster007
4 Replies

4. UNIX for Dummies Questions & Answers

Running set options from the command line and bash command

I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing set you can also use them "on the command line when running a script..." and it lists this in a small table: set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies

5. Debian

Linux booting options

Here is my question, a few years back I was sitting in an airplane and saw the movie display for all the passengers in the back of all the seats boot up. You could see the all too familiar boot-up-scrolling text that we are all used to with Linux. But probably only a few other folks on the plane... (2 Replies)
Discussion started by: caleb8
2 Replies

6. UNIX for Beginners Questions & Answers

Ls command options

Hi, If I want to list files with names containing a certain letter like " a " using just one ls command, is there any way of doing that? Note that it is containing a letter instead of one of the following (starting, ending with a letter or having the letter in between). what I want is to show... (1 Reply)
Discussion started by: AAAnni
1 Replies

7. UNIX for Advanced & Expert Users

How to create custom options of my own in systemctl Linux?

Hello All, Greetings!! I was trying to create a custom option in systemctl like its out of the box options eg--> status, stop, start, restart, I have tried searching in google but didn't find anything related to it. Basically I would like to create a custom option which is related to... (9 Replies)
Discussion started by: RavinderSingh13
9 Replies
IPCMK(1)							   User Commands							  IPCMK(1)

NAME
ipcmk - create various ipc resources SYNOPSIS
ipcmk <resource options> [additional options] DESCRIPTION
ipcmk allows you to create shared memory segments, message queues or semaphore arrays. RESOURCE OPTIONS
Resources may be specified as follows: -M, --shmem [size] Shared memory segment of size bytes. -S, --semaphore [number] Semaphore array with number of elements. -Q, --queue Message queue. ADDITIONAL OPTIONS
-p, --mode [mode] Permission for the resource. Default is 0644. -h, --help Display a short help message and exit. -V, --version Output version information and exit. SEE ALSO
ipcrm(1), ipcs(1) AUTHOR
Hayden A. James <hayden.james@gmail.com> AVAILABILITY
The ipcmk command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils/util- linux/>. util-linux September 2011 IPCMK(1)
All times are GMT -4. The time now is 08:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy