AIX Syslog where the hostname sit

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
Operating Systems AIX AIX Syslog where the hostname sit
# 8  
Output of the following commands would be helpful:
uname -a
lsattr -El inet0
cat /etc/syslog.conf
cat /etc/hosts
host $(hostname)
host -n $(hostname)
host <IP-address from the previous output>
host -n <IP-address from the previous output>

# 9  
Originally Posted by agent.kgb
Output of the following commands would be helpful:
uname -a
lsattr -El inet0
cat /etc/syslog.conf
cat /etc/hosts
host $(hostname)
host -n $(hostname)
host <IP-address from the previous output>
host -n <IP-address from the previous output>

Thanks for the reply.

Attached is the output for the above commands.

Last edited by kwliew999; 02-07-2017 at 10:40 PM..
# 10  
Thanks for all the responses, I have managed to get the hostname display in syslog. After I reboot the server, the syslog start to record as the hostname.

I have done the refresh of syslogd, inetd, tcp, etc.. but no change. But reboot of server, then it changed.

Thanks to all your kind responses.
# 11  
That's good but would you tell where you changed what before the reboot?

Last edited by zaxxon; 02-08-2017 at 04:59 AM..
# 12  
I think the syslog hostname is taking from hostname but it just need a server reboot to refresh it.
# 13  
So the command hostname showed localhost? In the large txt file hostname showed another name. I assume you changed somewhere localhost into that other name, before you rebooted? Or did you not change anything and just rebooted? Am I missing something?
# 14  
syslogd's hostname is taken from gethostbyaddr(ip address of hostname), but only once afaik - when syslogd is started. If you changed the hostname and everything configured correctly, the next step is to restart syslogd - stopsrc -s syslogd ; sleep 2 ; startsrc -s syslog. The refresh operation re-reads configuration file, but doesn't check the hostname.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #892
Difficulty: Medium
sed scripts cannot have comments.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

Cannot send syslog event from AIX 6.1 to RHEL Syslog server

Hi everyone, I am trying to configure AIX 6.1 using syslogd to send syslog event to syslog server configured on RHEL. However, RHEL never receives the events. I have tried to redirect the syslog event on AIX to a local file and successful. Only forwarding to remote server fails. Firewall... (10 Replies)
Discussion started by: michael_hoang
10 Replies

2. UNIX for Beginners Questions & Answers

Command to get URL under string "SIT"

Hi All, I have a requirement where I need to get all https URL's under config file SIT. example : config environment="SIT" <URL></URL> There are 100 files.xml and I need to search every .xml file and get URL's. I tried with below command , but I'm getting URL's from... (9 Replies)
Discussion started by: rockingvj
9 Replies

3. AIX

UNIX - AIX - Syslog messages

Dear Community, I have just registered to the forum, and I am very glad I have joined. I have a question about the syslog logging facility. I am doing a security assessment for some servers that run on AIX. The admins have set up a syslog server and the following parameters are enabled in... (8 Replies)
Discussion started by: Bersecul
8 Replies

4. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies

5. AIX

AIX How to exchange hostname and IP address between two AIX servers?

Hi all, I am trying to exchange hostname and IP address of two AIX machines. But i am confused as how to change it ? do i need to use "smitty mktcpip" or "smitty tcpip" ? what is the difference between smitty mktcpip and smitty tcpip ? Also anymore steps to follow or just updating... (3 Replies)
Discussion started by: lramsb4u
3 Replies

6. UNIX for Advanced & Expert Users

AIX - Sendmail - add hostname to subject of outgoing mail

Hello, I'm configuring sendmail on an AIX 7.1 server ( I've gotten sendmail to send mail through our Novell GroupWise server, so that mail from a user on the server appears to come from their GroupWise account, and replies to the email would go to their GroupWise... (0 Replies)
Discussion started by: eyebeam
0 Replies

7. Emergency UNIX and Linux Support

HP UX - ILO Console hostname different than Machine Hostname...

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

8. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

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

9. AIX

AIX 5.2 Syslog : Help needed

Hi all, I am trying to get the authentication logs of FTP,Telnet,SSH,inetd from the syslog file. But my output for every type of authentications - success & failure keep differing everytime i view them. The output does not show the priority code (emerg, or 0, in any case). How do I get the... (0 Replies)
Discussion started by: kamadana
0 Replies

10. UNIX for Dummies Questions & Answers

Changed the hostname/IP and broke it (AIX)

A buddy of mine bought an older RS/6000 CAD workstation runing AIX to learn on, and had me put it on his LAN at home. I used smit to change the hostname/IP. After a reboot I try to login, and get a message saying that DTMessage cannot start, and gives a changed hostname as one of the possible... (3 Replies)
Discussion started by: 98_1LE
3 Replies

Featured Tech Videos