- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printer IP address
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 04:36 PM
07-28-2004 04:36 PM
Any ideas where the IP Addresses can be found ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 05:03 PM
07-28-2004 05:03 PM
Re: Printer IP address
# nslookup
If you have configured DNS and /etc/nsswitch.conf file also has 'dns' on the 'hosts' entry, your DNS should be able to resolve the IP address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 05:12 PM
07-28-2004 05:12 PM
Re: Printer IP address
They aren't in the HOSTS file.
The printer names are defined locally and wouldn't be found on other servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 06:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 07:06 PM
07-28-2004 07:06 PM
Re: Printer IP address
same directory as hppi
hpnpadmin -v printername
gives a verbose description including the IP
hpnpadmin -v bprn122
bprn122 is a network printer
Printer State : ready to print
topaz is allowed access to bprn122
Fail (1)
Card IP Address : bprn122.bel.hp.com (16.56.163.9)
Network Mask : 255.255.248.0
Default Gateway : ??? (16.56.160.1)
Idle Timeout : 270 seconds
Uptime : 15 days, 20:29:32
Time Since Reconfig : 15 days, 20:29:16
Reconfig By : not specified
Connections Accepted: 697
Connections Denied : 0 (not on access list)
Connections Aborted : 1
Last Host : broprn-n2.bro.cpqcorp.net (16.183.16.49)
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 07:26 PM
07-28-2004 07:26 PM
Re: Printer IP address
Just making a ping at the printer name:
#ping
Generally, for specific application use; printers are defined in /etc/hosts file. While for global the are defined in a DNS machine. The best way to determine this possibility is using the command nslookup:
#nslookup
The output will indicate you if the /etc/hosts file or DNS is used.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 07:38 PM
07-28-2004 07:38 PM
Re: Printer IP address
hosts: DNS FILES
Check is there a nameserver and domain entry in /etc/resolve.conf,
domain test.com
nameserver x.x.x.x
nslookup printer-name
It will give all informations of hostname,ip-address and aliases
All hostname to address resolvation will be based on hosts: entry on /etc/nsswitch.conf file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 10:17 PM
07-28-2004 10:17 PM
Re: Printer IP address
But I think it still need the
Maybe you try this again?
# cd /usr/spool/lp/interface/
# grep PERIPH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 12:55 AM
07-29-2004 12:55 AM
Re: Printer IP address
where XXXX is the printer name.
If you want all:
for i in `ls /etc/lp/interface | grep -v model.orig `
do
echo $i
hpnpadmin -v $i |grep Address
done
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 01:12 AM
07-29-2004 01:12 AM
Re: Printer IP address
Try
1.lpstat -v|grep null|cut -f 3 -d" "|sort -u|while read line
2. do
3. line1=$(echo $line|sed -e 's/_.*$//g')
4. echo $line1":"$(nslookup $line1 2>/dev/null)|grep answer
5. done
lpstat -v lists printers
/dev/null is normally network
remove _ to get real name
Wont work if name not based on internet name
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 01:38 AM
07-29-2004 01:38 AM
Re: Printer IP address
Try this
1 ls -1 /etc/lp/interface/model.orig|while read line
2 do
3 if ishpnp $line
4 then
5 echo $line is a network printer
6 nslookup $line 2>/dev/null|grep Address
7 line1=$(echo $line|sed -e 's/_.*$//')
8 nslookup $line1 2>/dev/null|grep Address
9 else
10 echo " "
11 fi
12 done
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 02:08 AM
07-29-2004 02:08 AM
Re: Printer IP address
The hpnpadmin commands give SNMP errors like this:
hpnpadmin -v mmfin05
mmfin05: Unknown printer
: Error sending SNMP request.
*** Can't find the session!
nslookup gives
device for mmfin05: /dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 02:11 AM
07-29-2004 02:11 AM
Re: Printer IP address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 02:19 AM
07-29-2004 02:19 AM
Re: Printer IP address
And the PERIPH variable is found in the /etc/lp/interface/priner_name files.
Thanks to ALL !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 02:21 AM
07-29-2004 02:21 AM
Re: Printer IP address
This is the simplest of scripts.5 lines
1. find . -type f|xargs grep ^PERIPH=|while read line
2. do
3. name=$(echo $line|cut -f2 -d"=")
4. echo $line"|"$(nslookup $name 2>/dev/null|grep Address)
5. done
It will check for network setup printers and give the IP if known
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 02:22 AM
07-29-2004 02:22 AM
Re: Printer IP address
This is the simplest of scripts.5 lines
run it on directory /etc/lp/interface
1. find . -type f|xargs grep ^PERIPH=|while read line
2. do
3. name=$(echo $line|cut -f2 -d"=")
4. echo $line"|"$(nslookup $name 2>/dev/null|grep Address)
5. done
It will check for network setup printers and give the IP if known
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 02:31 AM
07-29-2004 02:31 AM
Re: Printer IP address
That is exactly what I needed....
I very much appreciate your ideas and scripts.