cancel
Showing results for 
Search instead for 
Did you mean: 

Media status inconsistent in different interfaces

danpritts
Level 3

nbu enterprise 7.5.0.6, RHEL6

I have several tapes that have a different status depending how i look at them. 

GUI shows Active 

nbemmcmd shows nothing at all, just a blank field.  Other media show up with info.  Here's an example of both:

Maximum Mounts Allowed:         0
Media Status:
Kilobytes:                      1077678712

Maximum Mounts Allowed:         0
Media Status:                   FULL
Kilobytes:                      1205927424

goodies/available_media says "IMPORTED/FULL/SUSPENDED/FROZEN/MPX/WORM/BEMEDIA"

I'm curious why the differing results.

More tactically, I suspect the GUI version is correct. I am curious what the GUI uses as its backend, so i can replicate it from the command line.  

thanks

2 REPLIES 2

mph999
Level 6
Employee Accredited

Where are those outputs coming from, is it the same tape ???

The commands to look at tapes :

vmquery -m <media id>

bpmedialist -m <media id>

nbemmcmd -listmedia

nbemmcmd -listmedia -mediaid <media id>  (This shows everything the above two commands show + more ...)

Given that the information for these command, + the GUI all come from the same database tables, I'd be amazed if there was a difference that can't be explained, but if it is wrong, I'd expect it was the GUI that was incorrect.

mph999
Level 6
Employee Accredited

OK, I think I follow you:

 

Maximum Mounts Allowed:         0
Media Status:
Kilobytes:                      1077678712

Maximum Mounts Allowed:         0
Media Status:                   FULL
Kilobytes:                      1205927424

... are two different tapes, and you are curious why the top one has no media status ...

For that, you can use the commands I mentioned, but personally I'd start looking in the relevent tables in the nbdb_unload output.