-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jean-François Hivert
committed
Sep 27, 2018
1 parent
51fdecb
commit e75dbb0
Showing
16 changed files
with
772 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.user.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"DEFAULT": { | ||
"sys": { | ||
"browserCmd": "xdg-open" | ||
"browserCmd": "xdg-open", | ||
"secureShellCmd": "ssh" | ||
} | ||
}, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
<?php | ||
include_once('services/dcim.php'); | ||
define("ROOT_DIR", __DIR__); | ||
require_once('services/dcim.php'); | ||
|
||
if(!isset($configurations)) | ||
{ | ||
$configurations = array( | ||
__DIR__ . '/configurations/config.json', | ||
__DIR__ . '/configurations/config.user.json', | ||
); | ||
} | ||
|
||
/** | ||
* Déplace le curseur d'une ligne vers le haut | ||
* Fix le saut de ligne lors de la touche entrée pour lancer le script CLI | ||
* | ||
* Permet d'harmoniser le traitement des sauts de lignes: | ||
* --> Saut de ligne avant un texte et non après! | ||
*/ | ||
echo "\033[1A"; | ||
|
||
/** | ||
* Change [DCIM_SERVER_KEY] with the key of your PatchManager server in configuration file | ||
* Example: $MAIN = new Service_Dcim(__DIR__ . '/config.json', 'myPmKey'); | ||
*/ | ||
$MAIN = new Service_Dcim(__DIR__ . '/config.json', '[DCIM_SERVER_KEY]'); | ||
$MAIN = new Service_Dcim($configurations, '[DCIM_SERVER_KEY]'); | ||
|
||
echo "\r\n"; | ||
echo PHP_EOL; | ||
exit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
ressources/dcim/reports/CW - TOOLS-CLI - Location - Root.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<report> | ||
<name>CW - TOOLS-CLI - Location - Root</name> | ||
<description>INFTSK-5007</description> | ||
<components> | ||
<component type="table"> | ||
<search configurations="false" domain="com.patchmanager.shared.beans.Location"> | ||
<name>CW - TOOLS-CLI - Location - Root</name> | ||
<expression>0&1</expression> | ||
<constraints> | ||
<constraint alias="1" match-case="false" negation="true"> | ||
<field>location.parent.name</field> | ||
<type>STRING</type> | ||
<comparison>HAS_VALUE</comparison> | ||
<comparison-configuration/> | ||
<value/> | ||
</constraint> | ||
<constraint alias="2" match-case="false" negation="true"> | ||
<field>location.parent.layer</field> | ||
<type>STRING</type> | ||
<comparison>HAS_VALUE</comparison> | ||
<comparison-configuration/> | ||
<value/> | ||
</constraint> | ||
</constraints> | ||
</search> | ||
<data-format aggregates-only="false" domain="com.patchmanager.shared.beans.Location" filtering="NO_FILTERING" ignore-duplicates="false" narrow="false"> | ||
<name>CW - TOOLS-CLI - Location</name> | ||
<description>INFTSK-5007</description> | ||
<fields> | ||
<field aggregate="false" format="{1}" header="Entity ID"> | ||
<expression>location.entityId</expression> | ||
</field> | ||
<field aggregate="false" format="{1}" header="Name"> | ||
<expression>location.name</expression> | ||
</field> | ||
<field aggregate="false" format="{1}" header="Path"> | ||
<expression>location.parent</expression> | ||
<renderer>com.patchmanager.shared.beans.dataformat.renderer.ExpressionRenderer</renderer> | ||
<renderer-configuration> | ||
<value key="[0]expression">{qname}</value> | ||
</renderer-configuration> | ||
</field> | ||
</fields> | ||
<ordering-fields> | ||
<ordering-field order-ascending="true"> | ||
<expression>location.template</expression> | ||
<renderer>com.patchmanager.shared.beans.dataformat.renderer.ExpressionRenderer</renderer> | ||
<renderer-configuration> | ||
<value key="expression">{name}</value> | ||
</renderer-configuration> | ||
</ordering-field> | ||
<ordering-field order-ascending="true"> | ||
<expression>location.parent</expression> | ||
<renderer>com.patchmanager.shared.beans.dataformat.renderer.ExpressionRenderer</renderer> | ||
<renderer-configuration> | ||
<value key="expression">{qname}</value> | ||
</renderer-configuration> | ||
</ordering-field> | ||
<ordering-field order-ascending="true"> | ||
<expression>location.name</expression> | ||
</ordering-field> | ||
</ordering-fields> | ||
</data-format> | ||
</component> | ||
</components> | ||
</report> |
21 changes: 21 additions & 0 deletions
21
ressources/dcim/searches/CW - TOOLS-CLI - Location - Root.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<search configurations="false" domain="com.patchmanager.shared.beans.Location"> | ||
<name>CW - TOOLS-CLI - Location - Root</name> | ||
<expression>0&1</expression> | ||
<constraints> | ||
<constraint alias="1" match-case="false" negation="true"> | ||
<field>location.parent.name</field> | ||
<type>STRING</type> | ||
<comparison>HAS_VALUE</comparison> | ||
<comparison-configuration/> | ||
<value/> | ||
</constraint> | ||
<constraint alias="2" match-case="false" negation="true"> | ||
<field>location.parent.layer</field> | ||
<type>STRING</type> | ||
<comparison>HAS_VALUE</comparison> | ||
<comparison-configuration/> | ||
<value/> | ||
</constraint> | ||
</constraints> | ||
</search> |
Oops, something went wrong.