Skip to content

Commit

Permalink
UPDATED 2022-06-11-1240CDT v00.60.09.010.030
Browse files Browse the repository at this point in the history
UPDATED 2022-06-11-1240CDT v00.60.09.010.030
Updates and corrections, works with R81.10, not working with R81.20 EA so far.
  • Loading branch information
mybasementcloud committed Jun 11, 2022
1 parent 0fc6224 commit 00a08ae
Show file tree
Hide file tree
Showing 97 changed files with 6,873 additions and 2,846 deletions.
7 changes: 4 additions & 3 deletions .environment_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filetype" : "environmentment_info.api_scripts",
"fileversion" : "07.00.00",
"filerevision" : "000",
"filedate" : "2022-05-03",
"filedate" : "2022-05-05",
"fileinformationlevel" : "000",
"MinCMDTemplateVersion" : "07.00.00"
},
Expand All @@ -19,9 +19,10 @@
"Language" : "Windows_CMD",
"Extension" : "CMD"
},
"ScriptDate" : "2022-05-03",
"ScriptDate" : "2022-05-05",
"ScriptVersion" : "06.08.03",
"ScriptRevision" : "000",
"ScriptRevision" : "002",
"ScriptTweak" : "45",
"TemplateVersion" : "06.08.03"
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# File and Folder Purpose and Utilization

## Version :20 2022-05-03
## UPDATED: 2022-05-05

Updated to reflect changes to version, folder structure, and filenames.

### Version v00.60.09.010:030 2022-05-05

The value of ${version} for this document is one of the following:

- Version: v00.60.09 ${version}
- Version: v00.60.09.005 ${version.revision}
- Version: v00.60.09.010 ${version.revision}

## Overview

Expand Down Expand Up @@ -420,8 +424,8 @@ Documentation related files in formats that support the material presented. Mar
Files:

- supported_objects.WIP.${version.revision}.tsv : This documentation file identifies the supported objects for the Objects operations scripts as a Work-In-Progress (WIP), and how they are supported for the different operations. Each objects is provide a row in the Tab Separated Value (.tsv) file, and the columns are specific items described or documented.
- .testing_schema_MDSM.2022-05-03.sh : Schema of scripts with command line parameters to execute testing against MDSM.
- .testing_schema_SMS.2022-05-03.sh : Schema of scripts with command line parameters to execute testing against SMS.
- .testing_schema_MDSM.2022-05-04.sh : Schema of scripts with command line parameters to execute testing against MDSM.
- .testing_schema_SMS.2022-05-04.sh : Schema of scripts with command line parameters to execute testing against SMS.

#### Package Version Identification Files

Expand All @@ -441,10 +445,6 @@ Script Files:

Script Files:

- .common_csv_exports.sh : Execute the common standard export to CSV with all objects (-SO) and Non-System Objects (NSO) for SMS.
- .common_csv_exports_mdsm.sh : Execute the common standard export to CSV with all objects (-SO) and Non-System Objects (NSO) for MDSM.
- .common_exports.sh : Execute the common standard export to JSON and CSV, populating the JSON repository with all objects (-SO) and Non-System Objects (NSO) for SMS.
- .common_exports_mdsm.sh : Execute the common standard export to JSON and CSV, populating the JSON repository with all objects (-SO) and Non-System Objects (NSO) for MDSM.
- cli_api_actions.export_objects_to_csv.sh : Action handler for object export to CSV format, utilized by other scripts.
- cli_api_actions.export_objects_to_json.sh : Action handler for object export to JSON format, utilized by other scripts. Also populates the JSON Repository.
- cli_api_export_all_domains_objects.sh : Script to handle looping through all MDSM domains on a target MDSM MDS exporting all objects in JSON and CSV format controlled by Command Line Parameters, also populating the JSON repository.
Expand Down Expand Up @@ -477,21 +477,11 @@ Script Files:
Script Files:

- 500plus_objects_to_single_json_in_dump.lite.sh : Process all instances of a type of object provided as a Command Line Parameter into a single JSON output file.
- refresh_all_json_object_repositories.sh : Execute scripts to refresh all JSON Respositories for an SMS, including all objects (-SO), Non-System Objects (-NSO), and Only System Objecs (-OSO).
- refresh_all_json_object_repositories_mdsm.sh : Execute scripts to refresh all JSON Respositories for an MDSM MDS, including all objects (-SO), Non-System Objects (-NSO), and Only System Objecs (-OSO).
- refresh_json_object_repository.sh : Execute scripts to refresh JSON Respository for an SMS, only for the all objects (-SO) repository.
- refresh_json_object_repository_mdsm.sh : Execute scripts to refresh JSON Respository for an MDSM MDS, only for the all objects (-SO) repository.

#### Script Files - Testing

Script Files:

- .test_exports.sh : Execute complete set of scripts to test the export operations scripts, with output of JSON and CSV files, including building all JSON Repositories, for SMS.
- .test_exports_csv.sh : Execute subset set of scripts to test the export operations scripts, with output of CSV files, utilizing JSON Repositories, for SMS.
- .test_exports_csv_mdsm.sh : Execute subset set of scripts to test the export operations scripts, with output of CSV files, utilizing JSON Repositories, for MDSM.
- .test_exports_json.sh : Execute subset set of scripts to test the export operations scripts, with output of JSON files, including building all JSON Repositories, for SMS.
- .test_exports_json_mdsm.sh : Execute subset set of scripts to test the export operations scripts, with output of JSON files, including building all JSON Repositories, for MDSM.
- .test_exports_mdsm.sh : Execute complete set of scripts to test the export operations scripts, with output of JSON and CSV files, including building all JSON Repositories, for MDSM.
- wip.object_export_testing.sh : Script to handle specific objects export, based on in script changes to active or commented out object actions, for CSV format, to assist in testing and developing complete and/or working exports for objects, on SMS target host.
- wip.test_read_exobdef_json_file.sh : Script to test the operations for reading JSON Object Export Definition Files, for development of JSON controlled operations on objects.

Expand Down Expand Up @@ -626,6 +616,57 @@ Files:
- networks_full_csv.csv
- security-zones_full_csv.csv

### Folder: .../deveops.dev/objects.wip/object_operations

The 'object_operations' folder provides operations scripts that execute a process utilizing the scripts in the './export_import[.wip]' and './csv_tools[.wip]' folders.

#### Package Version Identification Files

These files provide information regarding the version of the package of scripts.

Files:

- object_operations_version.${version.revision}.version : Current version details for the '../object_operations' scripts

#### Script Files

Script Files:

- common_csv_exports.sh : Execute the common standard export to CSV with all objects (-SO) and Non-System Objects (NSO) for SMS.
- common_csv_exports_mdsm.sh : Execute the common standard export to CSV with all objects (-SO) and Non-System Objects (NSO) for MDSM.
- common_exports.sh : Execute the common standard export to JSON and CSV, populating the JSON repository with all objects (-SO) and Non-System Objects (NSO) for SMS.
- common_exports_mdsm.sh : Execute the common standard export to JSON and CSV, populating the JSON repository with all objects (-SO) and Non-System Objects (NSO) for MDSM.
- refresh_all_json_object_repositories.sh : Execute scripts to refresh all JSON Respositories for an SMS, including all objects (-SO), Non-System Objects (-NSO), and Only System Objecs (-OSO).
- refresh_all_json_object_repositories_mdsm.sh : Execute scripts to refresh all JSON Respositories for an MDSM MDS, including all objects (-SO), Non-System Objects (-NSO), and Only System Objecs (-OSO).
- refresh_json_object_repository.sh : Execute scripts to refresh JSON Respository for an SMS, only for the all objects (-SO) repository.
- refresh_json_object_repository_mdsm.sh : Execute scripts to refresh JSON Respository for an MDSM MDS, only for the all objects (-SO) repository.

#### Script Files - Testing

Script Files:

- test_exports.sh : Execute complete set of scripts to test the export operations scripts, with output of JSON and CSV files, including building all JSON Repositories, for SMS.
- test_exports_csv.sh : Execute subset set of scripts to test the export operations scripts, with output of CSV files, utilizing JSON Repositories, for SMS.
- test_exports_csv_mdsm.sh : Execute subset set of scripts to test the export operations scripts, with output of CSV files, utilizing JSON Repositories, for MDSM.
- test_exports_json.sh : Execute subset set of scripts to test the export operations scripts, with output of JSON files, including building all JSON Repositories, for SMS.
- test_exports_json_mdsm.sh : Execute subset set of scripts to test the export operations scripts, with output of JSON files, including building all JSON Repositories, for MDSM.
- test_exports_mdsm.sh : Execute complete set of scripts to test the export operations scripts, with output of JSON and CSV files, including building all JSON Repositories, for MDSM.

#### Windows Command Line (CMD) Development Environment Files (not commonly distributed or provided in GitHub)

Script files for use in Windows Command Line (CMD) Development Environment, potentially PowerShell in the future, to handle common operations during the script development process. These Development Environment scripts may be environment specific to both the development technology/environment, as well as the script focus. Intelligent naming is stipulated where plausible. If a __Windows.CMD folder exists, then the details of the script file purposes is explained there.

Windows Command Line script Files:

- zzOpenFileTypesInTextFileEditor.bash.CMD
- zzOpenFileTypesInTextFileEditor.versions.CMD
- zzZCz_Clear__historyFolders.CMD
- zzZRz_Rename_Version-3parm.CMD
- zzZRz_Rename_Version.CMD
- zzZRz_Rename_Version_Recursive.CMD
- zzZTz_Touch.CMD
- zzZTz_Touch.sh.CMD

### Folder: .../deveops.dev/Policy_and_Layers.wip

#### Root-Folder: .../deveops.dev/Policy_and_Layers.wip
Expand Down
2 changes: 1 addition & 1 deletion LIMITATIONS_and_CAVEATS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LIMITATIONS and CAVEATS

## UPDATED: 2022-05
## UPDATED: 2022-05-05

This document outlines limitations and caveats to the implementation of R8X API export, import, set-update, and delete scripts utilizing bash mgmt_cli commands.

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Check Point R8x Export, Import, Set/Update, Rename to new-name, and Delete mgmt_

Additional documentation and information will be provided in .md, .tsv, and potentially .xlsx files in the repository.

## UPDATED: 2022-05
## UPDATED: 2022-05-05

Interim update, reorganize the README.MD and add a Quick Start

## Overview

The export, import, set-update, rename-to-new-name, and delete using CSV files scripts in this post, currently version 00.60.09.005 dated 2022-05-03, are intended to allow operations on an existing R80, R80.10, R80.20[|.M1|.M2], R80.30, R80.40, R81, and R81.10 [EA R81.20 possibly] Check Point management server (SMS or MDM) from bash expert mode on the Check Point management server host or another API enabled Check Point management server host instance (Check Point Gaia OS R8X) able to authenticate and reach the target management server host. Utilization from other LINUX releases is not supported, tested, or assumed to work.
The export, import, set-update, rename-to-new-name, and delete using CSV files scripts in this post, currently version 00.60.09.010 dated 2022-05-05, are intended to allow operations on an existing R80, R80.10, R80.20[|.M1|.M2], R80.30, R80.40, R81, and R81.10 [EA R81.20 possibly] Check Point management server (SMS or MDM) from bash expert mode on the Check Point management server host or another API enabled Check Point management server host instance (Check Point Gaia OS R8X) able to authenticate and reach the target management server host. Utilization from other LINUX releases is not supported, tested, or assumed to work.

- Check Point Management API documentation is here:
<https://sc1.checkpoint.com/documents/latest/APIs/index.html#introduction>
Expand Down Expand Up @@ -82,7 +82,7 @@ To quickly start working with the scripts, do the following.

Example: ```tar -xvf devops.dev.{version}.tgz```

```tar -xvf devops.dev.v00.60.09.005.tgz```
```tar -xvf devops.dev.v00.60.09.010.tgz```

4. Goto to the export import folder

Expand Down
Binary file removed devops.dev.v00.60.09.005.tgz
Binary file not shown.
Binary file added devops.dev.v00.60.09.010.tgz
Binary file not shown.
7 changes: 4 additions & 3 deletions devops.dev/.environment_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filetype" : "environmentment_info.api_scripts",
"fileversion" : "07.00.00",
"filerevision" : "000",
"filedate" : "2022-05-03",
"filedate" : "2022-05-05",
"fileinformationlevel" : "000",
"MinCMDTemplateVersion" : "07.00.00"
},
Expand All @@ -19,9 +19,10 @@
"Language" : "Windows_CMD",
"Extension" : "CMD"
},
"ScriptDate" : "2022-05-03",
"ScriptDate" : "2022-05-05",
"ScriptVersion" : "06.08.03",
"ScriptRevision" : "000",
"ScriptRevision" : "002",
"ScriptTweak" : "45",
"TemplateVersion" : "06.08.03"
}
}
Loading

0 comments on commit 00a08ae

Please sign in to comment.