HP-UX (Hewlett-Packard Unix) is Hewlett-Packard's proprietary implementation of the Unix operating system.

learn more… | top users | synonyms (1)

-2
votes
2answers
187 views

Unix for loop and grep combined ksh hp-ux

What if you have 5 or 6 files, specific files .biz in a directory, and you want to store them one at the time in a variable $file, and apply a set of command until no more .biz file are found in the ...
0
votes
1answer
28 views

What is special about printf over echo

I was finding length of a variable as below: `set num=123456` `echo $num|wc -c` it returned output as 7 (suppose to return 6) I did same with printf `printf "%s" $num|wc -c` it returned output ...
0
votes
1answer
36 views

set alias for a directory

I am trying to set an alias that would allow me to quickly cd to the following directories: /home/user/asreera/Aravind/sample/src /home/user/asreera/Aravind/sample2/src First I set the variable: ...
1
vote
2answers
38 views

Get swap memory info where swapinfo not available

I have HP-UX box. I need to write shell script to see the swap memory. Unfortunately. The box don't have swapinfo command. Is there any alternative way to see the swap usage percentage? Please note ...
0
votes
1answer
16 views

How do I upgrade a program on HP-UX?

I've noticed HP-UX swinstall can install two different versions, or releases of the same program. But if I want to upgrade a program? Usually I do: swremove NAMEOFPRODUCT swinstall NAMEOFPRODUCT ...
0
votes
2answers
11 views

How can i get an overview about env (environment variables) of all users on a system?

How can i get an overview about env (environment) of all users on a system? Status: i've got over 600 user in passwd, but each of them could have a env variable for a specifec project path (~10 ...
0
votes
2answers
54 views

get day from date with append 0 in 1 to 9 digit

i am using awk command to get creation date of file and from that i m fetching day,month and year but for 1-9 digit i am getting output like 2016041 but i want output 20160401. D=$(ls -ltr $line | ...
0
votes
0answers
36 views

max stack size limit on HP UNIX

What is the max stack size limit of 32 bit process in HP-UX B.11.31 or what is the max stack size that can be alloacted to a 32 bit process in HP -UX
0
votes
2answers
56 views

hp-ux find command not working on a list of files

We're using the following hp-ux configuration: HP-UX dxp10hxw B.11.23 U 9000/800 1446354274 unlimited-user license And trying to run a simple find command as follows: find . ! -type l -perm -0020 -...
3
votes
2answers
54 views

Create directory named from file modification time

I want to create directory name from a file's modification time. For example, if the file creation or modification time is 03/17/2016 18:00:00 then I want to create a directory named 1703206. I'm ...
0
votes
1answer
38 views

Problem: Having file name contain Space and fetch the file [duplicate]

I am trying to get all file which is reside in one folder and file name have space like 1)File Test 050791.xml and i am fetching using below command export srcfileTimeCheck="$(find $dir -type f -...
0
votes
1answer
50 views

tigervnc and cmake on hpux: why cannot find zlib?

I use this script to configure tigervnc on hpux cmake is latest 3.4.3 zlib is latest 2.8 But script fail,why? export PATH=$PATH:/opt/cmake/bin/ export CC="/usr/local/bin/gcc" export HPUXLDFLAGS='-L/...
0
votes
1answer
22 views

HPUX throwing an RST 30 seconds after a sucessful NFS mount

We have an application written in Dot NET that basically allows Linux and Unix files to access symbolic links stored in the NFS "share". Customer was having issues with the NFS share becoming ...
0
votes
0answers
31 views

Apache and SSLVerifyClient

Please excuse any dumb statements regarding this. I am very new to Apache and to HP-UX. I am a SQL Server DBA and ended up on this project. I am working to try and implement SSL with Client Verify ...
3
votes
1answer
52 views

What is the purpose of the uucico shell on HP-UX, Solaris, and possibly other Unix varieties?

For my work, I review Unix and Linux server configurations for compliance with security guidelines. So I'm not a Unix admin myself, but I work with Unix servers on a regular basis and am fairly ...
0
votes
1answer
88 views

HpUX: correct vgreduce

I want to remove a disk from root mirror. The disk to remove is /dev/disk/disk2_p2 lvreduce -m 0 /dev/vg00/lvol1 /dev/disk/disk2_p2 lvreduce -m 0 /dev/vg00/lvol2 /dev/disk/disk2_p2 lvreduce -m 0 /dev/...
-1
votes
1answer
16 views

Hpux -lq and -lm

Simple and nice question about hpux In case of emergency i can boot with two options -lq -lm I know -lq is lost quorum on mirror,ok And -lm?Is lost mirror?What the difference with -lq?
3
votes
1answer
41 views

HP-UX: How to know if password was ever established?

In Linux systems, for a user 1) if the password was ever established, but the account is locked, then its shows in /etc/shadow file something like: <account>:!!<hashed password>:.... 2)...
1
vote
2answers
208 views

How to get yesterday date and stored into one variable

I am having a log file where I need to grep based on yesterday date. How to get the yesterday date. The time stamp in the log file is formatted as: Wed Sep 23 for two digit Wed Dec 1 for one digit ...
0
votes
0answers
31 views

HP-UX: is a swpackage codeworded?

I can use swlist to show installed package: swlist (abridged) # Initializing... # Contacting target "abcdef1"... (...) B2491BA B.11.31 MirrorDisk/UX (Server) (......
2
votes
0answers
37 views

How can I determine the most current available patches for HP-UX 11.31 without a support contract?

I'm working with an HP-UX 11.31 server which has been out of its support contract for about a month now. I'm trying to determine whether any patches have been released for HP-UX in that time that this ...
0
votes
1answer
30 views

How to find my hp server is 9000 or Integrity?

I am not a geek on Unix... My server is HP Unix B.11.31 and I want to check whether it is 9000 type or Integrity type. Is there any command to check? Regards Malai
3
votes
2answers
627 views

Finding Process Info Associated to a Given Port in HP-UX

I need to find information for a process that's using a given port number, such as 8080. More specifically, I'm interested in finding out the full path of the program. How can I do that in HP-UX?
1
vote
2answers
111 views

find path directory in sub directory

I want to find the path for directory name bbb where the parent directory called aaa For example /aaa/bbb /tmp/aaa/bbb /usr/bin/aaa/bbb /home/aaa/bbb /home/aaa/xxx/bbb So i wrote something like ...
1
vote
3answers
793 views

IPCS command for Shared memory and semaphore in Solaris, HP-UX and AIX

I know ipcs command for linux system, but now I'm looking for ipcs command for solaris, hp-ux and aix system, I have searched lot in websites, almost everyone suggest ipcs -am, ipcs -as or ipcs -a. ...
0
votes
1answer
64 views

How to create a new line?

In the below command I am sending the mail . in the mail the meter id is being sent if [ -s "$TMP_RPT_FILE" || -s "$TMP_RPT_FILE1" ] then if [ -s "$TMP_RPT_FILE" ] then ...
2
votes
3answers
195 views

How to print the before lines of search keyword with out using grep in a gz file?

How to print the lines before a search keyword without using grep in a .gz file? ID:342N000390AAAAAAAA 07/14/15 10:26 (MV90 ) * Register Data Imported * Warning - No ...
3
votes
2answers
232 views

check for “errors” or “ORA-”

I want to check for "errors" or "ORA-" in Y.if there is an error then exit Y=`sqlplus -s user/passwd<< EOF exec test_Proc; exit; EOF` if [ echo $Y | awk '/ERROR/ || /ORA-/' ] ; then exit 1 fi ...
0
votes
1answer
175 views

HPUX: how to access to remote repo swagent?

I have one server with hpux,two clients even hpux The client are hpux3,and hpux4 The server is called hpux2,and serve a remote repo of depots if i try to install from hpux2,of course all works fine ...
0
votes
1answer
184 views

Cutting logs (and not copying) from a log file between two time stamps

I have a very huge access.log file of 2 Gb containing apache access logs. The date time format in that is as below : 04/May/2015:02:15:25 I want to cut (and not just copy) the logs from this ...
8
votes
1answer
164 views

How to prevent HP-UX command “less” from messing up my prompt?

I don't like the output of more on HP-UX, so I use less instead as a pager: PAGER=less Its output is nice, but, on Linux, when I use man and then quit, I go back to the shell, and the display looks ...
0
votes
1answer
120 views

hpux: ipmon on syslog.log

I have configured firewall for log,i want to write in a separate file log for ipmon. Reading on net they suggest to use local0.* or local0.debug on /etc/syslog.conf file. I make this local0.notice ...
0
votes
0answers
60 views

How to Login to HPUX VM from HPUX Host machine?

I installed a VM in HP Unix machine, I can login via SSH. I need to login via HPUX host machine. Is there any way doing that?
8
votes
2answers
450 views

Unix: a question about xargs

On AIX (but this happens on HP-UX as well), I have GNU ls in my path and it is also aliased as ls. But when i use xargs, it uses the standard Unix ls instead of the alias. For example (flocate is a ...
1
vote
1answer
82 views

hpux: strange dsf thing

Running setboot setboot Primary bootpath : 0/1/1/0.0.0 (No dsf found) HA Alternate bootpath : 0/0/2/0.0.0x0.0x0 (/dev/rdisk/disk3) Alternate bootpath : 0/1/2/1 (LAN Interface) My system boot fine,i ...
0
votes
1answer
116 views

Problem typing @ character at command prompt under HP-UX

Under HP-UX Model :9000/800 O/S = B.11.11 Problem to type @ character on command prompt as well as in vi editor also. When I try to type "@" this character I won't get anything. line for export ...
1
vote
2answers
878 views

How can I remove a disk from a group with striped volumes?

I have an HP-UX B.11.11 system with two disks. I would like to remove one, but as far as I can divine, it seems that the volumes are striped across the pair and I can't figure out how to convert/move/...
1
vote
2answers
243 views

query all symbolic links to a directory

HP-UX ***B.11.31 U ia64 ***** unlimited-user license. $ ls -al 10 May 9 2011 HORCM -> /opt/HORCM 8 May 9 2011 bin -> /usr/bin 0 Mar 29 2012 core Feb 18 05:36 dev How do I list the link ...
0
votes
1answer
1k views

hpux: how much memory process eating?

I have found on web those two command line to see top 10 cpu and ram eating process ram echo " SZ PID RUSER COMMAND";UNIX95= ps -ef -o 'sz pid ruser args' |sort -nr|head -10 cpu echo " SZ PID ...
0
votes
1answer
296 views

Hot swapping a mirrored disk on a HP UX

I'm trying to do a hot swap on a mirrored lvm. $ vgdisplay -v /dev/vg00 --- Physical volumes --- PV Name /dev/dsk/c2t0d0s2 PV Status unavailable Total PE ...
1
vote
2answers
485 views

Migrate from Sendmail to Postfix

We have an HP-UX environment running HP-UX 11.31. The system was originally built to send email out through Sendmail. The server only sends email out, and the programmer has built a number of programs ...
2
votes
2answers
40 views

HPUX: missing symbol

/opt/samba3/sbin/winbindd -d 100 -i produce /usr/lib/hpux32/dld.so: Unsatisfied code symbol '_nss_winbind_initgroups_dyn' in load module '/usr/lib/hpux32/libnss_winbind.so.1'. Killed How to check?...
1
vote
2answers
564 views

Samba4 on HPUX 11.31

I'm tryng to setup hpux samba,i use this smb.conf [global] workgroup = DOMINIO realm = DOMINIO.COM server string = "" netbios name = HPUX2 security = ads hosts ...
2
votes
3answers
422 views

In HP-UX, how can I log Informational Only system event messages in syslog.log?

I was getting some Informational Only single-bit memory errors on a server for at least three weeks, but I only happened to notice them because I went looking through the SEL via the MP console for an ...
2
votes
2answers
290 views

React to incoming files in a directory on HP-UX

How can I achieve this logic using a script: Monitor new incoming files in a directory. If files are not received in the directory for 3 hours or if the received file is empty then do something. ...
0
votes
1answer
894 views

HPUX logging ftp connection

Host is 11iV3. I am trying to log ftp transfert outside syslog.log in /etc/inetd.conf ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -u 022 -o -i -X where -i/-o tell ftpd to log ...
2
votes
1answer
542 views

DSA/RSA keys work with Linux but not HP-UX

I have an NFS mount that I use to log into many Linux/Unix servers. I created a passphraseless RSA and DSA key from with I copied the id_rsa.pub and id_dsa.pub files over to authorized_keys. total 9 ...
1
vote
2answers
2k views

HPUX Logging Logins

I'm trying to enable security logging on some HPUX11 systems. I can get HPUX to generate a message that: a login is being attempted (username, no source IP) a login failed (no username or source ...
1
vote
1answer
258 views

mailx and HP-UX to RedHat migration

We are migrating some servers from HP-UX to Linux RedHat, and we have to migrate about 100 shell scripts that are referencing /usr/bin/mailx (instead of /bin/mailx on Linux). We'd like to change all ...
0
votes
0answers
260 views

HP-UX itanium cannot log in or connect

I just had this problem where suddenly I cannot ssh into my HP-UX itanium, but still can ping. Few hours before that, I was still able to so. I tried to force reboot (Pressing the power button). Then, ...