Linux - HP UX Command options


 
Thread Tools Search this Thread
Operating Systems HP-UX Linux - HP UX Command options
# 1  
Old 07-30-2008
Linux - HP UX Command options

Just I gone with the script, I found some command's options which are not compatible with " HP-UX ".

If I found any alternate commands to the following, most probably I will solve the issue here.



1. " iostat -x " --> this command's option( x ) is not available in HP-UX flavor, but command is there

2. " netstat -i " --> this command's option( i ) is not available in HP-UX flavor, but command is there

Please help me
# 2  
Old 07-30-2008
Quote:
Originally Posted by pk_eee
Just I gone with the script, I found some command's options which are not compatible with " HP-UX ".

If I found any alternate commands to the following, most probably I will solve the issue here.



1. " iostat -x " --> this command's option( x ) is not available in HP-UX flavor, but command is there

2. " netstat -i " --> this command's option( i ) is not available in HP-UX flavor, but command is there

Please help me
man iostat

man netstat

barring that, you could get the source and compile them for HPUX with limited success. Then you could have them in a local resource.
# 3  
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

Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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. 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

6. 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

7. 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
Login or Register to Ask a Question