12-19-2014
First off it's not AIX6.3 but AIX6.1,
If who -ub is showing you hostname, that means your DNS is resolving the IP to hostname.
Just do nslookup <hostname>, it should give you IP address.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to feed a list of IP's to do lookups from a database. My script works only for the first IP but all subsequent IPs output as 'unknown'.
#!/usr/bin/php -q
<?
$ip = file('ip.txt');
foreach ($ip as $ip_num => $ip) {
echo $ip;
$out=sprintf("%u", ip2long($ip));
... (1 Reply)
Discussion started by: hazno
1 Replies
2. Programming
How can I get the list of logged in users in the system programmatically?
I can get the list with 'who' or 'users' commands but I need to get the list programmatically...
May someone help, please?
Thanks in advance. (2 Replies)
Discussion started by: xyzt
2 Replies
3. HP-UX
Actually.I have 2 questions to ask.
1. how to list locked account in hp-ux?
2.how to list locked account in linux(redhat)?
I can use the command "passwd -S -username" to list a account who were locked .
who knows how to list all locked accounts with one command.
Thanks!! (5 Replies)
Discussion started by: robbiezr
5 Replies
4. Shell Programming and Scripting
Hello,
I have a dump of IPs (around 2 million) and i need to filter out(delete) 37 IPs from this list.
Here is a short list of IPs that i would need deleted
111.111.xxx.xxx
123.123.xxx.xxx
127.x.x.x
98.20.xx.xxx
10.135.xxx.xxx
11.105.xxx.xx
100.100.xxx.xxx
101.xxx.xx.xxx
... (11 Replies)
Discussion started by: senormarquez
11 Replies
5. Shell Programming and Scripting
Hi Everyone,
I typed a command:
awk '{ print $1}' $LOGFILE | sort | uniq -c | sort -nr > $DEST/a.txt
And I got file a.txt which show
6 1.1.1.1
3 2.2.2.2
2 3.3.3.3
1 4.4.4.4
Just now, I want to get exact ips which has first column > 5 to a file b.txt. In this situation, the... (5 Replies)
Discussion started by: testcase
5 Replies
6. UNIX for Dummies Questions & Answers
Hello i need fast help... script which will list only human users from /etc/passwd and find out if they have something in home. Thanks (11 Replies)
Discussion started by: mentoscz
11 Replies
7. UNIX for Advanced & Expert Users
Hello!Does anybody know how to solve this script:
,,write a shell script which displays a list of names of users who have created files "*. c" in the last day."? (1 Reply)
Discussion started by: theodoraa
1 Replies
8. UNIX for Dummies Questions & Answers
Hi
i would like to know were the folder that contain file with list of all users ?
And were i can learn about what kind of folder i have and wheat they have inside?
question 2.
when i write ls -a i see all directories and then i choose for example Documents
and inside Documents i typed again... (1 Reply)
Discussion started by: iliya24
1 Replies
9. Shell Programming and Scripting
Is there any command that can used in Linux that export usernames and their manager's name from AD using bash shell script?
I know this can be done using powershell but I need to use Linux for this procedure. (2 Replies)
Discussion started by: dellanicholson
2 Replies
LEARN ABOUT HPUX
nisd_resolv
rpc.nisd_resolv(1M) rpc.nisd_resolv(1M)
NAME
rpc.nisd_resolv - DNS service daemon for NIS
SYNOPSIS
file_descriptor]] transport] program_number]
DESCRIPTION
is an auxiliary process which provides DNS forwarding service for NIS hosts requests. The process is started by (NIS server) when invoked
with the option. It requires the file to be set up for communication with a DNS nameserver. The utility can be used to verify communica-
tion with a DNS nameserver. See resolv.conf(4) and nslookup(1).
Although it is not recommended, can also be started independently with the following options.
Options
Uses the specified file descriptor for service
Runs in foreground.
Uses the specified transient program
number for RPC service procedure.
Uses the specified transport.
Operates in verbose mode.
Sends output to:
Operates in verbose mode.
Sends output to stdout.
AUTHOR
was developed by Sun Microsystems, Inc.
FILES
resolver configuration file.
SEE ALSO
nslookup(1), ypserv(1M), resolv.conf(4), ypfiles(4).
rpc.nisd_resolv(1M)