Module Pimap System
Module Pimap System
1
BASIC FULL BACUKUP SQL SERVER .................................................................................................. 62
BASIC FULL RESTORE SQL SERVER ................................................................................................... 67
AUTOMATE BASIC BACKUP .............................................................................................................. 69
BACKUP ARCGIS SERVER SITE .......................................................................................................... 73
RESTORE ARCGIS SERVER SITE ......................................................................................................... 76
PORTAL FOR ARCGIS BACKUP (WEBGISDR UTILITY) ....................................................................... 78
RESTORE PORTAL FOR ARCGIS......................................................................................................... 82
2
ACEESS PHYSICAL SERVER PIMAP
SERVER SPECIFICATION
Physical Server
172.16.0.66
Internal Network
Public Network
https://pimap.mbpp.gov.my:6443/arcgis/manager https://pimap.mbpp.gov.my:7443/arcgis
Public Network
Public Network
https://pimap.mbpp.gov.my/server/manager https://pimap.mbpp.gov.my/portal/home
https://pimap.mbpp.gov.my
3
SOFTWARE INFORMATION
4
ACCEESS ARCGIS SERVER MANAGER AND LOCATION PATH
ArcGIS Server version 10.4.1 has been install on the GIS Server
URL link for Accessing ArcGIS Server version 10.4.1:
https://pimap.mbpp.gov.my/server/manager
ArcGIS Server version 10.4.1 Current Username & Password during the installation and
configuration setup, in this situation our team has marge (Federate) two application which is
Portal for ArcGIS 10.4.1 and ArcGIS Server. The User must use the username & password by
using the Portal for ArcGIS 10.4.1 accessible.
Username: pimapadmin
Password:
5
VIEWING A SERVCES IN MANAGER
When you publish a map or image service, you may want a quick way to view it so you can verify that
the publishing process was successful. Although there are many ways to view a service, this topic lists
two quick methods you can use to check your service after publishing or during troubleshooting.
From Manager, you can launch your map or image service in a simple JavaScript-based web
application.
1. Log in to Manager.
2. Click Services.
3. Browse to your service and click the thumbnail image next to it. The service is launched in the
same simple web viewer window that you get with the Services Directory.
6
STARTING AND STOPPING SERVICES
Starting and stopping services are common actions you'll need to perform when administering ArcGIS
Server. For example, you may need to stop a service to change some of its properties and start it again
for the changes to take effect.
Starting a service
Starting a service makes it available for client access. When you start a service, the server instantiates
the minimum number of instances you specified. As clients request the service, the server returns an
available instance. If none are currently available, the server instantiates more instances to meet
demand until the maximum number of instances is reached. At this point, any new clients that make a
request for the service are placed in a queue for the next available instance.
Stopping a service
When you stop a service, the server immediately removes all instances of that service from the server.
This frees up any machine resources that were dedicated to the service. Clients that were using the
service may fail to work properly because the service is no longer available.
1. Open ArcGIS Server Manager and log in. If you need help with this step,
2. Click Services > Manage Services. The Manage Services module appears and reveals the Start
and Stop buttons. If the Stop button is greyed out, it means the service is currently
stopped. Conversely, if the Start button is greyed out, it means the service has already been
started and is currently running.
3. Click one of these commands. It is applied only to the service you selected in the module.
7
DELETING A SERVICES
When you delete a service from ArcGIS Server, any client application using the service will no longer be
able to access it.
To delete a service from ArcGIS Server using Manager, follow these steps:
8
ARCGIS SERVER DIRECTORY PATH LOCATION
9
ArcGIS Server version 10.4.1 Directory Path Authorization key:
10
ACCEESS ARCGIS DATASTORE AND LOCATION PATH
ArcGIS Data Store is an application that lets user configure data storage for the hosting server used with
PIMAP ArcGIS portal. ArcGIS Data Store provides user with a convenient setup and configuration
experience that creates the following different types of data stores:
Relational data store—Stores your portal's hosted feature layer data, including hosted feature
layers created as output from standard feature analysis tools run in the portal website or ArcGIS
Pro.
Tile cache data store—Stores caches for user portal's hosted scene layers.
Spatiotemporal big data store—Archives real-time observational data user can use with an
ArcGIS GeoEvent Server site that is federated with your portal. It also stores the results
generated using GeoAnalytics Tools run in the portal website or ArcGIS Pro
Hosted feature layers that rely on the relational data store require a smaller memory footprint
to run, making it possible for you to publish many services with less hardware resources. When
user publish hosted feature layers, data is copied into the relational data store.
If PHN portal's hosting server has a tile cache data store, user can publish hosted scene layers
from ArcGIS Pro to your portal or publish from scene layer packages directly in the portal web
site.
Note that publishing hosted scene layers from ArcGIS Pro also creates a feature layer. The
publisher determines whether the feature layer is a hosted feature layer or a feature layer that
references the data in the registered data source.
If user use ArcGIS GeoEvent Server to stream high volumes of real-time data, you can create a
spatiotemporal big data store and archive the GeoEvent observation data.
Backups ensure user can recover your data in the event of a disaster such as data corruption
or hardware failure. User can control when and where automatic backups of each data store
are created.
11
Configure a failover data store for feature layer data and scene caches.
ArcGIS Data Store allows you to set up primary and standby relational data store machines, and
primary and standby tile cache machines. hosted feature layer and hosted scene layer tile
cache data is replicated from the primary machines to the standby machines, so if a primary
machine crashes, the standby machine can take its place with minimum downtime.
User can configure multiple spatiotemporal big data stores to balance data loads over multiple
machines and ensure availability of spatiotemporal data in the event of a machine failure.
portal's hosting server must use an ArcGIS Data Store relational data store to enable standard
feature analysis functionality in your portal. To use GeoAnalytics Tools, configure the hosting
server with a spatiotemporal big data store.
Your portal's hosting server must use an ArcGIS Data Store relational data store to allow portal
members to add files to Map Viewer.
12
ARCGIS DATASTORE DIRECTORY PATH LOCATION
ArcGIS Data store 10.4.1 can verify by entering ArcGIS Server Manager, URL and Click on the Data store
menu tab.
https://pimap.mbpp.gov.my/server/manager/site.html
Figure 8: Data store (managed database has been install for ArcGIS Server Manager
Drive C:\arcgisdatastore
Drive C:\arcgisdatastore\backup
13
ArcGIS Data Store 10.4.1 Recovery Data store:
If user lose access to the data in your data store—for example, data store crashes or an editor deletes
the wrong data from a hosted feature layer—User can restore the data using backup files. The backup
files use for recovery are compressed. When restore the data, these files must be uncompressed to a
staging location. That means user need to have a staging location that can accommodate this data. By
default, the files are staged in your data directory.
Do not proceed with configuration. Close the Data Store Configuration wizard when it opens
at the end of the installation.
14
restoredatastore --store relational --target most-recent --source-loc
\\fortknox\backups\datastore --data-dir C:\arcgisdatastore --server-url
https://gisserver.domain.com:6443 --server-admin siteadmin --server-password MySApw
If the directory you specify with the --data-dir option does not already exist, the directory will
be created. If it does exist, you must have write access to it and it must be empty. If not, the
restore operation will fail.
4. Confirm that you want to restore the data store by typing yes.
15
ACCESS ARCGIS WEB ADAPTOR
The ArcGIS Web Adaptor version must always match the version of its registered ArcGIS
Server site.
Each ArcGIS Web Adaptor must have its own unique name; user cannot have two Web
Adaptors with the same name on a single web server. If a naming conflict is detected during
the installation, a warning message is displayed. user need to uninstall the earlier version with
the same name to resolve the conflict. Alternatively, user can change the name of one of the
Web Adaptors to proceed with the installation
ArcGIS Web Adaptor 10.4.1 name for ArcGIS Server Manager: server
Full URL after installing the Web Adaptor: https://pimap.mbpp.gov.my/server
16
ARCGIS WEB ADAPTOR: PORTAL FOR ARCGIS
ArcGIS Web Adaptor 10.4.1 name for Portal for ArcGIS: portal
Full URL after installing the Web Adaptor: https://pimap.mbpp.gov.my/portal
Drive C:\inetpub\wwwroot\server
17
ACCESS PORTAL FOR ARCGIS
Portal for ArcGIS version 10.4.1 has been install on the server
URL link for Accessing Portal for ArcGIS version 10.4.1:
https://pimap.mbpp.gov.my/portal/
Portal for ArcGIS 10.4.1 Current Username & Password during the installation and
configuration setup, in this situation our team has marge (Federate) two application which is
Portal for ArcGIS 10.4.1 and ArcGIS Enterprise (Server). The User must use the username &
password by using the Portal for ArcGIS 10.4.1 accessible.
Username: portaladmin
Password:
18
PORTAL FOR ARCGIS FADERATE
Portal for ArcGIS 10.4.1 Federate verify, we already set up the federation which user can
verify from entering the portal for ArcGIS, enter the organization tab menu and search the
server menu on the left panel or entering the fallowing URL:
https://pimap.mbpp.gov.my/portal/home/organization.html
19
PORTAL FOR ARCGIS HOSTING SERVER
Portal for ArcGIS 10.4.1 running and configuration only Allow access to the portal through
HTTPS only. Please make sure the Secure socket layer (SSL) if up to date.
20
PORTAL FOR ARCGIS SSL ENABLE
21
PORTAL FOR ARCGIS DIRECTORY PATH LOCATION
Drive C:\arcgisportal
22
WEB SERVERS: INTERNET INFORMATION SERVICES
IIS is a web server software package designed for Windows Server. It is used for hosting websites and
other content on the Web
23
DEFAULT WEB SITE FOLDER
C:\inetpub\wwwroot
24
Install your Wildcard SSL Certificate on IIS
Go to Start > Administrative Tools > Internet Information Services (IIS) Manager
In the left menu, select the corresponding server name
In the Features Pane, under Security, select Server Certificates
In the Actions Pane, choose Complete Certificate Request
Provide the location of the certificate
Note: Make sure that the name you give your Wildcard SSL Certificate (aka the friendly name)
includes an asterisk at the sub-domain level you’re attempting to encrypt (eg *.example.com).
Otherwise, you will not be able to bind the certificate properly.
25
Binding the Certificate
Start > Administrative Tools > Internet Information Services (IIS) Manager
Go to Server Name > Sites > Your SSL-based site
In the Actions Pane, choose Bindings
In Site Bindings, if there is no existing https binding, choose Add and change type to HTTPS
From the SSL Certificate drop down, choose the wildcard certificate that will be used for this site
26
DATABASE SERVER: MICROSOFT SQL 2014
To Access database Pimap User need to have login and password provide by database
administrator role
27
MS SQL 2014 BACKUP PATH LOCATION
28
PUBLISHING DATA: ARCGIS DESKTOP TO ARCGIS SERVER
29
ADD NEW DATA FROM EXISTING ARCMAP
1. Open ArcMap and connect folder connection to data need to be added, make sure all data
are in GDB format
30
2. Connect to Database Connection
31
3. Make Sure Connection are accepting and double click to the PiMAPGEOPORTAL database
4. Choose Feature Class category from the database ( Bahagian Jabatan) right click and click
import (Feature Class) Multiple or Single
32
5. Choose Data from connection folder to import insert the database connection
6. Once insert click OK and wait until the data finish to import inside the database connection
and check in the dataset
33
Figure 31: Check the import data
7. Once finish checking, drag the SDE data to Layer inside each category from MXD layer
8. Make sure the connection is source to datasetbase MS SQL to check, Right Click on selected
data layer > and view the data source is set to SQL > Save MXD
34
Figure 34: Data Source
35
SHARE SERVICES TO ARCGIS SERVER FROM ARCMAP
1. Open The existing MXD file layer once complete modify the layer, Click File Menu > Share As >
Services
36
2. Choose Overwrite an existing service if the data is for overwrite from PiMAP Services and click
Next
3. ArcMap will Automatic find the services name as file name of MXD type, Click Continue
37
4. In services editor > click Analyze and make sure not Red colour waring issue. Then Click
Publish to Publish ArcGIS server services
38
PiMAP ADMINISTRATOR SYSTEM
1. Enter https://pimap.mbpp.gov.my
39
3. At login popup. Enter username and password. Click Login
40
5. Enter all the mandatory fill to register user. Click “Hantar” button to submit user registration
41
6. Click administrator link at the right top header to go back at administrator page.
7. At administrator page, click at “Senarai Pengguna Berdaftar” button to view the list of
registered user
42
8. To edit user, click at the edit link
43
10. Click Logout to logout from the system
44
PiMAP ADMINISTRATOR BACK END CODE
45
2. Logo Header Title
46
3. Logo PiMAP
47
4. Panduan Pengguna File
48
5. Panduan Pengguna Word
49
6. Borang Permohonan File
50
7. Borang Permohonan Word
51
8. Footer: Alamat Pejabat Majlis Bandaraya Pulau Pinang
52
9. Footer: No Telefon Pejabat Majlis Bandaraya Pulau Pinang
53
10. Footer: Alamat E-mel
54
11. Footer: Hak Cipta
55
12. Database Connection
56
PiMAP ADMINISTRATOR DATABASE CODE
57
Table name: tbl_pengguna
1. tbl_pengguna is used when administrator register new user in the system. All the registered
user will be save in tbl_pengguna
58
Table name: tbl_jabatan
1. Tbl_jabatan is used to display dropdown list for ‘klasifikasi permohonan’ at ‘daftar penguna
baru’ in admin module
59
Table name: tbl_jabatan lain
1. Tbl_jabatan_lain is used to display dropdown list for ‘nama jabatan at ‘daftar penguna baru’
in admin module
60
Table name: ci_sessions
1. Table ci_sessions is used to record username, time and IP address when user login into PiMAP
system
2. To open ci_sessions table
3. Right click at dbo.ci_sessions, choose Select top 1000 rows
61
BACKUP SYSTEM DATABSAE AND ARCGIS PRODUCT
To perform a simple full backup, we can open SQL Server Management Studio and right-click on the
database we want to back up, then choose tasks then click back up.
62
Figure 74: Database backup add location
Recovery model: actually, this cannot be changed. This is an indicator of what is available to be backed
up. Only databases in full and bulk-logged recovery model can be backed up using transaction log
backup type. As we are talking here about only full back up, so in all recovery models, a full backup can
be done.
Backup type:
Backup component: this option allows you to check if you want to back up the entire database or to
choose specific files or filegroups to backup.
63
Backup to disk: here you can choose the folder and file name for your backup on local disk or share
location or your registered backup devices.
64
Figure 77: Database backup file location
65
Select the following options:
66
5. Hit the OK button to finish the backup of your MS SQL Server Database. Upon the successful
completion of database backup, the following confirmation window will appear with a message
“The backup of database “yourdatabasename” completed successfully.
In order to restore a database from a backup file, follow the steps shown below:
1. Open your Microsoft SQL Server Management Studio and connect to your database.
2. Select the database >> Right-click >> Restore Database
3. Select the option “Backup media as File” and click on the Add button to add the backup file
location
4. Select the backup file you wish to restore and Hit the OK button
67
Figure 81: Database Restore location
You will get the confirmation windows with a message “The restoration of database
“yourdatabasename” completed successfully.” Now you know the procedure of backing up and
restoring MS SQL Server Database
68
AUTOMATE BASIC BACKUP
To automate and schedule a backup by using the SQL Server Maintenance Plan Wizard:
1. In the Object Explorer pane under the Management node right click Maintenance Plans and
select the Maintenance Plan Wizard option:
2. In the Select Plan Properties window specify a plan name. To schedule a SQL Server Agent job,
click the Change button
69
3. In new job schedule, set according base on your requirement backup and click OK
4. In the Select Maintenance Plan Tasks select the Back Up Database Full option
70
5. Define your backup database, select your database and configure your file destination and click
next
71
6. Select your report destination and email report if needed, Click Next to verify
72
Maintenance Plans are more suitable for less experienced DBAs because they provide an easy to use
GUI, and do not require manually written maintenance scripts. The downside of Maintenance Plans is
that the tasks that Maintenance Plans provide are basic and don’t leave space for customization. A
Maintenance Plan is also atomic and is therefore not able to run multiple tasks. Each type of
maintenance task within a single Maintenance Plan can only be configured to run once within that Plan.
For example, if a task that is made to delete older backup files it will only delete one file type at a time.
Because of this multiple Maintenance Plans have to be created just to perform a single task, in some
cases, and every Maintenance Plan has to have a corresponding SQL Server Agent job to be scheduled.
Server administrators often want to preserve periodic backups of their site configurations so that a
site can be restored in the event of hardware failure, human error, or other problems. To address this
need, ArcGIS Server allows you to make a backup of your site configuration. You make the backups on
a regular basis when your site is healthy. If your site has a problem, you can import a backup to
restore the site to its original state.
73
To make a backup, you open a command prompt and run the Backup utility installed with ArcGIS
Server. You must supply the name and password of a user who has administrator privileges to the site
when running this utility. Your ArcGIS Server account needs write access to the folder where you will
place the backup.
You cannot make other administrative changes to your site while the backup is in progress.
C:\Program Files\ArcGIS\Server\tools\admin\backup.py
cd C:\Program Files\ArcGIS\Server\tools\admin
backup.py
hit enter
74
Figure 91: ArcGIS server backup.py command
Example: https://yourdomain:6443/arcgis
4. Enter ArcGIS server manager user name & password and hit enter
5. Enter the absolute path to the folder that will hold the backup file (make a folder in windows
directory)
75
RESTORE ARCGIS SERVER SITE
Once you have made a backup, you can restore it at any time. Use the following steps to perform a
restore:
If the site has registered relational data store types, you must unregister all of them before
proceeding.
Close ArcGIS Server Manager and any other application on your machine that is making a
connection to ArcGIS Server.
Open a command prompt window using the Run as administrator option and run the Restore
utility installed with ArcGIS Server.
Review and fix any issues listed in the response that require manual intervention.
If your site included a Web Adaptor, the Web Adaptor will be reconfigured after the site is
restored.
If your site has registered relational data store types after restoring, you must restart ArcGIS
Server on each machine in your site by restarting the Windows service.
C:\Program Files\ArcGIS\Server\tools\admin\backup.py
76
2. Run command as administrator server and command as bellow
cd C:\Program Files\ArcGIS\Server\tools\admin
restore.py
hit enter
Example: https://yourdomain:6443/arcgis
4. Enter ArcGIS server manager user name & password and hit enter
Enter the path to the backup file generated by the backup utility
5. Do you want to save the report of the restore operation to a local folder? hit (yes/no)
6. Action will continue to run restore and wait
77
Figure 96: ArcGIS server Restore success
You can create backups of your ArcGIS Enterprise deployment and restore the most recent backup in
the event of a failure or corruption. This allows you to recover the portal items, services, and data that
existed at the time you created the backup.
Restoring backups to recover your deployment is a good option if your users will accept some amount
of downtime and possible data loss, and your organization does not have the infrastructure or resources
to devote to a highly available deployment.
Backups can also be kept even if you implement other disaster recovery strategies. They provide extra
insurance that you can recover your deployment if your primary strategy fails. For example, if you
maintain a replicated deployment and both your primary and replicated deployments fail at the same
time (perhaps they were running on servers in the same building and the building loses power or there's
an electrical surge that destroys both servers), you still have a backup to which you can resort.
Use the webgisdr utility to export backup files of the following components of your ArcGIS Enterprise
deployment:
You have the option to create incremental backups between full backups. When you create an
incremental backup, the backup file contains all changes made since the last full backup
78
1. Make a copy of the template properties file. You can save the copy in the same directory as
the template or to a new directory.
In this example,
Edit webgisdr.properties
79
2. Basic Webgisdr.properties to edit
Example:
SHARED_LOCATION= D: BackupPortal
Specify a shared location to store the Web GIS backup file. This is where the backups for
individual components will be saved to before being moved to the storage that you specify
BACKUP_STORE_PROVIDER = FileSystem
Specify a storage provider to store the Web GIS backup: FileSystem, AmazonS3, or
AzureBlob.
BACKUP_LOCATION = D:BackupPortal
Specify the Web GIS backup location if you've set the BACKUP_STORE_PROVIDER to
FileSystem
Example:
# https://webadaptor.domain.com/context or
# https://portalmachine.domain.com:7443/arcgis
PORTAL_ADMIN_PASSWORD_ENCRYPTED =false
BACKUP_RESTORE_MODE =full
80
3. Run Backup Command as administrator
4. Type cd C:\Program Files\ArcGIS\Portal\tools\webgisdr
Example:
81
RESTORE PORTAL FOR ARCGIS
1. Be sure the domain account that runs the ArcGIS Server, Portal for ArcGIS, and ArcGIS Data
Store has read access to the folder where the backup file is stored.
2. Edit webgisdr.Properties SHARED_LOCATION = to Backup PATH .webgissite
3. Open a command window on the Portal for ArcGIS machine, change directories to the
location of the webgisdr utility, and run the utility with the import option.
4. Open Command and path webgisdr tools, default path C:\Program
Files\Portal\tools\webgisdr
5. Type cd C:\Program Files\Portal\tools\webgisdr
6. Restore command
7. webgisdr --import –file [ path location of copy webgisdr]
8. for example
9. webgisdr --import --file D:\BackupPortal\webgisdr.properties
82