10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
i'm trying to gether multiple pattern on remote hosts, and trying to print hostname and the pattern,
ssh remoteserver1 -C 'hostname 2>&1;cat /var/log/server1.log | awk -F ";" '"'"'{ print " "$2" "$5}'"'"'| sort | uniq -c | sort -g -r '
The output is the following,
remoteserver1
... (8 Replies)
Discussion started by: charli1
8 Replies
2. UNIX for Advanced & Expert Users
deleted (0 Replies)
Discussion started by: hce
0 Replies
3. Shell Programming and Scripting
// AIX 6.1
pcmpath query device |awk 'BEGIN{print "TYPE\tDEVICE NAME\tSERIAL\tSIZE"} /DEVICE/ {disk=$5
printf "%s\t", $7
printf "%s\t", disk
getline; printf "%s\t", substr($2, length($2)-3)
("bootinfo -s "... (2 Replies)
Discussion started by: Daniel Gate
2 Replies
4. Emergency UNIX and Linux Support
Hi All,
So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says:
It should say:
What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies
5. Shell Programming and Scripting
I am writing a script and need to get the hostname of the remote server in order to zip that file... the syntax in which the file is named is "hostname.html."
This is the line I am trying to use
ssh $host "/bin/gzip /tmp/`hostname`.html" >> $PATH_TMP/Linux_cfg2html.log
but whenever I run it... (26 Replies)
Discussion started by: eponcedeleonc
26 Replies
6. Solaris
I was trying to execute the following command
ifConfig -a
and after a while my hostname changed to -a
I checked /etc/hosts and /etc/nodename all seems to be correct.
1. How my hostname changed to -a ? (What i could have done wrong)
2. if you type hostname where does solaris read... (1 Reply)
Discussion started by: 2sb
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am new to Solaris.
I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies
8. HP-UX
Hello..
I wanted to know how to change IP and Hostname on HPUX system, and I don't want to make it as NIS master either.
Could someone tell me the files I need to modify and make sure it's on network?
Thanks! :o (3 Replies)
Discussion started by: catwomen
3 Replies
9. IP Networking
Using Solaris 8 (or WINXP).
I am trying to look up a specific DNS hostname, but I don't know which DNS server houses that entry. How can I find the hostname?
nslookup gives me the following:
C:\>nslookup hostname
Server: dnsserver
Address: x.x.x.x
*** dnsserver can't find hostname:... (2 Replies)
Discussion started by: dangral
2 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I am installing redhat linux 6.2 on an intel based system. Whether i want to know any naming conventions should i follow.
ie Any convention to follow to name a linux machine(To give hostname). Simillarly for domain name also. Please suggest in this regard (1 Reply)
Discussion started by: bache_gowda
1 Replies
LMHOSTS(5) LMHOSTS(5)
NAME
lmhosts - The Samba NetBIOS hosts file
SYNOPSIS
lmhosts is the Samba NetBIOS name to IP address mapping file.
DESCRIPTION
This file is part of the Samba suite.
lmhosts is the Samba NetBIOS name to IP address mapping file. It is very similar to the /etc/hosts file format, except that the hostname
component must correspond to the NetBIOS naming format.
FILE FORMAT
It is an ASCII file containing one line for NetBIOS name. The two fields on each line are separated from each other by white space. Any
entry beginning with '#' is ignored. Each line in the lmhosts file contains the following information :
o IP Address - in dotted decimal format.
o NetBIOS Name - This name format is a maximum fifteen character host name, with an optional trailing '#' character followed by the NetBIOS
name type as two hexadecimal digits.
If the trailing '#' is omitted then the given IP address will be returned for all names that match the given name, whatever the NetBIOS
name type in the lookup.
An example follows :
#
# Sample Samba lmhosts file.
#
192.9.200.1 TESTPC
192.9.200.20 NTSERVER#20
192.9.200.21 SAMBASERVER
Contains three IP to NetBIOS name mappings. The first and third will be returned for any queries for the names "TESTPC" and "SAMBASERVER"
respectively, whatever the type component of the NetBIOS name requested.
The second mapping will be returned only when the "0x20" name type for a name "NTSERVER" is queried. Any other name type will not be
resolved.
The default location of the lmhosts file is in the same directory as the smb.conf(5)> file.
VERSION
This man page is correct for version 2.2 of the Samba suite.
SEE ALSO
smbclient(1)
and smbpasswd(8)
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of
Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter
19 November 2002 LMHOSTS(5)