Debugging the SMB in Stornext NAS |
To get more verbose logging from the stornext NAS shell you can modify the log level in the reg setting.
##Show Normal log level
[root@downm440 ~]# /usr/local/quantum/bin/run-panshell -c "reg show all" | grep cifs.log_level
cifs.log_level = '1'
##Increase log level to 10
[root@downm440 ~]# /usr/local/quantum/bin/run-panshell -c "reg set cifs.log_level = 10"
Registry key 'cifs.log_level' set to '10'.
Increasing the log level of sm_utils.py. This can be done my modifying this fuction...
vi /usr/local/quantum/python/sml/sml_utils.py
##Non debug function:
def run_cmd_pipe_output(cmd_list):
log.debug("run cmd: " + ' '.join(cmd for cmd in cmd_list))
p = sp.Popen(cmd_list, stdout=sp.PIPE, stderr=sp.PIPE, close_fds=True)
outdata, errdata = p.communicate()
log.debug("Response from cmd: rc = {0}\nstdout = '{1}'\nstderr = '{2}'"
.format(p.returncode, outdata, errdata))
return (p.returncode, outdata, errdata)
##Debug function
def run_cmd_pipe_output(cmd_list):
log.warning("run cmd: " + ' '.join(cmd for cmd in cmd_list))
p = sp.Popen(cmd_list, stdout=sp.PIPE, stderr=sp.PIPE, close_fds=True)
outdata, errdata = p.communicate()
log.debug("Response from cmd: rc = {0}\nstdout = '{1}'\nstderr = '{2}'"
.format(p.returncode, outdata, errdata))
return (p.returncode, outdata, errdata)
##Running a command vith warning output with the run-panshell command...
[root@downm440 ~]# /usr/local/quantum/bin/run-panshell -c "nascluster show"
stdout/WARNING:: sml_utils.py:365 run cmd: /opt/quantum/snupdate/bin/snupdate show versions
stdout/WARNING:: sml_utils.py:365 run cmd: /usr/cvfs/bin/snlicense -v nas
stdout/WARNING:: sml_utils.py:365 run cmd: /opt/quantum/snupdate/bin/snupdate show versions
stdout/WARNING:: sml_utils.py:365 run cmd: /usr/cvfs/bin/snlicense -v nas
stdout/WARNING:: sml_utils.py:365 run cmd: /opt/quantum/snupdate/bin/snupdate show versions
stdout/WARNING:: sml_utils.py:365 run cmd: /usr/cvfs/bin/snlicense -v nas
stdout/WARNING:: sml_utils.py:365 run cmd: /opt/quantum/snupdate/bin/snupdate show versions
stdout/WARNING:: sml_utils.py:365 run cmd: /usr/cvfs/bin/snlicense -v nas
stdout/WARNING:: sml_utils.py:365 run cmd: /opt/quantum/snupdate/bin/snupdate show versions
stdout/WARNING:: sml_utils.py:365 run cmd: /usr/cvfs/bin/snlicense -v nas
stdout/WARNING:: sml_utils.py:365 run cmd: /opt/quantum/snupdate/bin/snupdate show versions
stdout/WARNING:: sml_utils.py:365 run cmd: /usr/cvfs/bin/snlicense -v nas
NAS Cluster IP: 10.20.232.71/eth1, Master: Yes, SNFS Root: /stornext/snfs1, Joined: Yes
Load balancing: Disabled
Master IP: 10.20.232.71
VIP: 10.20.232.79 active
Nodes: 2
1: 10.20.232.71 (Joined) (MDC-No load balancing)
2: 10.20.232.70 (Joined) (MDC-No load balancing)
This page was generated by the BrainKeeper Enterprise Wiki, © 2018 |