HP Web Jetadmin
The HP Web JetAdmin Integration imports the printers recorded in HP Web Jetadmin into xAssets as asset records. It adds each printer's IP address and MAC address. It also links a printer to the computer it is attached to, when HP Web Jetadmin records that connection.
The integration reads the HP Web Jetadmin SQL Server database directly with a SQL query. There is no API call and no credential pack. The connection uses Windows authentication.
Prerequisites
Before you start, check that you have the following:
- HP Web Jetadmin with its SQL Server database. The database is usually named
HPWJA. The integration reads the tablesmoab_device,moab_device_moe,moab_device_moe_name,moab_device_connection,moab_device_connection_moeanddiscovery. - A SQL Server login for the xAssets Batch Service account. The query runs on the xAssets application server, as the Windows account of the xAssets Batch Service. The login needs read access to the HP Web Jetadmin database: membership of the
db_datareaderrole is enough. - Remote connections to the SQL Server. HP Web Jetadmin often uses a SQL Server Express instance. Express installs with the TCP/IP protocol turned off, so turn it on in SQL Server Configuration Manager if the database is on another server.
- Network access from the xAssets application server to the SQL Server: TCP port 1433 for a default instance. A named instance also needs the SQL Server Browser service (UDP port 1434), or a fixed port in the server name.
- The SQL Server OLE DB provider (
SQLOLEDB) on the application server. Windows includes it. - The xAssets Batch Service must be running (the integration runs as a batch job).
Setup
Step 1: Grant Read Access to the HP Web Jetadmin Database
A SQL Server administrator on the HP Web Jetadmin database server runs these statements. Replace the account and database names with your own.
CREATE LOGIN [DOMAIN\xassets-service] FROM WINDOWS;
USE [HPWJA];
CREATE USER [DOMAIN\xassets-service] FOR LOGIN [DOMAIN\xassets-service];
ALTER ROLE db_datareader ADD MEMBER [DOMAIN\xassets-service];
Find the account on the Log On tab of the xAssets Batch Service on the application server. If the service runs as Local System or Network Service, it connects to a remote SQL Server as the computer account. Use DOMAIN\APPSERVERNAME$ as the login name.
Step 2: Set the Connection String
The connection is stored on the transformation that reads the printers. This integration does not read the HPWJA settings in Admin > Settings. These are HP Web JetAdmin Database Server, HP Web JetAdmin Database Name and SQL Server instance hosting the HPWJA database.
- Navigate to Admin > Transformations.
- Open Network Discovery 940 - HPWJA Temp Table.
- In Database Connection String, enter the connection to your HP Web Jetadmin database:
Provider=SQLOLEDB.1;Data Source=SQLSERVER01\INSTANCE;Initial Catalog=HPWJA;integrated security=SSPI
- Replace
SQLSERVER01\INSTANCEwith your SQL Server and instance. ReplaceHPWJAif your database has another name. - Save the transformation.
Step 3: Map IP Ranges to Locations
The integration sets each printer's location from its IP address. It uses the IP To Location data mappings, the same mappings xAssets discovery uses. A printer outside every mapped range gets location ID 1.
Set up the IP ranges before the first run. See Setting Up Reference Data.
Step 4: Run the Integration
- Click the Settings gear icon (top right) > Integrations.
- Select HP Web JetAdmin Integration by clicking its row.
- Click Queue at the top of the screen. Alternatively, click the Start icon in the row to run it at once. No credentials dialog appears.
- Watch the status in the batch job area. The stages are:
HP Web JetAdmin Integration is Starting
HP Web JetAdmin Integration is Validating Data
HP Web JetAdmin Integration is Loading Asset Data
HP Web JetAdmin Integration is Setting IPs
HP Web JetAdmin Integration is Creating Relationships
HP Web JetAdmin Integration Completed
Step 5: Check the Results
- Open the Asset List and filter by Source =
HPWJA. - Open one printer and check the description, serial number, model, manufacturer and location.
- Check the IP address and MAC address on the printer's network details.
Imported Data
Each printer becomes one asset in the Printer category. Printers whose display name contains Unknown are left out.
| HP Web Jetadmin Value | xAssets Field |
|---|---|
| Display name | Asset Description (Unknown Printer when blank) |
| Serial number | Serial Number |
| Model name | Model |
| Manufacturer, from the device ID string | Manufacturer, then corrected by Manufacturer Recognition |
| IPv4 address | IP Address and the IP range. Also sets the location |
| MAC address | MAC Address, written as AA-BB-CC-DD-EE-FF |
A printer with no serial number gets a key in the form <MAC address>:<port>. The IP address takes the place of the MAC address when there is none. Existing assets are matched on serial number and the other asset matching keys.
Printer Relationships
For a printer connected to a computer, HP Web Jetadmin records the computer's host name. The integration links the printer to the asset with that computer name. The computer must already be in xAssets, for example from discovery.
Troubleshooting
Login failed for user
The xAssets Batch Service account has no login on the SQL Server, or no user in the HP Web Jetadmin database. Check the service account, then repeat Step 1 for that account.
SQL Server does not exist or access denied
Check the server and instance in the connection string from Step 2. Check that TCP/IP is turned on for the instance, and that the application server can connect to its port.
Invalid object name 'moab_device'
The Initial Catalog in the connection string does not name the HP Web Jetadmin database.
Scheduling
Schedule the HP Web JetAdmin Integration to run daily or weekly. See Schedules.
Related Articles
- Transformation Data Sources -- database connection strings on a transformation
- Setting Up Reference Data -- IP ranges and locations
- Schedules -- automating integration runs