Cisco Cisco Prime Network Registrar 8.0 Technical References
ImportServiceSnapshot
CLI and API Guide for Cisco Prime Network Registrar IPAM 8.0
Command Line Interfaces (CLI) 47
ImportServiceSnapshot
Overview
The
ImportServiceSnapshot
CLI allows the user to import address pools discovered
by either a “Collect DHCP Utilization” or “Global Synchronization of DHCP Servers”
task. Typically, such tasks are used to query the current state of the network and perform
difference analysis to compare actual deployment with the topology modeled in Cisco
difference analysis to compare actual deployment with the topology modeled in Cisco
Prime Network Registrar IPAM. However, during the initial setup of the system the
queried information from these tasks can be used to populate the original Cisco Prime
queried information from these tasks can be used to populate the original Cisco Prime
Network Registrar IPAM model. This CLI then, is used to perform this initial population
of discovered address pools.
of discovered address pools.
Usage
Direct
$INCHOME/jre/bin/java –cp $CLASSPATH com.diamondip.netcontrol.cli.ImportServiceSnapshot –
u <adminId> -p <admin password> -t <taskId> [-?]
u <adminId> -p <admin password> -t <taskId> [-?]
Via command script (Unix)
$INCHOME/etc/cli/ImportServiceSnapshot.sh –u <adminId> -p <admin password> -t <taskId>
[-?]
[-?]
Via command script (Windows) from the %INCHOME%/etc/cli directory
ImportServiceSnapshot.cmd –u <adminId> -p <admin password> -t <taskId> [-?]
Parameters
Parameter
Required
Description
-u <userId>
Yes
User Id
-p <pwd>
Yes
Password
-?
No
Print help
-t <taskId>
Yes
The Id of the “Collect DHCP Utilization” or “Global Synchronization
of DHCP Servers” task.
Usage Example
This example imports address pools discovered by task
12345
, places into the
servicesnapshot.reject file any records that could not be imported, and reports errors to the
importerrors.txt file.
importerrors.txt file.
$INCHOME/etc/cli/ImportServiceSnapshot.sh –u joe –p joepwd –t 12345