{
	"description": "Gathering TR-x69 state",
	"dependency" : [
		{
			"type": "file",
			"file": "/etc/config/cwmp"
		}
	],
	"exec" : [
		{
			"description": "Datamodel UCI save list",
			"cmd": "ls -laR /tmp/bbfdm/"
		},
		{
			"description": "Datamodel microservices",
			"cmd": "ubus call service list '{\"name\":\"bbfdm.services\"}'"
		},
		{
			"description": "Datamodel microservices registration",
			"cmd": "ubus call bbfdm services"
		},
		{
			"description": "Datamodel plugins and services list",
			"cmd": "ls -R /usr/share/bbfdm/"
		},
		{
			"description": "TR-181 DM MAP",
			"cmd": "uci -c /etc/bbfdm/dmmap export"
		},
		{
			"description": "TR-181 Parameters via BBFDM",
			"cmd": "bbfdmd -c schema Device."
		},
		{
			"description": "TR-181 Parameters via CWMP",
			"cmd": "icwmpd -c get Device."
		},
		{
			"description": "TR-069 Internal Configs list",
			"cmd": "ls -R /etc/icwmpd/"
		},
		{
			"description": "TR-069 status",
			"cmd": "ubus call tr069 status"
		},
		{
			"description": "TR-069 Backup Session",
			"cmd": "cat /etc/icwmpd/icwmpd_backup_session.xml",
			"dependency": [
				{
					"type": "file",
					"file": "/etc/icwmpd/icwmpd_backup_session.xml"
				}
			]
		},
		{
			"description": "TR-069 Temporary Config",
			"cmd": "cat /var/state/icwmp",
			"dependency": [
				{
					"type": "file",
					"file": "/var/state/icwmp"
				}
			]
		},
		{
			"description": "TR-069 Internal Config",
			"cmd": "cat /etc/icwmpd/cwmp",
			"dependency": [
				{
					"type": "file",
					"file": "/etc/icwmpd/cwmp"
				}
			]
		},
		{
			"description": "TR-069 Force Inform Parameters",
			"cmd": "cat /etc/icwmpd/force_inform.json",
			"dependency": [
				{
					"type": "file",
					"file": "/etc/icwmpd/force_inform.json"
				}
			]
		},
		{
			"description": "TR-069 Obj/Param with Notification",
			"cmd": "cat /etc/icwmpd/cwmp_notifications",
			"dependency": [
				{
					"type": "file",
					"file": "/etc/icwmpd/cwmp_notifications"
				}
			]
		},
		{
			"description": "TR-069 Logs",
			"cmd": "cat /var/log/icwmpd.log",
			"dependency" : [
				{
					"type": "file",
					"file": "/var/log/icwmpd.log"
				}
			]
		},
		{
			"description": "TR-181 Parameters via USP",
			"cmd": "obuspa -c get Device.",
			"timeout": 10
		},
		{
			"description": "USP Agent Database",
			"cmd": "obuspa -f $(uci -q get obuspa.global.db_file) -c show database"
		},
		{
			"description": "USP Logs",
			"cmd": "cat /var/log/obuspa.log",
			"dependency" : [
				{
					"type": "file",
					"file": "/var/log/obuspa.log"
				}
			]
		}
	]
}
