append_filter(where.addr(), tmp.c_str());
}
+ if (obj_r->ObjectCategory[0] != 0) {
+ bdb_escape_string(jcr, esc.c_str(), obj_r->ObjectCategory, strlen(obj_r->ObjectCategory));
+ Mmsg(tmp, " Object.ObjectCategory='%s'", esc.c_str());
+ append_filter(where.addr(), tmp.c_str());
+ }
+
if (obj_r->ObjectId != 0) {
Mmsg(tmp, " Object.ObjectId=%d", obj_r->ObjectId);
append_filter(where.addr(), tmp.c_str());
"\tjoblog jobid=<nn> | pluginrestoreconf jobid=<nn> restoreobjectid=<nn> | snapshot | \n"
"\tfilemedia jobid=<nn> fileindex=<mm> | clients\n"
"\tevents [type=<str> | limit=<int> | order=<asc|desc> | days=<int> | start=<time-specification> | end=<time-specification> ]\n"
+ "\tobjects [jobid=<jobid> client=<cli> type=<str> | category=<str> | limit=<int> | order=<asc|desc> ]\n"
), false},
{ NT_("llist"), llist_cmd, _("Full or long list like list command"),
"\tjobtotals | pools | volume | media <pool=pool-name> | files jobid=<nn> | copies jobid=<nn> |\n"
"\tjoblog jobid=<nn> | pluginrestoreconf jobid=<nn> restoreobjectid=<nn> | snapshot |\n"
"\tfilemedia jobid=<nn> fileindex=<mm> | clients\n"
- "\tobject [jobid=<jobid> client=<cli> type=<name> [order=<asc/desc>] [limit=<n>\n"), false},
+ "\tevents [type=<str> | limit=<int> | order=<asc|desc> | days=<int> | start=<time-specification> | end=<time-specification> ]\n"
+ "\tobject [jobid=<jobid> client=<cli> type=<name> category=<str> order=<asc/desc> limit=<n>\n"), false},
{ NT_("messages"), messagescmd, _("Display pending messages"), NT_(""), false},
{ NT_("memory"), memory_cmd, _("Print current memory usage"), NT_(""), true},
} else if (strcasecmp(ua->argk[j], NT_("type")) == 0) {
bstrncpy(obj_r.ObjectType, ua->argv[j], sizeof(obj_r.ObjectType));
+ } else if (strcasecmp(ua->argk[j], NT_("category")) == 0) {
+ bstrncpy(obj_r.ObjectCategory, ua->argv[j], sizeof(obj_r.ObjectCategory));
+
} else if (strcasecmp(ua->argk[j], NT_("limit")) == 0 && ua->argv[j]) {
obj_r.limit = atoi(ua->argv[j]);