Guest User

Crear imagen por ssh

a guest
May 14th, 2021
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@Equipo0710:/opt/opengnsys/interfaceAdm# bash -x /opt/opengnsys/interfaceAdm/CrearImagen 1 1 W10A11SB 192.168.98.122
  2. + TIME1=0
  3. + '[' -z TRUE ']'
  4. + echo ' '
  5. + echo ' '
  6. + echo ' '
  7. + ogEcho log session '[START Interface] Ejecutar comando:  /opt/opengnsys/interfaceAdm/CrearImagen 1 1 W10A11SB 192.168.98.122'
  8. + local CONT=1 LOGS LOGLEVEL DATETIME
  9. + '[' 1 ']'
  10. + case "${1,,}" in
  11. + LOGS=' /opt/opengnsys/log/192.168.98.14.log'
  12. + shift
  13. + '[' 1 ']'
  14. + case "${1,,}" in
  15. + LOGS=' /opt/opengnsys/log/192.168.98.14.log /tmp/session.log'
  16. + shift
  17. + '[' 1 ']'
  18. + case "${1,,}" in
  19. + CONT=
  20. + '[' ']'
  21. + case "${1,,}" in
  22. + '[' -n '' ']'
  23. + echo '[START Interface] Ejecutar comando:  /opt/opengnsys/interfaceAdm/CrearImagen 1 1 W10A11SB 192.168.98.122'
  24. + tee -a /opt/opengnsys/log/192.168.98.14.log /tmp/session.log
  25. tee: /opt/opengnsys/log/192.168.98.14.log: Permission denied
  26. [START Interface] Ejecutar comando:  /opt/opengnsys/interfaceAdm/CrearImagen 1 1 W10A11SB 192.168.98.122
  27. ++ dirname /opt/opengnsys/interfaceAdm/CrearImagen
  28. + PATH=/opt/opengnsys/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/opt/oglive/rootfs/opt/drbl/sbin:/opt/opengnsys/lib/engine/bin:/opt/opengnsys/bin:/opt/opengnsys/interfaceAdm
  29. ++ basename /opt/opengnsys/interfaceAdm/CrearImagen
  30. + PROG=CrearImagen
  31. ++ ogGetCaller
  32. +++ COLUMNS=200
  33. +++ ps hp 10279 -o args
  34. +++ awk '{if ($1~/bash/ && $2!="") { print $2; }
  35.                  else { sub(/^-/,"",$1); print $1; } }'
  36. ++ basename bash
  37. + CALLER=bash
  38. + '[' bash '!=' ogAdmClient ']'
  39. + ogRaiseError 7 'bash -> CrearImagen'
  40. + local CONT=1 LOGS MSG CODE FUNCS
  41. + '[' '7 bash -> CrearImagen' == help ']'
  42. + '[' 1 ']'
  43. + case "${1,,}" in
  44. + CONT=
  45. + '[' ']'
  46. + CODE=7
  47. + case "$CODE" in
  48. + MSG='Programa o función no ejecutable "bash -> CrearImagen"'
  49. + FUNCS=main
  50. ++ basename /opt/opengnsys/interfaceAdm/CrearImagen
  51. + FUNCS=CrearImagen
  52. + '[' 7 == 1 ']'
  53. + ogCheckStringInGroup CrearImagen 'ogCreateImageSyntax ogGetHivePath ogGetOsType ogRestoreImageSyntax ogUnmountAll ogUnmountCache'
  54. + local i
  55. + '[' 'CrearImagen ogCreateImageSyntax ogGetHivePath ogGetOsType ogRestoreImageSyntax ogUnmountAll ogUnmountCache' == help ']'
  56. + '[' 2 == 2 ']'
  57. ++ echo ogCreateImageSyntax ogGetHivePath ogGetOsType ogRestoreImageSyntax ogUnmountAll ogUnmountCache
  58. + for i in `echo $2`
  59. + '[' CrearImagen == ogCreateImageSyntax ']'
  60. + for i in `echo $2`
  61. + '[' CrearImagen == ogGetHivePath ']'
  62. + for i in `echo $2`
  63. + '[' CrearImagen == ogGetOsType ']'
  64. + for i in `echo $2`
  65. + '[' CrearImagen == ogRestoreImageSyntax ']'
  66. + for i in `echo $2`
  67. + '[' CrearImagen == ogUnmountAll ']'
  68. + for i in `echo $2`
  69. + '[' CrearImagen == ogUnmountCache ']'
  70. + return 1
  71. + ogCheckStringInGroup CrearImagen 'ogCreateImageSyntax ogGetHivePath ogGetOsType ogRestoreImageSyntax ogUnmountAll ogUnmountCache'
  72. + local i
  73. + '[' 'CrearImagen ogCreateImageSyntax ogGetHivePath ogGetOsType ogRestoreImageSyntax ogUnmountAll ogUnmountCache' == help ']'
  74. + '[' 2 == 2 ']'
  75. ++ echo ogCreateImageSyntax ogGetHivePath ogGetOsType ogRestoreImageSyntax ogUnmountAll ogUnmountCache
  76. + for i in `echo $2`
  77. + '[' CrearImagen == ogCreateImageSyntax ']'
  78. + for i in `echo $2`
  79. + '[' CrearImagen == ogGetHivePath ']'
  80. + for i in `echo $2`
  81. + '[' CrearImagen == ogGetOsType ']'
  82. + for i in `echo $2`
  83. + '[' CrearImagen == ogRestoreImageSyntax ']'
  84. + for i in `echo $2`
  85. + '[' CrearImagen == ogUnmountAll ']'
  86. + for i in `echo $2`
  87. + '[' CrearImagen == ogUnmountCache ']'
  88. + return 1
  89. + ogEcho error 'CrearImagen: Programa o función no ejecutable "bash -> CrearImagen"'
  90. + local CONT=1 LOGS LOGLEVEL DATETIME
  91. + '[' 1 ']'
  92. + case "${1,,}" in
  93. + CONT=
  94. + '[' ']'
  95. + case "${1,,}" in
  96. + LOGLEVEL=error
  97. + shift
  98. + '[' -n error ']'
  99. ++ date '+%F %T'
  100. + DATETIME='2021-05-14 15:29:54'
  101. + '[' '' '!=' no ']'
  102. + LOGS='/opt/opengnsys/log/192.168.98.14.log '
  103. + logger -s -t 'OpenGnsys error' '2021-05-14 15:29:54 CrearImagen: Programa o función no ejecutable "bash -> CrearImagen"'
  104. + tee -a /opt/opengnsys/log/192.168.98.14.log
  105. tee: /opt/opengnsys/log/192.168.98.14.log: Permission denied
  106. <13>May 14 15:29:54 OpenGnsys error: 2021-05-14 15:29:54 CrearImagen: Programa o función no ejecutable "bash -> CrearImagen"
  107. + return 7
  108. + exit 7
  109. root@Equipo0710:/opt/opengnsys/interfaceAdm#
  110.  
RAW Paste Data