NetWorker nsrTools - Part 1
Published on 6 Aug, 2020
nsrTools is an interactive command-line utility created by the DELL EMC Field support which bundles different support tools to have one tool in one place. The tool can be downloaded from the EMC FTP link - ftp://nwc:nwc@ftp.emc.com/nsrTools/nsrTools.zip.
Compatibility :
This tool supports NetWorker version 18 and newer releases.Operating systems:
- Windows 2012 64bit or newer
- Linuxt 64bit distributions:
- CentOS / RHEL 6.x, 7.x, 8.x
- SUSE SLES 11.x, 12.x or newer
There is no installation required and nsr tools is read-only so no configuration change will be done to your system so this is pretty safe to tinker around with.
There are a lot of tools packed into this one package and covering all of it in one article is going to make it a lot lengthier than I want. Thus this is going to be a multipart article. n this part of the video we will logging we will look at
- nsrtail
- converting mmdb’s mminfo to a SQLIte db
- ddboost percent logging
- SSID info and Dependency
- Advanced Volume info list
Lets go ahead and launch the nsrTools. nsrTools, on launch you will be greeted with the information about your current NetWorker server.
NSRTAIL
The first tool on out list today is the nsrtail, this is a simple tools and I am sure this is going to make it looking at running logs easy during troubleshooting. We have nsr_render_log native in NetWorker but it does not include real time rendering with running updates. We do have a tail for this but without rendering a log there is a lot of information that is printed as variables. To launch this tool on the nsrtools prompt just type nsrtail, you will be prompted to enter the complete path of the .raw log file that you want to take a look at. To ext, type ctrl+c and you will be brought back to the nsrtools prompt again.
[nsrTools CLI]» nsrtail 2020/08/06 13:43:26 DBG: The task selection received an argument: 'nsrtail'. Processing with it ... INFO: Provide abolute path to NetWorker *.raw file.: /nsr/logs/daemon.raw 155332 Thursday 06 August 2020 09:55:50 IST 3 3 2 3110364928 5111 0 nsr-server.crazyrov.com nsrdisp_nwbg RAP error Unable to fetch data from vCenter: 155332 Thursday 06 August 2020 09:55:50 IST 3 3 2 3110364928 5111 0 nsr-server.crazyrov.com nsrdisp_nwbg RAP error Unable to fetch data from vCenter: 187980 Thursday 06 August 2020 09:56:45 IST 5 29 0 4227856128 4671 0 nsr-server.crazyrov.com nsrsnmd NSR critical Trying to connect to Data Domain as a part of DCC check. 187981 Thursday 06 August 2020 09:56:45 IST 3 2 5 4227856128 4671 0 nsr-server.crazyrov.com nsrsnmd RPC error Failed to connect to mydd.crazyrov.com. 0 Thursday 06 August 2020 09:56:45 IST 1 5 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR notice 08/06/20 09:56:45.335347 mark device`mydd.crazyrov.com_test` from `Normal` to `Suspected`. 71193 Thursday 06 August 2020 09:56:45 IST 0 0 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR info Device Disabled Warning: device `mydd.crazyrov.com_test` is automatically marked from `Normal` device to `Suspected` device. 71191 Thursday 06 August 2020 09:56:45 IST 0 0 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR info Media Alert event: Unable to connect to Data Domain 'mydd.crazyrov.com' 157515 Thursday 06 August 2020 09:56:50 IST 5 5 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR critical Unable to open file '/nsr/lic/dpa.lic' for reading 157515 Thursday 06 August 2020 09:56:50 IST 5 5 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR critical Unable to open file '/nsr/lic/dpa.lic' for reading 157515 Thursday 06 August 2020 09:56:50 IST 5 5 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR critical Unable to open file '/nsr/lic/dpa.lic' for reading 187980 Thursday 06 August 2020 09:59:04 IST 5 29 0 4227856128 4671 0 nsr-server.crazyrov.com nsrsnmd NSR critical Trying to connect to Data Domain as a part of DCC check. 71193 Thursday 06 August 2020 10:00:00 IST 0 0 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR info Protection Policy Notice: Starting workflow 'Server Protection/Server backup' 71193 Thursday 06 August 2020 10:00:00 IST 0 0 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR info Protection Policy Notice: Starting action 'Server db backup' for workflow 'Server Protection/Server backup' 71193 Thursday 06 August 2020 10:00:00 IST 0 0 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR info Media Notice: no matching devices for save of client `nsr-server.crazyrov.com'; check storage nodes, devices or pools 187980 Thursday 06 August 2020 10:00:04 IST 5 29 0 4227856128 4671 0 nsr-server.crazyrov.com nsrsnmd NSR critical Trying to connect to Data Domain as a part of DCC check. 187981 Thursday 06 August 2020 10:00:04 IST 3 2 5 4227856128 4671 0 nsr-server.crazyrov.com nsrsnmd RPC error Failed to connect to mydd.crazyrov.com. 71191 Thursday 06 August 2020 10:00:04 IST 0 0 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR info Media Alert event: Unable to connect to Data Domain 'mydd.crazyrov.com' 71193 Thursday 06 August 2020 10:00:05 IST 0 0 0 668854080 3928 0 nsr-server.crazyrov.com nsrd NSR info Media Notice: no matching devices for save of client `nsr-server.crazyrov.com'; check storage nodes, devices or pools
MMDB to SQLite
Not sure how this feature is going to be useful to you but if you are trying to run complex queries to filter things and make it faster than querying the media database on the backup server you can use MMDB to SQLite. This option is going to ready everything from the MMDB and create a SQLITE database that you can use to run queries against using regular SQL query language.
On the nsrtools prompt just type, mmdb to sqlite
all in lower case. You are presented with 2 options either use an out of mminfo in
xml format or collect and convert the mmdb information in one go. The first is always better to get the latest copy of the media
database so lets select 1. The output .db file is placed in the folder tmp under the home directory of the user running the
nsrtools commands.
Once the command completes we can use sqlite3
to open the database and run whatever query you want to against it.
[nsrTools CLI]» mmdb to sqlite 2020/08/06 13:39:24 DBG: The task selection received an argument: 'mmdb to sqlite'. Processing with it ... 2020/08/06 13:39:25 INFO: Found local system sqlite3 binary on the file path: /usr/bin/sqlite3 2020/08/06 13:39:25 === Starting MMDB to SQLite Engine === QUESTION: To grab mminfo from NW Server chose 1, to build from a file chose 2. What to do? 1 2020/08/06 13:39:28 INFO: Start to collect MMINFO output from NW Server. File: /home/rovin/tmp/mminfoAll.dat 2020/08/06 13:39:28 DEBUG: Required mminfo output: ==> mminfo -avI -s nsr-server.crazyrov.com -r client,clientid,name,vmname,ssid,ssid(56),pssid,savetime(24),ssretent(24),ssinsert(24),sscomp(24),ssaccess(24),ssflags,sumflags,fragflags,cloneid,clonetime(24),clretent(24),clflags,volume,volid,pool,level,location,type,group,policy,workflow,action,copies,validcopies,nsavetime,nfiles,sumsize,totalsize,ddrltime,ssprotect,attrs -xm 2020/08/06 13:39:31 INFO: Start to convert MMINFO's XML output file output to defined structure ... 2020/08/06 13:39:31 INFO: Successfully opened mminfo file: '/home/rovin/tmp/mminfoAll.dat'. Processing ... 2020/08/06 13:39:31 INFO: The import of NW MMDB's record has been triggered. Please stand by until you get prompt back. 2020/08/06 13:39:31 INFO: Start to create SQL create DB syntax, File: /home/rovin/tmp/createMMDBtable.sql 2020/08/06 13:39:31 INFO: SQLite start to create MMDB.DB and table mmdb. Here table creation syntax: PRAGMA automatic_index = OFF; PRAGMA cache_size = 65536; PRAGMA cache_spill = OFF; PRAGMA foreign_keys = OFF; PRAGMA journal_size_limit = 67110000; PRAGMA locking_mode = EXCLUSIVE; PRAGMA page_size = 65536; PRAGMA recursive_triggers = ON; PRAGMA secure_delete = ON; PRAGMA synchronous = NORMAL; PRAGMA temp_store = MEMORY; PRAGMA journal_mode = WAL; PRAGMA wal_autocheckpoint = 16384; CREATE TABLE IF NOT EXISTS mmdb ( client VARCHAR, clientid VARCHAR, name VARCHAR, vmname VARCHAR, ssid VARCHAR, ssid_long VARCHAR, pssid INTEGER, savetime DATETIME, ssretent DATETIME, ssinsert DATETIME, sscomp DATETIME, ssaccess DATETIME, ssflags VARCHAR, sumflags VARCHAR, fragflags VARCHAR, cloneid VARCHAR, clonetime DATETIME, clretent DATETIME, clflags VARCHAR, volume VARCHAR, volid VARCHAR, pool VARCHAR, level VARCHAR, location VARCHAR, type VARCHAR, groups VARCHAR, policy VARCHAR, workflow VARCHAR, action VARCHAR, copies INTEGER, validcopies INTEGER, nsavetime INTEGER, nfiles INTEGER, sumsize VARCHAR, totalsize UNSIGNED BIG INT, ddrltime VARCHAR, ssprotect VARCHAR, attrs TEXT); .separator | .import /home/rovin/tmp/mminfoAll.dat.final mmdb vacuum; 2020/08/06 13:39:31 DONE: ===> 67110000 exclusive 1 wal 16384 2020/08/06 13:39:31 INFO: The SQLite file '/home/rovin/tmp/MMDB.DB' created. 2020/08/06 13:39:31 INFO: Here are couple of SQLite commans you can shoot: 2020/08/06 13:39:31 Command Description 2020/08/06 13:39:31 ------- ----------- 2020/08/06 13:39:31 sqlite3 MMDB.DB To start SQLite Engine and use MMDB Database. 2020/08/06 13:39:31 .help To start help page in SQLite interactive mode. 2020/08/06 13:39:31 select ssid,client,ssretent from mmdb; Query mmdb table for ssid,client,ssretent attributes. 2020/08/06 13:39:31 INFO: Done with MMDB to SQLite sub item. Going back to nsrTools main meny ...
Ddboost percert logging
This feature can be run to enable debug logging to low level DDboost API calls that show all the DDBoost activity. One note of caution while using the ddboost precert, remember to turn off the precert logging one done collecting the logs as it generates a log of data that might fill up your disk. Since we generally use client direct in NetWorker, this feature is usually used on the client machine.
Let's take a look at this before we continue to the next feature. To start the debug run ddr precert
in the nsrtools prompt.
[nsrTools CLI]» ddr precert 2020/08/06 13:50:34 === Starting DDBoost precert logging Engine === 2020/08/06 13:50:34 INFO: Start to collect information from NetWorker server host: nsr-server.crazyrov.com 2020/08/06 13:50:34 INFO: Pre check start. The DDBoost precert logging require check for ddboost library ... 2020/08/06 13:50:34 INFO: Pre check successfuly finished. All good. Processing ... name: mydd.crazyrov.com; username: boost; 2020/08/06 13:50:34 INFO: Found Data Domain Host: boost@mydd.crazyrov.com Adding to the list. 1). DDR Host: boost@mydd.crazyrov.com 2). DDR Host: boost@mydd.crazyrov.com 3). DDR Host: Other DDR host then above QUESTION: What Data Domain system 1-3 require DDBoost precert logging enabled? Please specify? 1 2020/08/06 13:50:38 INFO: The choice was set to 1 QUESTION: Please specify password for Data Domain system boost@mydd.crazyrov.com? XXXX 2020/08/06 13:50:45 INFO: The Data Domain system boost@mydd.crazyrov.com was set with password: XXXX QUESTION: If informations are correct please confirm with Yes? Yes 2020/08/06 13:50:47 INFO: Detected Linux Operating system. Setting ddboost precert flag file to trigger ddboost D5 logging. 2020/08/06 13:50:47 INFO: The ddboost_precert.ini flag file has been set properly. Processing ... 2020/08/06 13:50:47 INFO: Connection established between DDR: mydd.crazyrov.com and localhost: 192.168.75.20:51390 with time out of 2 seconds. 2020/08/06 13:50:47 INFO: Remote Address : 192.168.75.30:22 2020/08/06 13:50:47 INFO: Local Address : 192.168.75.20:51390 2020/08/06 13:50:47 INFO: Detected Linux Operating system. Setting ddboost precert flag file to trigger ddboost D5 logging. 2020/08/06 13:50:47 INFO: The ddboost_precert.ini flag file has been set properly. Processing ... 2020/08/06 13:50:47 INFO: Starting to tail ddboost api log file. Logging turned ON. 2020/08/06 13:50:47 INFO: Connecting to DDR host: boost@mydd.crazyrov.com and enable_precert ddboost precert logs. 2020/08/06 13:50:54 ERROR: exit status 1 2020/08/06 13:50:54 INFO: Whooops, Something went wrong ... Can not confirm precert logs are enabled. However continue ... If you do not see output do Ctrl+C === nsrTools, DDBoost precert logging engine ===PRE CERT PARAMS File:'ddboost_precert.ini' *** DDP_PRECERT_INI OK *** [ 8510] [140407398561600] [1] Thu Aug 6 13:49:35.464 2020 Function: ddp_init, Params: module_name [nsrddsh] [ 8510] [140407398561600] [2] Thu Aug 6 13:49:35.464 2020 Function: ddp_init, Exit with return code: err[0], v_major[3], v_minor[5], v_patch[0], v_engineering[3], v_build[630229], os[THIS_IS_LINUX] [ 8510] [140407398561600] [3] Thu Aug 6 13:49:35.464 2020 Function: ddp_instance_create, Params: pool_size[16777216], client_info->cl_type[2], client_info->cl_info[NetWorker 19.2.1.0.Build.34 (34)], ret_inst[*0xffffffff] [ 8510] [140407398561600] [4] Thu Aug 6 13:49:35.468 2020 Function: ddp_instance_create, Exit with return code: err[0], descriptor[1390858240] [ 8510] [140407398561600] [5] Thu Aug 6 13:49:35.468 2020 Function: ddp_get_version, Params: ddp_ver [*0x7ffe99efb1c0] [ 8510] [140407398561600] [6] Thu Aug 6 13:49:35.468 2020 Function: ddp_get_version, Exit with return code: err[0] [ 8510] [140407398561600] [7] Thu Aug 6 13:49:35.468 2020 Function: ddp_connect_with_config, Params: instd[1390858240], hostname[mydd.crazyrov.com], col_name[(null)], conn_version[1], conn_config_p[*0x7ffe99efa1e0], ret_conn[*0x7ffe99efb29c], config_reserved_int_1 [0], config_reserved_int_2 [0], config_reserved_int_3 [0],version.major[3], version.minor[5], config_use_tls[0], config_encr_strength[0], config_auth_mode[0], ip_addr_mode[33], config_max_reconnect_time[0],token_access [FALSE], kerberos [FALSE] [ 8510] [140407398561600] [8] Thu Aug 6 13:49:41.799 2020 Function: ddp_connect_with_config, Exit with return code: err[5075], descriptor[-1], err>file[/data/jenkins/workspace/630229-ost-linux.fc4/build/app/clientsw], err>func[ddcl_nfs_err_fmt], err>lineno[1020], err>str[nfsproc3_ostmntsec_3 failed (nfs: Operation not permitted)] [ 8510] [140407398561600] [9] Thu Aug 6 13:49:41.799 2020 Function: ddp_get_error_info, Params: num_entries [-1712348804] [ 8510] [140407398561600] [10] Thu Aug 6 13:49:41.799 2020 Function: ddp_get_error_info, Exit with return code: err[0] PRE CERT PARAMS File:'ddboost_precert.ini' *** DDP_PRECERT_INI OK *** [ 8532] [140355313809216] [1] Thu Aug 6 13:50:11.074 2020 Function: ddp_init, Params: module_name [nsrddsh] [ 8532] [140355313809216] [2] Thu Aug 6 13:50:11.074 2020 Function: ddp_init, Exit with return code: err[0], v_major[3], v_minor[5], v_patch[0], v_engineering[3], v_build[630229], os[THIS_IS_LINUX] [ 8532] [140355313809216] [3] Thu Aug 6 13:50:11.074 2020 Function: ddp_instance_create, Params: pool_size[16777216], client_info->cl_type[2], client_info->cl_info[NetWorker 19.2.1.0.Build.34 (34)], ret_inst[*0xffffffff] [ 8532] [140355313809216] [4] Thu Aug 6 13:50:11.080 2020 Function: ddp_instance_create, Exit with return code: err[0], descriptor[498454528] [ 8532] [140355313809216] [5] Thu Aug 6 13:50:11.080 2020 Function: ddp_get_version, Params: ddp_ver [*0x7ffe458074a0] [ 8532] [140355313809216] [6] Thu Aug 6 13:50:11.080 2020 Function: ddp_get_version, Exit with return code: err[0] [ 8532] [140355313809216] [7] Thu Aug 6 13:50:11.080 2020 Function: ddp_connect_with_config, Params: instd[498454528], hostname[mydd.crazyrov.com], col_name[(null)], conn_version[1], conn_config_p[*0x7ffe458064c0], ret_conn[*0x7ffe4580757c], config_reserved_int_1 [0], config_reserved_int_2 [0], config_reserved_int_3 [0],version.major[3], version.minor[5], config_use_tls[0], config_encr_strength[0], config_auth_mode[0], ip_addr_mode[33], config_max_reconnect_time[0],token_access [FALSE], kerberos [FALSE] [ 8532] [140355313809216] [8] Thu Aug 6 13:50:17.194 2020 Function: ddp_connect_with_config, Exit with return code: err[5075], descriptor[-1], err>file[/data/jenkins/workspace/630229-ost-linux.fc4/build/app/clientsw], err>func[ddcl_nfs_err_fmt], err>lineno[1020], err>str[nfsproc3_ostmntsec_3 failed (nfs: Operation not permitted)] [ 8532] [140355313809216] [9] Thu Aug 6 13:50:17.195 2020 Function: ddp_get_error_info, Params: num_entries [1166042204] [ 8532] [140355313809216] [10] Thu Aug 6 13:50:17.195 2020 Function: ddp_get_error_info, Exit with return code: err[0] PRE CERT PARAMS File:'ddboost_precert.ini' *** DDP_PRECERT_INI OK *** [ 8585] [140482940778304] [1] Thu Aug 6 13:50:48.905 2020 Function: ddp_init, Params: module_name [nsrddsh] [ 8585] [140482940778304] [2] Thu Aug 6 13:50:48.905 2020 Function: ddp_init, Exit with return code: err[0], v_major[3], v_minor[5], v_patch[0], v_engineering[3], v_build[630229], os[THIS_IS_LINUX] [ 8585] [140482940778304] [3] Thu Aug 6 13:50:48.905 2020 Function: ddp_instance_create, Params: pool_size[16777216], client_info->cl_type[2], client_info->cl_info[NetWorker 19.2.1.0.Build.34 (34)], ret_inst[*0xffffffff] [ 8585] [140482940778304] [4] Thu Aug 6 13:50:48.911 2020 Function: ddp_instance_create, Exit with return code: err[0], descriptor[-1122971648] [ 8585] [140482940778304] [5] Thu Aug 6 13:50:48.911 2020 Function: ddp_get_version, Params: ddp_ver [*0x7ffd6cc86300] [ 8585] [140482940778304] [6] Thu Aug 6 13:50:48.911 2020 Function: ddp_get_version, Exit with return code: err[0] [ 8585] [140482940778304] [7] Thu Aug 6 13:50:48.911 2020 Function: ddp_connect_with_config, Params: instd[-1122971648], hostname[mydd.crazyrov.com], col_name[(null)], conn_version[1], conn_config_p[*0x7ffd6cc85320], ret_conn[*0x7ffd6cc863dc], config_reserved_int_1 [0], config_reserved_int_2 [0], config_reserved_int_3 [0],version.major[3], version.minor[5], config_use_tls[0], config_encr_strength[0], config_auth_mode[0], ip_addr_mode[33], config_max_reconnect_time[0],token_access [FALSE], kerberos [FALSE] [ 8585] [140482940778304] [8] Thu Aug 6 13:50:54.389 2020 Function: ddp_connect_with_config, Exit with return code: err[5075], descriptor[-1], err>file[/data/jenkins/workspace/630229-ost-linux.fc4/build/app/clientsw], err>func[ddcl_nfs_err_fmt], err>lineno[1020], err>str[nfsproc3_ostmntsec_3 failed (nfs: Operation not permitted)] [ 8585] [140482940778304] [9] Thu Aug 6 13:50:54.389 2020 Function: ddp_get_error_info, Params: num_entries [1825067708] [ 8585] [140482940778304] [10] Thu Aug 6 13:50:54.389 2020 Function: ddp_get_error_info, Exit with return code: err[0] PRE CERT PARAMS File:'ddboost_precert.ini' *** DDP_PRECERT_INI OK *** [ 8697] [140134387963712] [1] Thu Aug 6 13:51:33.696 2020 Function: ddp_init, Params: module_name [savepsm] [ 8697] [140134387963712] [2] Thu Aug 6 13:51:33.696 2020 Function: ddp_init, Exit with return code: err[0], v_major[3], v_minor[5], v_patch[0], v_engineering[3], v_build[630229], os[THIS_IS_LINUX] [ 8697] [140134387963712] [3] Thu Aug 6 13:51:33.696 2020 Function: ddp_instance_create, Params: pool_size[16777216], client_info->cl_type[2], client_info->cl_info[NetWorker 19.2.0.1.Build.117 (117)], ret_inst[*0xffffffff] [ 8697] [140134387963712] [4] Thu Aug 6 13:51:33.700 2020 Function: ddp_instance_create, Exit with return code: err[0], descriptor[-234237952] [ 8697] [140134387963712] [5] Thu Aug 6 13:51:33.700 2020 Function: ddp_get_version, Params: ddp_ver [*0x7ffcbeeb1d30] [ 8697] [140134387963712] [6] Thu Aug 6 13:51:33.700 2020 Function: ddp_get_version, Exit with return code: err[0] [ 8697] [140134387963712] [7] Thu Aug 6 13:51:33.700 2020 Function: ddp_connect_with_config, Params: instd[-234237952], hostname[mydd.crazyrov.com], col_name[(null)], conn_version[1], conn_config_p[*0x7ffcbeeb0cd0], ret_conn[*0x7ffcbeeb1d8c], config_reserved_int_1 [0], config_reserved_int_2 [0], config_reserved_int_3 [0],version.major[3], version.minor[5], config_use_tls[0], config_encr_strength[0], config_auth_mode[0], ip_addr_mode[33], config_max_reconnect_time[0],token_access [FALSE], kerberos [FALSE] [ 8697] [140134387963712] [8] Thu Aug 6 13:51:33.927 2020 *** DDOS Version: Data Domain OS 6.2.0.35-635767 *** [ 8697] [140134387963712] [9] Thu Aug 6 13:51:33.928 2020 Function: ddp_connect_with_config, Exit with return code: err[0], descriptor[673042433] [ 8697] [140134387963712] [10] Thu Aug 6 13:51:33.928 2020 Function: ddp_get_version, Params: ddp_ver [*0x7ffcbeeb09f0] [ 8697] [140134387963712] [11] Thu Aug 6 13:51:33.928 2020 Function: ddp_get_version, Exit with return code: err[0] [ 8697] [140134387963712] [12] Thu Aug 6 13:51:33.928 2020 Function: ddp_get_system_info, Params: connd[673042433], sys_info[*0x7ffcbeeb0940] [ 8697] [140134387963712] [13] Thu Aug 6 13:51:33.936 2020 Function: ddp_get_system_info, Exit with return code: err[0] [ 8697] [140134387963712] [14] Thu Aug 6 13:51:33.936 2020 Function: ddp_ddos_compatible, Params: connd[673042433], compatible[*0x7ffcbeeb0c4f] [ 8697] [140134387963712] [15] Thu Aug 6 13:51:33.936 2020 Function: ddp_ddos_compatible, Exit with return code: err[0] [ 8697] [140134387963712] [16] Thu Aug 6 13:51:33.936 2020 Function: ddp_open_file, Params: connd[673042433], path[0x301], in_flags[384], mode[3203084876], ret_fd[(nil)] [ 8697] [140134387963712] [17] Thu Aug 6 13:51:33.936 2020 Function: ddp_open_file_ext, Params: connd[673042433], path->su_name[], path->path_name[/nsr-server/prod/active/05ca107b-00000006-fc2bbd8c-5f2bbd8c-00050c00-463a8829], in_flags[769], access_mode[0x00000106], create_mode[0600], version[0x0] ret_fd[0x7ffcbeeb324c] [ 8697] [140134387963712] [18] Thu Aug 6 13:51:33.965 2020 Function: ddp_open_file_ext, Exit with return code: err[0], descriptor[1766182914] [ 8697] [140134387963712] [19] Thu Aug 6 13:51:34.012 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[0], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [20] Thu Aug 6 13:51:36.192 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [21] Thu Aug 6 13:51:36.192 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[524288], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [22] Thu Aug 6 13:51:36.193 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [23] Thu Aug 6 13:51:36.193 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[1048576], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [24] Thu Aug 6 13:51:36.194 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [25] Thu Aug 6 13:51:36.194 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[1572864], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [26] Thu Aug 6 13:51:36.195 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [27] Thu Aug 6 13:51:36.195 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[2097152], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [28] Thu Aug 6 13:51:36.195 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [29] Thu Aug 6 13:51:36.195 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[2621440], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [30] Thu Aug 6 13:51:36.196 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [31] Thu Aug 6 13:51:36.196 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[3145728], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [32] Thu Aug 6 13:51:36.197 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [33] Thu Aug 6 13:51:36.197 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[3670016], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [34] Thu Aug 6 13:51:36.197 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [35] Thu Aug 6 13:51:36.197 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[4194304], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [36] Thu Aug 6 13:51:36.219 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [37] Thu Aug 6 13:51:36.220 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[4718592], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [38] Thu Aug 6 13:51:36.221 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [39] Thu Aug 6 13:51:36.221 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[5242880], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [40] Thu Aug 6 13:51:36.222 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [41] Thu Aug 6 13:51:36.222 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[5767168], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [42] Thu Aug 6 13:51:36.223 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [43] Thu Aug 6 13:51:36.223 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[6291456], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [44] Thu Aug 6 13:51:36.223 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [45] Thu Aug 6 13:51:36.223 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[6815744], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [46] Thu Aug 6 13:51:36.224 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [47] Thu Aug 6 13:51:36.224 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[7340032], bytes_written[*0x7ffcbee864a0] [ 8697] [140134387963712] [48] Thu Aug 6 13:51:36.225 2020 Function: ddp_write, Exit with return code: err[0], byte_count[524288] [ 8697] [140134387963712] [49] Thu Aug 6 13:51:36.225 2020 Function: ddp_write, Params: ddp_fd[1766182914], buf[*0x7f738a40b010], count[524288], offset[7864320], bytes_written[*0x7ffcbee864a0]
Advanced SSID Info and Dependency List
This feature provides detailed information about a particular SSID and also on its dependency list. For use this feature you have to run
the command mmdb ssid info
on the nsrtools prompt. On running this command you will be prompted to provide the SSID that you want the
details for. Paste the SSID and hit enter, you will get the details of the SSID that you provided including the save set
dependency details which is listed in a table at the end of the output.
[nsrTools CLI]» mmdb ssid info 2020/08/06 14:09:42 === Starting SSID Info Dependency Engine === QUESTION: Please paste the SSID you want to get information for? 4180394256 2020/08/06 14:09:46 INFO: The selected SSID: 4180394256 seams to be a valid one. Quering NW MMDB to get attribute values ... 2020/08/06 14:09:46 INFO: Spawning child process to get requested information about SSID: 4180394256 2020/08/06 14:09:46 DEBUG: Required mminfo output: ==> mminfo -avIot -s nsr-server.crazyrov.com -q ssid=4180394256 -r client,clientid,name,vmname,ssid,ssid(56),pssid,savetime(24),ssretent(24),ssinsert(24),sscomp(24),ssaccess(24),ssflags,sumflags,fragflags,cloneid,clonetime(24),clretent(24),clflags,volume,volid,pool,level,location,type,group,policy,workflow,action,copies,validcopies,nsavetime,nfiles,sumsize,totalsize,ddrltime,ssprotect,attrs -xm 2020/08/06 14:09:46 INFO: The mminfo returned information about SSID: 4180394256, File: /home/rovin/tmp/mminfoSSID.dat 2020/08/06 14:09:46 INFO: Successfully opened mminfo file: '/home/rovin/tmp/mminfoSSID.dat'. Processing ... nsr-server.crazyrov.com /etc 1596702753 2020/08/06 14:09:46 INFO: Spawning again child process since this is anchored save set. Client:nsr-server.crazyrov.com, Backup Name: /etc 2020/08/06 14:09:46 DEBUG: Required mminfo output: ==> mminfo -avIot -s nsr-server.crazyrov.com -q client=nsr-server.crazyrov.com,name=/etc,savetime<1596702992 -r client,clientid,name,vmname,ssid,ssid(56),pssid,savetime(24),ssretent(24),ssinsert(24),sscomp(24),ssaccess(24),ssflags,sumflags,fragflags,cloneid,clonetime(24),clretent(24),clflags,volume,volid,pool,level,location,type,group,policy,workflow,action,copies,validcopies,nsavetime,nfiles,sumsize,totalsize,ddrltime,ssprotect,attrs -xm 2020/08/06 14:09:46 INFO: The mminfo returned information about Client:nsr-server.crazyrov.com, Backup Name: /etc, File: /home/rovin/tmp/mminfoSSID.dat 2020/08/06 14:09:46 INFO: Successfully opened mminfo file: '/home/rovin/tmp/mminfoSSID.dat'. Processing ... ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Information list for Save Set '4180394256', Client: nsr-server.crazyrov.com ┃ ┣━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ ┃ ┃ ATTRIBUTE NAME ┃ ATTRIBUTE VALUE ┃ ┣━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ ┃ 1 ┃ Client Name ┃ nsr-server.crazyrov.com ┃ ┃ 2 ┃ Client ID ┃ 3448c109-00000004-5f243a06-5f243a05-00010c00-bde2cb29 ┃ ┃ 3 ┃ Client ID ┃ 3448c109-00000004-5f243a06-5f243a05-00010c00-bde2cb29 ┃ ┃ 4 ┃ Name ┃ /etc ┃ ┃ 5 ┃ VM Name ┃ ┃ ┃ 6 ┃ SSID ┃ 4180394256 ┃ ┃ 7 ┃ Long SSID ┃ b5edfe6a-00000006-f92bc110-5f2bc110-00080c00-463a8829 ┃ ┃ 8 ┃ Prev SSID ┃ 0 ┃ ┃ 9 ┃ SSID Savetime ┃ 2020-08-06T14:06:32 ┃ ┃ 10 ┃ Retention Time ┃ 2020-08-13T23:59:59 ┃ ┃ 11 ┃ Inserted ┃ 2020-08-06T14:06:32 ┃ ┃ 12 ┃ Completed ┃ 2020-08-06T14:06:34 ┃ ┃ 13 ┃ Last Access Time ┃ 2020-08-06T14:06:34 ┃ ┃ 14 ┃ Save Set Flags ┃ vF ┃ ┃ 15 ┃ Sum Flags ┃ cb ┃ ┃ 16 ┃ Fragmentation Flags ┃ cb ┃ ┃ 17 ┃ Clone ID ┃ 1596702992 ┃ ┃ 18 ┃ Clone Time ┃ 2020-08-06T14:06:32 ┃ ┃ 19 ┃ Clone Retention ┃ 2020-08-13T23:59:59 ┃ ┃ 20 ┃ Clone Flags ┃ ┃ ┃ 21 ┃ Volume ┃ Prod.001 ┃ ┃ 22 ┃ Volume ID ┃ 2864565 ┃ ┃ 23 ┃ Pool ┃ Prod ┃ ┃ 24 ┃ Level ┃ incr ┃ ┃ 25 ┃ Location ┃ mydd.crazyrov.com ┃ ┃ 26 ┃ Type ┃ Data Domain ┃ ┃ 27 ┃ Group ┃ Server Protection_Datazone_Protection ┃ ┃ 28 ┃ Policy ┃ Server Protection ┃ ┃ 29 ┃ Workflow ┃ Datazone_Protection ┃ ┃ 30 ┃ Action ┃ backup ┃ ┃ 31 ┃ Copies ┃ 1 ┃ ┃ 32 ┃ Valid Copies ┃ 1 ┃ ┃ 33 ┃ Save Time (nsavetime) ┃ 1596702992 ┃ ┃ 34 ┃ Files Saved ┃ 0 ┃ ┃ 35 ┃ Sum Size ┃ 4 B ┃ ┃ 36 ┃ Total Size ┃ 4 ┃ ┃ 37 ┃ DDR Retention Lock Time ┃ undef ┃ ┃ 38 ┃ Protection Period ┃ undef ┃ ┃ 39 ┃ Attributes ┃ *anchor save set time:1596702753; ┃ ┃ ┃ ┃ *backup start time:1596702992; ┃ ┃ ┃ ┃ *policy action jobid:64037; ┃ ┃ ┃ ┃ *policy action name:backup: 1596702992; ┃ ┃ ┃ ┃ *policy name:Server Protection: 1596702992; ┃ ┃ ┃ ┃ *policy workflow name:Datazone_Protection: 1596702992; ┃ ┃ ┃ ┃ *ss data domain backup cloneid:1596702992; ┃ ┃ ┃ ┃ *ss data domain dedup statistics:v1:1596702992:2096:2096:2096; ┃ ┃ ┃ ┃ *ss index lookup for renamed dir:Enabled; ┃ ┃ ┃ ┃ *ss index time range:1596702753:1596702753; ┃ ┃ ┃ ┃ group:Server Protection_Datazone_Protection; ┃ ┃ ┃ ┃ saveset features:CLIENT_SAVETIME ┃ ┗━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Dependency List of Save Set '4180394256', Client: nsr-server.crazyrov.com ┃ ┣━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━┫ ┃ ┃ NAME ┃ SSID / CLONEID ┃ SAVE TIME ┃ LEVEL ┃ VOLUME ┃ POOL ┃ SS.FLAGS ┃ SUM SIZE ┃ COPIES ┃ ┣━━━╋━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━╋━━━━━━━━━━╋━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━┫ ┃ 1 ┃ /etc ┃ 4197171233/1596702753 ┃ 2020-08-06T14:02:33 ┃ full ┃ Prod.001 ┃ Prod ┃ vF ┃ 30 MB ┃ 1 ┃ ┗━━━┻━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━┻━━━━━━━━━━┻━━━━━━┻━━━━━━━━━━┻━━━━━━━━━━┻━━━━━━━━┛
Advanced Volume Information List
This feature provides detailed information about a particular or all the volumes. The information might be quite large depending on the number of savesets stored in the respective volume. To use this feature run the command mmdb volinfo on the nsrtools prompt. You will be prompted to select a volume from a list of volumes presented to you. Once you select a volume, all the details relevant to the selected volume will be displayed on scree
[nsrTools CLI]» mmdb volinfo 2020/08/07 12:29:48 DBG: The task selection received an argument: 'mmdb volinfo'. Processing with it ... 2020/08/07 12:29:48 === Starting Volume Information Engine === 2020/08/07 12:29:48 INFO: Spawning child process to get requested information about Volumes. 2020/08/07 12:29:48 DEBUG: Required mminfo output: ==> mminfo -av -s nsr-server.crazyrov.com -r volume,type,volid,written -xm 2020/08/07 12:29:48 INFO: The mminfo returned information about Volues. File: /home/rovin/tmp/mminfoVolumes.dat 2020/08/07 12:29:48 INFO: Successfully opened mminfo file: '/home/rovin/tmp/mminfoVolumes.dat'. Processing ... ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ NetWorker server 'nsr-server.crazyrov.com' Volume List. ┃ ┣━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━┫ ┃ ┃ VOLUME ┃ TYPE ┃ VOLID ┃ WRITTEN ┃ ┣━━━╋━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━┫ ┃ 1 ┃ myddcrazyrovcom.001 ┃ 2412740 ┃ Data Domain ┃ 0 KB ┃ ┃ 2 ┃ Prod.001 ┃ 2864565 ┃ Data Domain ┃ 18 GB ┃ ┗━━━┻━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━┛ QUESTION: What Volume Name to query? Provide [1 - 2] or [all] for * Volumes. 2 2020/08/07 12:29:51 INFO: The selecttion 2 is valid. Processing with Volume 'Prod.001'. 2020/08/07 12:29:51 DEBUG: Required mminfo output: ==> /home/rovin/tmp/volinfo -v -s nsr-server.crazyrov.com Prod.001 Name v_name Prod.001 Short Volid v_volid 2864565 Long Volid v_volid a072fb4c-00000005-002bb5b5-5f2bb5b5-00010c00-463a8829 Family v_family disk Family Type v_ftype Data Domain Location v_location mydd.crazyrov.com Pool v_pool Prod Barcode v_barcode Capacity v_capacity 0 Used (KB) v_kused 18116732 Recovered (KB) v_krecover 0 Next File v_nfile 0 Next Record v_nrecord 1 Last Accessed v_amedia Thursday 06 August 2020 18:02:58 (1596717178) Expiration Date v_emedia Saturday 06 August 2022 13:18:05 (1659772085) First Labeled v_lmedia Thursday 06 August 2020 13:18:05 (1596700085) Last Labeled v_cmedia Thursday 06 August 2020 13:18:05 (1596700085) Last Expiration v_rmedia Sunday 06 September 2020 23:59:59 (1599416999) Flags v_flags 00000000 Mounts v_mounts 0 Recycles v_recycled 0 Availability v_avail 0 Metric v_metric 0 Attribute List v_al *restricted data zone: volume flags: 16 SSIDs v_ssid 4079745144 4096518704 4113292263 4130067043 4146844219 4163620298 4180394256 4197171233 4213948343 4230725004 4247501073 4264277818 4281055034 2020/08/07 12:29:51 INFO: We are done with Volume Information Engine section. Going back to main nsrTools meny ...
Thank you for visting www.crazyrov.com, you can also check out my YouTube channel - crazyRov Studios for Data protection and cloud related technical videos.