Unix OS

32K

Solutions

23

Articles & Videos

18K

Contributors

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi gurus,

I have AIX (7100-04-04-1717) lpar with installed following packets:
bos.cifs_fs.rte           7.1.4.31    C     F    Runtime for SMBFS
bos.cifs_fs.smit           7.1.0.0    C     F    SMIT Interface for SMBFS

This lpar was successfully mounting share on W2k8 R2 until recently change on windows server. Change on windows side was disabling smbv1 protocol. Since then, there is no way to mount this share again. I have asked my colleagues to turn smbv1 back on, until I figure out how to solve this. When they turn smbv1 protocol  on, I can mount the share again. IBM does not provide any support for cifs, and I can't find any official document claiming that this client can't be used for higher smb protocols than smbv1.

I even installed samba 4.1 on AIX, and with smbclient tool I can connect to windows share forcing higher protocol versions ( -m SMB3), but this is not a solution, because I must have permanent file system mounted on aix. So this is not a valid solution.  
Does anyone have a  idea on how to solve this, or any link to official documentation which I can use to prove that this is not supported?
Or if I am trying something in wrong way , please let me know.
Thanks in advance,
Igor
0
Enroll in June's Course of the Month
LVL 8
Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Hi expert

How to upload SSL to openLdap server?
0
Hello All,

I am in a situation to push database audit XML logs to syslog server. Audit logs are getting generated when Audit_Trail is set to OS. The same is not happening when Audit_Trail is set to XML,EXTENDED. Please advice on this.

SQL> select banner from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE    10.2.0.3.0      Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production


SQL> show parameter audit
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest                      string      /u01/appldrch/DRCH_DB_audit_lo
                                                 g
audit_sys_operations                 boolean     TRUE
audit_syslog_level                   string      LOCAL1
audit_trail                          string      XML, EXTENDED

[root@appsdr ~]# cat /etc/syslog.conf
local1.warning /var/log/audit.log


Thank You.

regards,
John Marshal.A
0
We hvae created new policy to check particular vulnerabikity in unix. We have enabled all the required plugins however scan doesnt discovered the host even. So looking what are the other mandatory/ dependent plugins need to enable.
0
I have xlc compiler version 8 and perl 5.10 running on AIX 7.1. I have been able to install DBI.pm module successfully, but now am in need to install DBD::ORACLE module. The oracle version is 12 (64bit)

perl Makefile.PL runs fine for the DBD::ORACLE module, however the "make" command is throwing below error:
I attempted to fix the issue by changing the object mode value, but that end up giving a different type of error.
Can you advise on the solution ?

#make
        rm -f blib/arch/auto/DBD/Oracle/Oracle.so
        LD_RUN_PATH="/u01/app/oracle/product/12.1.0/client_1/lib:/u01/app/oracle/product/12.1.0/client_1/rdbms/lib" ld  -bhalt:4 -G -bI:/usr/opt/perl5/lib/5.10.1
            /aix-thread-multi/CORE/perl.exp -bE:Oracle.exp -bnoentry -lpthreads -lc -lm -L/usr/local/lib Oracle.o  dbdimp.o  oci8.o /lib/crt0_64.o -bI:/usr/lib/iocp.
            exp  -o blib/arch/auto/DBD/Oracle/Oracle.so     -L/u01/app/oracle/product/12.1.0/client_1/lib/ -lclntsh -lclntshcore -lld -lm -ldl -lc -lm -lpthreads -
            lodm
            -lbsd_r -lld -lperfstat -lm -lpthreads
ld: 0711-736 ERROR: Input file /lib/crt0_64.o:
        XCOFF64 object files are not allowed in 32-bit mode.
make: The error code from the last command is 8.

#bootinfo -K
64

#ORACCENV='cc=xlc_r'; export ORACCENV

#export OBJECT_MODE=64
#make
        rm -f blib/arch/auto/DBD/Oracle/Oracle.so
        LD_RUN_PATH="/u01/app/oracle/product/12.1.0/client_1/lib:/u01/app/oracle/product/12.1.0/client_1/rdbms/lib" ld  -bhalt:4 -G …
0
I recently upgraded AIX from 6.1 to 7.1, which resulted in perl getting upgraded from 5.8 to 5.10 as well and in process i no longer have a dbi.pm module under perl 5.10.

I have been unable to find binary version for dbi.pm for perl 5.10 so i am trying to compile it but running into an issue with it.
I am using steps of running perl Makefile.PL, make, make test, make install to compile.
I am able to successfully run perl Makefile.PL from the dbi.pm directory that i saved in /tmp from cpan.org, but when i run the "make" command, i get following error.

Skip blib/lib/DBI/ProfileData.pm (unchanged)
        xlc_r -q32 -c    -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.636\"  -DXS_VERSION=\"1.636\"  "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE"   Perl.c
/bin/sh: xlc_r:  not found
make: The error code from the last command is 127.

I do have xlc compiler installed.
  vac.C                      8.0.0.0  COMMITTED  IBM XL C Compiler
  vac.C                      8.0.0.0  COMMITTED  IBM XL C Compiler
  vacpp.cmp.core             8.0.0.0  COMMITTED  IBM XL C/C++ Compiler
  vacpp.cmp.core             8.0.0.0  COMMITTED  IBM XL C/C++ Compiler
  xlC.aix61.rte             12.1.0.3  COMMITTED  IBM XL C++ Runtime for AIX 6.1

/usr/vacpp/bin/xlC -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: …
0
I want to send all my TSM events like backup failure, backup missed, scheduler stopped, and all other TSM warning and critical errors to be sent to HP monitoring solution. So that HP can get the TSM error or warning and raise ticket aromatically.

Please send me step by step procedure to configure n enable the same.

Since I m very new to Unix. Please send me easy/details to configure n enable TSM app alert.

Thanku very much
In advance
0
Hello,

I have installed a module on the puppet master server,  how do I make client to pickup those modules and execute?
0
Good Morning!

What does the following two options actually do for DHCPd and does it work with failover?

allow booting;
allow bootp;


Im trying to configure DHCPd Failover and from what Im reading Im not quite sure if DHCP scopes that need PXE boot will work with DHCPd Failover. I believe the two options listed above would be needed but I dont know.  If so, should they be added in the primary and secondary dhcpd.conf files or the dhcpd.master?

Also the two options below -- are they also needed and should they be added in the primary and secondary dhcpd.conf files or the dhcpd.master too?

next-server x.x.x.x;
filename "xxx";

Thanks in advance!

Primary dhcpd.conf file
#authoritative;
ddns-update-style none;
ignore client-updates;
one-lease-per-client true;
omapi-port 7911;

#Failover peer section
failover peer "dhcp-partner" {
  primary;
  address server1.paychex.com;
  port 647;
  peer address server2.paychex.com;
  peer port 647;
  max-response-delay 60;
  max-unacked-updates 10;
  mclt 3600;
  split 153;
  load balance max seconds 3;
}
include "/etc/dhcp/dhcpd.master";

Open in new window


Secondary dhcpd.conf file
#authoritative;
ddns-update-style none;
ignore client-updates;
one-lease-per-client true;
omapi-port 7911;

#Failover peer section
failover peer "dhcp-partner" {
  secondary;
  address server2.paychex.com;
  port 647;
  peer address server1.paychex.com;
  peer port 647;
  max-response-delay 60;
  max-unacked-updates 10;
  load balance max seconds 3;
}
include "/etc/dhcp/dhcpd.master";

Open in new window


dhcpd.master file
option domain-name "example.com";
allow booting;
allow bootp;
next-server x.x.x.x;
filename "xxx";
option option-242 code 242 = string;

#dhcpd wants to listen on its own networks
subnet 17.8.4.0 netmask 255.255.252.0 {
  ignore unknown-clients;
}

#dhcpd wants to listen on its own network
subnet 19.4.8.0 netmask 255.255.252.0 {
  ignore unknown-clients;
}

#Scope [12.4.4.0] TEST PXE Boot
subnet 12.4.4.0 netmask 255.255.252.0 {
  option subnet-mask 255.255.252.0;
  option routers 12.4.4.1;
  option domain-name-servers 12.2.2.198;
  pool {
    failover peer "dhcp-partner";
    default-lease-time 300;
    max-lease-time 360;
    range 12.4.5.0 12.4.5.255;
  }
}

Open in new window

0
I have a file with a character that translates into 272 when I do:
od -xc

The character looks like an A with a caret on top with a degree sign to the right. I am attaching an image of the character as well. I have tried sed, perl and tr and none of them are working.

For example:
sed -e 's/'$(echo "272")'/ /g' input_file > output_file

This does not work.

Any suggestions?
Image.jpg
0
What Is Transaction Monitoring and who needs it?
LVL 1
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

I am creating a shell script to check if cron jobs are enabled/disabled and send a mail notification for the same (with job name).

#!/bin/sh

crontab -l > /app/file.txt
App_Home=/app
ctab='$APP_Home/file.txt'

while IFS= read -r value; do
entry=`$value | awk '{print $1}'`
echo $entry
if [[ $entry == "#" ]]
then
  echo " Entry $value is disabled "
elif [[ $entry == '#*' ]]
then
   echo " Entry $value is disabled "
else
   echo " Entry $value is enabled "
fi
done < $ctab

Open in new window


However, the above code is failing with the error message (#*: command not found).
0
in Unix

what is the meaning of below command



zgrep 'RPT|O|GetProducts' xyz.gz meaning
why we need RPT|o|
in the beginning what is the meaining of pipe here?
please advise
0
Imagine the following scenario:

A NAS box, providing a samba share, with several versions of a fíle collection in dated directories (name i.e. "2017.05.24").

On the NAS should be some links into subdirectories of the latest version, so the copy script should create symbolic links on the share to the latest version of that file collection.

When I try
ln -s <samba_share/link_name> <samba_share/dated_dir_subdir/>

Open in new window

I get an error that this is not possible. Any hint ?
0
when it displays "Global Group memberships", it it is long, then it is only partially seen. is there a way you break it down to many single line step output?
0
Hi Experts,

I am using below command to send file as body instead of attachment, I am able to do that but I want to send subject in french also.

cat french_characters.txt | mailx -s "RELEVÉ" -S ttycharset=iso-8859-1 -S sendcharsets=iso-8859-1 -S encoding=8bit email@email.com

This only send file as body in french charaters but not subject.

How do I do that?

Thanks in Advance.
0
Dear All,

I wanted to create a User in AIX system but having only access rights only to specific folder.
As a first step i have created a group FTP and a User i wanted to use in ftp.
Also i have created an ftp access file in /etc in order to give access to user.
When i log in from web browser with the specific user i cannot see the folder user was configured for.
When i change folder to  /  it gives me access to all folders.

Because i tried to find some manuals and tips but in web all information is not concentrated in a manual.
Can someone help me with all steps needed in order to make user work....???

Best Regards.
0
Problem with external aerial and galleonm time server just turned back on. I'm guessing this is telling me its not worked for 9 days?

Should I now force a poll or wait?



Code:
$ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
 time-p1      .MSF.            1 -   9d   64    0     0.43    0.027 16000.0
 time-s1      0.0.0.0         16 -    - 1024    0     0.00    0.000 16000.0
*LOCAL(0)        LOCAL(0)         9 l   25   64  377     0.00    0.000   10.01
0
Having a bit of a discussion with a software vendor about this. Can anyone confirm my understanding?

/etc/sudoers file example:-

user1 server1 = NOPASSWD:/usr/bin/ls -l
user1 server1 = NOPASSWD:/usr/bin/file

Open in new window


But then the following command fails (logged in on server 1 as user1) because its not in sudoers file.

sudo java abc.jar

Open in new window


Surely this is correct? You can't sudo a command unless you have appropriate permissions in /etc/sudoers? Am I right?
0
I had this question after viewing log.nmbd filling up /usr directory.
Getting Below error while configuring Samba on AIX and nmbd log file is getting filled out quikly which is causing the /var FS reach 100%
[2017/05/17 11:12:12,  0] lib/util_sock.c:667(open_socket_in)
  bind failed on port 137 socket_addr = 10.21.243.111.
  Error = The socket name is not available on this system.
[2017/05/17 11:12:12,  0] nmbd/nmbd_subnetdb.c:127(make_subnet)
  nmbd_subnetdb:make_subnet()
    Failed to open nmb bcast socket on interface 10.21.243.111 for port 137.  Error was The socket name is not available on this system.
0
Free Tool: IP Lookup
LVL 8
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

hi,
i have a xml file like below.

<title> <line1>Abc</line1><line2>bce</line2></title>.

i need to pull only line2 value. how can i do in solaris.
i tried sed and awk but no luck..

can help to get simple command or script to pull out such values.

thanks
0
I'm trying to chroot jail SFTP service on AIX 7.2 system. What I mean is to allow users from 'sftpgrp' group to ONLY SFTP access. Authentication is through SSH KEys (no passwd). Also, no SSH login is allowed for users inside 'sftpgrp' group.

Until now SFTP chrooted is working properly, I mean, users in sftpgrp group access their chrooted HOME DIRECTORY without problem.

But, the problem is  the problem is when theses users try to SSH (using Pub KEy) the same server, I this error:

/dev/pts/5: No such file or directory
open /dev/tty failed - could not set controlling tty: No such device

See part of debuged log from SSHD:

.
.
debug3: aix_restoreauthdb: restoring old registry ''
debug1: audit session open euid 0 user iga3 tty name /dev/pts/5
debug3: mm_request_send entering: type 26
debug3: mm_answer_pty: tty /dev/pts/5 ptyfd 6
debug1: session_pty_req: session 0 alloc /dev/pts/5
debug1: Ignoring unsupported tty mode opcode 42 (0x2a)
debug1: server_input_channel_req: channel 0 request shell reply 1
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req shell
debug1: Forced command (config) 'internal-sftp -l INFO'
debug1: Values: options.num_allow_users: 0
debug1: RLOGIN VALUE  :0

debug3: mm_audit_run_command entering command internal-sftp -l INFO
debug3: mm_request_send entering: type 57
/dev/pts/5: No such file or directory
open /dev/tty failed - could not set controlling tty: No such device
debug3: 

Open in new window

0
Hello experts,
I have a perl script that does the following::
-get log files from a directory;
-zip them
-send them over smtp to a given mailbox
-redownload them from the mailbox
-crypt them using pgp
-crypted files gets pushed on ftp
-delete the original file

What i would like to do is:
-Delete the ftp sending part, instead move the files in a local given directory

Attached you will find the script.

Thank you in advance!!!!
export.pl.txt
0
Hi,

what are the best practices and features, options while using grep.

i am using these days to search in log files, files, directories, content etc

When should i give single quote '  '
like
zgrep 'xyz' aaa.gz


When should i give double quote " "
like
zgrep "xyz" aaa.gz


how to use tail and head etc along with grep to effectively monitor last or first 100 lines etc
please advise
0
Hi,

I keep getting below error when i wrote hello.sh shell script file and try to open it to.



Swap file ".hello.sh.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:



why it created .swp file autoatically?
why it asks above question. How to tell unix not to ask that question.
please advise
0
Hi,

https://bash.cyberciti.biz/guide/Hello,_World!_Tutorial

I created hello.sh script using vi hello.sh
then typed below

echo "Hello, World!"
echo "Knowledge is power."

do i need to tyope below line as well at top?

#!/bin/bash
what above line means?

when i try to execute gets errror as

$ ./hello.sh
-bash: ./hello.sh: Permission denied



please advise
0

Unix OS

32K

Solutions

23

Articles & Videos

18K

Contributors

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.