- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Determine if IP address belongs to printer
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
Discussions
Discussions
Discussions
Forums
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
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
тАО01-12-2009 11:57 AM
тАО01-12-2009 11:57 AM
Determine if IP address belongs to printer
I have snmpwalk command available but without specifying an output class, the information it gives out is extremely large. I tried
snmpwalk
Is there a way to easily accomplish this ? I am okay downloading a piece of opensource software if the need be. Or if there is any other way to obtain this information, other than snmpwalk, I am okay with that too.
Thanks for all the answers in advance.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 12:20 PM
тАО01-12-2009 12:20 PM
Re: Determine if IP address belongs to printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 12:37 PM
тАО01-12-2009 12:37 PM
Re: Determine if IP address belongs to printer
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 01:08 PM
тАО01-12-2009 01:08 PM
Re: Determine if IP address belongs to printer
/opt/OV/bin/snmpwalk
returns several lines of which the words JETDIRECT and printer are returned. With that, i wrote a little perl script:
#!/bin/perl
# File w/ list of IP addresses
$IPLIST = "./iplist";
open(IPLIST, "< $IPLIST");
while (
chomp;
chomp($SNMPWALK = `/opt/OV/bin/snmpwalk $_ system 2> /dev/null`);
if ($SNMPWALK =~ /JETDIRECT|printer/i) {
print "$_ is printer\n";
}
}
close(IPLIST);
It seemed to work for the 3 printers in my test. HTH,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 03:09 PM
тАО01-12-2009 03:09 PM
Re: Determine if IP address belongs to printer
http://h20000.www2.hp.com/bizsupport/TechSupport/Home.jsp?locale=en_US&prodTypeId=18972&prodSeriesId=27349
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 06:32 PM
тАО01-12-2009 06:32 PM
Re: Determine if IP address belongs to printer
Are you running a very old copy of hppi? A reasonably current version is E.10.34 and will have rptrcfg. However, it is really designed for printer-specific features. Just use hpnpadmin (also in /opt/hpnpl/bin) and run through all the addresses. If there is an HP printer (or printers that support the HP JetDirect protocol), you will see:
# hpnpadmin hplj4
Printer State : ready to print
This is the simplest output. Or for more details, check the man page for hpnpadmin. NOTE: All versions of hppi and even the obsolete jetadmin software have the hpnpadmin command. If you get: command not found, update your PATH in .profile or for everyone, in /etc/PATH, with: /opt/hpnpl/bin
hpnpadmin will return immediately for JetDirect interfaces, but will timeout for computers and non-HP interfaces. Check the man page for all the information that can be gathered. hpnpadmin -v gives a *lot* of information. Note that not every printer (especially older models) will report detailed descriptions:
# hpnpadmin -i hplj4
Printer Description:
--------------------
Printer ID : 3
Bill Hassell, sysadmin