update sshsvc yaml default setting

This commit is contained in:
2024-10-09 11:33:56 +08:00
parent cc6b115f95
commit 5661b7c202
2 changed files with 12 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ sshd:
userName: manager userName: manager
password: pass123 password: pass123
authType: local authType: local
tagNE: hlr tagNE: omc
# authType: local/omc # authType: local/omc
telnetServer: telnetServer:
@@ -45,7 +45,7 @@ telnetServer:
userName: manager userName: manager
password: pass123 password: pass123
authType: local authType: local
tagNE: hlr tagNE: omc
# authproto: NoAuth/MD5/SHA # authproto: NoAuth/MD5/SHA
# privProto: NoPriv/DES/AES/AES192/AES256 # privProto: NoPriv/DES/AES/AES192/AES256
@@ -63,15 +63,15 @@ snmpServer:
trapBool: false trapBool: false
trapTick: 60 trapTick: 60
timeOut: 5 timeOut: 5
trapTarget: "2001:db8::9219" trapTarget: ""
database: database:
type: mysql type: mysql
user: administrator user: root
password: "*86#ROtartsinim" password: 1000omc@kp!
host: 192.168.13.117 host: 127.0.0.1
port: 3306 port: 33066
name: OMC_PUB name: omc_db
connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True connParam: charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&interpolateParams=True
omc: omc:

View File

@@ -2,21 +2,22 @@
TargetIP="[2001:db8::9166]" TargetIP="[2001:db8::9166]"
PORT="34957" PORT="34957"
OID=".1.3.6.1.4.1.1379.2.3.3.3.1.1.9.0"
case "$1" in case "$1" in
1) 1)
echo -n "Set HLR state link down ... " echo -n "Set HLR state link down ... "
snmpset -v3 -l noAuthNoPriv -u manager ${TargetIP}:${PORT} .1.3.6.1.4.1.1379.2.3.3.3.1.1.9.0 i 1 >/dev/null snmpset -v3 -l noAuthNoPriv -u manager ${TargetIP}:${PORT} ${OID} i 1 >/dev/null
echo "done" echo "done"
;; ;;
2) 2)
echo -n "Set HLR state link up ... " echo -n "Set HLR state link up ... "
snmpset -v3 -l noAuthNoPriv -u manager ${TargetIP}:${PORT} .1.3.6.1.4.1.1379.2.3.3.3.1.1.9.0 i 2 >/dev/null snmpset -v3 -l noAuthNoPriv -u manager ${TargetIP}:${PORT} ${OID} i 2 >/dev/null
echo "done" echo "done"
;; ;;
3) 3)
echo -n "Set HLR state authentication failure ... " echo -n "Set HLR state authentication failure ... "
snmpset -v3 -l noAuthNoPriv -u manager ${TargetIP}:${PORT} .1.3.6.1.4.1.1379.2.3.3.3.1.1.9.0 i 3 >/dev/null snmpset -v3 -l noAuthNoPriv -u manager ${TargetIP}:${PORT} ${OID} i 3 >/dev/null
echo "done" echo "done"
;; ;;
*) *)