Questions tagged [hp-ux]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

setmemwindow hpux not working

I m trying to run three different services in my hpux 11.31 servr which loads different shared objects, for that i have enabled "setmemwindow" and set the max_mem_window as "3", but i m able to start ...
0
votes
2answers
31 views

Delete one type of file from specific directory however not from subdirectory

I am currently working on HP-UX and have a cron job which runs every morning which deletes file older than certain number of days based on retention policy. Recently I added a sub directory at the ...
0
votes
0answers
20 views

Swpackage doesn't set the state of a fileset

I'm trying to package a simple hello-world with swpackage (GNU swbis) and installing it with swinstall (HP-UX). I have created a simple PSF copying from swpackage manpage. distribution product ...
0
votes
1answer
85 views

rsync (but also other commands) run with nohup gets sigterm

I'm connecting from my computer to a HP UX B.11.31 system and am running some very lengthy there commands using nohup so I can go to sleep and do something else for a few days while they complete. ...
2
votes
1answer
33 views

What are the alternatives to swpackage?

I want to package a software for HP-UX (SD-UX) on a GNU/Linux operating system(for CI/CD reasons) but seems that swpackage is available only on HP-UX. What are the alternatives to swpackage?
0
votes
1answer
34 views

HP-UX swinstall error “INDEX file on the source did not exist or could not be read.” with a hand-crafted depot

I want to create a simple(?) software distribuition(package/SD-UX) containing a simple hello world shell script without using any tools provided by hpux for CI/CD reasons. I have handcrafted this ...
0
votes
0answers
23 views

authenticate against LDAP on HP UX

Trying to develop a program that can only grant access to legitimate LDAP users. PHP has been compiled without LDAP support, so this will have to be effected through the a command line tool. Is there ...
0
votes
1answer
80 views

How can I get a single column of output from the bdf command on HP-UX?

I would like to monitor disk space usage. I'm using HP-UX and the bdf command. I would like to check one directory and I can do that: bdf /exploit/ I would like to get only the row %used. How can I ...
-2
votes
1answer
81 views

How to convert a certificate in .pfx format to .jks in HP-UX server

I have a task to convert a .pfx SSL certificate to .jks format in a HP-UX B.11.31 server to be configured in our application's server.xml file, (keystoreFile=) for our 8090 connector port.
1
vote
1answer
49 views

Stunnel and hpux: why this error?

I have compiled a stunnel build on hpux with those options ./configure \ --prefix=/opt/stunnel \ --sbindir=/opt/stunnel/sbin \ --mandir=/opt/stunnel/man \ --docdir=/opt/stunnel/doc \ --...
0
votes
0answers
31 views

Realvnc and hpux: how to run dtlogin via vnc at startup?

I know how to use a "simple" vnc session. vncpasswd vncserver and I had a cde session wich start on port 5901 vncviewer host:5901 But I want a "dtlogin" screen starting on port 5900 Like MacOS, ...
1
vote
1answer
97 views

Enabling Asynchronous IO at HP-UX Operating System

We are using HP-UX Itanium version B.11.31 and this server is used for running Sybase database version ASE15.7. I would like to know how to enable Asynchronous IO at Operating System level. I went ...
0
votes
0answers
14 views

How to find the apps/packages/patches/configurations pending for reboot on hp-ux?

A few config changes carried out, but didn't reboot. Now,I would like to know the patches/apps/packages/apps/configurations pending for reboot for change config verification purposes. While googling, ...
3
votes
1answer
59 views

Can hyperthread be enabled

I would like to know if hyperthread can be enabled on my operating system or not? I am using HP-UX Itanium, below is truncated output of machinfo Intel(R) Itanium(R) Processor 9560 (2.53 GHz, 32 ...
0
votes
3answers
80 views

how to get the logs of integrated command of find and mv?

I used this command to my script to find specific files and to moved to different folder; however, I would need to generate a log of which file/s I have moved. find $1* -prune -name "*.$2" -mtime +$3 ...
0
votes
2answers
67 views

Move the oldest files into a directory, source directory has more than 10,000 files constantly incoming

I am working on a command to move the x number of oldest files(FIFO) into a directory, is it better idea to pipe the "find" result into "ls" or just use the "ls" .. please suggest. ls -ltr `/bin/...
0
votes
1answer
329 views

SSL and programs like wget,curl with https on hpux

Simple question: every program (wget,curl,etc) which can use https works perfect on linux,and bad on hpux. See this example using https://google.com on linux wget https://www.google.com/ --2018-12-...
1
vote
2answers
44 views

Pick out a date from a command response

I have a command response that looks something like that: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXX | XXX | Thu Oct 18 03:32:00 UTC 2018 XXX | ...
1
vote
2answers
421 views

Can you change permissions for a child directory that you do not own?

Picture a scenario in which you have a parent and a child directory. In the parent directory you have given group rwx. Below that directory you have a directory in which the group permissions are --- (...
2
votes
3answers
473 views

find . * -exec ll {} \; -> with just one result instead of four

I'd like to use find command to search all files in one directory: find . * -exec ll {} \; Result shows four (!) results per file: file123 ./test/file123 file123 test/file123 Is it possible to ...
0
votes
4answers
355 views

How to sort ll output

ll returns this result: 51380224 Aug 3 08:23 tig_10.d1 51380224 Aug 3 08:18 tig_10.d10 51380224 Aug 3 08:20 tig_10.d11 51380224 Aug 3 08:23 tig_10.d12 51380224 Aug 3 08:21 tig_10.d13 51380224 ...
4
votes
2answers
704 views

Get List of Directories and Timestamp in a specific format in HP-UX

I am on HP-UX B.11.11 OS. My requirement is to display a list of directories only and the last modified time format should be DD-MON-YYYY HH:MI:SS AM/PM. I am able to get the list using either ...
1
vote
1answer
64 views

Why does it take longer to add new files to a directory that has a large number of files in it?

Back in 2011 we had a peculiar problem. We noticed that the processing tool for one of our clients was taking a long time processing ~20000 p/hr. Since we needed to process upwards 3 million files a ...
0
votes
1answer
470 views

unable to spool through shell(ksh)

I've written a shell script in which i've defined variables : Last_Month,last_date and first_date and i'm trying to execute the below sql from the shell : /app/oracle/product/10.2.0/bin/sqlplus -s ...
0
votes
1answer
187 views

hp-ux ps,what the difference between sleeping and waiting?

On hpux ps -efl I see on output the letter S,which mean "state of process" I see voices like S(sleeping) and W(waiting) I know(hope is correct) Sleeping mean "waiting for event",but what does it ...
0
votes
0answers
127 views

Hpux: /etc/group nogroup has -2,what does it mean?

On Hpux grep "nogroup" /etc/group return nogroup:*:-2: Nogroup is name,* mean "shadow" enabled,but what does it mean -2?
1
vote
3answers
340 views

SED command to comment all the lines except the one's that matched the pattern

I have the below cron.txt file 58 18 * * 1-5 /usr/home/script.sh REP CXC BS TODAY all 1>/dev/null 2>/dev/null 00 19 * * 1-5 /usr/home/script.sh DSC DXC BUS TODAY all 1>/dev/null 2>/dev/...
-1
votes
1answer
43 views

Fetch a number of variable length from a file using pattern matching?

I have many files on UNIX and wish to fetch number in that file associated with a specified pattern. Most of the file will have a unique pattern in file like below some text abc some text abc some ...
1
vote
2answers
355 views

How to extract specific pattern from a file in HP-UX

I would to like extract the pattern "/oracle" from a file. I tried with "grep -w" command but it returned all the lines which have oracle word. I need to extract only /oracle. Please tell me if any ...
0
votes
0answers
169 views

HP:the arguments in killall beyond `man killall`

In the tutorial here : /usr/bin/killall -HUP rsyslogd For the command : /usr/bin/killall -HUP rsyslogd In my os,the synopsis info in man killall SYNOPSIS killall [-Z, --context pattern] [-...
0
votes
1answer
661 views

HPUX top command out put regarding memory explained

While we run top on HP-UX ksh console we can see set of memory related value. Out of that I want to get the total physical memory and free memory. The output would look like follows on multiple run ...
1
vote
2answers
6k views

Find command not working in shell script

I have a to find for list of words in a list of files. Hence I have put the list of words in a file, and using for loop trying to read each word in a file and use find command to grep for that word in ...
7
votes
1answer
157 views

HP-UX 10.20 software depots

I've been looking for HP-UX 9.X and 10.20 patches and it looks like I'm late to the party. I found the original FTP sites from HP have all been taken down. I'm sure that someone must have made a ...
5
votes
3answers
1k views

quotes inside backticks inside quotes in ksh

I'm trying to get the file of the current date with the following command in HP-UX Unix: $ ls -lrt ABC.LOG* |grep "`date +"%b %d"`" But, it's giving me the error: ksh: : cannot execute grep: can't ...
1
vote
1answer
845 views

How to call another shell script within AWK

I wish to call another shell script tm.sh within AWK. I'm trying as below but its not working as no error during executing this command but output doesn't display that I coded into tm.sh. please help ...
0
votes
1answer
133 views

hp-ux admin tool lsof fuser for B.11.31

centrpt:oracle> uname -r B.11.31 We need lsof and fuser as there are unclosed file handler so we cannot reclaim disk space after reboot. Where we can get the tool for this dated version of HP-UX ??...
1
vote
1answer
55 views

Can you create a logical volume to be within a logical volume?

I'm using HP-UX. Basically the problem is I need another logical volume to test EVFS. At the moment, I can't add another physical volume to the sever. And it seems that all of the physical volume on ...
1
vote
1answer
448 views

How to clone HP-UX server to another fresh server

I have a HP-UX box and i want to clone the same to other server. Lets assume HP-UX(A) and other server(B) <SERVER_NAME> $ uname -a HP-UX <SERVER_NAME> B.11.23 U 9000/800 1544735064 ...
1
vote
0answers
59 views

In HP-UX, how do you write a C program using PKCS#11 api?

I am heavily confused by HP-UX's manual on its cryptographic module linked here. It gives an example of a C code using PKCS#11 apis, but nowhere can I find information on where to find the shared ...
0
votes
2answers
1k views

How to remove text before and after in a word

I have the line below: create table "sacro".issue The desired outcome I want is below: "sacro" I want to remove everything before the first double quote and everything after the last double quote
1
vote
2answers
905 views

How to awk unique line and print 2 lines above

I am facing an issue where I am using awk to find a line and print two lines above Inside the file test.txt file is below" { TABLE "sacro".issue row size = 149 number of columns = 9 index size = 0 } ...
1
vote
1answer
409 views

HP-UX - Unable to use the backspace on ssh connection

I have a handful of HP-UX machines that I have to work on and it really annoying to have to use the left arrow key for a backspace and have backspace type '^?'. The systems are using HP-UX 11.31. Is ...
0
votes
1answer
162 views

Echo odd number and print next even number using awk and preventing results such as 1.00001e+06

I had a solution on AIX 7.1 where I could echo an odd number and print the next even number for example the below: $ echo "3" | bc -l | awk '{printf("%.0f\n", $1)}' | awk '{$0=int($0/4+.75)*4}1' 4 $ ...
0
votes
1answer
854 views

How to awk and printf columns using formatting and including all columns after 9th

I have the below script to print all specified columns from the 1st to the 9th using printf to format, however I would like to print any columns thereafter the 9th column and I am unsure of how to do ...
1
vote
2answers
200 views

Deleting LARGE number of files (exec, loops..) [duplicate]

I have a very large number of files to delete, which go by the following format: esymac_logEvents.log.5_2017-Feb-06_02-39-17.Z_2017-Feb-08_02-39-14.Z_2017-Feb-09_02-39-14.Z_2017-Feb-11_02-39-11....
0
votes
2answers
68 views

Print entire Block if multiple strings are found inside Start ---End

My Raw log file similar to production log i have tweaked this, Block f1 PCO Blockf1 tray:school SAM :XP X/Y DUPL KEY Z/Z Block f2 PCO Blockf2 tray:school SAM :XP ...
0
votes
1answer
749 views

HPUX 11i v3 Auditing to a syslog server - Configuration

I had trouble setting up auditing on our HPUX system and sending the same to a SIEM solution as a multiline log. The issue was that audsys writes the log to binary files and I need it to be setup in ...
3
votes
1answer
184 views

shell variable value in for loop different after loop

I have a challenge with a variable value changed in a for loop and the value of that variable after the for loop and using tee SCRIPT_1: STATUS=9 for SESSION in A B C do ...
1
vote
1answer
2k views

hpux: i want to see print queue jobs

On all unix systems I use simply lpq But on hpux didn't exist and i can install only the lpq of cups. Using the old sysV system(lpsched,etc..) how to see the print jobs like lpq?
1
vote
1answer
135 views

hpux 11.31 : what is the difference between distribuited volume and stripe lvm?

With this command lvcreate -D I create a distribuited lvm. With this I create a striped lvm. lvcreate -L 1220 -i 3 -I 64 -n name /dev/vg02 What is the difference between a striped and ...