Operating System - HP-UX
1777397 Members
3052 Online
109069 Solutions
New Discussion юеВ

Re: error on printing thru Oracle Apps

 
SOLVED
Go to solution
Bill Hassell
Honored Contributor

Re: error on printing thru Oracle Apps

Sorry, the swjob line was an example. You can't use that. you need to run two commands:

swverify PrinterMgmt

Once you run the above command, look at the end of the listing for the "More information..." message. Copy and paste the swjob line and run that as the second command:

swjob -a job nasjet-something ...

Now the results from the incorrect swjob as well as nslookup show that your system networking is not correct. The file /etc/resolv.conf needs to be checked as well as /etc/nsswitch.conf asnd /etc/hosts. There is no simple answer to fixing the network problems as you need to know about your DNS servers and how hostnames are being resolved. Fixing the networking should solve your current SAM problem.


Bill Hassell, sysadmin
Ahmed M. AlShafiy
Regular Advisor

Re: error on printing thru Oracle Apps

nasjet:/#swjob -a job nasjet-0056
WARNING: An attempt to get the network host entry for "nasjet" 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.
ERROR: Cannot set the security context for this session. Cannot
determine the user's identification. Please give this
information to your Hewlett-Packard support person.
Ahmed M. AlShafiy
Regular Advisor

Re: error on printing thru Oracle Apps

can you help me with this issues please i can provide you with all the details that can help you to fix the error.

Bill Hassell
Honored Contributor

Re: error on printing thru Oracle Apps

As mentioned, there are several things that have to be checked and you need to know how your networking is configured. I assume that this is a production system so we can't simplify the network configuration and then add features like DNS. You'll need to post the output of these commands:

uname -mnr
hostname
uname -netstat -rn
cat /etc/resolv.conf
cat /etc/hosts
cat /etc/nsswitch.conf


Bill Hassell, sysadmin
Bill Hassell
Honored Contributor

Re: error on printing thru Oracle Apps

Oops, the netstat line got corrupted. The command is:

netstat -rn


Bill Hassell, sysadmin
Ahmed M. AlShafiy
Regular Advisor

Re: error on printing thru Oracle Apps

here the out put:

nasjet:/#uname -mnr
nasjet B.11.11 9000/800
nasjet:/#hostname
nasjet
nasjet:/#netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.3.242.24 10.3.242.24 UH 0 lan0 4136
10.3.0.0 10.3.242.24 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.3.240.5 UG 0 lan0 0
default 10.3.240.1 UG 0 lan0 0
default 10.3.240.4 UG 0 lan0 0
nasjet:/#cat /etc/resolv.conf
nameserver 10.3.242.52
nameserver 10.3.242.5
nasjet:/#cat /etc/hosts
# @(#)B.11.11_LRhosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
#
# The form for each entry is:
#
#
# For example:
# 192.1.2.34 hpfcrm loghost
#
# See the hosts(4) manual page for more information.
# Note: The entries cannot be preceded by a space.
# The format described in this file is the correct format.
# The original Berkeley manual page contains an error in
# the format description.
#
10.3.242.24 nasjet
10.3.242.24 nasjet nasjet.nasaviation.com

127.0.0.1 localhost loopback
10.3.243.100 FIN
10.3.243.100 lqepsonnasjet:/#
nasjet:/#cat /etc/nsswitch.conf
cat: Cannot open /etc/nsswitch.conf: No such file or directory
nasjet:/#


Bill Hassell
Honored Contributor

Re: error on printing thru Oracle Apps

> 10.3.242.24 nasjet
> 10.3.242.24 nasjet nasjet.nasaviation.com
>
> 127.0.0.1 localhost loopback
> 10.3.243.100 FIN
> 10.3.243.100 lqepsonnasjet:/#

> nasjet:/#cat /etc/nsswitch.conf
> cat: Cannot open /etc/nsswitch.conf: No such file or directory

You have two duplicate entries in /etc/hosts. You cannot have duplicate IP addresses in this file. Remove the first line for nasjet and then remove the lqepsonnasjet:/# line.

Now you have a resolv.conf file but no nsswitch.conf file so your /etc/hosts file is not a fallback solution. Copy this text into the file: /etc/nsswitch.conf

passwd: files
group: files
hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files

Now check that it works correctly:

nslookup FIN


Bill Hassell, sysadmin