added junos, updated screenos
[configmanager.git] / lib / screenos.plugin.php
1 <?php 
2 $HOST_TYPE["screenos"]["name"] = "Netscreen Screen OS";
3 $HOST_TYPE["screenos"]["updateconfig"] = "nsos_updateConfig";
4 $HOST_TYPE["screenos"]["getconfig"] = "nsos_getConfigFromDB";
5 $HOST_TYPE["screenos"]["needsenable"] = false;
6
7
8 function nsos_getConfigFromDB($hip, $cid)
9 {
10         $data = db_selectData("configs", "configs_id", "$cid");
11         
12         return base64_decode($data[0]["configdata"]);
13 }
14
15 function nsos_updateConfig($hip, $hostconfig)
16 {
17 }
18
19 function nsos_getConfig($host, $username, $password, $enable)
20 {
21         return genericssh_ssh($host, $username, $password, "cli show configuration");
22 }
23 ?>