You are here

Using swfixrealm to change the default realm when getting warnings on the hostname afer cloning a server

When you are getting this errors on a server you have cloned for example. and you want to change the default realm hostname, you can use the swfixrealm command to change it:

WARNING: An attempt to get the network host entry for "Oister"
failed. This may result in denial of access to users and
agents at this host. Check the spelling of this name, then
your "/etc/hosts" file, or your "/etc/resolv.conf" file and
DNS resolver configuration. The nslookup program may be
helpful in isolating this problem.
WARNING: The ACL stored in file "/var/adm/sw/products/ifiles/_ACL"
contains hostname(s) which could not be resolved.
WARNING: An attempt to get the network host entry for "Oister"
failed. This may result in denial of access to users and
agents at this host. Check the spelling of this name, then
your "/etc/hosts" file, or your "/etc/resolv.conf" file and
DNS resolver configuration. The nslookup program may be
helpful in isolating this problem.
WARNING: The ACL stored in file "/var/adm/sw/products/ifiles/_OWNER"
contains hostname(s) which could not be resolved.
WARNING: An attempt to get the network host entry for "Oister"
failed. This may result in denial of access to users and
agents at this host. Check the spelling of this name, then
your "/etc/hosts" file, or your "/etc/resolv.conf" file and
DNS resolver configuration. The nslookup program may be
helpful in isolating this problem.
# Object Ownership: User= root
# Group=sys
# Realm=Oister
#
WARNING: An attempt to get the network host entry for "Oister"
failed. This may result in denial of access to users and
agents at this host. Check the spelling of this name, then
your "/etc/hosts" file, or your "/etc/resolv.conf" file and
DNS resolver configuration. The nslookup program may be
helpful in isolating this problem.
# default_realm=Oister
object_owner:crwit
any_other:-r---

root@bluepuppy:/var/adm/sw> swfixrealm
usage: swfixrealm new_default_realm
root@bluepuppy:/var/adm/sw> swfixrealm bluepuppy
_______________________________________________________________________________

This will change the default realm to "bluepuppy" in all
ACL files in all registered depots, in all primary root ACL
files and in all host ACL files

This should be run after the system name has changed.
_______________________________________________________________________________

Do you wish to continue?

Press [y] for yes or [n] for no, then press [Enter] y

======= 10/26/12 12:14:24 METDST BEGIN swfixrealm SESSION

* Determining registered depots ...

* Changing realm to "bluepuppy" in depot, root, and host ACL files ...

NOTE: More information may be found in the swfixrealm logfile at:
/var/adm/sw/swfixrealm.log

======= 10/26/12 12:15:13 METDST END swfixrealm SESSION

If we launch the command again no warnings are displayed:
root@bluepuppy:/> swacl -l host
#
# swacl Host Access Control List
#
# For host: bluepuppy
#
# Date: Fri Oct 26 12:41:04 2012
#

# Object Ownership: User= root
# Group=sys
# Realm=bluepuppy
#
# default_realm=bluepuppy
any_other:-r---

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.hpuxtips.es/?q=content/using-swfixrealm-change-default-realm-when-getting-warnings-hostname-afer-cloning-server [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.198.71.184 [:db_insert_placeholder_9] => 1503243383 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.