03-08-2022 03:54 AM
Hello VoXers,
I am curious about a 'bug' that we have using vxlogcfg command to set or disable logging for ALL oids.
when we use the below command, it won't modify the debuglevel to the desired level, the command passes ( no error) but it doesn't return the expected output as : The configuration settings were added successfully.
[root@master1~]# vxlogcfg -a -p 51216 -o 117 -s DebugLevel=1
The configuration settings were added successfully.
[root@master1~]# vxlogcfg -a -p 51216 -o ALL -s DebugLevel=1
[root@master1~]#
and we can see through nblog.file that the debuglevel didn't change for all OID as it should be, it only changes it for the Default.DebugLevel:
[root@master1~]# cat /usr/openv/netbackup/nblog.conf | grep -i debug
Default.DebugLevel=1
# VxUL performs the correct mapping from ALL to DebugLevel
111.DebugLevel=1
117.DebugLevel=1
137.DebugLevel=1
156.DebugLevel=1
222.DebugLevel=1
486.DebugLevel=1
512.DebugLevel=0
[root@master1~]# vxlogcfg -a -p 51216 -o ALL -s DebugLevel=6
[root@master1~]# cat /usr/openv/netbackup/nblog.conf | grep -i debug
Default.DebugLevel=6
# VxUL performs the correct mapping from ALL to DebugLevel
111.DebugLevel=1
117.DebugLevel=1
137.DebugLevel=1
156.DebugLevel=1
222.DebugLevel=1
486.DebugLevel=1
512.DebugLevel=0
[root@master1 ~]#
I have tried this for other versions too : 8.0, 8.2 & 8.3.0.1 on Linux & Windows.
I couldn't find any vox/article regarding this, has anyone faced this problem before? is Veritas aware of this bug?
Personnally I don't use the -o ALL, I always put the desired OID but I think a lot of people use ALL and maybe they don't check nblog.conf to confirm that the change has been taken into account or not and it may cause disk space issues on big infrastructures.
Thanks,
Kind regard | Hamza
Thanks !
03-08-2022 07:14 AM
What levels are set in the console?
03-08-2022 07:49 AM
Hello,
They are at minimum, but this is not the point here.
The bug is in the vxlogcfg command..
also, in this screen, only legacy logs, nbpem,nbjm & nbrb logs are concerned, the command doesn't work for these logs & other logs as well.
03-14-2022 04:42 AM
Hello, any comments please? does anyone has the same problem?
07-15-2022 02:26 PM
Hi,
I am always using Default or OID, Could you try please? Hopely help to you.
Disable logging for all daemons --> vxlogcfg -a -p 51216 -o Default -s DebugLevel=0 -s DiagnosticLevel=0
Display the default settings --> vxlogcfg -p 51216 -o Default -l
Best Regards